InvLotLocIdMapper.java 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. package com.ruoyi.ams.inv.mapper;
  2. import java.util.List;
  3. import com.ruoyi.ams.config.domain.dto.LotattDTO;
  4. import com.ruoyi.ams.inv.domain.InvLotAtt;
  5. import com.ruoyi.ams.inv.domain.InvLotLocId;
  6. import com.ruoyi.ams.inv.domain.form.InvLocIdSearchFrom;
  7. import com.ruoyi.ams.inv.domain.vo.InvLotLocIdLotattVO;
  8. import com.ruoyi.base.domain.vo.BaseLocationLotattVO;
  9. import com.ruoyi.common.core.domain.AjaxResult;
  10. import org.apache.ibatis.annotations.Param;
  11. /**
  12. * 库位库存信息Mapper接口
  13. *
  14. * @author andy
  15. * @date 2022-03-03
  16. */
  17. public interface InvLotLocIdMapper {
  18. /**
  19. * 查询库位库存信息
  20. *
  21. * @param lotnum 库位库存信息主键
  22. * @return 库位库存信息
  23. */
  24. InvLotLocId selectInvLotLocIdByLotnum(String lotnum);
  25. /**
  26. * 查询库存(根据主键)
  27. *
  28. * @param lotnum
  29. * @param sku
  30. * @param location
  31. * @param customerId
  32. * @return
  33. */
  34. InvLotLocId queryById(@Param("lotnum") String lotnum, @Param("sku") String sku, @Param("location") String location, @Param("customerId") String customerId);
  35. /**
  36. * 查询库位库存信息列表
  37. *
  38. * @param invLotLocId 库位库存信息
  39. * @return 库位库存信息集合
  40. */
  41. List<InvLotLocId> selectInvLotLocIdList(InvLotLocId invLotLocId);
  42. /**
  43. * 新增库位库存信息
  44. *
  45. * @param invLotLocId 库位库存信息
  46. * @return 结果
  47. */
  48. int insertInvLotLocId(InvLotLocId invLotLocId);
  49. /**
  50. * 修改库位库存信息
  51. *
  52. * @param invLotLocId 库位库存信息
  53. * @return 结果
  54. */
  55. int updateInvLotLocId(InvLotLocId invLotLocId);
  56. /**
  57. * 删除库位库存信息
  58. *
  59. * @param lotnum 库位库存信息主键
  60. * @return 结果
  61. */
  62. int deleteInvLotLocIdByLotnum(String lotnum);
  63. /**
  64. * 批量删除库位库存信息
  65. *
  66. * @param lotnums 需要删除的数据主键集合
  67. * @return 结果
  68. */
  69. int deleteInvLotLocIdByLotnums(String[] lotnums);
  70. /**
  71. * 查询库位库存
  72. *
  73. * @param zoneId
  74. * @param sku
  75. * @param skuType
  76. * @param weight
  77. * @param supplier
  78. * @param lotattDTO
  79. * @return
  80. */
  81. List<BaseLocationLotattVO> selectInvLocationList(@Param("zoneId") Long zoneId, @Param("sku") String sku, @Param("skuType") String skuType, @Param("weight") Double weight, @Param("supplier") String supplier, @Param("lotattDTO") LotattDTO lotattDTO);
  82. /**
  83. * 根据sku和批次属性获取
  84. *
  85. * @param sku
  86. * @param skuType
  87. * @return
  88. */
  89. List<BaseLocationLotattVO> selectInvZoneBySkuLotatt(@Param("sku") String sku, @Param("skuType") String skuType, @Param("lotattDTO") LotattDTO lotattDTO);
  90. /**
  91. * 查询物料批次信息列表
  92. *
  93. * @param invLocIdSearchFrom
  94. * @return
  95. */
  96. List<InvLotLocIdLotattVO> selectInvLocIdLotattList(InvLocIdSearchFrom invLocIdSearchFrom);
  97. /**
  98. * @param locationId
  99. * @return
  100. */
  101. List<InvLotLocIdLotattVO> selectInvLocIdLotattByLocationId(Long locationId);
  102. /**
  103. * 删除库位库存信息
  104. *
  105. * @param locationId 库位id
  106. * @return 结果
  107. */
  108. int deleteInvLotLocIdByLocationId(Long locationId);
  109. /**
  110. * 更新起始库位库存至目标库位
  111. *
  112. * @param locationFrom
  113. * @param locationTo
  114. * @return
  115. */
  116. int updateInvLotLocIdLocationId(@Param("locationFrom") Long locationFrom, @Param("locationTo") Long locationTo);
  117. /**
  118. * 清除库位库存信息
  119. *
  120. * @param locationId
  121. * @return
  122. */
  123. int clearInvByLocationId(@Param("locationId") Long locationId);
  124. /**
  125. * 根据物料查询库位库存信息
  126. *
  127. * @param sku
  128. * @param lotattDTO
  129. * @return
  130. */
  131. Double queryInvBySku(@Param("sku") String sku, @Param("lotattDTO") LotattDTO lotattDTO, @Param("zoneIdList") List<String> zoneIdList);
  132. /**
  133. * 根据物料库位查询库存
  134. *
  135. * @param sku
  136. * @param locationId
  137. * @param lotattDTO
  138. * @return
  139. */
  140. Double queryInvBySkuLocationId(@Param("sku") String sku, @Param("locationId") Long locationId, @Param("lotattDTO") LotattDTO lotattDTO);
  141. /**
  142. * 查询库存
  143. *
  144. * @param lotnum
  145. * @param sku
  146. * @param location
  147. * @param customerId
  148. * @return
  149. */
  150. List<InvLotLocId> queryInvOrderBy(@Param("lotnum") String lotnum, @Param("sku") String sku, @Param("location") String location, @Param("customerId") String customerId);
  151. /**
  152. * 根据托盘查询库存
  153. *
  154. * @param invLotAtt
  155. * @param boxNo
  156. * @return
  157. */
  158. List<InvLotLocId> queryInvByInvLotatt(@Param("lotattDTO") InvLotAtt invLotAtt, @Param("boxNo") String boxNo);
  159. /**
  160. * 查询
  161. *
  162. * @return
  163. */
  164. List<InvLotLocId> queryInvByFull(@Param("orderNo") String orderNo, @Param("sku") String sku);
  165. /**
  166. * 解绑库存
  167. * @param locationId
  168. * @param sku
  169. * @param customerId
  170. * @return
  171. */
  172. AjaxResult unlockInv(@Param("locationId") Long locationId, @Param("sku") String sku, @Param("customerId") String customerId);
  173. /**
  174. * 获取质检列表
  175. *
  176. * @return
  177. */
  178. List<InvLotLocIdLotattVO> getQualityInspectionList();
  179. /**
  180. * 获取质检库位列表根据批号
  181. *
  182. * @param lotNumber 批号
  183. * @return
  184. */
  185. List<InvLotLocIdLotattVO> getQualityLocationListByLotNumber(String lotNumber);
  186. /**
  187. * 修改质量状态根据批号
  188. *
  189. * @param lotNumber
  190. * @return
  191. */
  192. int updateQualityStatusByLotNumber(String lotNumber, String qualityStatus);
  193. /**
  194. * 根据托盘号和物料分类查询是否有相同的库存
  195. * @param skuType
  196. * @param palletNo
  197. * @return
  198. */
  199. List<InvLotLocId> querySameTypeByPalletNo(@Param("skuType") String skuType, @Param("palletNo") String palletNo);
  200. }