add: 标准检测站点驱动 mode = 3 取消货位绑定信息
This commit is contained in:
@@ -174,6 +174,13 @@ public class AcsToWmsController {
|
||||
return new ResponseEntity<>(acsToWmsService.getVehicleInfo(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/vehicleUnbind")
|
||||
@Log("载具解绑")
|
||||
@ApiOperation("载具解绑")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> vehicleUnbind(@RequestBody JSONObject whereJson) {
|
||||
return new ResponseEntity<>(acsToWmsService.vehicleUnbind(whereJson), HttpStatus.OK);
|
||||
}
|
||||
@PostMapping("/outKiln")
|
||||
@Log("出窑分配")
|
||||
@ApiOperation("出窑分配")
|
||||
|
||||
@@ -105,6 +105,8 @@ public interface AcsToWmsService {
|
||||
|
||||
JSONObject getVehicleInfo(JSONObject whereJson);
|
||||
|
||||
JSONObject vehicleUnbind(JSONObject whereJson);
|
||||
|
||||
JSONObject outKiln(JSONObject whereJson);
|
||||
|
||||
JSONObject inKiln(JSONObject param);
|
||||
|
||||
@@ -838,6 +838,23 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject vehicleUnbind(JSONObject whereJson) {
|
||||
String point_code = whereJson.getString("device_code");
|
||||
JSONObject point_update = new JSONObject();
|
||||
point_update.put("point_status", PointStatus.EMPTY.value());
|
||||
point_update.put("vehicle_type", "");
|
||||
point_update.put("vehicle_code", "");
|
||||
point_update.put("vd_id", null);
|
||||
TaskUtils.addCurrentUpdateColum(point_update);
|
||||
WQLObject.getWQLObject("sch_base_point").update(point_update, "point_code = '" + point_code + "'");
|
||||
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("status", HttpStatus.OK.value());
|
||||
result.put("message", "解绑成功!");
|
||||
result.put("data", null);
|
||||
return result;
|
||||
}
|
||||
@Override
|
||||
public JSONObject outKiln(JSONObject whereJson) {
|
||||
String vehicle_code = TaskUtils.formatVehicleCode(whereJson.getString("vehicle_code"));
|
||||
|
||||
Reference in New Issue
Block a user