二维码标准箱完善校验
This commit is contained in:
parent
82669b3136
commit
2cfd473981
|
|
@ -96,9 +96,10 @@ public class BmQrBoxServiceImpl implements BmQrBoxService {
|
||||||
List<BmQrBoxInfo> boxBindList = bmQrBoxMapper.getBoxBindList(boxInfoBindVo.getBoxId());
|
List<BmQrBoxInfo> boxBindList = bmQrBoxMapper.getBoxBindList(boxInfoBindVo.getBoxId());
|
||||||
boxBindList.removeIf(Objects::isNull);
|
boxBindList.removeIf(Objects::isNull);
|
||||||
boxInfoBindVo.setBindMaTotal(boxBindList.size());
|
boxInfoBindVo.setBindMaTotal(boxBindList.size());
|
||||||
boxBindList.removeIf(o -> o.getMaStatus() == null);
|
boxBindList.removeIf(item -> item.getMaStatus() == null);
|
||||||
boxBindList.removeIf(info -> !info.getMaStatus().equals(MaMachineStatusEnum.IN_STORE.getStatus().toString()) &&
|
boxBindList.removeIf(item -> !item.getMaStatus().equals(MaMachineStatusEnum.IN_STORE.getStatus().toString()) &&
|
||||||
!info.getMaStatus().equals(MaMachineStatusEnum.NEW_PURCHASE.getStatus().toString()));
|
!item.getMaStatus().equals(MaMachineStatusEnum.NEW_PURCHASE.getStatus().toString()));
|
||||||
|
boxBindList.removeIf(item -> item.getMaTypeId() == null || !Objects.equals(item.getMaTypeId(), bmQrBoxInfo.getMaTypeId()));
|
||||||
boxInfoBindVo.setSuccessMaTotal(boxBindList.size());
|
boxInfoBindVo.setSuccessMaTotal(boxBindList.size());
|
||||||
return AjaxResult.success(boxInfoBindVo);
|
return AjaxResult.success(boxInfoBindVo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue