空托出库时,清理库位状态位空闲

main
judy 1 year ago
parent 39b08247cb
commit 49081454a9
  1. 7
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java

@ -1273,9 +1273,12 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl<BusinOutInPlanMapper,
log.info("获取的库存明细Id:"+sysStockDetail.getId()); log.info("获取的库存明细Id:"+sysStockDetail.getId());
boolean b = sysStockDetailService.removeById(sysStockDetail.getId()); boolean b = sysStockDetailService.removeById(sysStockDetail.getId());
if (b){ if (b){
log.info("托盘出库清理成功"); log.info("托盘出库清理成功"+sysStockDetail.getContainerCode());
//空托出库时,把货位状态改为空闲
baseLocationVo.setLocationStatus(LocationStausEnum.FREE.getValue());
baseLocationService.updateById(baseLocationVo);
}else { }else {
log.info("托盘出库清理失败"); log.info("托盘出库清理失败"+sysStockDetail.getContainerCode());
} }
} }
} }

Loading…
Cancel
Save