|
@ -2,6 +2,7 @@ package com.elink.esua.epdc.task.screen; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.elink.esua.epdc.dto.ScreenBaseReportParamDTO; |
|
|
import com.elink.esua.epdc.dto.ScreenBaseReportParamDTO; |
|
|
|
|
|
import com.elink.esua.epdc.dto.analysis.pc.screen.form.ItemCountParamDTO; |
|
|
import com.elink.esua.epdc.dto.analysis.pc.screen.form.ScreenJobFormDTO; |
|
|
import com.elink.esua.epdc.dto.analysis.pc.screen.form.ScreenJobFormDTO; |
|
|
import com.elink.esua.epdc.feign.AnalysisFeignClient; |
|
|
import com.elink.esua.epdc.feign.AnalysisFeignClient; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
@ -52,9 +53,13 @@ public class ScreenBaseReportPushTaskImpl implements ScreenBaseReportPushTask { |
|
|
|
|
|
|
|
|
agencytopicissue(paramDto.getAgencytopicissue()); |
|
|
agencytopicissue(paramDto.getAgencytopicissue()); |
|
|
|
|
|
|
|
|
gridproject(paramDto.getGridproject()); |
|
|
ItemCountParamDTO itemCountParamDTO = new ItemCountParamDTO(); |
|
|
|
|
|
itemCountParamDTO = JSONObject.parseObject(param, ItemCountParamDTO.class); |
|
|
|
|
|
itemCountParamDTO.setEndTime(itemCountParamDTO.getEndTime()); |
|
|
|
|
|
itemCountParamDTO.setStartTime(itemCountParamDTO.getStartTime()); |
|
|
|
|
|
gridproject(itemCountParamDTO); |
|
|
|
|
|
|
|
|
agencyproject(paramDto.getAgencyproject()); |
|
|
agencyproject(itemCountParamDTO); |
|
|
|
|
|
|
|
|
gridgrouptotal(paramDto.getGridgrouptotal()); |
|
|
gridgrouptotal(paramDto.getGridgrouptotal()); |
|
|
|
|
|
|
|
@ -245,36 +250,33 @@ public class ScreenBaseReportPushTaskImpl implements ScreenBaseReportPushTask { |
|
|
/** |
|
|
/** |
|
|
* 网格项目数据 |
|
|
* 网格项目数据 |
|
|
* |
|
|
* |
|
|
* @param yearMonth |
|
|
* @param itemCountParamDTO |
|
|
* @return void |
|
|
* @return void |
|
|
* @author zhy |
|
|
* @author zhy |
|
|
* @date 2021/6/28 10:48 |
|
|
* @date 2021/6/28 10:48 |
|
|
*/ |
|
|
*/ |
|
|
public void gridproject(String yearMonth) { |
|
|
public void gridproject(ItemCountParamDTO itemCountParamDTO) { |
|
|
ScreenJobFormDTO formDto = new ScreenJobFormDTO(); |
|
|
|
|
|
formDto.setYearMonth(yearMonth); |
|
|
|
|
|
// 方法名
|
|
|
// 方法名
|
|
|
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|
|
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|
|
logger.info("<" + methodName + "|网格项目数据>定时任务开始执行"); |
|
|
logger.info("<" + methodName + "|网格项目数据>定时任务开始执行"); |
|
|
analysisFeignClient.gridproject(formDto); |
|
|
analysisFeignClient.gridproject(itemCountParamDTO); |
|
|
logger.info("<" + methodName + "|网格项目数据>定时任务执行结束"); |
|
|
logger.info("<" + methodName + "|网格项目数据>定时任务执行结束"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 组织项目数据 |
|
|
* 组织项目数据 |
|
|
* |
|
|
* |
|
|
* @param yearMonth |
|
|
* @param itemCountParamDTO |
|
|
* @return void |
|
|
* @return void |
|
|
* @author zhy |
|
|
* @author zhy |
|
|
* @date 2021/6/28 10:48 |
|
|
* @date 2021/6/28 10:48 |
|
|
*/ |
|
|
*/ |
|
|
public void agencyproject(String yearMonth) { |
|
|
public void agencyproject(ItemCountParamDTO itemCountParamDTO) { |
|
|
ScreenJobFormDTO formDto = new ScreenJobFormDTO(); |
|
|
ScreenJobFormDTO formDto = new ScreenJobFormDTO(); |
|
|
formDto.setYearMonth(yearMonth); |
|
|
|
|
|
// 方法名
|
|
|
// 方法名
|
|
|
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|
|
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
|
|
logger.info("<" + methodName + "|组织项目数据>定时任务开始执行"); |
|
|
logger.info("<" + methodName + "|组织项目数据>定时任务开始执行"); |
|
|
analysisFeignClient.agencyproject(formDto); |
|
|
analysisFeignClient.agencyproject(itemCountParamDTO); |
|
|
logger.info("<" + methodName + "|组织项目数据>定时任务执行结束"); |
|
|
logger.info("<" + methodName + "|组织项目数据>定时任务执行结束"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|