组盘不存在直接反馈成功
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package org.nl.wms.pda.service.impl;
|
package org.nl.wms.pda.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -78,19 +79,21 @@ public class PdaServiceImpl implements PdaService {
|
|||||||
.eq(SchBaseVehiclematerialgroup::getVehicle_code, vehicleCode)
|
.eq(SchBaseVehiclematerialgroup::getVehicle_code, vehicleCode)
|
||||||
.eq(SchBaseVehiclematerialgroup::getGroup_bind_material_status,
|
.eq(SchBaseVehiclematerialgroup::getGroup_bind_material_status,
|
||||||
GroupBindMaterialStatusEnum.BOUND.getValue()));
|
GroupBindMaterialStatusEnum.BOUND.getValue()));
|
||||||
groupEntity.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue());
|
if(ObjectUtil.isNotEmpty(groupEntity)) {
|
||||||
groupEntity.setUpdate_id(GeneralDefinition.ACS_ID);
|
groupEntity.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue());
|
||||||
groupEntity.setUpdate_name(GeneralDefinition.ACS_NAME);
|
groupEntity.setUpdate_id(GeneralDefinition.ACS_ID);
|
||||||
groupEntity.setUpdate_time(DateUtil.now());
|
groupEntity.setUpdate_name(GeneralDefinition.ACS_NAME);
|
||||||
vehiclematerialgroupService.update(groupEntity);
|
groupEntity.setUpdate_time(DateUtil.now());
|
||||||
SchBasePoint pointObj=pointService.getById(groupEntity.getPoint_code());
|
vehiclematerialgroupService.update(groupEntity);
|
||||||
if(pointObj.getVehicle_code().contains(",")){
|
SchBasePoint pointObj = pointService.getById(groupEntity.getPoint_code());
|
||||||
vehicleCode+=',';
|
if (pointObj.getVehicle_code().contains(",")) {
|
||||||
|
vehicleCode += ',';
|
||||||
|
}
|
||||||
|
pointObj.setVehicle_code(pointObj.getVehicle_code().replace(vehicleCode, ""));
|
||||||
|
pointObj.setVehicle_qty(pointObj.getVehicle_qty() - 1);
|
||||||
|
pointService.update(pointObj);
|
||||||
|
//清空组盘表的信息
|
||||||
}
|
}
|
||||||
pointObj.setVehicle_code(pointObj.getVehicle_code().replace(vehicleCode,""));
|
|
||||||
pointObj.setVehicle_qty(pointObj.getVehicle_qty()-1);
|
|
||||||
pointService.update(pointObj);
|
|
||||||
//清空组盘表的信息
|
|
||||||
return PdaResponseVo.pdaResultOk("清空物料信息请求成功");
|
return PdaResponseVo.pdaResultOk("清空物料信息请求成功");
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user