TWhgenlegMapper.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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.Param;
  8. import java.util.Date;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * 库存总账Mapper接口
  13. *
  14. * @author ruoyi
  15. * @date 2020-12-11
  16. */
  17. public interface TWhgenlegMapper {
  18. /**
  19. * 查询库存总账
  20. *
  21. * @param fId 库存总账ID
  22. * @return 库存总账
  23. */
  24. public TWhgenleg selectTWhgenlegById(Long fId);
  25. /**
  26. * 查询库存总账列表
  27. *
  28. * @param tWhgenleg 库存总账
  29. * @return 库存总账集合
  30. */
  31. public List<TWhgenleg> selectTWhgenlegList(TWhgenleg tWhgenleg);
  32. /**
  33. * 新增库存总账
  34. *
  35. * @param tWhgenleg 库存总账
  36. * @return 结果
  37. */
  38. public int insertTWhgenleg(TWhgenleg tWhgenleg);
  39. /**
  40. * 修改库存总账
  41. *
  42. * @param tWhgenleg 库存总账
  43. * @return 结果
  44. */
  45. public int updateTWhgenleg(TWhgenleg tWhgenleg);
  46. /**
  47. * 删除库存总账
  48. *
  49. * @param fAccyear 库存总账ID
  50. * @return 结果
  51. */
  52. public int deleteTWhgenlegById(Long fAccyear);
  53. /**
  54. * 批量删除库存总账
  55. *
  56. * @param fAccyears 需要删除的数据ID
  57. * @return 结果
  58. */
  59. public int deleteTWhgenlegByIds(Long[] fAccyears);
  60. /**
  61. * 查询条件库存总账是否存在
  62. *
  63. * @param tWhgenleg 库存总账
  64. * @return 结果
  65. */
  66. public TWhgenleg selectTWhgenleg(TWhgenleg tWhgenleg);
  67. /**
  68. * 修改库存总账表
  69. *
  70. * @param map
  71. * @return 结果
  72. */
  73. public int updateTWhgenlegData(@Param("map") Map<String, Object> map);
  74. List<Map<String, Object>> selectInventoryList(TWhgenleg tWhgenleg);
  75. List<Map<String, Object>> selectWhgenlegList(TWhgenleg tWhgenleg);
  76. List<Map<String, Object>> selectGoodsList();
  77. List<Map<String, Object>> selectGoodsListWhouse(Long fId);
  78. List<Map<String, Object>> selectWareHouseList();
  79. List<Map<String, Object>> selectWareHouseListWhouse(Long fId);
  80. List<Map<String, Object>> selectCorpsList();
  81. List<Map<String, Object>> selectCorpsListWhouse(Long fId);
  82. List<Map<String, Object>> selectDateFQtyblcListList(@Param("map") Map<String, Object> map);
  83. List<Map<String, Object>> getCorpsByfMblno(String fMblno);
  84. /**
  85. * 查询库存总账计算仓储费
  86. *
  87. * @param tWarehouseBills
  88. * @return
  89. */
  90. public List<Map<String, Object>> selectStorageFeeItemList(@Param("warehouse") TWarehouseBills tWarehouseBills);
  91. public List<CalculateStorageFeesInfoVO> selectStorageFeeItemList1(@Param("warehouse") TWarehouseBills tWarehouseBills);
  92. /**
  93. * 查询库存总账列表
  94. *
  95. * @param tWhgenleg 库存总账
  96. * @return 库存总账集合
  97. */
  98. public List<Map<String, Object>> selectInventoryMapList(TWhgenleg tWhgenleg);
  99. /**
  100. * App查询库存总账列表
  101. *
  102. * @param tWhgenleg 库存总账
  103. * @return 库存总账集合
  104. */
  105. public List<Map<String, Object>> selectAppInventoryMapList(TWhgenleg tWhgenleg);
  106. /**
  107. * 库存总账导出
  108. *
  109. * @param tWhgenleg
  110. * @return
  111. */
  112. List<Whgenleg> selectWhgenlegMessage(TWhgenleg tWhgenleg);
  113. /**
  114. * 根据客户id或者提单号查询库存不为0的仓库
  115. *
  116. * @param tWhgenleg
  117. * @return
  118. */
  119. public List<Map<String, Object>> getWarehouse(TWhgenleg tWhgenleg);
  120. /**
  121. * 根据id查询仓储费计费日期是否发生变化
  122. *
  123. * @param ids id集合
  124. * @param chargedate 校验日期
  125. * @return
  126. */
  127. int queryChangedByFchargedate(@Param("ids") List<Long> ids, @Param("time")Date chargedate);
  128. /**
  129. * 库存总帐入库、出库查询来源明细
  130. * @param tWhgenleg
  131. * @return
  132. */
  133. List<WhgenlegVO> selectStockDetailsList(TWhgenleg tWhgenleg);
  134. /**
  135. * 库存总帐货转、调拨、通关查询来源明细
  136. * @param tWhgenleg
  137. * @return
  138. */
  139. List<WhgenlegVO> selectOtherDetailsList(TWhgenleg tWhgenleg);
  140. /**
  141. * 库存统计
  142. * @param beginDate 起始时间
  143. * @param endDate 截止时间
  144. * @param external 外部用户
  145. * @return
  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. * 库龄
  155. * @param external 外部用户
  156. * @return
  157. */
  158. public Map<String, Object> stockDays(@Param("external") String external,
  159. @Param("warehouseId") Long warehouseId,
  160. @Param("customerId") Long customerId);
  161. /**
  162. * 库龄超过60天的库存列表
  163. *
  164. * @return
  165. */
  166. public List<Map<String, Object>> stockAfterMonthList(@Param("external") String external);
  167. /**
  168. * bi大屏客户概况
  169. *
  170. * @return
  171. */
  172. public List<Map<String, Object>> biCustomerInfo(@Param("external") String external,
  173. @Param("warehouseId") Long warehouseId,
  174. @Param("customerId") Long customerId);
  175. }