Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
<artifactId>nl-module-infra-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.nl.cloud</groupId>
|
||||
<artifactId>nl-module-lms-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 业务组件 -->
|
||||
<dependency>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package cn.code.nl.module.system.job.slitter;
|
||||
|
||||
import cn.code.nl.framework.tenant.core.job.TenantJob;
|
||||
import cn.code.nl.module.lms.api.AutoCallAirShaftApi;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
@@ -11,13 +13,17 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class AutoCallAirShaftTask {
|
||||
|
||||
/** 自动子卷搬运 RPC */
|
||||
@Resource
|
||||
private AutoCallAirShaftApi autoCallAirShaftApi;
|
||||
|
||||
|
||||
/**
|
||||
* 执行自动子卷搬运调度
|
||||
* A B C D E 分别对应,分切缓存位,分切对接位,套轴对接位,套轴缓存位,拔轴机构
|
||||
*/
|
||||
@XxlJob("autoCallAirShaftTask")
|
||||
@TenantJob
|
||||
public void execute() {
|
||||
|
||||
|
||||
|
||||
autoCallAirShaftApi.executeAutoCallAirShaft().getCheckedData();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.code.nl.module.system.job.slitter;
|
||||
|
||||
import cn.code.nl.framework.tenant.core.job.TenantJob;
|
||||
import cn.code.nl.module.lms.api.AutoCallAirShaftApi;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* C、D 点子卷自动搬运至 E 点任务
|
||||
*/
|
||||
@Component
|
||||
public class AutoCallAirShaftToDeviceTask {
|
||||
|
||||
/** 自动子卷搬运 RPC */
|
||||
@Resource
|
||||
private AutoCallAirShaftApi autoCallAirShaftApi;
|
||||
|
||||
/**
|
||||
* 执行 C、D 到 E 自动搬运调度,优先处理 C 点子卷
|
||||
*/
|
||||
@XxlJob("autoCallAirShaftToDeviceTask")
|
||||
@TenantJob
|
||||
public void execute() {
|
||||
autoCallAirShaftApi.executeAutoCallAirShaftToDevice().getCheckedData();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package cn.code.nl.module.system.job.slitter;
|
||||
|
||||
import cn.code.nl.framework.tenant.core.job.TenantJob;
|
||||
import cn.code.nl.module.lms.api.AutoCallAirShaftApi;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 自动套轴定时任务。
|
||||
*/
|
||||
@Component
|
||||
public class AutoSleeveScheduledTask {
|
||||
|
||||
@Resource
|
||||
private AutoCallAirShaftApi autoCallAirShaftApi;
|
||||
|
||||
/**
|
||||
* 轮询管芯缓存位并创建管芯、气涨轴配套搬运任务。
|
||||
*/
|
||||
@XxlJob("autoSleeveScheduledTask")
|
||||
@TenantJob
|
||||
public void execute() {
|
||||
autoCallAirShaftApi.executeAutoSleeve().getCheckedData();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user