Commit 72bb2d7a authored by 高宇's avatar 高宇

1.修改月度拉取

parent b2ffa4f2
...@@ -221,9 +221,12 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository, ...@@ -221,9 +221,12 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
Jnsp7xtmDqsjPageHandleDto jnsp7xtmDqsjPageHandleDto = Jnsp7xtmDqsjPageHandleDto.builder().page(i).rows(pageQuerySize).build(); Jnsp7xtmDqsjPageHandleDto jnsp7xtmDqsjPageHandleDto = Jnsp7xtmDqsjPageHandleDto.builder().page(i).rows(pageQuerySize).build();
addJnsp7xtmDqsjByPage(jnsp7xtmDqsjPageHandleDto); addJnsp7xtmDqsjByPage(jnsp7xtmDqsjPageHandleDto);
} }
Thread.sleep(5000); QueryWrapper<TaskInfo> queryWrapper = new QueryWrapper<>();
log.info("查询耗时秒" + stopwatch.elapsed().getSeconds()); queryWrapper.eq("tack_id",taskId);
log.info("查询耗时毫秒" + stopwatch.elapsed(TimeUnit.MILLISECONDS)); TaskInfo taskInfo = taskInfoRepository.selectOne(queryWrapper);
taskInfo.setStatus("1");
taskInfoRepository.updateById(taskInfo);
log.info("数据同步需要多少秒" + stopwatch.elapsed().getSeconds());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new CyServiceException(501,"数据同步异常"); throw new CyServiceException(501,"数据同步异常");
...@@ -266,6 +269,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository, ...@@ -266,6 +269,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
try { try {
taskInfo.setStatus("0"); taskInfo.setStatus("0");
taskInfo.setTackId(CyIdGenUtil.uuid()); taskInfo.setTackId(CyIdGenUtil.uuid());
taskInfo.setFlag("1");
taskInfoRepository.insert(taskInfo); taskInfoRepository.insert(taskInfo);
return taskInfo; return taskInfo;
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment