Commit 699370a6 by 杨清松

更改项目校验返回格式

parent 86874a3b
......@@ -36,8 +36,8 @@ public class ProjectFiledController {
public Object verifyName(@RequestParam("name") String name) {
Boolean flag = projectFiledService.verifyName(name);
if (flag) {
throw new BusinessException(ProjectErrorCodeEnum.PROJECT_NAME_REPEATED);
//return ResponseObj.error("该项目已存在,请重新确认");
//throw new BusinessException(ProjectErrorCodeEnum.PROJECT_NAME_REPEATED);
return ResponseObj.error("该项目已存在,请重新确认");
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment