姜友瑶
2022-05-17 b63b60288025c131b7d6023d444417ab5b35e2c1
zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductCommentDao.xml
@@ -88,7 +88,6 @@
   
   <!-- where sql -->
   <sql id="where_sql">
       <if test="record!=null">
         <if test="(record.comId!=null and record.comId!='') or  (record.comId!='' and record.comId==0)  ">
            and com_id  = #{record.comId} 
@@ -381,6 +380,8 @@
         LEFT JOIN shop_order o ON c.order_id = o.id
         LEFT JOIN sys_vip_info b ON c.user_id = b.id
      <where>
         and (b.IS_DELETE is null or b.IS_DELETE = '')
         <if test="record!=null">
            <if test="(record.userId!=null and record.userId!='') or  (record.userId!='' and record.userId==0)  ">
               and c.user_id = #{record.userId}
@@ -431,7 +432,7 @@
         AND p.del_flag = 2
         AND o.del_flag = 2
         AND c.del_flag = 2
         AND c.com_audit_status = 1
         AND c.com_audit_status = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
      </where>
      order by c.create_time desc
      <if test="record.offset >=0  and record.limit >0">