|
|
@@ -69,9 +69,9 @@ public interface StoreCommentMapper extends BaseMapper<StoreComment> {
|
|
|
*
|
|
|
* @param businessType 业务类型
|
|
|
* @param storeId 门店id
|
|
|
- * @return List<StoreCommentCountVo>
|
|
|
+ * @return List<StoreCommentVo>
|
|
|
*/
|
|
|
- @Select("SELECT count( id ) commitCount, business_id as businessId, id FROM store_comment WHERE business_type = #{businessType} " +
|
|
|
+ @Select("SELECT count( id ) commitCount, business_id as businessId FROM store_comment WHERE business_type = #{businessType} " +
|
|
|
"AND reply_id IS NULL AND (#{storeId} IS NULL OR store_id = #{storeId}) GROUP BY business_id")
|
|
|
List<StoreCommentVo> getRootCommitCount(@Param("businessType") Integer businessType, @Param("storeId") Integer storeId);
|
|
|
|
|
|
@@ -80,9 +80,9 @@ public interface StoreCommentMapper extends BaseMapper<StoreComment> {
|
|
|
*
|
|
|
* @param businessType 业务类型
|
|
|
* @param storeId 门店id
|
|
|
- * @return List<StoreCommentCountVo>
|
|
|
+ * @return List<StoreCommentVo>
|
|
|
*/
|
|
|
- @Select("SELECT count( id ) commitCount, reply_id as replyId, id FROM store_comment WHERE business_type = #{businessType} " +
|
|
|
+ @Select("SELECT count( id ) commitCount, reply_id as replyId FROM store_comment WHERE business_type = #{businessType} " +
|
|
|
"AND reply_id IS NOT NULL AND (#{storeId} IS NULL OR store_id = #{storeId}) GROUP BY reply_id")
|
|
|
List<StoreCommentVo> getSonCommitCount(@Param("businessType") Integer businessType, @Param("storeId") Integer storeId);
|
|
|
|