|
|
@ -203,13 +203,13 @@ public class HandheldServiceImpl implements HandheldService { |
|
|
|
goShelves(schBasePoint, param, region_code, device_code, vehicle_code, connectorTask); |
|
|
|
break; |
|
|
|
case "2": |
|
|
|
goWxOrNx(param, region_code, device_code, vehicle_code, connectorTask); |
|
|
|
goWxOrNx(param, RegionEnum.NBJG.getRegion_code(), device_code, vehicle_code, connectorTask); |
|
|
|
break; |
|
|
|
case "3": |
|
|
|
goWxOrNx(param, region_code, device_code, vehicle_code, connectorTask); |
|
|
|
goWxOrNx(param, RegionEnum.WXJG.getRegion_code(), device_code, vehicle_code, connectorTask); |
|
|
|
break; |
|
|
|
case "4": |
|
|
|
connectorBlanking(schBasePoint, param, region_code, device_code, vehicle_code, connectorTask); |
|
|
|
connectorBlanking(param, RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code(), device_code, vehicle_code, connectorTask); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
@ -226,8 +226,21 @@ public class HandheldServiceImpl implements HandheldService { |
|
|
|
* @param vehicle_code |
|
|
|
* @param connectorTask |
|
|
|
*/ |
|
|
|
private void connectorBlanking(SchBasePoint schBasePoint, JSONObject param, String region_code, String device_code, String vehicle_code, AbstractTask connectorTask) { |
|
|
|
|
|
|
|
private void connectorBlanking(JSONObject param, String region_code, String device_code, String vehicle_code, AbstractTask connectorTask) { |
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
jo.put("device_code", device_code); |
|
|
|
jo.put("config_code", "ProcessingSMTTask"); |
|
|
|
jo.put("create_mode", GeneralDefinition.AUTO_CREATION); |
|
|
|
jo.put("vehicle_code", vehicle_code); |
|
|
|
jo.put("region_code", region_code); |
|
|
|
param.put("target_region_code", region_code); |
|
|
|
jo.put("ext_data", param); |
|
|
|
connectorTask.apply(jo); |
|
|
|
iSchBasePointService.update(Wrappers.lambdaUpdate(SchBasePoint.class) |
|
|
|
.eq(SchBasePoint::getPoint_code, device_code) |
|
|
|
.set(SchBasePoint::getPoint_status, GoodsEnum.OUT_OF_STOCK.getValue()) |
|
|
|
.set(SchBasePoint::getIs_lock, true) |
|
|
|
.set(SchBasePoint::getVehicle_code, null)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|