opt:kit套件优化
This commit is contained in:
@@ -170,15 +170,15 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
|
||||
device = deviceAppService.findDeviceByCode(this.devicecode);
|
||||
TaskService taskService = SpringContextHolder.getBean("taskServiceImpl");
|
||||
TaskDto task = taskService.findByCode(instruction.getTask_code());
|
||||
|
||||
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getStart_point_code());
|
||||
if (dto == null) {
|
||||
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||
return;
|
||||
}
|
||||
instruction.setOffSet(dto.getAddress());
|
||||
instruction.setOffSetName(instruction.getStart_point_code());
|
||||
if ((StrUtil.startWith(task.getTask_code(), "-"))) {
|
||||
log.info("定点任务下发agv允许取货信号");
|
||||
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getStart_point_code());
|
||||
if (dto == null) {
|
||||
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||
return;
|
||||
} instruction.setOffSet(dto.getAddress());
|
||||
instruction.setOffSetName(instruction.getNext_point_code());
|
||||
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
||||
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
||||
return;
|
||||
@@ -218,6 +218,13 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
|
||||
//放货申请
|
||||
else if (ObjectUtil.isNotEmpty(instruction) && StrUtil.equals(instruction.getNext_point_code(), this.devicecode)) {
|
||||
if (agvphase == 3) {
|
||||
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getNext_point_code());
|
||||
if (dto == null) {
|
||||
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||
return;
|
||||
}
|
||||
instruction.setOffSet(dto.getAddress());
|
||||
instruction.setOffSetName(instruction.getNext_point_code());
|
||||
device = deviceAppService.findDeviceByCode(this.devicecode);
|
||||
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
||||
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
||||
@@ -232,6 +239,13 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
|
||||
device = deviceAppService.findDeviceByCode(this.devicecode);
|
||||
TaskService taskService = SpringContextHolder.getBean("taskServiceImpl");
|
||||
TaskDto task = taskService.findByCode(instruction.getTask_code());
|
||||
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getNext_point_code());
|
||||
if (dto == null) {
|
||||
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||
return;
|
||||
}
|
||||
instruction.setOffSet(dto.getAddress());
|
||||
instruction.setOffSetName(instruction.getNext_point_code());
|
||||
if ((StrUtil.startWith(task.getTask_code(), "-"))) {
|
||||
log.info("定点任务下发agv允许取货信号");
|
||||
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
||||
|
||||
Reference in New Issue
Block a user