add: 标准检测站点驱动 mode = 3 取消货位绑定信息

This commit is contained in:
zhaoyf
2026-04-30 09:57:22 +08:00
parent d3788b219b
commit 93e3a89d11
7 changed files with 102 additions and 1 deletions

View File

@@ -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("出窑分配")

View File

@@ -105,6 +105,8 @@ public interface AcsToWmsService {
JSONObject getVehicleInfo(JSONObject whereJson);
JSONObject vehicleUnbind(JSONObject whereJson);
JSONObject outKiln(JSONObject whereJson);
JSONObject inKiln(JSONObject param);

View File

@@ -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"));