|
|
@@ -115,10 +115,10 @@ public interface StoreCommentMapper extends BaseMapper<StoreComment> {
|
|
|
StoreCommitPercentVo getCommentByStoreId(Integer storeId);
|
|
|
|
|
|
@Select("SELECT " +
|
|
|
- "SUM( score ) score," +
|
|
|
- "SUM( taste_score ) tasteScore," +
|
|
|
- "SUM( en_score ) enScore," +
|
|
|
- "SUM( service_score ) serviceScore," +
|
|
|
+ "ifnull(SUM( score ),0) score," +
|
|
|
+ "ifnull(SUM( taste_score ),0) tasteScore," +
|
|
|
+ "ifnull(SUM( en_score ),0) enScore," +
|
|
|
+ "ifnull(SUM( service_score ),0) serviceScore," +
|
|
|
"COUNT(0) total " +
|
|
|
"FROM" +
|
|
|
"`store_comment` " +
|