zds
3 months ago
7 changed files with 108 additions and 6 deletions
@ -0,0 +1,37 @@ |
|||
|
|||
package org.nl.wms.sch.task_manage; |
|||
|
|||
import lombok.SneakyThrows; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.wms.sch.workorder.service.IWorkorderService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
|
|||
@Slf4j |
|||
@Component |
|||
public class AutoCommitWorkOrder { |
|||
|
|||
@Autowired |
|||
private IWorkorderService workorderService; |
|||
|
|||
@SneakyThrows |
|||
public void run() { |
|||
log.info("定时任务AutoCommitWorkOrder开始执行:"); |
|||
this.doExecute(); |
|||
log.info("定时任务AutoCommitWorkOrder执行结束:"); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 根据工单情况自动提交并生成工单出库任务 |
|||
*/ |
|||
private void doExecute() { |
|||
//根据工单情况自动提交
|
|||
workorderService.batchCommitAndCreateOrder(); |
|||
//并生成工单出库任务
|
|||
workorderService.batchCreateTask(); |
|||
} |
|||
|
|||
} |
|||
|
Loading…
Reference in new issue