Kaynağa Gözat

优化调拨入库

Your Name 2 yıl önce
ebeveyn
işleme
a2ffd807b9

+ 1 - 1
service-store/src/main/java/com/java110/store/cmd/resourceStore/AllocationStoreEnterCmd.java

@@ -69,7 +69,7 @@ public class AllocationStoreEnterCmd extends Cmd {
                 = allocationStorehouseApplyInnerServiceSMOImpl.queryAllocationStorehouseApplys(allocationStorehouseApplyDto);
                 = allocationStorehouseApplyInnerServiceSMOImpl.queryAllocationStorehouseApplys(allocationStorehouseApplyDto);
         Assert.listOnlyOne(allocationStorehouseDtos, "调拨申请单存在多条");
         Assert.listOnlyOne(allocationStorehouseDtos, "调拨申请单存在多条");
 
 
-        if (reqJson.containsKey("resourceStores")) {
+        if (!reqJson.containsKey("resourceStores")) {
             throw new CmdException("未包含物品");
             throw new CmdException("未包含物品");
         }
         }
         JSONArray resourceStores = reqJson.getJSONArray("resourceStores");
         JSONArray resourceStores = reqJson.getJSONArray("resourceStores");