TCntrnoMapper.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. package com.ruoyi.shipping.mapper;
  2. import java.util.Date;
  3. import java.util.List;
  4. import java.util.Map;
  5. import com.ruoyi.shipping.domain.TCntrno;
  6. import com.ruoyi.shipping.excel.BoxMessage;
  7. import org.apache.ibatis.annotations.Param;
  8. /**
  9. * 集装箱号Mapper接口
  10. *
  11. * @author ruoyi
  12. * @date 2021-03-22
  13. */
  14. public interface TCntrnoMapper
  15. {
  16. /**
  17. * 查询集装箱号
  18. *
  19. * @param fId 集装箱号ID
  20. * @return 集装箱号
  21. */
  22. public TCntrno selectTCntrnoById(Long fId);
  23. /**
  24. * 查询集装箱号
  25. *
  26. * @param fNo 集装箱号箱号
  27. * @return 集装箱号
  28. */
  29. public TCntrno selectTCnTrNoByfNo(@Param("fNo") String fNo);
  30. /**
  31. * 查询集装箱号列表
  32. *
  33. * @param tCntrno 集装箱号
  34. * @return 集装箱号集合
  35. */
  36. public List<TCntrno> selectTCntrnoList(TCntrno tCntrno);
  37. /**
  38. * 查询集装箱信息
  39. * @param tCntrno
  40. * @return
  41. */
  42. public List<TCntrno> selectTcntrnoMessage(@Param("tc") TCntrno tCntrno,
  43. @Param("address") String address,
  44. @Param("typeidName") String typeidName,
  45. @Param("cntrstatusName") String cntrstatusName,
  46. @Param("updateEFName") String updateEFName,
  47. @Param("cntrsize") Long cntrsize);
  48. /**
  49. * 新增集装箱号
  50. *
  51. * @param tCntrno 集装箱号
  52. * @return 结果
  53. */
  54. public int insertTCntrno(TCntrno tCntrno);
  55. /**
  56. * 修改集装箱号
  57. *
  58. * @param tCntrno 集装箱号
  59. * @return 结果
  60. */
  61. public int updateTCntrno(TCntrno tCntrno);
  62. /**
  63. * 根据箱号修改数据
  64. *
  65. * @param tCntrno 集装箱号
  66. * @return 结果
  67. */
  68. public int updateTCntrnoByfNo(TCntrno tCntrno);
  69. /**
  70. * 删除集装箱号
  71. *
  72. * @param fId 集装箱号ID
  73. * @return 结果
  74. */
  75. public int deleteTCntrnoById(Long fId);
  76. /**
  77. * 批量删除集装箱号
  78. *
  79. * @param fIds 需要删除的数据ID
  80. * @return 结果
  81. */
  82. public int deleteTCntrnoByIds(Long[] fIds);
  83. /**
  84. * 批量更新数据状态
  85. * @param fIds
  86. * @return
  87. */
  88. public int updateTcntrnoStatus(Long[] fIds);
  89. /**
  90. * 获取箱动态分布信息
  91. * @param sql
  92. * @param tCntrno
  93. * @return
  94. */
  95. public List<Map<String, Object>> getTCntrnoMessage(@Param("sql") String sql,
  96. @Param("stand") String stand,
  97. @Param("tCntrno") TCntrno tCntrno);
  98. /**
  99. * 查询编号唯一性
  100. * @param tCntrno
  101. * @return
  102. */
  103. public TCntrno selectTCntrnoFNo(TCntrno tCntrno);
  104. /**
  105. * 批量新增集装箱号
  106. *
  107. * @param tCntrno 集装箱号
  108. * @return 结果
  109. */
  110. public int insertTCntrnoList(List<TCntrno> tCntrno);
  111. /**
  112. * 获取 箱号、地点、空重
  113. * @param tCntrno
  114. * @return
  115. */
  116. public List<Map<String, Object>> getTcntrnoFno(TCntrno tCntrno);
  117. /**
  118. * 获取箱分布情况
  119. * @param tCntrno
  120. * @return
  121. */
  122. public BoxMessage boxDistributionStatistics(TCntrno tCntrno);
  123. /**
  124. * 获取箱信息中地点为港口的地址 fUpdateaddress 地点ID addressName 地点中文名
  125. * @return
  126. */
  127. public List<TCntrno> getBoxPortMessage();
  128. /**
  129. * 获取箱信息中地点不为港口的地址 fUpdateaddress 地点ID addressName 地点中文名 portName 港口名称
  130. * @return
  131. */
  132. public List<TCntrno> getBoxAddressMessage();
  133. /**
  134. * 查询在船的集装箱备注
  135. * @param fUpdateaddress
  136. * @return
  137. */
  138. public List<TCntrno> getBoxRemark(@Param("fUpdateaddress") String fUpdateaddress);
  139. /**
  140. * 首页获取箱分布
  141. * @return
  142. */
  143. public List<Map<String,Object>>homeBox();
  144. /**
  145. * 凯和启用和退租功能
  146. * @param tCntrno
  147. * @return
  148. */
  149. public int updateHire(TCntrno tCntrno);
  150. }