|
@@ -603,7 +603,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
.eq(ExamDetail::getId, examDetailId);
|
|
|
examDetailService.update(updateWrapper);
|
|
|
if (e instanceof ApiException) {
|
|
|
- ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(), e.getMessage());
|
|
|
} else {
|
|
|
ResultUtil.error(e.getMessage());
|
|
|
}
|
|
@@ -953,7 +953,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
data[1] = data[1].substring(0, data[1].indexOf("'"));
|
|
|
throw ExceptionResultEnum.SQL_ERROR.exception("[" + FieldUniqueEnum.convertToTitle(columnStr) + "'" + data[1] + "']" + "数据不允许重复插入");
|
|
|
} else if (e instanceof ApiException) {
|
|
|
- ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(), e.getMessage());
|
|
|
} else {
|
|
|
ResultUtil.error(e.getMessage());
|
|
|
}
|
|
@@ -1056,7 +1056,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
} catch (Exception e) {
|
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
- ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(), e.getMessage());
|
|
|
} else {
|
|
|
ResultUtil.error(e.getMessage());
|
|
|
}
|
|
@@ -1264,7 +1264,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
} catch (Exception e) {
|
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
- ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(), e.getMessage());
|
|
|
} else {
|
|
|
ResultUtil.error(e.getMessage());
|
|
|
}
|
|
@@ -1371,7 +1371,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
} catch (Exception e) {
|
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
- ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(), e.getMessage());
|
|
|
} else {
|
|
|
ResultUtil.error(e.getMessage());
|
|
|
}
|