|
|
|
@@ -26,13 +26,12 @@ |
|
|
|
<result column="act_record" jdbcType="INTEGER" property="actRecord"/> |
|
|
|
<result column="score_date" jdbcType="TIMESTAMP" property="scoreDate"/> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status"/> |
|
|
|
<result column="tag_scan_time" jdbcType="TIMESTAMP" property="tagScanTime"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
distinct wcubi.`id`,wcubi.`phone`,wcubi.`birthdate`,wcubi.`education`,wcubi.`sex`,wcubi.`email`, |
|
|
|
wcubi.`address`,wcubi.`poins`,wcubi.`tag_id`,wcubi.`create_date`,wcubi.`update_date`, |
|
|
|
wcubi.`final_tenant_id`,wcubi.`name`,wcubi.`nick_name`,wcubi.`tag_scan_time`, |
|
|
|
wcubi.`final_tenant_id`,wcubi.`name`,wcubi.`nick_name`, |
|
|
|
wcubi.`avatar_url`,wcubi.`credit`,wcubi.`active_time`,wcubi.`login_count`,wcubi.`act_record` |
|
|
|
,(select level from wx_level_config |
|
|
|
where poins >= points and tenant_id=wcubi.final_tenant_id |
|
|
|
@@ -40,7 +39,7 @@ |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="allSimpleColumns"> |
|
|
|
`id`,`phone`,`birthdate`,`education`,`sex`,`email`,`address`,`poins`,`tag_id`,`tag_scan_time`, |
|
|
|
`id`,`phone`,`birthdate`,`education`,`sex`,`email`,`address`,`poins`,`tag_id`, |
|
|
|
`create_date`,`update_date`,`tenant_id`,`parent_tenant_id`,`name`,`nick_name`,`credit`,`active_time`,`act_record` |
|
|
|
</sql> |
|
|
|
|
|
|
|
@@ -108,11 +107,7 @@ |
|
|
|
</if> |
|
|
|
<if test=" null != startTime and null!=endTime"> |
|
|
|
and wcubi.`create_date` between #{startTime} and #{endTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != scanStartTime and null!=scanEndTime"> |
|
|
|
and wcubi.`tag_scan_time` between #{scanStartTime} and #{scanEndTime} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != activeStartTime and null!=activeEndTime"> |
|
|
|
and wcubi.`active_time` between #{activeStartTime} and #{activeEndTime} |
|
|
|
@@ -210,10 +205,6 @@ |
|
|
|
</if> |
|
|
|
<if test=" null != basicInfo.startTime and null != basicInfo.endTime"> |
|
|
|
and wcubi.`create_date` between #{basicInfo.startTime} and #{basicInfo.endTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != basicInfo.scanStartTime and null!=basicInfo.scanEndTime"> |
|
|
|
and wcubi.`tag_scan_time` between #{basicInfo.scanStartTime} and #{basicInfo.scanEndTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != basicInfo.activeStartTime and null!=basicInfo.activeEndTime"> |
|
|
|
@@ -406,7 +397,7 @@ |
|
|
|
|
|
|
|
<sql id="allColumnsOfScoreList"> |
|
|
|
distinct cub.id,cub.phone,cub.birthdate,cub.education,cub.sex,cub.email,cub.address,cub.poins,cub.tag_id, |
|
|
|
cub.create_date,cub.update_date,cub.name,cub.level,cub.nick_name,cub.score_date,cub.final_tenant_id,cub.tag_scan_time |
|
|
|
cub.create_date,cub.update_date,cub.name,cub.level,cub.nick_name,cub.score_date,cub.final_tenant_id |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findListByScore" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultMap="BaseResultMap"> |
|
|
|
@@ -621,12 +612,11 @@ |
|
|
|
<result column="credit" jdbcType="INTEGER" property="credit"/> |
|
|
|
<result column="tags" jdbcType="VARCHAR" property="tags"/> |
|
|
|
<result column="active_time" jdbcType="TIMESTAMP" property="activeTime"/> |
|
|
|
<result column="tag_scan_time" jdbcType="TIMESTAMP" property="tagScanTime"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allVoColumns"> |
|
|
|
distinct cu.`id`,cu.`phone`,cu.`birthdate`,cu.`education`,cu.`sex`,cu.`email`,cu.`address`,cu.`poins`,cu.`tag_id`, |
|
|
|
cu.`create_date`,cu.`update_date`,cu.`name`,cu.`level`,cu.`nick_name`,cu.`tag_scan_time`, |
|
|
|
cu.`create_date`,cu.`update_date`,cu.`name`,cu.`level`,cu.`nick_name`, |
|
|
|
cut.`tags`,cu.`credit`,cu.`active_time`,cu.`act_record`,cu.`final_tenant_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
@@ -692,10 +682,6 @@ |
|
|
|
and cu.`create_date` between #{startTime} and #{endTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != scanStartTime and null!=scanEndTime"> |
|
|
|
and wcubi.`tag_scan_time` between #{scanStartTime} and #{scanEndTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != activeStartTime and null!=activeEndTime"> |
|
|
|
and wcubi.`active_time` between #{activeStartTime} and #{activeEndTime} |
|
|
|
</if> |
|
|
|
@@ -772,10 +758,6 @@ |
|
|
|
and cu.`create_date` between #{basicInfo.startTime} and #{basicInfo.endTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != basicInfo.scanStartTime and null!=basicInfo.scanEndTime"> |
|
|
|
and wcubi.`tag_scan_time` between #{basicInfo.scanStartTime} and #{basicInfo.scanEndTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != basicInfo.activeStartTime and null!=basicInfo.activeEndTime"> |
|
|
|
and wcubi.`active_time` between #{basicInfo.activeStartTime} and #{basicInfo.activeEndTime} |
|
|
|
</if> |
|
|
|
|