|  |  | 
 |  |  |         return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentByGoodsId(queryDto)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "获取商品评价等级数量", notes = "获取商品评价等级数量") | 
 |  |  |     @ApiResponses({ | 
 |  |  |             @ApiResponse(code = 200, message = "success", response = MallGoodsCommentVo.class) | 
 |  |  |     }) | 
 |  |  |     @GetMapping(value = "/commentLevelByGoodsId/{id}") | 
 |  |  |     public FebsResponse commentLevelByGoodsId(@PathVariable("id") Long id) { | 
 |  |  |         return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentLevelByGoodsId(id)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "配送设置", notes = "配送设置") | 
 |  |  |     @ApiResponses({ | 
 |  |  |             @ApiResponse(code = 200, message = "success", response = ApiMallGoodsDeliveryVo.class) | 
 
 |  |  | 
 |  |  |     IPage<MallGoodsCommentVo> selectMallGoodsCommentListQueryInPage(Page<MallGoodsCommentVo> page,  @Param("record")MallGoodsComment mallGoodsComment); | 
 |  |  |  | 
 |  |  |     IPage<DataDictionaryCustom> getDeliveryHomeListInPage(Page<DataDictionaryCustom> page, @Param("record")AdminHomeDeliverySettingVo adminHomeDeliverySettingVo); | 
 |  |  |  | 
 |  |  |     MallGoodsCommentVo findMallGoodsCommentLevelByGoodsId(@Param("id")Long id); | 
 |  |  | } | 
 
 |  |  | 
 |  |  |     IPage<MallGoodsCommentVo> findMallGoodsCommentByGoodsId(ApiMallGoodsCommentDto queryDto); | 
 |  |  |  | 
 |  |  |     ApiMallGoodsDeliveryVo findDeliverySetting(); | 
 |  |  |  | 
 |  |  |     MallGoodsCommentVo findMallGoodsCommentLevelByGoodsId(Long id); | 
 |  |  | } | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         return apiMallGoodsDeliveryVo; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public MallGoodsCommentVo findMallGoodsCommentLevelByGoodsId(Long id) { | 
 |  |  |         return this.baseMapper.findMallGoodsCommentLevelByGoodsId(id); | 
 |  |  |     } | 
 |  |  | } | 
 
 |  |  | 
 |  |  |     <select id="selectMallGoodsCommentListQueryInPage" resultType="cc.mrbird.febs.mall.vo.MallGoodsCommentVo"> | 
 |  |  |         select | 
 |  |  |         a.*, | 
 |  |  |         (select count(z.id) from mall_goods_comment z where z.goods_id=#{record.goodsId} and a.star <![CDATA[ > ]]> 4) greatNum, | 
 |  |  |         (select count(z.id) from mall_goods_comment z where z.goods_id=#{record.goodsId} | 
 |  |  |                                                         and (a.star <![CDATA[ >= ]]> 3 and a.star <![CDATA[ <= ]]> 4)) goodNum, | 
 |  |  |         (select count(z.id) from mall_goods_comment z where z.goods_id=#{record.goodsId} and (a.star <![CDATA[ < ]]> 3 )) badNum, | 
 |  |  |         b.name name, | 
 |  |  |         b.avatar avatar | 
 |  |  |         from mall_goods_comment a | 
 |  |  | 
 |  |  |             a.CREATED_TIME asc | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     <select id="findMallGoodsCommentLevelByGoodsId" resultType="cc.mrbird.febs.mall.vo.MallGoodsCommentVo"> | 
 |  |  |         select | 
 |  |  |             (select count(z.id) from mall_goods_comment z where z.goods_id = #{id} and z.star <![CDATA[ > ]]> 4) greatNum, | 
 |  |  |             (select count(z.id) from mall_goods_comment z where z.goods_id = #{id} | 
 |  |  |                                                             and (z.star <![CDATA[ >= ]]> 3 and z.star <![CDATA[ <= ]]> 4)) goodNum, | 
 |  |  |             (select count(z.id) from mall_goods_comment z where z.goods_id = #{id} and (z.star <![CDATA[ < ]]> 3 )) badNum | 
 |  |  |         from mall_goods_comment a where a.goods_id = #{id} | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | </mapper> |