parent
a530b9e774
commit
39958698d2
5 changed files with 70 additions and 3 deletions
@ -0,0 +1,30 @@ |
|||||||
|
package org.springblade.job.processor.produce; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.produce.feign.IApsProduceClient; |
||||||
|
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; |
||||||
|
|
||||||
|
/** |
||||||
|
* 异常订单自动分派 |
||||||
|
* |
||||||
|
* @author litao |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class YieldOrderAutoDispatchProcessor implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IApsProduceClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
log.info("异常订单自动分派开始"); |
||||||
|
return new ProcessResult(client.yieldOrderAutoDispatch()); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue