评价数量展示异常问题处理
This commit is contained in:
parent
9dc01f6057
commit
89c5c2dd83
@ -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 = "好评数量")
|
||||||
|
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user