|
@ -1,5 +1,6 @@ |
|
|
package org.nl.acs.ext.wms.service.impl; |
|
|
package org.nl.acs.ext.wms.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Assert; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
@ -10,6 +11,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.nl.acs.AcsConfig; |
|
|
import org.nl.acs.AcsConfig; |
|
|
|
|
|
import org.nl.acs.agv.server.NDCAgvService; |
|
|
import org.nl.acs.common.IDriverService; |
|
|
import org.nl.acs.common.IDriverService; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
import org.nl.acs.device_driver.basedriver.cargo_lift_conveyor.CargoLiftConveyorDeviceDriver; |
|
|
import org.nl.acs.device_driver.basedriver.cargo_lift_conveyor.CargoLiftConveyorDeviceDriver; |
|
@ -36,6 +38,7 @@ import org.nl.modules.wql.core.bean.WQLObject; |
|
|
import org.nl.modules.wql.exception.WDKException; |
|
|
import org.nl.modules.wql.exception.WDKException; |
|
|
import org.nl.modules.wql.util.SpringContextHolder; |
|
|
import org.nl.modules.wql.util.SpringContextHolder; |
|
|
import org.slf4j.MDC; |
|
|
import org.slf4j.MDC; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.context.ApplicationContext; |
|
|
import org.springframework.context.ApplicationContext; |
|
|
import org.springframework.http.HttpStatus; |
|
|
import org.springframework.http.HttpStatus; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
@ -58,6 +61,8 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
private final DeviceAppService deviceAppService; |
|
|
private final DeviceAppService deviceAppService; |
|
|
private final RouteLineService routeLineService; |
|
|
private final RouteLineService routeLineService; |
|
|
private final AcsToLiKuService acsToLiKuService; |
|
|
private final AcsToLiKuService acsToLiKuService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private NDCAgvService ndcAgvService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String log_file_type = "log_file_type"; |
|
|
private String log_file_type = "log_file_type"; |
|
@ -453,9 +458,29 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
@Override |
|
|
@Override |
|
|
public Map<String, Object> test() { |
|
|
public Map<String, Object> test() { |
|
|
System.out.println("进来了......"); |
|
|
System.out.println("进来了......"); |
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
map.put("a","a"); |
|
|
map.put("a", "a"); |
|
|
map.put("b","b"); |
|
|
map.put("b", "b"); |
|
|
|
|
|
return map; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Map<String, Object> deviceOption(JSONObject param) { |
|
|
|
|
|
String option = param.getString("option"); |
|
|
|
|
|
Assert.notBlank(option, "参数不能为空"); |
|
|
|
|
|
try { |
|
|
|
|
|
ndcAgvService.deviceOption(option); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
map.put("status", 400); |
|
|
|
|
|
map.put("message", e.getMessage()); |
|
|
|
|
|
map.put("data", new JSONObject()); |
|
|
|
|
|
return map; |
|
|
|
|
|
} |
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
map.put("status", 200); |
|
|
|
|
|
map.put("message", "操作成功!"); |
|
|
|
|
|
map.put("data", new JSONObject()); |
|
|
return map; |
|
|
return map; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|