|
|
@@ -9,6 +9,7 @@ import com.aoyang.tms.entity.User;
|
|
|
import com.aoyang.tms.entity.WorkSpot;
|
|
|
import com.aoyang.tms.service.CommonService;
|
|
|
import com.aoyang.tms.service.TruckDriverService;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -110,7 +111,7 @@ public class TruckEscortController {
|
|
|
@RequestHeader(value = "userName") String userName,
|
|
|
@RequestBody TruckEscort param) {
|
|
|
log.info("修改车辆押运员,调用/tms/truck_escort/update,参数:{}", JSON.toJSONString(param));
|
|
|
- if (param == null || param.getEscortId() == null) {
|
|
|
+ if (param == null || param.getEscortId() == null || StringUtils.isBlank(param.getEscortName()) || param.getTruckId() == null) {
|
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
|
}
|
|
|
String utf8Name = userName;
|