|
@@ -1524,8 +1524,9 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setCompId(warehouseBaseInfo.getCompId());
|
|
|
tranSettlementReport.setCarId(warehouseInOutInfo.getCarId());
|
|
|
tranSettlementReport.setId(IdGenerator.generateUUID());
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
if ("汽运".equals(warehouseInOutInfo.getOutType())) {
|
|
|
- tranSettlementReport.setGrainPrice(contractManagementInfo1.getUnitContractPrice());
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
tranSettlementReport.setTranType("汽运");
|
|
|
tranSettlementReport.setTranTypeKey("1");
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
@@ -1731,6 +1732,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
|
tranSettlementReport.setStartAddress(tranTaskInfo.getSendWarehouse());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
//运输单价不为空
|
|
|
if (tranCarInfo!=null&&tranCarInfo.getTranPrice()!=null){
|
|
@@ -1761,6 +1766,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tranSettlementReport.setTranTypeKey("2");
|
|
@@ -1776,6 +1785,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2168,7 +2181,6 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
if (contractManagementInfo1 == null) {
|
|
|
throw new YException(YExceptionEnum.CONTRACT_NO_NOT_EXSITS_ERROR);
|
|
|
}
|
|
|
- warehouseInOutInfo.setGrainPrice(contractManagementInfo1.getUnitContractPrice());
|
|
|
Wrapper wrapper = new EntityWrapper<TranCarInfo>()
|
|
|
.eq("contract_no", warehouseInOutInfo.getContractNo())
|
|
|
.eq("car_no", warehouseInOutInfo.getCarNo())
|
|
@@ -2274,7 +2286,6 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setId(IdGenerator.generateUUID());
|
|
|
tranSettlementReport.setTranCarNo(warehouseInOutInfo.getTranCarNo());
|
|
|
if ("汽运".equals(warehouseInOutInfo.getOutType())) {
|
|
|
- tranSettlementReport.setGrainPrice(warehouseInOutInfo.getGrainPrice());
|
|
|
tranSettlementReport.setTranType("汽运");
|
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
tranSettlementReport.setServiceCharge(20d);
|
|
@@ -2284,6 +2295,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
|
tranSettlementReport.setStartAddress(tranTaskInfo.getSendWarehouse());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
//运输单价不为空
|
|
|
if (tranCarInfo!=null&&tranCarInfo.getTranPrice()!=null){
|
|
@@ -2314,6 +2329,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tranSettlementReport.setTranTypeKey("2");
|
|
@@ -2329,6 +2348,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -3749,6 +3772,7 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setAmountNotPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
|
tranSettlementReport.setTransportPrice(tranProcessInfo.getTranPrice());
|
|
|
tranSettlementReport.setSettlementPrice(Double.valueOf(String.valueOf(tranProcessInfo.getTranPrice())));
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
}
|
|
|
tranSettlementReport.setUnloadingImg(warehouseInOutInfo.getAddressUrl());
|
|
|
tranSettlementReport.setUnloadingWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
@@ -3829,6 +3853,7 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setAmountNotPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
|
tranSettlementReport.setTransportPrice(tranProcessInfo.getTranPrice());
|
|
|
tranSettlementReport.setSettlementPrice(Double.valueOf(String.valueOf(tranProcessInfo.getTranPrice())));
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
}
|
|
|
tranSettlementReport.setUnloadingImg(warehouseInOutInfo.getAddressUrl());
|
|
|
tranSettlementReport.setUnloadingWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
@@ -4519,10 +4544,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setCompId(warehouseBaseInfo.getCompId());
|
|
|
tranSettlementReport.setCarId(warehouseInOutInfo.getCarId());
|
|
|
tranSettlementReport.setId(IdGenerator.generateUUID());
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
if ("汽运".equals(warehouseInOutInfo.getOutType())) {
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
|
tranSettlementReport.setStartAddress(tranTaskInfo.getSendWarehouse());
|
|
|
- tranSettlementReport.setGrainPrice(contractManagementInfo1.getUnitContractPrice());
|
|
|
tranSettlementReport.setTranType("汽运");
|
|
|
tranSettlementReport.setTranTypeKey("1");
|
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
@@ -4749,6 +4774,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
|
tranSettlementReport.setStartAddress(tranTaskInfo.getSendWarehouse());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
//运输单价不为空
|
|
|
if (tranCarInfo!=null&&tranCarInfo.getTranPrice()!=null){
|
|
@@ -4779,6 +4808,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tranSettlementReport.setTranTypeKey("2");
|
|
@@ -4794,6 +4827,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -5219,7 +5256,6 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
if (contractManagementInfo1 == null) {
|
|
|
throw new YException(YExceptionEnum.CONTRACT_NO_NOT_EXSITS_ERROR);
|
|
|
}
|
|
|
- warehouseInOutInfo.setGrainPrice(contractManagementInfo1.getUnitContractPrice());
|
|
|
Wrapper wrapper = new EntityWrapper<TranCarInfo>()
|
|
|
.eq("contract_no", warehouseInOutInfo.getContractNo())
|
|
|
.eq("car_no", warehouseInOutInfo.getCarNo())
|
|
@@ -5366,7 +5402,6 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
tranSettlementReport.setCarId(warehouseInOutInfo.getCarId());
|
|
|
tranSettlementReport.setId(IdGenerator.generateUUID());
|
|
|
if ("汽运".equals(warehouseInOutInfo.getOutType())) {
|
|
|
- tranSettlementReport.setGrainPrice(warehouseInOutInfo.getGrainPrice());
|
|
|
tranSettlementReport.setTranType("汽运");
|
|
|
tranSettlementReport.setTranTypeKey("1");
|
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
@@ -5376,6 +5411,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo.getTaskNo());
|
|
|
tranSettlementReport.setStartAddress(tranTaskInfo.getSendWarehouse());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
//运输单价不为空
|
|
|
if (tranCarInfo!=null&&tranCarInfo.getTranPrice()!=null){
|
|
@@ -5406,6 +5445,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tranSettlementReport.setTranTypeKey("2");
|
|
@@ -5421,6 +5464,10 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
|
TranTaskInfo tranTaskInfo1=tranTaskInfoService.selectById(tranCarInfo.getInfoId());
|
|
|
if (tranTaskInfo1!=null){
|
|
|
tranSettlementReport.setTaskNo(tranTaskInfo1.getTaskNo());
|
|
|
+ TranProcessInfo tranProcessInfo=tranProcessInfoService.selectById(tranCarInfo.getProcessId());
|
|
|
+ if (tranProcessInfo!=null){
|
|
|
+ tranSettlementReport.setGrainPrice(tranProcessInfo.getGoodsValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|