mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
修改提示
This commit is contained in:
@@ -72,12 +72,12 @@ public class ExamTaskApi extends ApiBaseController {
|
||||
//return badRequest("此受众已推送过了,不能重复推送");
|
||||
num=service.rePushTask(task);
|
||||
if(num==0) {
|
||||
return error("推送完成,已推送,不需要重复推送","请检查日志");
|
||||
return error("推送完成,已推送过,不需要重复推送","未推送任何人员");
|
||||
}
|
||||
}else {
|
||||
num=service.addTask(task);
|
||||
if(num==0) {
|
||||
return error("推送失败,未找到受众人员","请检查日志");
|
||||
return error("推送完成,已推送过的不再推送","未推送任何人员");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -114,6 +114,8 @@ public class ExamUserTaskServiceImpl implements IExamUserTaskService{
|
||||
aloneExamDao.save(aloneExam);
|
||||
num++;
|
||||
}
|
||||
}else {
|
||||
throw new RuntimeException("无受众人员");
|
||||
}
|
||||
|
||||
//examUserTask.setStatus(ExamUserTask.STATUS_FINISH);
|
||||
@@ -177,6 +179,8 @@ public class ExamUserTaskServiceImpl implements IExamUserTaskService{
|
||||
aloneExamDao.save(aloneExam);
|
||||
num++;
|
||||
}
|
||||
}else {
|
||||
throw new RuntimeException("无受众人员");
|
||||
}
|
||||
|
||||
// examUserTask.setStatus(ExamUserTask.STATUS_FINISH);
|
||||
|
||||
Reference in New Issue
Block a user