浏览代码

bug单修改

zhouyy 4 月之前
父节点
当前提交
4727696f43

+ 5 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/service/impl/ContactsServiceImpl.java

@@ -545,6 +545,11 @@ public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, Contacts> i
             }
             }
             List<User> targetUserList= (List<User>) respMsg.data;
             List<User> targetUserList= (List<User>) respMsg.data;
 
 
+            int lastTrueIndex = requiredList.lastIndexOf(Boolean.TRUE);
+            if(rowNum < lastTrueIndex+1){
+                msg.setError("存在未填必填项");
+                return msg;
+            }
             for (int rowIndex = 1; rowIndex <= rowNum; rowIndex++) {
             for (int rowIndex = 1; rowIndex <= rowNum; rowIndex++) {
                 XSSFRow row = sheet.getRow(rowIndex);
                 XSSFRow row = sheet.getRow(rowIndex);
                 if (row == null) {
                 if (row == null) {