评价数量展示异常问题处理

This commit is contained in:
Chopper 2022-04-19 10:18:25 +08:00
parent 9dc01f6057
commit 89c5c2dd83
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import lombok.Data;
@Data @Data
public class EvaluationNumberVO { public class EvaluationNumberVO {
@ApiModelProperty(value = "全部商品") @ApiModelProperty(value = "全部评价")
private Integer all; private Integer all;
@ApiModelProperty(value = "好评数量") @ApiModelProperty(value = "好评数量")

View File

@ -38,7 +38,7 @@ public interface MemberEvaluationMapper extends BaseMapper<MemberEvaluation> {
* @param goodsId 商品ID * @param goodsId 商品ID
* @return 会员评价 * @return 会员评价
*/ */
@Select("select grade,count(1) as num from li_member_evaluation Where goods_id=#{goodsId} and status='OPEN' GROUP BY grade") @Select("select grade,count(1) as num from li_member_evaluation Where goods_id=#{goodsId} and status='OPEN' and delete_flag = false GROUP BY grade")
List<Map<String, Object>> getEvaluationNumber(String goodsId); List<Map<String, Object>> getEvaluationNumber(String goodsId);
/** /**