| | |
| | | } |
| | | |
| | | @ApiOperation(value = "镜架-根据品牌id查询对应库存") |
| | | @GetMapping(value = "/getCountByBrandId") |
| | | @PostMapping(value = "/getCountByBrandId") |
| | | public ApiResult getCountByBrandId(Integer id,Integer storeId) { |
| | | List<Integer> collect = modelService.lambdaQuery().eq(TModel::getBrandId, id) |
| | | .list().stream().map(TModel::getId).distinct().collect(Collectors.toList()); |
| | |
| | | return ApiResult.success(i); |
| | | } |
| | | @ApiOperation(value = "镜架-根据材质id查询对应库存") |
| | | @GetMapping(value = "/getCountByMaterialId") |
| | | @PostMapping(value = "/getCountByMaterialId") |
| | | public ApiResult getCountByMaterialId(Integer id,Integer storeId) { |
| | | List<Integer> collect = modelService.lambdaQuery().eq(TModel::getMaterialId, id) |
| | | .list().stream().map(TModel::getId).distinct().collect(Collectors.toList()); |