浏览代码

bugfix:评价删除后,则订单为已评价

zhangchen 1 月之前
父节点
当前提交
20b65d2165
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      alien-entity/src/main/java/shop/alien/mapper/StoreCommentMapper.java

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

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