|
|
|
|
@@ -32,7 +32,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
|
@Log(value = "WMS给ACS发送任务", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> issueTaskToAcs(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.issueTaskToAcs(arr), HttpStatus.OK);
|
|
|
|
|
@@ -40,7 +39,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/cancel")
|
|
|
|
|
@Log(value = "WMS主动取消ACS任务", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> cancelToAcs(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.cancelToAcs(arr), HttpStatus.OK);
|
|
|
|
|
@@ -48,7 +46,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/updatePointStatus")
|
|
|
|
|
@Log(value = "WMS更新ACS点位状态", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> updatePointStatus(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.updatePointStatus(arr), HttpStatus.OK);
|
|
|
|
|
@@ -56,7 +53,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/order")
|
|
|
|
|
@Log(value = "WMS开工向acs下发工单", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> startWork(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.order(arr), HttpStatus.OK);
|
|
|
|
|
@@ -64,7 +60,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/orderStatusUpdate")
|
|
|
|
|
@Log(value = "WMS向acs发送强制完成", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> orderStatusUpdate(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.orderStatusUpdate(arr), HttpStatus.OK);
|
|
|
|
|
@@ -72,7 +67,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/querydevice")
|
|
|
|
|
@Log(value = "WMS向acs发送获取点位状态", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> getPointStatus(@RequestBody JSONArray whereJson) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.getPointStatus(whereJson), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
@@ -80,7 +74,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/updateTask")
|
|
|
|
|
@Log(value = "WMS向acs发送更新任务状态", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> updateTask(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.updateTask(arr), HttpStatus.OK);
|
|
|
|
|
@@ -88,7 +81,6 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/action")
|
|
|
|
|
@Log(value = "给ACS下发修改PLC的值", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> action(@RequestBody Map whereJson) {
|
|
|
|
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(whereJson.get("data")));
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.updateTask(arr), HttpStatus.OK);
|
|
|
|
|
@@ -96,49 +88,42 @@ public class WmsToAcsController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/putPlusPullAction")
|
|
|
|
|
@Log(value = "给ACS下发修改PLC的值", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> putPlusPullAction(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.putPlusPullAction(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/unLock")
|
|
|
|
|
@Log(value = "给ACS下发修立库点位解锁", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> unLock(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.unLock(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/queryDeviceInfo")
|
|
|
|
|
@Log(value = "LMS向acs请求设备信息", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> queryDeviceInfo(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.queryDeviceInfo(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/sendAgvChargeTask")
|
|
|
|
|
@Log(value = "LMS下发AGV充电任务", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> sendAgvChargeTask(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.sendAgvChargeTask(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/syncfaultInfo")
|
|
|
|
|
@Log(value = "LMS同步ACS报警码信息", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> syncfaultInfo() {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.syncfaultInfo(), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/realTimefaultInfo")
|
|
|
|
|
@Log(value = "LMS查看ACS实时报警信息", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> realTimefaultInfo(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.realTimefaultInfo(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/PaperTubeAction")
|
|
|
|
|
@Log(value = "LMS下发纸管库指令", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
|
|
|
|
|
|
|
|
|
public ResponseEntity<Object> PaperTubeAction(@RequestBody JSONObject jo) {
|
|
|
|
|
return new ResponseEntity<>(wmsToAcsService.PaperTubeAction(jo), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|