Commit b2ffa4f2 authored by 高宇's avatar 高宇

1.月度信息

parent efa15a92
......@@ -160,7 +160,7 @@ public class Jnsp7xtmDqsjController extends CyPaginationController<Jnsp7xtmDqsj>
TaskInfo taskInfo = jnsp7xtmDqsjServiceImpl.addTaskInfo();
//service2
jnsp7xtmDqsjServiceImpl.monthlyTablePull(taskInfo.getTackId());
return CyResultGenUtil.builder(jnsp7xtmDqsjServiceImpl.monthlyTablePull(taskInfo.getTackId()),
return CyResultGenUtil.builder(new CyPersistModel(1),
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
......
......@@ -16,6 +16,7 @@ import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.session.SqlSession;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.tools.ant.taskdefs.Sleep;
import org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmDto;
import org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto;
import org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm;
......@@ -201,6 +202,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
* 月度表拉取
* **/
@Override
@Async
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
public CyPersistModel monthlyTablePull(String taskId) {
......@@ -219,6 +221,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
Jnsp7xtmDqsjPageHandleDto jnsp7xtmDqsjPageHandleDto = Jnsp7xtmDqsjPageHandleDto.builder().page(i).rows(pageQuerySize).build();
addJnsp7xtmDqsjByPage(jnsp7xtmDqsjPageHandleDto);
}
Thread.sleep(5000);
log.info("查询耗时秒" + stopwatch.elapsed().getSeconds());
log.info("查询耗时毫秒" + stopwatch.elapsed(TimeUnit.MILLISECONDS));
} 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