TCntrnoMapper.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. package com.ruoyi.shipping.mapper;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.ruoyi.shipping.domain.TCntrno;
  5. import com.ruoyi.shipping.excel.BoxMessage;
  6. import org.apache.ibatis.annotations.Param;
  7. /**
  8. * 集装箱号Mapper接口
  9. *
  10. * @author ruoyi
  11. * @date 2021-03-22
  12. */
  13. public interface TCntrnoMapper
  14. {
  15. /**
  16. * 查询集装箱号
  17. *
  18. * @param fId 集装箱号ID
  19. * @return 集装箱号
  20. */
  21. public TCntrno selectTCntrnoById(Long fId);
  22. /**
  23. * 查询集装箱号
  24. *
  25. * @param fNo 集装箱号箱号
  26. * @return 集装箱号
  27. */
  28. public TCntrno selectTCnTrNoByfNo(@Param("fNo") String fNo);
  29. /**
  30. * 查询集装箱号列表
  31. *
  32. * @param tCntrno 集装箱号
  33. * @return 集装箱号集合
  34. */
  35. public List<TCntrno> selectTCntrnoList(TCntrno tCntrno);
  36. /**
  37. * 查询集装箱信息
  38. * @param tCntrno
  39. * @return
  40. */
  41. public List<TCntrno> selectTcntrnoMessage(@Param("tc") TCntrno tCntrno,
  42. @Param("address") String address,
  43. @Param("typeidName") String typeidName,
  44. @Param("cntrstatusName") String cntrstatusName,
  45. @Param("updateEFName") String updateEFName,
  46. @Param("cntrsize") Long cntrsize);
  47. /**
  48. * 新增集装箱号
  49. *
  50. * @param tCntrno 集装箱号
  51. * @return 结果
  52. */
  53. public int insertTCntrno(TCntrno tCntrno);
  54. /**
  55. * 修改集装箱号
  56. *
  57. * @param tCntrno 集装箱号
  58. * @return 结果
  59. */
  60. public int updateTCntrno(TCntrno tCntrno);
  61. /**
  62. * 根据箱号修改数据
  63. *
  64. * @param tCntrno 集装箱号
  65. * @return 结果
  66. */
  67. public int updateTCntrnoByfNo(TCntrno tCntrno);
  68. /**
  69. * 删除集装箱号
  70. *
  71. * @param fId 集装箱号ID
  72. * @return 结果
  73. */
  74. public int deleteTCntrnoById(Long fId);
  75. /**
  76. * 批量删除集装箱号
  77. *
  78. * @param fIds 需要删除的数据ID
  79. * @return 结果
  80. */
  81. public int deleteTCntrnoByIds(Long[] fIds);
  82. /**
  83. * 批量更新数据状态
  84. * @param fIds
  85. * @return
  86. */
  87. public int updateTcntrnoStatus(Long[] fIds);
  88. /**
  89. * 获取箱动态分布信息
  90. * @param sql
  91. * @param tCntrno
  92. * @return
  93. */
  94. public List<Map<String, Object>> getTCntrnoMessage(@Param("sql") String sql,
  95. @Param("stand") String stand,
  96. @Param("bareWeight") String bareWeight,
  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. }