Jelajahi Sumber

项目审核人提交不全时,要求必须全部传递

seyason 4 bulan lalu
induk
melakukan
ce55c98db9

+ 4 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportController.java

@@ -482,8 +482,10 @@ public class ReportController {
                 projectAuditorId[i] = null;
             }
         } else if (projectAuditorId.length < projectId.length) {
-            //自动扩充数组大小
-            projectAuditorId = Arrays.copyOf(projectAuditorId, projectId.length);
+            //数组大小不对,后端无法确定项目和审核人的对应关系,必须前端全部传递过来
+            HttpRespMsg msg = new HttpRespMsg();
+            msg.setError("请检查每个项目的审核人是否设置");
+            return msg;
         }
 
         if (overtimeHours == null) {