|
@@ -1273,6 +1273,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
new EntityWrapper<ContractManagementInfo>()
|
|
|
.eq("contract_no",warehouseInOutInfo.getContractNo())
|
|
|
.eq("delete_flag",0));
|
|
|
+ String compId = "";
|
|
|
if(contractManagementInfo == null){
|
|
|
InOutWarehouseTask inOutWarehouseTask = iInOutWarehouseTaskService.selectOne(
|
|
|
new EntityWrapper<InOutWarehouseTask>()
|
|
@@ -1283,10 +1284,19 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
new EntityWrapper<ContractManagementInfo>()
|
|
|
.eq("contract_no",inOutWarehouseTask.getWarehouseName())
|
|
|
.eq("delete_flag",0));
|
|
|
+ if (contractManagementInfo != null){
|
|
|
+ warehouseInOutInfo.setContractManagementInfo(contractManagementInfo);
|
|
|
+ }else {
|
|
|
+ compId = inOutWarehouseTask.getCompId();
|
|
|
+ warehouseInOutInfo.setReceiveWarehouse(inOutWarehouseTask.getReceiveWarehouse());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ compId=contractManagementInfo.getCompId();
|
|
|
+ warehouseInOutInfo.setContractManagementInfo(contractManagementInfo);
|
|
|
}
|
|
|
- warehouseInOutInfo.setContractManagementInfo(contractManagementInfo);
|
|
|
CommonCompany commonCompany = commonCompanyService.selectOne(new EntityWrapper<CommonCompany>()
|
|
|
- .eq("comp_id", contractManagementInfo.getCompId())
|
|
|
+ .eq("comp_id",compId)
|
|
|
.eq("delete_flag", "0"));
|
|
|
warehouseInOutInfo.setCompanyName(commonCompany.getCompName());
|
|
|
return warehouseInOutInfo;
|