TWhgenlegMapper.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. /**
  84. * 查询库存总账计算仓储费
  85. *
  86. * @param tWarehouseBills
  87. * @return
  88. */
  89. public List<Map<String, Object>> selectStorageFeeItemList(@Param("warehouse") TWarehouseBills tWarehouseBills);
  90. public List<CalculateStorageFeesInfoVO> selectStorageFeeItemList1(@Param("warehouse") TWarehouseBills tWarehouseBills);
  91. /**
  92. * 查询库存总账列表
  93. *
  94. * @param tWhgenleg 库存总账
  95. * @return 库存总账集合
  96. */
  97. public List<Map<String, Object>> selectInventoryMapList(TWhgenleg tWhgenleg);
  98. /**
  99. * App查询库存总账列表
  100. *
  101. * @param tWhgenleg 库存总账
  102. * @return 库存总账集合
  103. */
  104. public List<Map<String, Object>> selectAppInventoryMapList(TWhgenleg tWhgenleg);
  105. /**
  106. * 库存总账导出
  107. *
  108. * @param tWhgenleg
  109. * @return
  110. */
  111. List<Whgenleg> selectWhgenlegMessage(TWhgenleg tWhgenleg);
  112. /**
  113. * 根据客户id或者提单号查询库存不为0的仓库
  114. *
  115. * @param tWhgenleg
  116. * @return
  117. */
  118. public List<Map<String, Object>> getWarehouse(TWhgenleg tWhgenleg);
  119. /**
  120. * 根据id查询仓储费计费日期是否发生变化
  121. *
  122. * @param ids id集合
  123. * @param chargedate 校验日期
  124. * @return
  125. */
  126. int queryChangedByFchargedate(@Param("ids") List<Long> ids, @Param("time")Date chargedate);
  127. /**
  128. * 库存总帐入库、出库查询来源明细
  129. * @param tWhgenleg
  130. * @return
  131. */
  132. List<WhgenlegVO> selectStockDetailsList(TWhgenleg tWhgenleg);
  133. /**
  134. * 库存总帐货转、调拨、通关查询来源明细
  135. * @param tWhgenleg
  136. * @return
  137. */
  138. List<WhgenlegVO> selectOtherDetailsList(TWhgenleg tWhgenleg);
  139. /**
  140. * 库存统计
  141. * @param beginDate 起始时间
  142. * @param endDate 截止时间
  143. * @param external 外部用户
  144. * @return
  145. */
  146. public Map<String, Object> stockStatistics(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("external") String external);
  147. /**
  148. * 库龄
  149. * @param external 外部用户
  150. * @return
  151. */
  152. public Map<String, Object> stockDays(@Param("external") String external);
  153. /**
  154. * 库龄超过60天的库存列表
  155. *
  156. * @return
  157. */
  158. public List<Map<String, Object>> stockAfterMonthList(@Param("external") String external);
  159. /**
  160. * bi大屏客户概况
  161. *
  162. * @return
  163. */
  164. public List<Map<String, Object>> biCustomerInfo();
  165. /**
  166. * bi大屏商品概况
  167. *
  168. * @return
  169. */
  170. public List<Map<String, Object>> biGoodsInfo();
  171. }