Browse Source

党员基本情况抽取定时任务添加

dev_shibei_match
zxc 5 years ago
parent
commit
51c6fe5afc
  1. 6
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenExtractDailyController.java
  2. 4
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/ScreenExtractService.java
  3. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/impl/PioneerDataExtractServiceImpl.java
  4. 6
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/impl/ScreenExtractServiceImpl.java

6
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenExtractDailyController.java

@ -2,7 +2,7 @@ package com.epmet.controller;
import com.epmet.commons.tools.utils.Result; import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.extract.form.ExtractFormDTO; import com.epmet.dto.extract.form.ExtractFormDTO;
import com.epmet.service.evaluationindex.extract.toscreen.ScreenExtractDailyService; import com.epmet.service.evaluationindex.extract.toscreen.ScreenExtractService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
public class ScreenExtractDailyController { public class ScreenExtractDailyController {
@Autowired @Autowired
private ScreenExtractDailyService screenExtractDailyService; private ScreenExtractService screenExtractService;
/** /**
* @Description 抽取数据到大屏 * @Description 抽取数据到大屏
@ -28,7 +28,7 @@ public class ScreenExtractDailyController {
*/ */
@PostMapping("extractdailyall") @PostMapping("extractdailyall")
public Result screenExtractDaily(@RequestBody ExtractFormDTO extractFormDTO){ public Result screenExtractDaily(@RequestBody ExtractFormDTO extractFormDTO){
screenExtractDailyService.extractAll(extractFormDTO); screenExtractService.extractDailyAll(extractFormDTO);
return new Result(); return new Result();
} }

4
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/ScreenExtractDailyService.java → epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/ScreenExtractService.java

@ -6,7 +6,7 @@ import com.epmet.dto.extract.form.ExtractFormDTO;
* @Author zxc * @Author zxc
* @DateTime 2020/9/24 9:57 上午 * @DateTime 2020/9/24 9:57 上午
*/ */
public interface ScreenExtractDailyService { public interface ScreenExtractService {
/** /**
* @Description 抽取数据到大屏 * @Description 抽取数据到大屏
@ -14,6 +14,6 @@ public interface ScreenExtractDailyService {
* @author zxc * @author zxc
* @date 2020/9/24 10:15 上午 * @date 2020/9/24 10:15 上午
*/ */
void extractAll(ExtractFormDTO extractFormDTO); void extractDailyAll(ExtractFormDTO extractFormDTO);
} }

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/impl/PioneerDataExtractServiceImpl.java

@ -11,6 +11,7 @@ import com.epmet.service.evaluationindex.extract.toscreen.PioneerDataExtractServ
import com.epmet.service.evaluationindex.screen.ScreenPioneerDataService; import com.epmet.service.evaluationindex.screen.ScreenPioneerDataService;
import com.epmet.service.stats.DimCustomerPartymemberService; import com.epmet.service.stats.DimCustomerPartymemberService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -23,6 +24,7 @@ import java.util.List;
* @author yinzuomei@elink-cn.com * @author yinzuomei@elink-cn.com
* @date 2020/9/22 11:25 * @date 2020/9/22 11:25
*/ */
@Service
public class PioneerDataExtractServiceImpl implements PioneerDataExtractService { public class PioneerDataExtractServiceImpl implements PioneerDataExtractService {
@Autowired @Autowired

6
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/impl/ScreenExtractDailyServiceImpl.java → epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/toscreen/impl/ScreenExtractServiceImpl.java

@ -5,7 +5,7 @@ import com.epmet.commons.tools.utils.DateUtils;
import com.epmet.dto.extract.form.ExtractFormDTO; import com.epmet.dto.extract.form.ExtractFormDTO;
import com.epmet.service.evaluationindex.extract.toscreen.PartyBaseInfoService; import com.epmet.service.evaluationindex.extract.toscreen.PartyBaseInfoService;
import com.epmet.service.evaluationindex.extract.toscreen.PioneerDataExtractService; import com.epmet.service.evaluationindex.extract.toscreen.PioneerDataExtractService;
import com.epmet.service.evaluationindex.extract.toscreen.ScreenExtractDailyService; import com.epmet.service.evaluationindex.extract.toscreen.ScreenExtractService;
import com.epmet.service.stats.DimCustomerService; import com.epmet.service.stats.DimCustomerService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -23,7 +23,7 @@ import java.util.List;
*/ */
@Service @Service
@Slf4j @Slf4j
public class ScreenExtractDailyServiceImpl implements ScreenExtractDailyService { public class ScreenExtractServiceImpl implements ScreenExtractService {
@Autowired @Autowired
private DimCustomerService dimCustomerService; private DimCustomerService dimCustomerService;
@ -39,7 +39,7 @@ public class ScreenExtractDailyServiceImpl implements ScreenExtractDailyService
* @date 2020/9/24 10:15 上午 * @date 2020/9/24 10:15 上午
*/ */
@Override @Override
public void extractAll(ExtractFormDTO extractFormDTO) { public void extractDailyAll(ExtractFormDTO extractFormDTO) {
List<String> customerIds = new ArrayList<>(); List<String> customerIds = new ArrayList<>();
if (StringUtils.isNotBlank(extractFormDTO.getCustomerId())){ if (StringUtils.isNotBlank(extractFormDTO.getCustomerId())){
customerIds.add(extractFormDTO.getCustomerId()); customerIds.add(extractFormDTO.getCustomerId());
Loading…
Cancel
Save