zhangyuewww 3 年之前
父節點
當前提交
696aa458ce

+ 7 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/WarehouseBaseInfoServiceImpl.java

@@ -1008,6 +1008,13 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
                 }
                 contractManagementInfo.setContractNo(inOutWarehouseTask.getMoveTaskNo());
                 contractManagementInfo.setContractPrice(inOutWarehouseTask.getUnitPrice());
+                //自运采购的移库
+                ContractManagementInfo contractManagementInfo1=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
+                        .eq("comp_id",inOutWarehouseTask.getCompId())
+                        .eq("contract_no",inOutWarehouseTask.getSendWarehouse()));
+                if (contractManagementInfo1!=null){
+                    contractManagementInfo.setUnitContractPrice(contractManagementInfo1.getUnitContractPrice());
+                }
                 contractManagementInfo.setGrade(inOutWarehouseTask.getGrade());
                 contractManagementInfo.setInOutType("移库入库");
                 temp.add(contractManagementInfo);