|
|
@ -17,16 +17,14 @@ import org.nl.wms.database.brick.service.IMdBaseBrickInfoService; |
|
|
|
import org.nl.wms.database.material.service.IMdBaseMaterialService; |
|
|
|
import org.nl.wms.database.material.service.dao.MdBaseMaterial; |
|
|
|
import org.nl.wms.ext.acs.service.dto.*; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.acs.PutActionRequest; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.FeedBackSplitPalletStationRequest; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.FeedBackTaskStatusRequest; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.GetPalletizeRequest; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.*; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.BaseResponse; |
|
|
|
import org.nl.wms.ext.acs.service.AcsToWmsService; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.acs.ApplyTaskResponse; |
|
|
|
import org.nl.wms.ext.acs.service.dto.to.acs.GetPalletizeResponse; |
|
|
|
import org.nl.wms.ext.record.service.ISysInteractRecordService; |
|
|
|
import org.nl.wms.pdm.consumption.service.IPdmBdMudConsumptionService; |
|
|
|
import org.nl.wms.pdm.consumption.service.dao.PdmBdMudConsumption; |
|
|
|
import org.nl.wms.pdm.record.service.IPdmBdRequestMaterialRecordService; |
|
|
|
import org.nl.wms.pdm.record.service.dao.PdmBdRequestMaterialRecord; |
|
|
|
import org.nl.wms.pdm.residue.service.IPdmBdMaterialResidueService; |
|
|
@ -61,7 +59,6 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.lang.reflect.InvocationTargetException; |
|
|
|
import java.lang.reflect.Method; |
|
|
|
import java.util.List; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
/** |
|
|
@ -104,6 +101,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
private IPdmBdMaterialResidueService materialResidueService; |
|
|
|
@Autowired |
|
|
|
private IPdmBdVehicleBindingService vehicleBindingService; |
|
|
|
@Autowired |
|
|
|
private IPdmBdMudConsumptionService mudConsumptionService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public BaseResponse acsApply(JSONObject param) { |
|
|
@ -136,9 +135,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请补满料盅托盘(叫料) |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@SneakyThrows |
|
|
@ -169,9 +169,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请补空料盅托盘(叫空盘) |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@SneakyThrows |
|
|
@ -202,9 +203,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请取走空料盅托盘(送空盘) |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@SneakyThrows |
|
|
@ -235,9 +237,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请取走满料盅托盘(入库) |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@SneakyThrows |
|
|
@ -268,9 +271,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请强制取走满料盅托盘(强制入库) |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@SneakyThrows |
|
|
@ -300,9 +304,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 任务:申请强制满托入缓存 todo: 暂时 |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
* |
|
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
|
* @return |
|
|
|
* @see org.nl.wms.ext.acs.service.dto.to.wms.ApplyTaskRequest |
|
|
|
*/ |
|
|
|
public ApplyTaskResponse applyForceTakeFullVehicleInStorage(JSONObject param) { |
|
|
|
// 找到当前的设备
|
|
|
@ -319,7 +324,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return ApplyTaskResponse.responseOk(requestNo); |
|
|
|
} |
|
|
|
|
|
|
|
/** 强制去包装位(半托) 记录不包装 --- 业务不需要*/ |
|
|
|
/** |
|
|
|
* 强制去包装位(半托) 记录不包装 --- 业务不需要 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Deprecated |
|
|
|
public String forceNoPackage(JSONObject param) { |
|
|
@ -327,7 +334,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return requestNo; |
|
|
|
} |
|
|
|
|
|
|
|
/** 质检记录 */ |
|
|
|
/** |
|
|
|
* 质检记录 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse qualityInspection(JSONObject param) { |
|
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
@ -336,19 +345,21 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(applyTaskRequest.getRequestNo()); |
|
|
|
} |
|
|
|
|
|
|
|
/** 分拣 - 记录钢托与木托的绑定 */ |
|
|
|
/** |
|
|
|
* 分拣 - 记录钢托与木托的绑定 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse recordVehicleBiding(JSONObject param) { |
|
|
|
public BaseResponse applyGetPutStation(JSONObject param) { |
|
|
|
FeedBackSplitPalletStationRequest request = param.toJavaObject(FeedBackSplitPalletStationRequest.class); |
|
|
|
String getStation = request.getGet_station(); // 取货点
|
|
|
|
String putStation = request.getPut_station(); // 放货点
|
|
|
|
// 查找当前点位中的信息,如果acs没有提供,就获取点位上的数据,如果点位没有,则数据失效
|
|
|
|
SchBasePoint pickupPoint = pointService.getById(getStation); |
|
|
|
SchBasePoint putPoint = pointService.getById(putStation); |
|
|
|
if (request.getGet_station_vehicle_code() == null) { |
|
|
|
if (request.getGet_station_vehicle_code() == null || request.getGet_station_vehicle_code().equals("0")) { |
|
|
|
request.setGet_station_vehicle_code(pickupPoint.getVehicle_code()); |
|
|
|
} |
|
|
|
if (request.getPut_station_vehicle_code() == null) { |
|
|
|
if (request.getPut_station_vehicle_code() == null || request.getPut_station_vehicle_code().equals("0")) { |
|
|
|
request.setPut_station_vehicle_code(putPoint.getVehicle_code()); |
|
|
|
} |
|
|
|
// 获取工单
|
|
|
@ -356,11 +367,13 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
// 插入数据
|
|
|
|
PdmBdVehicleBinding vehicleBinding = new PdmBdVehicleBinding(); |
|
|
|
vehicleBinding.setOrigin_vehicle_code(request.getGet_station_vehicle_code()); |
|
|
|
vehicleBinding.setOrigin_vehicle_type(pickupPoint.getVehicle_type()); |
|
|
|
vehicleBinding.setOrigin_vehicle_type(GeneralDefinition.STEEL_TRAY); |
|
|
|
vehicleBinding.setOrigin_qty(request.getGet_station_qty()); // 当前码垛位的数量
|
|
|
|
vehicleBinding.setTarget_vehicle_code(request.getPut_station_vehicle_code()); |
|
|
|
vehicleBinding.setTarget_vehicle_type(putPoint.getVehicle_type()); |
|
|
|
vehicleBinding.setTarget_qty(request.getPut_station_qty()); // 当前拆垛位的数量
|
|
|
|
vehicleBinding.setGet_station(request.getGet_station()); |
|
|
|
vehicleBinding.setPut_station(request.getPut_station()); |
|
|
|
if (productionTask != null) { |
|
|
|
vehicleBinding.setOrder_code(productionTask.getWorkorder_code()); |
|
|
|
} |
|
|
@ -369,7 +382,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 反馈压机残留重量*/ |
|
|
|
/** |
|
|
|
* 反馈压机残留重量 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse applyFeedbackWeight(JSONObject param) { |
|
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
@ -377,7 +392,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(applyTaskRequest.getRequestNo()); |
|
|
|
} |
|
|
|
|
|
|
|
/** 申请贴标 */ |
|
|
|
/** |
|
|
|
* 申请贴标 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse applyLabelling(JSONObject param) { |
|
|
|
// 木托盘号##物料编码##数量##吨量(单重X数量)##生产日期## todo: 成型工单号(未添加)
|
|
|
@ -399,17 +416,19 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(requestNo, MapOf.of("labelling", sb.toString())); |
|
|
|
} |
|
|
|
|
|
|
|
/** 单次放置完成 - 每块砖的信息 */ |
|
|
|
/** |
|
|
|
* 单次放置完成 - 每块砖的信息 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse applyOneGrab(JSONObject param) { |
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
|
JSONObject brickInfo = param.getJSONObject("brick_info"); |
|
|
|
BrickInfoDto brickInfoDto = brickInfo.toJavaObject(BrickInfoDto.class); |
|
|
|
BrickInfoDto brickInfoDto = param.toJavaObject(BrickInfoDto.class); |
|
|
|
baseBrickInfoService.addBrickInfo(brickInfoDto); // 添加数据
|
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
return BaseResponse.responseOk(brickInfoDto.getRequestNo()); |
|
|
|
} |
|
|
|
|
|
|
|
/** 人工排产确认 */ |
|
|
|
/** |
|
|
|
* 人工排产确认 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse orderVerify(JSONObject param) { // 执行中
|
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
@ -428,7 +447,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
} |
|
|
|
|
|
|
|
/** 工单完成 */ |
|
|
|
/** |
|
|
|
* 工单完成 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse orderFinish(JSONObject param) { // 完成
|
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
@ -447,7 +468,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
} |
|
|
|
|
|
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
|
/** |
|
|
|
* 扫码成功申请 - 判断是否静置完成 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public ApplyTaskResponse barcodeSuccessApply(JSONObject param) { |
|
|
|
ApplyTaskRequest baseRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
@ -467,7 +490,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
|
/** |
|
|
|
* 扫码成功申请 - 判断是否静置完成 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public ApplyTaskResponse isStandingFinish(ApplyTaskRequest baseRequest) { |
|
|
|
String requestNo = baseRequest.getRequestNo(); |
|
|
@ -517,6 +542,16 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
one.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue()); |
|
|
|
TaskUtils.setGroupUpdateByAcs(one); |
|
|
|
vehiclematerialgroupService.updateById(one); |
|
|
|
// 记录泥料
|
|
|
|
PdmBdMudConsumption mudConsumption = new PdmBdMudConsumption(); |
|
|
|
mudConsumption.setDevice_code(productionTask.getPoint_code()); |
|
|
|
mudConsumption.setGroup_id(one.getGroup_id()); |
|
|
|
mudConsumption.setMaterial_id(one.getMaterial_id()); |
|
|
|
mudConsumption.setWeight(one.getMaterial_weight()); |
|
|
|
mudConsumption.setCurrent_point(basePoint.getPoint_code()); |
|
|
|
mudConsumption.setWorkorder_code(productionTask.getWorkorder_code()); |
|
|
|
mudConsumption.setRaw_material_code(rawMaterialCode); |
|
|
|
mudConsumptionService.create(mudConsumption); |
|
|
|
taskResponse.setMix_number(one.getMix_times()); |
|
|
|
taskResponse.setIs_standing_finish(GeneralDefinition.YES); |
|
|
|
taskResponse.setMessage("静置完成"); |
|
|
@ -528,7 +563,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 扫码成功申请 - 入窑记录时间 */ |
|
|
|
/** |
|
|
|
* 扫码成功申请 - 入窑记录时间 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public ApplyTaskResponse recordKilnTime(ApplyTaskRequest baseRequest) { |
|
|
|
if (ObjectUtil.isEmpty(baseRequest.getVehicle_code())) { |
|
|
@ -541,6 +578,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
// 入窑记录时间
|
|
|
|
SchBaseVehiclematerialgroup groupInfo = vehiclematerialgroupService.getGroupInfo(baseRequest.getVehicle_code(), |
|
|
|
baseRequest.getVehicle_type(), GroupBindMaterialStatusEnum.BOUND.getValue()); |
|
|
|
if (ObjectUtil.isNotEmpty(groupInfo.getInto_kiln_time())) { |
|
|
|
// 如果已经记录就跳过
|
|
|
|
return ApplyTaskResponse.responseOk(baseRequest.getRequestNo()); |
|
|
|
} |
|
|
|
groupInfo.setInto_kiln_time(DateUtil.now()); |
|
|
|
if (ObjectUtil.isNotEmpty(basePoint)) { |
|
|
|
// 记录当前位置
|
|
|
@ -562,6 +603,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 压机请求要料 |
|
|
|
* |
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -569,14 +611,24 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
public BaseResponse pressRequestMaterial(JSONObject param) { |
|
|
|
// todo: 换成acs请求
|
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
|
String deviceCode = param.getString("device_code"); |
|
|
|
SchBasePoint basePoint = pointService.getById(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(basePoint)) { |
|
|
|
throw new BadRequestException("设备[" + deviceCode + "]不存在"); |
|
|
|
} |
|
|
|
// 获取设备位
|
|
|
|
SchBasePoint devicePoint = pointService.getById(basePoint.getParent_point_code()); |
|
|
|
// todo: 1、校验是否有工单,是否需要叫料
|
|
|
|
// todo: 2、通知混碾机生产泥料
|
|
|
|
// todo: 3、修改设备点位为空位,并且更新时间
|
|
|
|
PointUtils.setUpdateByAcs(devicePoint); |
|
|
|
PointUtils.clearPoint(devicePoint); |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 提前要料 |
|
|
|
* |
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -601,7 +653,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
} |
|
|
|
// 获取原材料物料
|
|
|
|
PdmBdRequestMaterialRecord requestMaterialRecord = new PdmBdRequestMaterialRecord(); |
|
|
|
requestMaterialRecord.setRecord_id(IdUtil.getSnowflake(1,1).nextIdStr()); |
|
|
|
requestMaterialRecord.setRecord_id(IdUtil.getSnowflake(1, 1).nextIdStr()); |
|
|
|
// requestMaterialRecord.setMaterial_id(workOrder.getRaw_material_id());
|
|
|
|
requestMaterialRecord.setWorkorder_id(workOrder.getWorkorder_id()); |
|
|
|
requestMaterialRecord.setDevice_code(parentPointCode); |
|
|
@ -611,7 +663,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
} |
|
|
|
|
|
|
|
/** 任务反馈 */ |
|
|
|
/** |
|
|
|
* 任务反馈 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse feedbackTaskStatus(JSONObject param) { |
|
|
|
// todo: action暂未维护
|
|
|
@ -656,7 +710,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return BaseResponse.responseOk(requestNo, "任务状态反馈成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
/** 获取组盘信息 */ |
|
|
|
/** |
|
|
|
* 获取组盘信息 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public GetPalletizeResponse getVehicleInfo(JSONObject param) { |
|
|
|
// 校验组盘信息
|
|
|
@ -678,43 +734,46 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
return GetPalletizeResponse.responseOk(palletizeRequest.getRequestNo(), palletizeDto); |
|
|
|
} |
|
|
|
|
|
|
|
/** 实时修改点位状态 */ |
|
|
|
/** |
|
|
|
* 实时修改点位状态 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public BaseResponse realTimeSetPoint(JSONObject param) { |
|
|
|
// todo: 实体错误
|
|
|
|
PutActionRequest actionRequest = param.toJavaObject(PutActionRequest.class); |
|
|
|
String requestNo = actionRequest.getRequestNo(); |
|
|
|
ApplySignalStatusRequest actionRequest = param.toJavaObject(ApplySignalStatusRequest.class); |
|
|
|
String deviceCode = actionRequest.getDevice_code(); |
|
|
|
List<SignalData> list = actionRequest.getList(); |
|
|
|
String move = null; |
|
|
|
if (ObjectUtil.isNotEmpty(actionRequest.getMove())) { |
|
|
|
move = (Integer.parseInt(actionRequest.getMove()) + 1) + ""; |
|
|
|
} |
|
|
|
String action = actionRequest.getAction(); |
|
|
|
String vehicleType = actionRequest.getVehicle_type(); |
|
|
|
if (deviceCode == null) { |
|
|
|
return BaseResponse.responseError(requestNo, "设备编码不能为空"); |
|
|
|
} |
|
|
|
String move = ""; |
|
|
|
// move 根据链表数据来
|
|
|
|
for (SignalData signalData : list) { |
|
|
|
if (signalData.getCode().equals("move")) { |
|
|
|
move = (Integer.parseInt(signalData.getValue()) + 1) + ""; |
|
|
|
} |
|
|
|
return BaseResponse.responseError(actionRequest.getRequestNo(), "设备编码不能为空"); |
|
|
|
} |
|
|
|
// 找到点位
|
|
|
|
SchBasePoint schBasePoint = pointService.getById(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(schBasePoint)) { |
|
|
|
return BaseResponse.responseError(requestNo, "设备: [" + deviceCode + "]未找到"); |
|
|
|
return BaseResponse.responseError(actionRequest.getRequestNo(), "设备: [" + deviceCode + "]未找到"); |
|
|
|
} |
|
|
|
// 点位的状态如果是null,就默认是空位置
|
|
|
|
String pointStatus = ObjectUtil.isNotEmpty(schBasePoint.getPoint_status()) |
|
|
|
? schBasePoint.getPoint_status() |
|
|
|
: PointStatusEnum.EMPTY_POINT.getCode(); |
|
|
|
if ((pointStatus.equals(PointStatusEnum.FULL_POINT.getCode()) |
|
|
|
&& move.equals(PointStatusEnum.EMPTY_VEHICLE.getCode())) || (pointStatus.equals(move))) { // 不做操作
|
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
return BaseResponse.responseOk(actionRequest.getRequestNo()); |
|
|
|
} |
|
|
|
// 载具类型不为空,并且不是0的情况,lmsVehicleTypeShift:转成lms的载具类型
|
|
|
|
if (ObjectUtil.isNotEmpty(vehicleType) && !vehicleType.equals(GeneralDefinition.NO)) { |
|
|
|
schBasePoint.setVehicle_type(TaskUtils.toLmsVehicleTypeShift(vehicleType)); |
|
|
|
} |
|
|
|
if (vehicleType != null) { |
|
|
|
schBasePoint.setVehicle_type(vehicleType); |
|
|
|
if (ObjectUtil.isNotEmpty(action)) { |
|
|
|
schBasePoint.setIs_used(action.equals(GeneralDefinition.YES)); |
|
|
|
} |
|
|
|
schBasePoint.setPoint_status(move); |
|
|
|
// move为空则表示无货
|
|
|
|
schBasePoint.setPoint_status(move == null ? PointStatusEnum.EMPTY_POINT.getCode() : move); |
|
|
|
PointUtils.setUpdateByAcs(schBasePoint); |
|
|
|
pointService.updateById(schBasePoint); |
|
|
|
return BaseResponse.responseOk(requestNo); |
|
|
|
return BaseResponse.responseOk(actionRequest.getRequestNo()); |
|
|
|
} |
|
|
|
} |
|
|
|