TWhgenlegMapper.java 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. package com.ruoyi.reportManagement.mapper;
  2. import com.ruoyi.reportManagement.domain.TWhgenleg;
  3. import com.ruoyi.reportManagement.domain.vo.WhgenlegVO;
  4. import com.ruoyi.reportManagement.excel.Whgenleg;
  5. import com.ruoyi.warehouseBusiness.domain.TWarehouseBills;
  6. import com.ruoyi.warehouseBusiness.domain.vo.CalculateStorageFeesInfoVO;
  7. import org.apache.ibatis.annotations.Mapper;
  8. import org.apache.ibatis.annotations.Param;
  9. import java.util.Date;
  10. import java.util.List;
  11. import java.util.Map;
  12. /**
  13. * 库存总账Mapper接口
  14. *
  15. * @author ruoyi
  16. * @date 2020-12-11
  17. */
  18. @Mapper
  19. public interface TWhgenlegMapper {
  20. /**
  21. * 查询库存总账
  22. *
  23. * @param fId 库存总账ID
  24. * @return 库存总账
  25. */
  26. public TWhgenleg selectTWhgenlegById(Long fId);
  27. /**
  28. * 查询库存总账列表
  29. *
  30. * @param tWhgenleg 库存总账
  31. * @return 库存总账集合
  32. */
  33. public List<TWhgenleg> selectTWhgenlegList(TWhgenleg tWhgenleg);
  34. /**
  35. * 新增库存总账
  36. *
  37. * @param tWhgenleg 库存总账
  38. * @return 结果
  39. */
  40. public int insertTWhgenleg(TWhgenleg tWhgenleg);
  41. /**
  42. * 修改库存总账
  43. *
  44. * @param tWhgenleg 库存总账
  45. * @return 结果
  46. */
  47. public int updateTWhgenleg(TWhgenleg tWhgenleg);
  48. /**
  49. * 删除库存总账
  50. *
  51. * @param fAccyear 库存总账ID
  52. * @return 结果
  53. */
  54. public int deleteTWhgenlegById(Long fAccyear);
  55. /**
  56. * 批量删除库存总账
  57. *
  58. * @param fAccyears 需要删除的数据ID
  59. * @return 结果
  60. */
  61. public int deleteTWhgenlegByIds(Long[] fAccyears);
  62. /**
  63. * 查询条件库存总账是否存在
  64. *
  65. * @param tWhgenleg 库存总账
  66. * @return 结果
  67. */
  68. public TWhgenleg selectTWhgenleg(TWhgenleg tWhgenleg);
  69. /**
  70. * 修改库存总账表
  71. *
  72. * @param map
  73. * @return 结果
  74. */
  75. public int updateTWhgenlegData(@Param("map") Map<String, Object> map);
  76. List<Map<String, Object>> selectInventoryList(TWhgenleg tWhgenleg);
  77. List<Map<String, Object>> selectWhgenlegList(TWhgenleg tWhgenleg);
  78. List<Map<String, Object>> selectGoodsList();
  79. List<Map<String, Object>> selectGoodsListWhouse(Long fId);
  80. List<Map<String, Object>> selectWareHouseList();
  81. List<Map<String, Object>> selectWareHouseListWhouse(Long fId);
  82. List<Map<String, Object>> selectCorpsList();
  83. List<Map<String, Object>> selectCorpsListWhouse(Long fId);
  84. List<Map<String, Object>> selectDateFQtyblcListList(@Param("map") Map<String, Object> map);
  85. List<Map<String, Object>> getCorpsByfMblno(String fMblno);
  86. /**
  87. * 查询库存总账计算仓储费
  88. *
  89. * @param tWarehouseBills
  90. * @return
  91. */
  92. public List<Map<String, Object>> selectStorageFeeItemList(@Param("warehouse") TWarehouseBills tWarehouseBills);
  93. public List<CalculateStorageFeesInfoVO> selectStorageFeeItemList1(@Param("warehouse") TWarehouseBills tWarehouseBills);
  94. /**
  95. * 查询库存总账列表
  96. *
  97. * @param tWhgenleg 库存总账
  98. * @return 库存总账集合
  99. */
  100. public List<Map<String, Object>> selectInventoryMapList(TWhgenleg tWhgenleg);
  101. /**
  102. * App查询库存总账列表
  103. *
  104. * @param tWhgenleg 库存总账
  105. * @return 库存总账集合
  106. */
  107. public List<Map<String, Object>> selectAppInventoryMapList(TWhgenleg tWhgenleg);
  108. /**
  109. * 库存总账导出
  110. *
  111. * @param tWhgenleg
  112. * @return
  113. */
  114. List<Whgenleg> selectWhgenlegMessage(TWhgenleg tWhgenleg);
  115. /**
  116. * 根据客户id或者提单号查询库存不为0的仓库
  117. *
  118. * @param tWhgenleg
  119. * @return
  120. */
  121. public List<Map<String, Object>> getWarehouse(TWhgenleg tWhgenleg);
  122. /**
  123. * 根据id查询仓储费计费日期是否发生变化
  124. *
  125. * @param ids id集合
  126. * @param chargedate 校验日期
  127. * @return
  128. */
  129. int queryChangedByFchargedate(@Param("ids") List<Long> ids, @Param("time") Date chargedate);
  130. /**
  131. * 库存总帐入库、出库查询来源明细
  132. *
  133. * @param tWhgenleg
  134. * @return
  135. */
  136. List<WhgenlegVO> selectStockDetailsList(TWhgenleg tWhgenleg);
  137. /**
  138. * 库存总帐货转、调拨、通关查询来源明细
  139. *
  140. * @param tWhgenleg
  141. * @return
  142. */
  143. List<WhgenlegVO> selectOtherDetailsList(TWhgenleg tWhgenleg);
  144. /**
  145. * 库存统计
  146. */
  147. public Map<String, Object> stockStatistics(@Param("beginDate") String beginDate,
  148. @Param("endDate") String endDate,
  149. @Param("external") String external,
  150. @Param("warehouseId") Long warehouseId,
  151. @Param("customerId") Long customerId,
  152. @Param("mode") String mode);
  153. /**
  154. * 库存Teu统计
  155. */
  156. public Map<String, Object> stockTeuStatistics(@Param("beginDate") String beginDate,
  157. @Param("endDate") String endDate,
  158. @Param("external") String external,
  159. @Param("warehouseId") Long warehouseId,
  160. @Param("customerId") Long customerId);
  161. /**
  162. * 库龄
  163. *
  164. * @param external 外部用户
  165. * @return
  166. */
  167. public Map<String, Object> stockDays(@Param("external") String external,
  168. @Param("warehouseId") Long warehouseId,
  169. @Param("customerId") Long customerId);
  170. /**
  171. * 库龄超过60天的库存列表
  172. *
  173. * @return
  174. */
  175. public List<Map<String, Object>> stockAfterMonthList(@Param("external") String external);
  176. /**
  177. * bi大屏客户概况
  178. *
  179. * @return
  180. */
  181. public List<Map<String, Object>> biCustomerInfo(@Param("external") String external,
  182. @Param("warehouseId") Long warehouseId,
  183. @Param("customerId") Long customerId,
  184. @Param("mode") String mode);
  185. /**
  186. * bi大屏仓库概况
  187. *
  188. * @return
  189. */
  190. public List<Map<String, Object>> biWarehouseInfo(@Param("external") String external,
  191. @Param("customerId") Long customerId,
  192. @Param("mode") String mode);
  193. /**
  194. * bi大屏客户概况
  195. *
  196. * @return
  197. */
  198. public List<Map<String, Object>> biCustomerTeuInfo(@Param("external") String external,
  199. @Param("warehouseId") Long warehouseId,
  200. @Param("customerId") Long customerId);
  201. /**
  202. * bi大屏仓库概况
  203. *
  204. * @return
  205. */
  206. public List<Map<String, Object>> biWarehouseTeuInfo(@Param("external") String external,
  207. @Param("customerId") Long customerId);
  208. public List<Map<String, Object>> warehouseSupervise(@Param("parent") Integer parent);
  209. public List<Map<String, Object>> selectStockList(@Param("billNo") String billNo, @Param("corpId") Long corpId);
  210. public int changeBelongTo(TWhgenleg tWhgenleg);
  211. /**
  212. * 查询提单号是否存在
  213. *
  214. * @param blNumber 提单号
  215. * @return 结果
  216. */
  217. List<Map<String, Object>> selectBlNumber(@Param("blNumber") String blNumber, @Param("corpId") Long corpId);
  218. }