|
@ -13,6 +13,7 @@ import lombok.SneakyThrows; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.nl.acs.agv.server.NDCAgvService; |
|
|
import org.nl.acs.agv.server.NDCAgvService; |
|
|
import org.nl.acs.agv.server.XianGongAgvService; |
|
|
import org.nl.acs.agv.server.XianGongAgvService; |
|
|
|
|
|
import org.nl.acs.agv.server.dto.AgvDto; |
|
|
import org.nl.acs.agv.server.impl.NDCAgvServiceImpl; |
|
|
import org.nl.acs.agv.server.impl.NDCAgvServiceImpl; |
|
|
import org.nl.acs.auto.run.AutoRunService; |
|
|
import org.nl.acs.auto.run.AutoRunService; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
@ -59,6 +60,7 @@ public class HFHandServiceImpl implements HFHandService { |
|
|
private final UserService userService; |
|
|
private final UserService userService; |
|
|
private final DeviceService deviceService; |
|
|
private final DeviceService deviceService; |
|
|
private final DeviceAppService deviceAppService; |
|
|
private final DeviceAppService deviceAppService; |
|
|
|
|
|
private final NDCAgvService ndcAgvService; |
|
|
InstructionService instructionService = null; |
|
|
InstructionService instructionService = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -772,6 +774,12 @@ public class HFHandServiceImpl implements HFHandService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String type = whereJson.get("carno"); |
|
|
String type = whereJson.get("carno"); |
|
|
|
|
|
AgvDto agv = ndcAgvService.findByCarNumber(type); |
|
|
|
|
|
if(agv.getChargingFlag()){ |
|
|
|
|
|
jo.put("code", "0"); |
|
|
|
|
|
jo.put("desc", "该车已在充电!"); |
|
|
|
|
|
return jo; |
|
|
|
|
|
} |
|
|
NDCAgvService agvService = SpringContextHolder.getBean(NDCAgvService.class); |
|
|
NDCAgvService agvService = SpringContextHolder.getBean(NDCAgvService.class); |
|
|
try { |
|
|
try { |
|
|
agvService.createChargingTaskToNDC(type); |
|
|
agvService.createChargingTaskToNDC(type); |
|
|