|
|
|
@ -40,10 +40,14 @@ public class FieldxServiceImpl extends ServiceImpl<FieldxMapper, Fieldx> impleme |
|
|
|
|
Thread.sleep(500L); |
|
|
|
|
message.put("uploaded", String.valueOf(i + 1)); |
|
|
|
|
this.save(fieldxList.get(i)); |
|
|
|
|
Tablex tablex = tablexService.getById(fieldxList.get(i).getTableId()); |
|
|
|
|
tablexService.updateVersion(fieldxList.get(i).getTableId(), tablex.getVerison() + 1); |
|
|
|
|
tablexService.updateSql(fieldxList.get(i).getTableId(), fieldxController.createSql(fieldxList.get(i).getTableId())); |
|
|
|
|
webSocketUtils.sendMessage(loginUser.getId(), message); |
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
log.error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|