| | |
| | | |
| | | <!-- 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} |
| | |
| | | shop_product_comment c |
| | | LEFT JOIN shop_product p ON c.product_id = p.id |
| | | LEFT JOIN shop_order o ON c.order_id = o.id |
| | | LEFT JOIN biz_user b ON c.user_id = b.open_id |
| | | LEFT JOIN sys_vip_info b ON c.user_id = b.openid |
| | | <where> |
| | | <include refid="where_sql"></include> |
| | | </where> |
| | |
| | | shop_product_comment c |
| | | LEFT JOIN shop_product p ON c.product_id = p.id |
| | | LEFT JOIN shop_order o ON c.order_id = o.id |
| | | LEFT JOIN biz_user b ON c.user_id = b.open_id |
| | | LEFT JOIN sys_vip_info b ON c.user_id = b.id |
| | | <where> |
| | | <include refid="where_sql"></include> |
| | | </where> |
| | |
| | | shop_product_comment c |
| | | LEFT JOIN shop_product p ON c.product_id = p.id |
| | | LEFT JOIN shop_order o ON c.order_id = o.id |
| | | LEFT JOIN biz_user b ON c.user_id = b.open_id |
| | | LEFT JOIN sys_vip_info b ON c.user_id = b.id |
| | | <where> |
| | | |
| | | |
| | | <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} |
| | |
| | | shop_product_comment c |
| | | LEFT JOIN shop_product p ON c.product_id = p.id |
| | | LEFT JOIN shop_order o ON c.order_id = o.id |
| | | LEFT JOIN biz_user b ON c.user_id = b.open_id |
| | | LEFT JOIN sys_vip_info b ON c.user_id = b.openid |
| | | <where> |
| | | and c.product_id = #{record.productId} |
| | | AND p.del_flag = 2 |
| | |
| | | shop_product_comment c |
| | | LEFT JOIN shop_product p ON c.product_id = p.id |
| | | LEFT JOIN shop_order o ON c.order_id = o.id |
| | | LEFT JOIN biz_user b ON c.user_id = b.open_id |
| | | LEFT JOIN sys_vip_info b ON c.user_id = b.openid |
| | | <where> |
| | | <if test="record!=null"> |
| | | <if test="(record.productId!=null and record.productId!='') or (record.productId!='' and record.productId==0) "> |