Jelajahi Sumber

优化返回提示

mac 2 tahun lalu
induk
melakukan
196c72f9cb

+ 1 - 1
kxs-common/kxs-common-core/src/main/java/com/kxs/common/core/constant/enums/ErrorTypeEnum.java

@@ -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, "参数错误"),
 
 	;
 

+ 1 - 1
kxs-product/kxs-product-biz/src/main/java/com/kxs/product/biz/service/impl/KxsGdReportServiceImpl.java

@@ -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());
         }