| | |
| | | @ApiOperation(value = "通过品牌id查询镜片系列列表-添加销售订单用 过滤没有生成库存的系列") |
| | | @GetMapping(value = "/seriesListOrder") |
| | | public ApiResult<List<TLensSeries>> seriesListOrder(Integer brandId) { |
| | | List<TLensGoods> list = lensGoodsService.lambdaQuery().list(); |
| | | List<Integer> collect = list.stream().map(TLensGoods::getSeriesId).distinct().collect(Collectors.toList()); |
| | | if (list.isEmpty()){ |
| | | return ApiResult.success(new ArrayList<TLensSeries>()); |
| | | } |
| | | |
| | | List<TLensSeries> lensSeries = lensSeriesService.lambdaQuery().eq(TLensSeries::getBrandId, brandId) |
| | | .in(TLensSeries::getId,collect).list(); |
| | | .list(); |
| | | return ApiResult.success(lensSeries); |
| | | } |
| | | @ApiOperation(value = "通过系列id查询球/非球 返回参数1为球 2非球 3双飞") |