@@ -39,7 +39,7 @@ public enum ErrorTypeEnum {
SYS_MORNING_IS_NULL(-1, "该晨会不存在"),
SYS_SCHOOL_IS_NULL(-1, "该学堂不存在"),
SYS_TYPE_ERROR(-1, "类型异常"),
- PARAM_ERROR(0, "类型异常"),
+ PARAM_ERROR(0, "参数错误"),
;
@@ -123,7 +123,7 @@ public class KxsGdReportServiceImpl extends ServiceImpl<KxsGdReportMapper, KxsGd
if (Objects.equals(kxsGdReport.getStatus(), GdReportEnum.REPORT.getType())) {
throw new GlobalCustomerException("该工单已报备,无法作废");
}
- if(Objects.equals(kxsGdReport.getUserId(), userId.intValue())){
+ if(!Objects.equals(kxsGdReport.getUserId(), userId.intValue())){
throw new GlobalCustomerException(ErrorTypeEnum.PARAM_ERROR.getDescription());