|
|
@ -1,5 +1,9 @@ |
|
|
|
package com.epmet.task; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.resi.partymember.feign.ResiPartyMemberOpenFeignClient; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
/** |
|
|
@ -7,8 +11,11 @@ import org.springframework.stereotype.Component; |
|
|
|
* @Author yzm |
|
|
|
* @Date 2022/8/22 15:07 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@Component("noticePartyActAutoPublishTask") |
|
|
|
public class NoticePartyActAutoPublishTask implements ITask { |
|
|
|
@Autowired |
|
|
|
private ResiPartyMemberOpenFeignClient resiPartyMemberOpenFeignClient; |
|
|
|
|
|
|
|
/** |
|
|
|
* 活动时间2022-08-15 10:30 选择的是提前3天自动发布 |
|
|
@ -19,7 +26,12 @@ public class NoticePartyActAutoPublishTask implements ITask { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void run(String params) { |
|
|
|
// todo
|
|
|
|
Result result=resiPartyMemberOpenFeignClient.noticePartyActAutoPublishTask(); |
|
|
|
if(result.success()){ |
|
|
|
log.info("noticePartyActAutoPublishTask执行成功"); |
|
|
|
}else{ |
|
|
|
log.info("noticePartyActAutoPublishTask执行失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|