parent
6475c6d01b
commit
67b35b4a8b
3 changed files with 77 additions and 14 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 ConfirmOrderProcessor implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IApsProduceClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
log.info("自动开始订单接收"); |
||||||
|
return new ProcessResult(client.confirmOrder()); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue