|
@@ -513,6 +513,12 @@ public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, Contacts> i
|
|
//获取到当前行的列数据
|
|
//获取到当前行的列数据
|
|
int cellNum = row.getLastCellNum();
|
|
int cellNum = row.getLastCellNum();
|
|
|
|
|
|
|
|
+ int lastTrueIndex = requiredList.lastIndexOf(Boolean.TRUE);
|
|
|
|
+ if(cellNum < lastTrueIndex+1){
|
|
|
|
+ msg.setError("存在未填必填项");
|
|
|
|
+ return msg;
|
|
|
|
+ }
|
|
|
|
+
|
|
for (int i = 0; i < cellNum; i++) {
|
|
for (int i = 0; i < cellNum; i++) {
|
|
String modelName = modelNameList.get(i);
|
|
String modelName = modelNameList.get(i);
|
|
XSSFCell cell = row.getCell(i);
|
|
XSSFCell cell = row.getCell(i);
|
|
@@ -545,11 +551,6 @@ 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) {
|