Browse Source

bugid-1283 删除评价后,则订单为已评价

zhangchen 1 month ago
parent
commit
fc4d289fd3

+ 1 - 1
alien-entity/src/main/java/shop/alien/mapper/StoreCommentMapper.java

@@ -147,6 +147,6 @@ public interface StoreCommentMapper extends BaseMapper<StoreComment> {
             "AND luo.coupon_type = 2 " +
             "AND luo.delete_flag = 0 " +
             "AND luo.user_id = #{userId} " +
-            "AND luo.id IN (SELECT business_id FROM store_comment WHERE business_type = 5 AND user_id = #{userId})")
+            "AND luo.id IN (SELECT business_id FROM store_comment WHERE business_type = 5 AND user_id = #{userId} AND delete_flag = 0)")
     IPage<LifeUserOrderCommentVo> getCommentOrderYPJPage(IPage<LifeUserOrderCommentVo> page, @Param("userId") String userId);
 }