parent
1a29662a48
commit
1808fc8e1c
4 changed files with 60 additions and 1 deletions
@ -0,0 +1,33 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.order.feign.IOrderClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
import java.util.concurrent.CompletableFuture; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-返工任务 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class DataVerifyProcessor implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IOrderClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
log.info("订单合规性校验任务开始"); |
||||||
|
CompletableFuture<Void> runFuture = CompletableFuture.runAsync(()->client.dataVerify()); |
||||||
|
log.info("订单合规性校验任务结束"); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue