|
|
@ -349,7 +349,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Map<String, Object> getVehicleInfoBycode(Map jsonObject) { |
|
|
|
public Map<String, Object> getVehicleInfoByDevice_code(Map jsonObject) { |
|
|
|
String device_code = (String) jsonObject.get("device_code"); |
|
|
|
JSONObject pointObj = WQLObject.getWQLObject("sch_base_point").query("point_code='" + device_code + "'").uniqueResult(0); |
|
|
|
String vehicle_code = pointObj.getString("vehicle_code"); |
|
|
@ -371,6 +371,20 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> getVehicleInfoByVehiclecode(Map jsonObject) { |
|
|
|
String vehicle_code = (String) jsonObject.get("vehicle_code"); |
|
|
|
JSONObject vehicleObj = WQLObject.getWQLObject("st_buss_vehiclegroup").query("vehicle_code='" + vehicle_code + "' AND is_delete='0'").uniqueResult(0); |
|
|
|
if (ObjectUtil.isEmpty(vehicleObj)){ |
|
|
|
throw new BadRequestException("未找到托盘编码为'"+vehicle_code+"'的组盘信息"); |
|
|
|
} |
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
result.put("status", HttpStatus.OK.value()); |
|
|
|
result.put("message", "反馈成功!"); |
|
|
|
result.put("data", vehicleObj); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> sureProduceTask(Map jsonObject) { |
|
|
|
String producetask_code = (String) jsonObject.get("producetask_code"); |
|
|
|