|
|
@@ -917,8 +917,9 @@ public class KwtWaybillOrderService {
|
|
|
/**循环派车**/
|
|
|
if (params.getType() == Global.NUMERICAL_TWO) {
|
|
|
/**1数据校验**/
|
|
|
- KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.findCirculate(params.getLOrderId(),
|
|
|
- params.getTruckId(), params.getDriverId(), 0);
|
|
|
+ /*KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.findCirculate(params.getLOrderId(),
|
|
|
+ params.getTruckId(), params.getDriverId(), 0);*/
|
|
|
+ KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.selectById(params.getWOrderId());
|
|
|
if (circulate == null) {
|
|
|
return HttpResult.error("车辆循环运单不存在!");
|
|
|
}
|
|
|
@@ -935,13 +936,13 @@ public class KwtWaybillOrderService {
|
|
|
|
|
|
/**2获取基础信息**/
|
|
|
//装货地址
|
|
|
- KwtWaybillOrderAddress loadAddress = this.getAddress(params.getLOrderId(), Global.NUMERICAL_ONE);
|
|
|
+ KwtWaybillOrderAddress loadAddress = this.getAddress(circulate.getLOrderId(), Global.NUMERICAL_ONE);
|
|
|
//卸货地址
|
|
|
- KwtWaybillOrderAddress unloadAddress = this.getAddress(params.getLOrderId(), Global.NUMERICAL_TWO);
|
|
|
+ KwtWaybillOrderAddress unloadAddress = this.getAddress(circulate.getLOrderId(), Global.NUMERICAL_TWO);
|
|
|
//KwtWaybillOrder数据组装
|
|
|
KwtWaybillOrder waybillOrder = new KwtWaybillOrder();
|
|
|
waybillOrder.setEntId(LoginUserHolder.getEntId());
|
|
|
- waybillOrder.setLOrderId(params.getLOrderId());
|
|
|
+ waybillOrder.setLOrderId(circulate.getLOrderId());
|
|
|
waybillOrder.setWOrderNo("xxxxxx");
|
|
|
waybillOrder.setType(params.getType());
|
|
|
waybillOrder.setStartTime(circulate.getStartTime());
|
|
|
@@ -1055,8 +1056,9 @@ public class KwtWaybillOrderService {
|
|
|
/**循环派车**/
|
|
|
if (params.getType() == Global.NUMERICAL_TWO) {
|
|
|
/**1数据校验**/
|
|
|
- KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.findCirculate(params.getLOrderId(),
|
|
|
- params.getTruckId(), params.getDriverId(), 0);
|
|
|
+ /*KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.findCirculate(params.getLOrderId(),
|
|
|
+ params.getTruckId(), params.getDriverId(), 0);*/
|
|
|
+ KwtLogisticsOrderCirculate circulate = logisticsOrderCirculateDao.selectById(params.getWOrderId());
|
|
|
if (circulate == null) {
|
|
|
return HttpResult.error("车辆循环运单不存在!");
|
|
|
}
|