ITWarehouseService.java 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. package com.ruoyi.basicData.service;
  2. import com.ruoyi.basicData.domain.TCorps;
  3. import com.ruoyi.basicData.domain.TWarehouseArea;
  4. import com.ruoyi.common.core.domain.AjaxResult;
  5. import com.ruoyi.common.core.domain.TreeSelect;
  6. import com.ruoyi.common.core.domain.entity.TWarehouse;
  7. import com.ruoyi.common.core.domain.model.LoginUser;
  8. import com.ruoyi.warehouseBusiness.domain.TWarehouseBills;
  9. import com.ruoyi.warehouseBusiness.domain.dto.WarehouseSubmitDTO;
  10. import com.ruoyi.warehouseBusiness.domain.vo.WarehouseInfoVO;
  11. import com.ruoyi.warehouseBusiness.request.InventoryQueryRequest;
  12. import com.ruoyi.warehouseBusiness.response.InventoryQueryResponse;
  13. import java.util.List;
  14. import java.util.Map;
  15. /**
  16. * 仓库Service接口
  17. *
  18. * @author ruoyi
  19. * @date 2020-12-11
  20. */
  21. public interface ITWarehouseService {
  22. /**
  23. * 查询仓库
  24. *
  25. * @param fId 仓库ID
  26. * @return 仓库
  27. */
  28. public WarehouseInfoVO selectTWarehouseById(Long fId);
  29. public Map<String, Object> selectTWarehouseById1(Long fId);
  30. /**
  31. * 查询仓库列表
  32. *
  33. * @param tWarehouse 仓库
  34. * @return 仓库集合
  35. */
  36. public List<TWarehouse> selectTWarehouseList(TWarehouse tWarehouse);
  37. public List<WarehouseInfoVO> selectTWarehouseListAll(TWarehouse tWarehouse);
  38. public List<TWarehouse> selectTWarehouseLists(TWarehouse tWarehouse);
  39. public List<Map<String, Object>> appGetWarehouseList();
  40. /**
  41. * 新增仓库
  42. *
  43. * @param tWarehouse 仓库
  44. * @return 结果
  45. */
  46. public int insertTWarehouse(TWarehouse tWarehouse);
  47. public AjaxResult insertTWarehouse1(String tWarehouse, String tWarehouseArea, LoginUser loginUser);
  48. /**
  49. * 修改仓库
  50. *
  51. * @param tWarehouse 仓库
  52. * @return 结果
  53. */
  54. public AjaxResult updateTWarehouse(TWarehouse tWarehouse);
  55. public int updateTWarehouses(TWarehouse tWarehouse);
  56. /**
  57. * 批量删除仓库
  58. *
  59. * @param fIds 需要删除的仓库ID
  60. * @return 结果
  61. */
  62. public AjaxResult deleteTWarehouseByIds(Long[] fIds);
  63. /**
  64. * 删除仓库信息
  65. *
  66. * @param fId 仓库ID
  67. * @return 结果
  68. */
  69. public int deleteTWarehouseById(Long fId);
  70. /**
  71. * 检验编号唯一
  72. *
  73. * @return
  74. */
  75. public String checkUFNoUnique(TWarehouse tWarehouse);
  76. /**
  77. * 检验编号名称
  78. *
  79. * @return
  80. */
  81. public String checkUFNnameUnique(TWarehouse tWarehouse);
  82. /**
  83. * 检验编号地址
  84. *
  85. * @return
  86. */
  87. public String checkUFAaddrUnique(TWarehouse tWarehouse);
  88. /**
  89. * 检验编号唯一
  90. *
  91. * @return
  92. */
  93. public String checkUFTWarehouseAreaNoUnique(TWarehouseArea tWarehouseAreas);
  94. /**
  95. * 检验编号名称
  96. *
  97. * @return
  98. */
  99. public String checkUTWarehouseAreaFNnameUnique(TWarehouseArea tWarehouseAreas);
  100. /**
  101. * 根据ID查询所有子部门(正常状态)
  102. *
  103. * @param fId fID
  104. * @return 子部门数
  105. */
  106. public int selectNormalChildrenDeptById(Long fId);
  107. /**
  108. * 构建前端所需要下拉树结构
  109. *
  110. * @param tWarehouses 部门列表
  111. * @return 下拉树结构列表
  112. */
  113. public List<TreeSelect> buildDeptTreeSelect(List<TWarehouse> tWarehouses);
  114. /**
  115. * 构建前端所需要树结构
  116. *
  117. * @param depts 部门列表
  118. * @return 树结构列表
  119. */
  120. public List<TWarehouse> buildDeptTree(List<TWarehouse> depts);
  121. /**
  122. * 检验是否可添加库区
  123. *
  124. * @return
  125. */
  126. public String checkUFAreUnique(TWarehouse tWarehouse);
  127. public String checkNameUnique(TWarehouse tWarehouse);
  128. /**
  129. * 是否存在部门子节点
  130. *
  131. * @param fId 部门ID
  132. * @return 结果
  133. */
  134. public boolean hasChildByfId(Long fId);
  135. /**
  136. * 查询部门是否存在用户
  137. *
  138. * @param deptId 部门ID
  139. * @return 结果 true 存在 false 不存在
  140. */
  141. public boolean checkDeptExistWarehouse(Long deptId);
  142. public boolean checkDeptExistWarehouseItems(Long deptId);
  143. /**
  144. * 新增仓库
  145. *
  146. * @param tWarehouse
  147. * @return
  148. */
  149. AjaxResult warehouseSubmit(WarehouseSubmitDTO tWarehouse);
  150. /**
  151. * 修改仓库
  152. *
  153. * @param tWarehouse
  154. * @return
  155. */
  156. AjaxResult edit(WarehouseSubmitDTO tWarehouse);
  157. /**
  158. * 仓库懒加载列表
  159. *
  160. * @param tWarehouse
  161. * @return
  162. */
  163. List<TWarehouse> lazyList(TWarehouse tWarehouse);
  164. TWarehouse selectByCode(String position);
  165. /**
  166. * 查询货物台账
  167. */
  168. List<Map<String,Object>> queryGoodsAccountByPageV1(String warehouseCode,
  169. String ownerSocialIdentifier,
  170. String ownerCode,
  171. String ownerName,
  172. String goodsName,
  173. String specifications,
  174. String producing,
  175. String materialQuality,
  176. String level,
  177. Integer pageNo,
  178. Integer pageSize);
  179. /**
  180. * 查询台账明细
  181. */
  182. List<Map<String,Object>> queryGoodsAccountDetailByPageV1(String warehouseCode,String ownerName,String ownerCode,String ownerSocialIdentifier, String goodsName,String specifications,
  183. String producing,String materialQuality,String level, String receiptDoc,String billOfLading,
  184. String areaName,String areaCode,String slotName,String slotCode,Integer pageNo,Integer pageSize);
  185. /**
  186. * 获取仓库详细信息
  187. */
  188. TWarehouse getWareHouseInfo(String wareHouseId);
  189. /**
  190. * 获取最新的库存数据
  191. */
  192. Map<String, Object> getStorageInfo(String wareHouseId);
  193. /**
  194. * 库存吞吐趋势信息
  195. */
  196. List<Map<String, Object>> getTimeStorageInfo(String wareHouseId, String startTime, String endTime);
  197. /**
  198. * 库存吞吐趋势信息
  199. */
  200. List<Map<String, Object>> getTimeThroughputInfo(String wareHouseId, String startTime, String endTime);
  201. /**
  202. * 货物保管信息
  203. */
  204. Map<String, Object> getCargoInfo(String wareHouseId, String startTime, String endTime, String isPledge);
  205. /**
  206. * 货物保管信息
  207. */
  208. List<Map<String, Object>> getGoodsList(String wareHouseId, String startTime, String endTime);
  209. /**
  210. * 仓库保管趋势
  211. */
  212. List<Map<String, Object>> getCargoInfoTrend(String wareHouseId, String startTime, String endTime, String FTradeModeId);
  213. /**
  214. * 获取货物品类top值
  215. */
  216. List<Map<String, Object>> getStorageTop(String wareHouseId, Integer countType, Integer topCnt);
  217. /**
  218. * 获取货物品类top值
  219. */
  220. List<Map<String, Object>> getStorageTopS(String wareHouseId, Integer countType, Integer topCnt);
  221. /**
  222. * 获取货主仓库top值
  223. */
  224. List<Map<String, Object>> getGoodsTop(String wareHouseId, Integer countType, Integer topCnt);
  225. /**
  226. * 过户交易信息获取
  227. */
  228. List<Map<String, Object>> getTransferTransaction(String wareHouseId, String startTime, String endTime);
  229. /**
  230. * 最新的作业统计
  231. */
  232. Map<String, Object> getWorkInfo(String wareHouseId, String countType);
  233. /**
  234. * 作业统计趋势数据
  235. */
  236. List<Map<String, Object>> getWorkTrend(String wareHouseId, String startTime, String endTime, String countType);
  237. /**
  238. * 获取仓库详细信息
  239. */
  240. List<InventoryQueryResponse> inventoryQueries(InventoryQueryRequest inventoryQueryRequest);
  241. /**
  242. * 仓单注册指令
  243. */
  244. public int receiptRegister(String ownerName, String identifier, String numbers);
  245. /**
  246. * 客户检验指令
  247. */
  248. public TCorps verification(String name, String identifier);
  249. /**
  250. * 仓单过户指令
  251. */
  252. public int receiptTransfer(TWarehouseBills warehouseBills);
  253. /**
  254. * 仓单解锁指令
  255. */
  256. public int receiptCancel(String ownerName, String identifier, String numbers);
  257. }