|
@@ -154,7 +154,7 @@ public class WorkOrderManageController {
|
|
|
@RequestBody AddWorkOrderVO orderVO) {
|
|
@RequestBody AddWorkOrderVO orderVO) {
|
|
|
log.info("运力调度派单,调用/tms/work_order_manage/add_order param:{} ", JSON.toJSONString(orderVO));
|
|
log.info("运力调度派单,调用/tms/work_order_manage/add_order param:{} ", JSON.toJSONString(orderVO));
|
|
|
if (orderVO == null || orderVO.getShipperId() == null || orderVO.getSpotId() == null ||
|
|
if (orderVO == null || orderVO.getShipperId() == null || orderVO.getSpotId() == null ||
|
|
|
- StringUtils.isBlank(orderVO.getTruckIds())) {
|
|
|
|
|
|
|
+ StringUtils.isBlank(orderVO.getTruckIds()) || orderVO.getPlanReachTime() == null) {
|
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
|
}
|
|
}
|
|
|
try {
|
|
try {
|
|
@@ -242,7 +242,7 @@ public class WorkOrderManageController {
|
|
|
@RequestHeader("userName") String userName,
|
|
@RequestHeader("userName") String userName,
|
|
|
@RequestBody AddWorkOrderVO orderVO) {
|
|
@RequestBody AddWorkOrderVO orderVO) {
|
|
|
log.info("运力调度派单,调用/tms/work_order_manage/add_unload_order param:{} ", JSON.toJSONString(orderVO));
|
|
log.info("运力调度派单,调用/tms/work_order_manage/add_unload_order param:{} ", JSON.toJSONString(orderVO));
|
|
|
- if (orderVO == null || orderVO.getTruckIds() == null) {
|
|
|
|
|
|
|
+ if (orderVO == null || orderVO.getTruckIds() == null || orderVO.getPlanReachTime() == null) {
|
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
|
}
|
|
}
|
|
|
try {
|
|
try {
|