压机申请任务判断对接位货物是否为空
This commit is contained in:
@@ -18,9 +18,13 @@ import org.nl.acs.device_driver.driver.ExecutableDeviceDriver;
|
||||
import org.nl.acs.ext.wms.service.AcsToWmsService;
|
||||
import org.nl.acs.instruction.service.InstructionService;
|
||||
import org.nl.acs.instruction.service.dto.Instruction;
|
||||
import org.nl.acs.log.LokiLog;
|
||||
import org.nl.acs.log.LokiLogType;
|
||||
import org.nl.acs.log.service.DeviceExecuteLogService;
|
||||
import org.nl.acs.monitor.DeviceStageMonitor;
|
||||
import org.nl.acs.opc.Device;
|
||||
import org.nl.acs.opc.DeviceAppService;
|
||||
import org.nl.acs.opc.DeviceAppServiceImpl;
|
||||
import org.nl.acs.route.service.RouteLineService;
|
||||
import org.nl.acs.task.service.TaskService;
|
||||
import org.nl.modules.system.service.ParamService;
|
||||
@@ -121,6 +125,7 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements
|
||||
|
||||
|
||||
@Override
|
||||
@LokiLog(type = LokiLogType.AGV)
|
||||
public void execute() {
|
||||
String message = null;
|
||||
try {
|
||||
@@ -216,7 +221,21 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements
|
||||
//叫料
|
||||
if (ObjectUtil.isNotEmpty(ignore_pickup_check) && "true".equals(ignore_pickup_check.toString())) {
|
||||
if (!requireSucess) {
|
||||
callMaterial();
|
||||
if(this.device_code.endsWith("SL01")){
|
||||
String devicecode="BLJ0"+this.device_code.charAt(3);
|
||||
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class);
|
||||
Device nextDevice = appService.findDeviceByCode(devicecode);
|
||||
if (nextDevice.getDeviceDriver() instanceof LnshStationDeviceDriver) {
|
||||
LnshStationDeviceDriver driver = (LnshStationDeviceDriver) nextDevice.getDeviceDriver();
|
||||
if(driver.getAction()==1){
|
||||
log.info("当前压机"+this.device_code+"对应对接位"+driver.device_code+"有货,暂不生成任务");
|
||||
}else{
|
||||
callMaterial();
|
||||
}
|
||||
}
|
||||
}else {
|
||||
callMaterial();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!requireSucess && this.move == 0) {
|
||||
|
||||
@@ -8,7 +8,7 @@ spring:
|
||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:yksh_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useOldAliasMetadataBehavior=true
|
||||
username: ${DB_USER:root}
|
||||
password: ${DB_PWD:12356}
|
||||
password: ${DB_PWD:123456}
|
||||
# 初始连接数
|
||||
initial-size: 5
|
||||
# 最小连接数
|
||||
|
||||
Reference in New Issue
Block a user