fix 手持功能和混碾业务优化,任务区分优先级
This commit is contained in:
@@ -133,7 +133,7 @@ public class NDCAgvServiceImpl implements NDCAgvService {
|
||||
if (StrUtil.equals(acsConfigService.findByCode(AcsConfig.FORKAGV).getValue(), "1")) {
|
||||
String instcode = inst.getInstruction_code();
|
||||
int type = Integer.parseInt(inst.getInstruction_type());
|
||||
int priority = Integer.parseInt(inst.getPriority()) + 128;
|
||||
int priority = Integer.parseInt(inst.getPriority()+79);
|
||||
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class);
|
||||
DeviceService deviceService = SpringContextHolder.getBean(DeviceServiceImpl.class);
|
||||
int startAddress = deviceService.queryAddressBydeviceCode(inst.getStart_point_code());
|
||||
|
||||
@@ -105,7 +105,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
public String getOpcStringValue(String protocol) {
|
||||
String value = this.driver.getStringValue(protocol);
|
||||
|
||||
@@ -192,24 +192,6 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号action:" + last_action + " -> " + action);
|
||||
lucene.deviceItemValue(this.device_code, "action", String.valueOf(action));
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "信号action:" + last_action + " -> " + action));
|
||||
if ("true".equals(this.device.getExtraValue().get("sendDeviceStatus"))) {
|
||||
ApplySignalStatusRequest request = new ApplySignalStatusRequest();
|
||||
request.setDevice_code(this.getDevice_code());
|
||||
request.setRequest_method_code(RequestMethodEnum.real_time_set_point.getCode());
|
||||
request.setRequest_method_name(RequestMethodEnum.real_time_set_point.getName());
|
||||
request.setAction(String.valueOf(action));
|
||||
ApplySignalStatusResponse resp = JSON.toJavaObject(JSONObject.parseObject(acsToWmsService.applyTask(request)), ApplySignalStatusResponse.class);
|
||||
message = RequestMethodEnum.getName("real_time_set_point") + "real_time_set_point 接口请求LMS...";
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request)));
|
||||
|
||||
if (resp.getCode() == 200) {
|
||||
message = RequestMethodEnum.getName("real_time_set_point") + "real_time_set_point 接口请求成功" + resp.getMessage();;
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "返回参数:" + JSON.toJSONString(request)));
|
||||
} else {
|
||||
message = RequestMethodEnum.getName("real_time_set_point") + "real_time_set_point 接口请求失败" + resp.getMessage();;
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "返回参数:" + JSON.toJSONString(request)));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (io_action != last_ioaction) {
|
||||
logServer.deviceItemValue(this.device_code, "io_action", String.valueOf(io_action));
|
||||
|
||||
@@ -597,7 +597,7 @@ public class HFHandServiceImpl implements HFHandService {
|
||||
@Override
|
||||
public Map<String, Object> Taskoperation(Map<String, String> jsonObject) throws Exception {
|
||||
JSONObject jo = new JSONObject();
|
||||
String task_uuid = jsonObject.get("inst_uuid");
|
||||
String task_uuid = jsonObject.get("task_uuid");
|
||||
String type = jsonObject.get("type");
|
||||
JSONObject taskjo = WQLObject.getWQLObject("acs_task").query("task_id='" + task_uuid + "'").uniqueResult(0);
|
||||
String task_code = taskjo.getString("task_code");
|
||||
|
||||
Reference in New Issue
Block a user