Browse Source
# Conflicts: # epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/dao/IcEventDao.java # epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xmldev
11 changed files with 191 additions and 5 deletions
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.task; |
||||
|
|
||||
|
import com.alibaba.fastjson.JSON; |
||||
|
import com.epmet.dto.form.AutoEvaluationFormDTO; |
||||
|
import com.epmet.feign.GovProjectOpenFeignClient; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/5/18 17:53 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Component("autoEvaluationTask") |
||||
|
public class AutoEvaluationTask implements ITask{ |
||||
|
|
||||
|
@Autowired |
||||
|
private GovProjectOpenFeignClient projectOpenFeignClient; |
||||
|
|
||||
|
@Override |
||||
|
public void run(String params) { |
||||
|
AutoEvaluationFormDTO formDTO = new AutoEvaluationFormDTO(); |
||||
|
if (StringUtils.isNotBlank(params)) { |
||||
|
formDTO = JSON.parseObject(params, AutoEvaluationFormDTO.class); |
||||
|
} |
||||
|
projectOpenFeignClient.autoEvaluation(formDTO); |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/5/18 16:33 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AutoEvaluationFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -8871508029242477452L; |
||||
|
|
||||
|
private String customerId; |
||||
|
private String dateId; |
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
} |
Loading…
Reference in new issue