MaterialMapperEx.java 7.4 KB

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