|
|
@ -16,6 +16,9 @@ import org.nl.acs.agv.server.AgvService; |
|
|
|
import org.nl.acs.agv.server.NDCAgvService; |
|
|
|
import org.nl.acs.device.domain.Device; |
|
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
|
import org.nl.acs.device_driver.basedriver.hongxiang_device.HongXiangConveyorDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.basedriver.ssx_site.SsxSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.basedriver.standard_conveyor_control_with_scanner.StandardCoveyorControlWithScannerDeviceDriver; |
|
|
|
import org.nl.acs.ext.wms.data.JsonUtl; |
|
|
|
import org.nl.acs.instruction.domain.Instruction; |
|
|
|
import org.nl.acs.instruction.domain.InstructionMybatis; |
|
|
@ -458,4 +461,27 @@ public class HandServiceImpl implements HandService { |
|
|
|
resultJson.put("data", data); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> record(HeadTaskDto dto) { |
|
|
|
JSONObject resultJson = new JSONObject(); |
|
|
|
JSONArray data = new JSONArray(); |
|
|
|
String sub_tray=dto.getSub_tray(); |
|
|
|
String mother_tray=dto.getMother_tray(); |
|
|
|
Device device = deviceAppService.findDeviceByCode("SSX04"); |
|
|
|
if (device.getDeviceDriver() instanceof SsxSiteDeviceDriver) { |
|
|
|
SsxSiteDeviceDriver ssxSiteDeviceDriver = (SsxSiteDeviceDriver) device.getDeviceDriver(); |
|
|
|
if(ObjectUtil.isNotEmpty(sub_tray)) { |
|
|
|
log.info("手持补录SSX04子托盘编号sub_tray为{}",sub_tray); |
|
|
|
ssxSiteDeviceDriver.writing("sub_tray",sub_tray); |
|
|
|
} |
|
|
|
if(ObjectUtil.isNotEmpty(mother_tray)) { |
|
|
|
log.info("手持补录SSX04母托盘编号mother_tray为{}",mother_tray); |
|
|
|
ssxSiteDeviceDriver.writing("mother_tray",mother_tray); |
|
|
|
} |
|
|
|
} |
|
|
|
resultJson.put("message", "操作成功"); |
|
|
|
resultJson.put("data", data); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
} |
|
|
|