feat: 业务功能前端国际化
This commit is contained in:
@@ -63,7 +63,7 @@ public class CallEmpReelTask extends AbstractTask {
|
||||
SchBaseTask schBaseTask = taskService.getOne(new LambdaUpdateWrapper<SchBaseTask>()
|
||||
.eq(SchBaseTask::getTask_code, task_code), false);
|
||||
if (schBaseTask == null) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_update1"));
|
||||
throw new BadRequestException("CallEmpReelTask任务更新接口任务号为空");
|
||||
}
|
||||
// 执行中
|
||||
if (TaskStatus.EXECUTING.getCode().equals(status.getCode())) {
|
||||
@@ -78,7 +78,7 @@ public class CallEmpReelTask extends AbstractTask {
|
||||
// 取消
|
||||
if (status.getCode().equals(IOSEnum.IS_NOTANDYES.code("否"))) {
|
||||
if (Integer.parseInt(schBaseTask.getTask_status()) > Integer.parseInt(TaskStatus.ISSUE.getCode())) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_update2"));
|
||||
throw new BadRequestException("CallEmpReelTask任务已执行不能取消");
|
||||
}
|
||||
// 更新任务表删除字段
|
||||
schBaseTask.setIs_delete(true);
|
||||
@@ -90,22 +90,22 @@ public class CallEmpReelTask extends AbstractTask {
|
||||
|
||||
@Override
|
||||
public void createCompletion(SchBaseTask task) {
|
||||
Assert.notNull(task, LangProcess.msg("CallEmpReelTask_createTaskTip1"));
|
||||
Assert.notNull(task, "请求参数不能为空");
|
||||
String taskType = task.getTask_type();
|
||||
if (StrUtil.isBlank(taskType)) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_createTaskTip2"));
|
||||
throw new BadRequestException("业务类型不能为空");
|
||||
}
|
||||
String vehicleCode = task.getVehicle_code();
|
||||
if (StrUtil.isBlank(vehicleCode)) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_createTaskTip3"));
|
||||
throw new BadRequestException("载具号不能为空");
|
||||
}
|
||||
String pointCode1 = task.getPoint_code1();
|
||||
if (StrUtil.isBlank(pointCode1)) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_createTaskTip4"));
|
||||
throw new BadRequestException("起点不能为空");
|
||||
}
|
||||
String pointCode2 = task.getPoint_code2();
|
||||
if (StrUtil.isBlank(pointCode2)) {
|
||||
throw new BadRequestException(LangProcess.msg("CallEmpReelTask_createTaskTip5"));
|
||||
throw new BadRequestException("下一点不能为空");
|
||||
}
|
||||
//是否立即下发
|
||||
boolean isSend = !StrUtil.isNotBlank(task.getIs_send()) || BooleanUtil.toBoolean(task.getIs_send());
|
||||
|
||||
Reference in New Issue
Block a user