Compare commits

..

3 Commits

  1. 9
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/service/impl/FunctionXTestServiceImpl.java

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

Loading…
Cancel
Save