fix:自动分配状态判断错误

This commit is contained in:
zhangzq
2026-08-05 09:03:39 +08:00
parent b5d10b26f1
commit 6137910e81

View File

@@ -441,7 +441,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
final List<PmDemand> pmDemands = this.listByIds(ids); final List<PmDemand> pmDemands = this.listByIds(ids);
final List<PmDemand> needAllcation = new ArrayList<>(); final List<PmDemand> needAllcation = new ArrayList<>();
for (PmDemand pmDemand : pmDemands) { for (PmDemand pmDemand : pmDemands) {
if (pmDemand.getStatus().equals(DemandStatus.CREATE.getValue())){ if (!pmDemand.getStatus().equals(DemandStatus.CREATE.getValue())){
throw new BadRequestException("当前单子不是生成状态无法勾选"); throw new BadRequestException("当前单子不是生成状态无法勾选");
} }
final List<DemandInventryDto> demandInventryDtos = this.queryInventory(pmDemand.getSku_code()); final List<DemandInventryDto> demandInventryDtos = this.queryInventory(pmDemand.getSku_code());