fix:自动分配状态判断错误
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user