Browse Source

备货扫描BUG修复

pre-production
汤建军 2 weeks ago
parent
commit
7c05a4f5aa
  1. 11
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

11
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

@ -5919,7 +5919,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
boolean b = this.judgeIsPickingStaff(AuthUtil.getUser());
if (!b) {
return Resp.scanFail("当前操作人无此操作权限","当前操作人无此操作权限");
}else {
} else {
if (!stockupEntity.getForkliftId().equals(AuthUtil.getUserId())){
return Resp.scanFail("与任务指派拣货员不一致","与任务指派拣货员不一致");
}
@ -5992,7 +5992,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
}
}
return R.fail("取消成功"+sum+"件");
return Resp.scanSuccess("取消成功"+sum+"件","取消成功"+sum+"件");
}
private List<DistributionAppStockUpZeroOrderDetailVO> handleStockupBillZeroOrder(DistrilbutionBillLadingEntity billLadingEntity) {
@ -6553,6 +6553,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
.eq(DistrilbutionBillPackageEntity::getPacketBarCode, packetBarCode)
.ne(DistrilbutionBillPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue())
);
if(packageEntityList.isEmpty()){
return Resp.scanFail("不在此备货计划中","不在此备货计划中");
}
if (packageEntityList.size() > 1) {
return Resp.scanFail("当前包件计划重复", "当前包件计划重复");
}
@ -6653,8 +6656,8 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
.eq(DistributionReservationPackageEntity::getPacketBarCode, packetBarCode)
.ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue())
);
if (!packageEntityList.isEmpty()) {
return Resp.scanFail("无此备货计划","无此备货计划");
if (packageEntityList.isEmpty()) {
return Resp.scanFail("不在此备货计划中","不在此备货计划中");
}
if (packageEntityList.size() > 1) {
return Resp.scanFail("当前包件计划重复", "当前包件计划重复");

Loading…
Cancel
Save