出库时,条码重复过滤

main
Comair 1 year ago
parent e62cdaccc9
commit 32caf8bc88
  1. 9
      shkj-wms/src/main/java/com/shkj/wms/outbound/SchedulingOutboundInfo.java

@ -91,7 +91,14 @@ public class SchedulingOutboundInfo {
// 根据vin获取对应的出库任务数据——主要是过点时间
BaseBarcodesOutQueryBo baseBarcodesOutQueryBo = new BaseBarcodesOutQueryBo();
baseBarcodesOutQueryBo.setVin(vin);
BaseBarcodesOut baseBarcodesOut = iBaseBarcodesOutService.getOne(new LambdaQueryWrapper<BaseBarcodesOut>().eq(BaseBarcodesOut::getVin,vin).isNull(BaseBarcodesOut::getIs_cancel));
BaseBarcodesOut baseBarcodesOut = iBaseBarcodesOutService.getOne(
new LambdaQueryWrapper<BaseBarcodesOut>().eq(BaseBarcodesOut::getVin,vin)
.isNull(BaseBarcodesOut::getIs_cancel).last("limit 1"))
;
if (baseBarcodesOut == null){
log.info("vin已出庫");
return;
}
// 通过过点时间获取等于该时间或者大于过点时间的任务数据 只获取一条数据
baseBarcodesOutQueryBo = new BaseBarcodesOutQueryBo();
baseBarcodesOutQueryBo.setTraverseDate(baseBarcodesOut.getTraverseDate());

Loading…
Cancel
Save