|
|
@ -466,6 +466,8 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> deviceOption(JSONObject param) { |
|
|
|
MDC.put(log_file_type, log_type); |
|
|
|
log.info("deviceOption-----输入参数{}", param); |
|
|
|
String option = param.getString("option"); |
|
|
|
Assert.notBlank(option, "参数不能为空"); |
|
|
|
try { |
|
|
@ -475,12 +477,14 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
map.put("status", 400); |
|
|
|
map.put("message", e.getMessage()); |
|
|
|
map.put("data", new JSONObject()); |
|
|
|
log.info("deviceOption--------------:输出参数:" + JSON.toJSONString(map)); |
|
|
|
return map; |
|
|
|
} |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("status", 200); |
|
|
|
map.put("message", "操作成功!"); |
|
|
|
map.put("data", new JSONObject()); |
|
|
|
log.info("deviceOption--------------:输出参数:" + JSON.toJSONString(map)); |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|