Browse Source

组盘不存在直接反馈成功

master
psh 8 months ago
parent
commit
01fa0a83eb
  1. 3
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java

3
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java

@ -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,6 +79,7 @@ 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()));
if(ObjectUtil.isNotEmpty(groupEntity)) {
groupEntity.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue()); groupEntity.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue());
groupEntity.setUpdate_id(GeneralDefinition.ACS_ID); groupEntity.setUpdate_id(GeneralDefinition.ACS_ID);
groupEntity.setUpdate_name(GeneralDefinition.ACS_NAME); groupEntity.setUpdate_name(GeneralDefinition.ACS_NAME);
@ -91,6 +93,7 @@ public class PdaServiceImpl implements PdaService {
pointObj.setVehicle_qty(pointObj.getVehicle_qty() - 1); pointObj.setVehicle_qty(pointObj.getVehicle_qty() - 1);
pointService.update(pointObj); pointService.update(pointObj);
//清空组盘表的信息 //清空组盘表的信息
}
return PdaResponseVo.pdaResultOk("清空物料信息请求成功"); return PdaResponseVo.pdaResultOk("清空物料信息请求成功");
} }
@Override @Override

Loading…
Cancel
Save