forked from luyan/epmet-cloud-lingshan
				
			
			
			
				Browse Source
			
			
			
			
				
		# Conflicts: # epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java # epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java # epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.javamaster
				 17 changed files with 295 additions and 8 deletions
			
			
		| @ -0,0 +1,35 @@ | |||||
|  | package com.epmet.task.ic; | ||||
|  | 
 | ||||
|  | import com.epmet.commons.tools.utils.Result; | ||||
|  | import com.epmet.feign.EpmetUserOpenFeignClient; | ||||
|  | import com.epmet.task.ITask; | ||||
|  | import lombok.extern.slf4j.Slf4j; | ||||
|  | import org.springframework.stereotype.Component; | ||||
|  | 
 | ||||
|  | import javax.annotation.Resource; | ||||
|  | 
 | ||||
|  | /** | ||||
|  |  * desc:定时弥补数据 保证数据的一致性 | ||||
|  |  */ | ||||
|  | @Slf4j | ||||
|  | @Component("icUpdateYlfnTask") | ||||
|  | public class IcUpdateYlfnTask implements ITask { | ||||
|  | 
 | ||||
|  |     @Resource | ||||
|  |     private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 执行定时任务接口 | ||||
|  |      * | ||||
|  |      * @param params 参数,多参数使用JSON数据 | ||||
|  |      */ | ||||
|  |     @Override | ||||
|  |     public void run(String params) { | ||||
|  |         Result result = epmetUserOpenFeignClient.updateYlfn(); | ||||
|  |         if (result.success()) { | ||||
|  |             log.info("icUpdateYlfnTask定时任务正在执行定时任务执行成功"); | ||||
|  |         } else { | ||||
|  |             log.warn("icUpdateYlfnTask定时任务正在执行定时任务执行失败:" + result.getMsg()); | ||||
|  |         } | ||||
|  |     } | ||||
|  | } | ||||
| @ -0,0 +1,18 @@ | |||||
|  | package com.epmet.dto.result; | ||||
|  | 
 | ||||
|  | import lombok.Data; | ||||
|  | 
 | ||||
|  | import java.io.Serializable; | ||||
|  | 
 | ||||
|  | /** | ||||
|  |  * @Description | ||||
|  |  * @Author zhaoqifeng | ||||
|  |  * @Date 2022/9/8 15:43 | ||||
|  |  */ | ||||
|  | @Data | ||||
|  | public class YlfnValueResultDTO implements Serializable { | ||||
|  |     private static final long serialVersionUID = -1416102274320519092L; | ||||
|  |     private String customerId; | ||||
|  |     private Integer min; | ||||
|  |     private Integer max; | ||||
|  | } | ||||
| @ -0,0 +1,4 @@ | |||||
|  | alter table ic_resi_category_stats_config | ||||
|  |     add COLUMN `AUTO_MATCHING` varchar(1) NOT NULL DEFAULT '0' COMMENT '自动匹配:开启1;不匹配:0' after SORT; | ||||
|  | 
 | ||||
|  | alter table ic_resi_category_stats_config add COLUMN `YLFN_VALUE` varchar(32) DEFAULT NULL COMMENT '育龄妇女年龄范围,英文逗号隔开的数字例如:18,49' after AUTO_MATCHING; | ||||
					Loading…
					
					
				
		Reference in new issue