|
|
|
@ -119,7 +119,7 @@ public class FunctionXTestServiceImpl extends ServiceImpl<FunctionxTestMapper, F |
|
|
|
|
if (row == null ) { |
|
|
|
|
continue; |
|
|
|
|
} else { |
|
|
|
|
short lastCellNum = row.getLastCellNum(); |
|
|
|
|
int lastCellNum = row.getLastCellNum(); |
|
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
|
for (int j = 0; j < lastCellNum; j++) { |
|
|
|
|
Cell cell = row.getCell(j); // 单元格
|
|
|
|
@ -402,7 +402,7 @@ public class FunctionXTestServiceImpl extends ServiceImpl<FunctionxTestMapper, F |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(managerUsers)) { // 责任人
|
|
|
|
|
String[] splitManager = managerUsers.split("\\s+|,|;|、"); |
|
|
|
|
String[] splitManager = managerUsers.split("\\s+|,|;|、|,"); |
|
|
|
|
|
|
|
|
|
int count = 1; |
|
|
|
|
String idManager = ""; |
|
|
|
@ -697,7 +697,12 @@ public class FunctionXTestServiceImpl extends ServiceImpl<FunctionxTestMapper, F |
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
for (int i = 0; i < listInsert.size(); i++) { |
|
|
|
|
try { |
|
|
|
|
if (listInsert.size()<10) |
|
|
|
|
Thread.sleep(1000L); |
|
|
|
|
else if (listInsert.size()<50) |
|
|
|
|
Thread.sleep(500L); |
|
|
|
|
else if (listInsert.size()>=50) |
|
|
|
|
Thread.sleep(200L); |
|
|
|
|
message.put("uploaded", String.valueOf(i + 1)); |
|
|
|
|
boolean isSuccessInsert = functionxService.save(listInsert.get(i)); |
|
|
|
|
if (!isSuccessInsert) { |
|
|
|
|