浏览代码

no message

FengChaoYu 3 周之前
父节点
当前提交
a89f744198

+ 0 - 6
mall-server-api/pom.xml

@@ -362,12 +362,6 @@
             <version>0.0.3</version>
         </dependency>
 
-        <!--企业微信api-->
-        <dependency>
-            <groupId>com.github.binarywang</groupId>
-            <artifactId>weixin-java-cp</artifactId>
-            <version>4.5.0</version>
-        </dependency>
         <!-- 微信支付 -->
         <dependency>
             <groupId>com.github.binarywang</groupId>

+ 23 - 21
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/stock/WebitPurchaseStockLogic.java

@@ -104,27 +104,29 @@ public class WebitPurchaseStockLogic {
         List<WebsitStockDTO> shopStockDTOS = new ArrayList<>();
         for (WebsitPurchaseAdjustmentItem adjustmentItem : changeAdjustList) {
             // 入库注值
-            WebsitStockDTO subStockDTO = new WebsitStockDTO();
-            subStockDTO.setCompanyWechatId(purchaseAdjustment.getCompanyWechatId());
-            subStockDTO.setCompanyWechatName(purchaseAdjustment.getCompanyWechatName());
-            subStockDTO.setWebsitId(purchaseAdjustment.getWebsitId());
-            subStockDTO.setWebsitName(purchaseAdjustment.getWebsitName());
-            subStockDTO.setSdate(purchaseAdjustment.getCreateTime());
-            subStockDTO.setPartsAttr(PartsAttrEnum.NEW.toString());
-            subStockDTO.setGoodsId(adjustmentItem.getGoodsId());
-            subStockDTO.setGoodsName(adjustmentItem.getGoodsName());
-            subStockDTO.setGoodsType(WebsitGoodsTypeEnum.M.getKey());
-            subStockDTO.setPrice(adjustmentItem.getCost());
-            subStockDTO.setRef(adjustmentItem.getPurchaseAdjustmentId());
-            subStockDTO.setRefType(refType);
-            subStockDTO.setChangeQty(adjustmentItem.getInStockQty());
-            subStockDTO.setDirectFlag(DirectFlagEnum.SUB.getKey());
-            subStockDTO.setRemark(purchaseAdjustment.getRemark());
-            subStockDTO.setOperateBy(purchaseAdjustment.getConfirmBy());
-            subStockDTO.setOperateTime(purchaseAdjustment.getConfirmTime());
-            subStockDTO.setObj("供应商");
-            subStockDTO.setStorageId(purchaseAdjustment.getStorageId());
-            shopStockDTOS.add(subStockDTO);
+            if (adjustmentItem.getInStockQty().compareTo(BigDecimal.ZERO) > 0) {
+                WebsitStockDTO subStockDTO = new WebsitStockDTO();
+                subStockDTO.setCompanyWechatId(purchaseAdjustment.getCompanyWechatId());
+                subStockDTO.setCompanyWechatName(purchaseAdjustment.getCompanyWechatName());
+                subStockDTO.setWebsitId(purchaseAdjustment.getWebsitId());
+                subStockDTO.setWebsitName(purchaseAdjustment.getWebsitName());
+                subStockDTO.setSdate(purchaseAdjustment.getCreateTime());
+                subStockDTO.setPartsAttr(PartsAttrEnum.NEW.toString());
+                subStockDTO.setGoodsId(adjustmentItem.getGoodsId());
+                subStockDTO.setGoodsName(adjustmentItem.getGoodsName());
+                subStockDTO.setGoodsType(WebsitGoodsTypeEnum.M.getKey());
+                subStockDTO.setPrice(adjustmentItem.getCost());
+                subStockDTO.setRef(adjustmentItem.getPurchaseAdjustmentId());
+                subStockDTO.setRefType(refType);
+                subStockDTO.setChangeQty(adjustmentItem.getInStockQty());
+                subStockDTO.setDirectFlag(DirectFlagEnum.SUB.getKey());
+                subStockDTO.setRemark(purchaseAdjustment.getRemark());
+                subStockDTO.setOperateBy(purchaseAdjustment.getConfirmBy());
+                subStockDTO.setOperateTime(purchaseAdjustment.getConfirmTime());
+                subStockDTO.setObj("供应商");
+                subStockDTO.setStorageId(purchaseAdjustment.getStorageId());
+                shopStockDTOS.add(subStockDTO);
+            }
 
             WebsitStockDTO addStockDTO = new WebsitStockDTO();
             addStockDTO.setCompanyWechatId(purchaseAdjustment.getCompanyWechatId());