Commit e67d58eed366924bfa2916c4f7ffda145aa1477f

Authored by liquanyu
1 parent b914bb6c6f

update

Showing 1 changed file with 9 additions and 3 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/LisServiceImpl.java View file @ e67d58e
... ... @@ -146,11 +146,17 @@
146 146 public void run() {
147 147 for(LisReportModel model : lisList)
148 148 {
149   - List<LisReportModel> dbLis = masterLisMapper.queryLisDataByLisIdAndHid(model);
150   - if (CollectionUtils.isEmpty(dbLis))
  149 + try {
  150 + List<LisReportModel> dbLis = masterLisMapper.queryLisDataByLisIdAndHid(model);
  151 + if (CollectionUtils.isEmpty(dbLis))
  152 + {
  153 + masterLisMapper.saveLisData(model);
  154 + }
  155 + } catch (Exception e)
151 156 {
152   - masterLisMapper.saveLisData(model);
  157 + continue;
153 158 }
  159 +
154 160 }
155 161 countDownLatch.countDown();
156 162 }