|
@@ -146,7 +146,7 @@ public class FreightReceivingDispatchingServiceImpl extends ServiceImpl<FreightR
|
|
.eq("delete_flag","0"));
|
|
.eq("delete_flag","0"));
|
|
if(!CollectionUtils.isEmpty(freightReceivingDispatchingList)){
|
|
if(!CollectionUtils.isEmpty(freightReceivingDispatchingList)){
|
|
for (FreightReceivingDispatching freightReceivingDispatching:freightReceivingDispatchingList){
|
|
for (FreightReceivingDispatching freightReceivingDispatching:freightReceivingDispatchingList){
|
|
- freightReceivingDispatching.setSignedFor(String.valueOf(Float.valueOf(freightReceivingDispatching.getSignedFor()) + 1));
|
|
|
|
|
|
+ freightReceivingDispatching.setSignedFor(String.valueOf(Integer.valueOf(freightReceivingDispatching.getSignedFor()) + 1));
|
|
this.updateById(freightReceivingDispatching);
|
|
this.updateById(freightReceivingDispatching);
|
|
}
|
|
}
|
|
freightReceivingDispatchingCar.setGoodsIngPayable(freightReceivingDispatchingCar.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
freightReceivingDispatchingCar.setGoodsIngPayable(freightReceivingDispatchingCar.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
@@ -228,26 +228,27 @@ public class FreightReceivingDispatchingServiceImpl extends ServiceImpl<FreightR
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public String confirmFreightReceivingDispatchingCar(FreightReceivingDispatchingCar freightReceivingDispatchingCar) {
|
|
public String confirmFreightReceivingDispatchingCar(FreightReceivingDispatchingCar freightReceivingDispatchingCar) {
|
|
- freightReceivingDispatchingCar.setId(IdGenerator.generateUUID());
|
|
|
|
- freightReceivingDispatchingCar.setStatusFlag("3");
|
|
|
|
- freightReceivingDispatchingCar.setStatus("待结算");
|
|
|
|
- freightReceivingDispatchingCarService.insert(freightReceivingDispatchingCar);
|
|
|
|
|
|
+ FreightReceivingDispatchingCar freightReceivingDispatchingCar1=freightReceivingDispatchingCarService.selectById(freightReceivingDispatchingCar.getId());
|
|
|
|
+ freightReceivingDispatchingCar1.setStatusFlag("3");
|
|
|
|
+ freightReceivingDispatchingCar1.setStatus("待结算");
|
|
|
|
+
|
|
List<FreightReceivingDispatching> freightReceivingDispatchingList=this.selectList(new EntityWrapper<FreightReceivingDispatching>()
|
|
List<FreightReceivingDispatching> freightReceivingDispatchingList=this.selectList(new EntityWrapper<FreightReceivingDispatching>()
|
|
.eq("batch",freightReceivingDispatchingCar.getBatch())
|
|
.eq("batch",freightReceivingDispatchingCar.getBatch())
|
|
.eq("delete_flag","0"));
|
|
.eq("delete_flag","0"));
|
|
if(!CollectionUtils.isEmpty(freightReceivingDispatchingList)){
|
|
if(!CollectionUtils.isEmpty(freightReceivingDispatchingList)){
|
|
for (FreightReceivingDispatching freightReceivingDispatching:freightReceivingDispatchingList){
|
|
for (FreightReceivingDispatching freightReceivingDispatching:freightReceivingDispatchingList){
|
|
freightReceivingDispatching.setToSettled(String.valueOf(Integer.valueOf(freightReceivingDispatching.getToSettled()) + 1));
|
|
freightReceivingDispatching.setToSettled(String.valueOf(Integer.valueOf(freightReceivingDispatching.getToSettled()) + 1));
|
|
|
|
+ freightReceivingDispatching.setSignedFor(String.valueOf(Integer.valueOf(freightReceivingDispatching.getSignedFor()) - 1));
|
|
this.updateById(freightReceivingDispatching);
|
|
this.updateById(freightReceivingDispatching);
|
|
}
|
|
}
|
|
//发货净重小
|
|
//发货净重小
|
|
- if (freightReceivingDispatchingCar.getReciveNetWeight()< freightReceivingDispatchingCar.getDispatchNetWeight()){
|
|
|
|
- freightReceivingDispatchingCar.setGoodsIngPayable(freightReceivingDispatchingCar.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
|
|
- freightReceivingDispatchingCar.setFreightIngPayable(freightReceivingDispatchingCar.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getFreightUnitPrice()-freightReceivingDispatchingCar.getFreightDeductionAmount());
|
|
|
|
|
|
+ if (freightReceivingDispatchingCar1.getReciveNetWeight()< freightReceivingDispatchingCar.getDispatchNetWeight()){
|
|
|
|
+ freightReceivingDispatchingCar1.setGoodsIngPayable(freightReceivingDispatchingCar1.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
|
|
+ freightReceivingDispatchingCar1.setFreightIngPayable(freightReceivingDispatchingCar1.getReciveNetWeight()*freightReceivingDispatchingList.get(0).getFreightUnitPrice()-freightReceivingDispatchingCar.getFreightDeductionAmount());
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
- freightReceivingDispatchingCar.setGoodsIngPayable(freightReceivingDispatchingCar.getDispatchNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
|
|
- freightReceivingDispatchingCar.setFreightIngPayable(freightReceivingDispatchingCar.getDispatchNetWeight()*freightReceivingDispatchingList.get(0).getFreightUnitPrice()-freightReceivingDispatchingCar.getFreightDeductionAmount());
|
|
|
|
|
|
+ freightReceivingDispatchingCar1.setGoodsIngPayable(freightReceivingDispatchingCar.getDispatchNetWeight()*freightReceivingDispatchingList.get(0).getGoodsPrice());
|
|
|
|
+ freightReceivingDispatchingCar1.setFreightIngPayable(freightReceivingDispatchingCar.getDispatchNetWeight()*freightReceivingDispatchingList.get(0).getFreightUnitPrice()-freightReceivingDispatchingCar.getFreightDeductionAmount());
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -258,8 +259,8 @@ public class FreightReceivingDispatchingServiceImpl extends ServiceImpl<FreightR
|
|
// freightReceivingDispatching.setStatus("收货");
|
|
// freightReceivingDispatching.setStatus("收货");
|
|
// this.updateById(freightReceivingDispatching);
|
|
// this.updateById(freightReceivingDispatching);
|
|
// }
|
|
// }
|
|
-
|
|
|
|
- return freightReceivingDispatchingCar.getId();
|
|
|
|
|
|
+ freightReceivingDispatchingCarService.updateById(freightReceivingDispatchingCar1);
|
|
|
|
+ return freightReceivingDispatchingCar1.getId();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|