java110 il y a 2 ans
Parent
commit
7550195933

+ 3 - 3
service-store/src/main/java/com/java110/store/bmo/allocation/impl/AllocationBMOImpl.java

@@ -106,7 +106,7 @@ public class AllocationBMOImpl implements IAllocationBMO {
             tmpResourceStorePo.setResId(GenerateCodeFactory.getGeneratorId("11"));
             tmpResourceStorePo.setResId(GenerateCodeFactory.getGeneratorId("11"));
             tmpResourceStorePo.setStock(allocationStock + "");
             tmpResourceStorePo.setStock(allocationStock + "");
             tmpResourceStorePo.setShId(tmpAllocationStorehouseDto.getShIdz());
             tmpResourceStorePo.setShId(tmpAllocationStorehouseDto.getShIdz());
-            tmpResourceStorePo.setCommunityId(resourceStoreDtoAs.get(0).getCommunityId());
+            tmpResourceStorePo.setCommunityId(resourceStoreDtoZs.get(0).getCommunityId());
             resourceStoreV1InnerServiceSMOImpl.saveResourceStore(tmpResourceStorePo);
             resourceStoreV1InnerServiceSMOImpl.saveResourceStore(tmpResourceStorePo);
 
 
             // todo 添加 times
             // todo 添加 times
@@ -114,7 +114,7 @@ public class AllocationBMOImpl implements IAllocationBMO {
             tmpResourceStoreTimesPo.setTimesId(GenerateCodeFactory.getGeneratorId("11"));
             tmpResourceStoreTimesPo.setTimesId(GenerateCodeFactory.getGeneratorId("11"));
             tmpResourceStoreTimesPo.setStock(allocationStock + "");
             tmpResourceStoreTimesPo.setStock(allocationStock + "");
             tmpResourceStoreTimesPo.setShId(tmpAllocationStorehouseDto.getShIdz());
             tmpResourceStoreTimesPo.setShId(tmpAllocationStorehouseDto.getShIdz());
-            tmpResourceStoreTimesPo.setCommunityId(resourceStoreDtoAs.get(0).getCommunityId());
+            tmpResourceStoreTimesPo.setCommunityId(resourceStoreDtoZs.get(0).getCommunityId());
 
 
             resourceStoreTimesV1InnerServiceSMOImpl.saveResourceStoreTimes(tmpResourceStoreTimesPo);
             resourceStoreTimesV1InnerServiceSMOImpl.saveResourceStoreTimes(tmpResourceStoreTimesPo);
             return;
             return;
@@ -133,7 +133,7 @@ public class AllocationBMOImpl implements IAllocationBMO {
         resourceStoreTimesPo.setResCode(resourceStoreTimesDtoAs.get(0).getResCode());
         resourceStoreTimesPo.setResCode(resourceStoreTimesDtoAs.get(0).getResCode());
         resourceStoreTimesPo.setStoreId(resourceStoreTimesDtoAs.get(0).getStoreId());
         resourceStoreTimesPo.setStoreId(resourceStoreTimesDtoAs.get(0).getStoreId());
         resourceStoreTimesPo.setStock(allocationStock + "");// 这里去增加
         resourceStoreTimesPo.setStock(allocationStock + "");// 这里去增加
-        resourceStoreTimesPo.setCommunityId(resourceStoreDtoAs.get(0).getCommunityId());
+        resourceStoreTimesPo.setCommunityId(resourceStoreDtoZs.get(0).getCommunityId());
         resourceStoreTimesPo.setApplyOrderId(tmpAllocationStorehouseDto.getApplyId());
         resourceStoreTimesPo.setApplyOrderId(tmpAllocationStorehouseDto.getApplyId());
         resourceStoreTimesV1InnerServiceSMOImpl.saveOrUpdateResourceStoreTimes(resourceStoreTimesPo);
         resourceStoreTimesV1InnerServiceSMOImpl.saveOrUpdateResourceStoreTimes(resourceStoreTimesPo);
         // todo -------------------------------------------------目标仓库中做增加 (end)-----------------------------------------------------//
         // todo -------------------------------------------------目标仓库中做增加 (end)-----------------------------------------------------//