MaterialMapperEx.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. package com.jsh.erp.datasource.mappers;
  2. import com.jsh.erp.datasource.entities.*;
  3. import com.jsh.erp.datasource.pda.dto.PDAInventoryDTO;
  4. import com.jsh.erp.datasource.pda.vo.PDADepotItemVO;
  5. import com.jsh.erp.datasource.vo.MaterialCurrentStock4SystemSku;
  6. import com.jsh.erp.datasource.vo.MaterialVoSearch;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.Date;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * Description
  13. *
  14. * @Author: cjl
  15. * @Date: 2019/1/22 14:54
  16. */
  17. public interface MaterialMapperEx {
  18. List<MaterialVo4Unit> selectByConditionMaterial(
  19. @Param("materialParam") String materialParam,
  20. @Param("standard") String standard,
  21. @Param("model") String model,
  22. @Param("color") String color,
  23. @Param("brand") String brand,
  24. @Param("mfrs") String mfrs,
  25. @Param("materialOther") String materialOther,
  26. @Param("weight") String weight,
  27. @Param("expiryNum") String expiryNum,
  28. @Param("enableSerialNumber") String enableSerialNumber,
  29. @Param("enableBatchNumber") String enableBatchNumber,
  30. @Param("position") String position,
  31. @Param("enabled") String enabled,
  32. @Param("remark") String remark,
  33. @Param("idList") List<Long> idList,
  34. @Param("mpList") String mpList);
  35. Long insertSelectiveEx(Material record);
  36. List<Unit> findUnitList(@Param("mId") Long mId);
  37. List<MaterialVo4Unit> findById(@Param("id") Long id);
  38. List<MaterialVo4Unit> findByIdWithBarCode(@Param("meId") Long meId);
  39. List<MaterialVoSearch> getMaterialByParam(@Param("materialParam") String materialParam);
  40. List<MaterialVo4Unit> findBySelectWithBarCode(@Param("idList") List<Long> idList,
  41. @Param("q") String q,
  42. @Param("standardOrModel") String standardOrModel,
  43. @Param("color") String color,
  44. @Param("brand") String brand,
  45. @Param("mfrs") String mfrs,
  46. @Param("enableSerialNumber") String enableSerialNumber,
  47. @Param("enableBatchNumber") String enableBatchNumber,
  48. @Param("offset") Integer offset,
  49. @Param("rows") Integer rows,
  50. @Param("depotId") Long depotId);
  51. int findBySelectWithBarCodeCount(@Param("idList") List<Long> idList,
  52. @Param("q") String q,
  53. @Param("standardOrModel") String standardOrModel,
  54. @Param("color") String color,
  55. @Param("brand") String brand,
  56. @Param("mfrs") String mfrs,
  57. @Param("enableSerialNumber") String enableSerialNumber,
  58. @Param("enableBatchNumber") String enableBatchNumber,
  59. @Param("depotId") Long depotId);
  60. List<MaterialVo4Unit> exportExcel(
  61. @Param("materialParam") String materialParam,
  62. @Param("color") String color,
  63. @Param("materialOther") String materialOther,
  64. @Param("weight") String weight,
  65. @Param("expiryNum") String expiryNum,
  66. @Param("enabled") String enabled,
  67. @Param("enableSerialNumber") String enableSerialNumber,
  68. @Param("enableBatchNumber") String enableBatchNumber,
  69. @Param("remark") String remark,
  70. @Param("idList") List<Long> idList);
  71. List<MaterialExtend> getOtherMaterialList();
  72. /**
  73. * 通过商品名称查询商品信息
  74. * */
  75. List<Material> findByMaterialName(@Param("name") String name);
  76. /**
  77. * 获取开启序列号并且状态正常的商品列表
  78. * */
  79. List<MaterialVo4Unit> getMaterialEnableSerialNumberList(@Param("q") String q,
  80. @Param("offset") Integer offset,
  81. @Param("rows") Integer rows);
  82. Long getMaterialEnableSerialNumberCount(@Param("q") String q);
  83. int batchDeleteMaterialByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]);
  84. List<Material> getMaterialListByCategoryIds(@Param("categoryIds") String[] categoryIds);
  85. List<Material> getMaterialListByUnitIds(@Param("unitIds") String[] unitIds);
  86. List<String> getBarCodeList();
  87. List<MaterialVo4Unit> getMaterialByMeId(
  88. @Param("meId") Long meId);
  89. List<String> getMaterialNameList();
  90. int setUnitIdToNull(@Param("id") Long id);
  91. int setExpiryNumToNull(@Param("id") Long id);
  92. List<MaterialVo4Unit> getMaterialByBarCode(@Param("barCodeArray") String [] barCodeArray);
  93. List<MaterialVo4Unit> getMaterialByBarCodeAndWithOutMId(
  94. @Param("barCodeArray") String [] barCodeArray,
  95. @Param("mId") Long mId);
  96. List<MaterialInitialStockWithMaterial> getInitialStockWithMaterial(
  97. @Param("depotList") List<Long> depotList);
  98. List<MaterialVo4Unit> getListWithStock(
  99. @Param("depotList") List<Long> depotList,
  100. @Param("idList") List<Long> idList,
  101. @Param("position") String position,
  102. @Param("materialParam") String materialParam,
  103. @Param("zeroStock") Integer zeroStock,
  104. @Param("column") String column,
  105. @Param("order") String order,
  106. @Param("offset") Integer offset,
  107. @Param("rows") Integer rows);
  108. int getListWithStockCount(
  109. @Param("depotList") List<Long> depotList,
  110. @Param("idList") List<Long> idList,
  111. @Param("position") String position,
  112. @Param("materialParam") String materialParam,
  113. @Param("zeroStock") Integer zeroStock);
  114. MaterialVo4Unit getTotalStockAndPrice(
  115. @Param("depotList") List<Long> depotList,
  116. @Param("idList") List<Long> idList,
  117. @Param("position") String position,
  118. @Param("materialParam") String materialParam);
  119. int checkIsExist(
  120. @Param("id") Long id,
  121. @Param("name") String name,
  122. @Param("model") String model,
  123. @Param("color") String color,
  124. @Param("standard") String standard,
  125. @Param("mfrs") String mfrs,
  126. @Param("otherField1") String otherField1,
  127. @Param("otherField2") String otherField2,
  128. @Param("otherField3") String otherField3,
  129. @Param("unit") String unit,
  130. @Param("unitId") Long unitId);
  131. MaterialExtend getMaterialExtendBySerialNumber(
  132. @Param("serialNumber") String serialNumber);
  133. List<MaterialVo4Unit> getMaterialByBatchNumber(@Param("batchNumberArray") String [] batchNumberArray);
  134. List<MaterialVo4Unit> getMaterialBySystemSku(@Param("systemSkuArray") String [] systemSkuArray);
  135. List<MaterialCurrentStock4SystemSku> getMaterialCurrentPriceByIdList(@Param("idList") List<Long> idList);
  136. List<PDADepotItemVO> inventoryInquiry(PDAInventoryDTO pdaInventoryDTO);
  137. }