|
@@ -31,7 +31,8 @@
|
|
|
<result column="updatetime" jdbcType="INTEGER" property="updatetime"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend,
|
|
|
+ id
|
|
|
+ , openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend,
|
|
|
subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, vip_endtime,
|
|
|
register_ip, country, area, province, city, isp, channel_id, `state`, createtime,
|
|
|
updatetime
|
|
@@ -84,7 +85,7 @@
|
|
|
<if test="tag!=null and tag!='-1'">
|
|
|
and (
|
|
|
tag like CONCAT(#{tag}, ',%')
|
|
|
- or tag like CONCAT('%,',#{tag})
|
|
|
+ or tag like CONCAT('%,',#{tag})
|
|
|
or tag like CONCAT('%,',#{tag}, ',%')
|
|
|
)
|
|
|
</if>
|
|
@@ -98,9 +99,9 @@
|
|
|
and kandian >= #{kandian_min}
|
|
|
</if>
|
|
|
<if test="subscribe_time!=null and subscribe_time!='-1'">
|
|
|
- and subscribe_time >= #{subscribe_time}
|
|
|
+ and subscribe_time >= #{subscribe_time}
|
|
|
</if>
|
|
|
- and operate_time < (UNIX_TIMESTAMP(NOW()) - 172800)
|
|
|
+ and operate_time < (UNIX_TIMESTAMP(NOW()) - 172800)
|
|
|
|
|
|
</trim>
|
|
|
|