|
|
@@ -62,6 +62,7 @@
|
|
|
<result column="next_follow_time" property="nextFollowTime" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="annex_paths" property="annexPaths" typeHandler="JsonTypeHandler"/>
|
|
|
<result column="measure_status" property="measureStatus"/>
|
|
|
+ <result column="measure_status_name" property="measureStatusName"/>
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
|
@@ -293,11 +294,19 @@
|
|
|
tmo.org_name AS "orgName",
|
|
|
tms.staff_name AS "staffName",
|
|
|
tmc.follow_count AS follow_count,
|
|
|
+ <if test="measureStatus != null and measureStatus != ''">
|
|
|
+ tcmr.measure_status AS "measureStatus",
|
|
|
+ tdk4.kind_name_i18n ->> #{i18n} AS "measure_status_name",
|
|
|
+ </if>
|
|
|
tdk1.kind_name_i18n ->> #{i18n} AS "follow_status_name",
|
|
|
tdk2.kind_name_i18n ->> #{i18n} AS intention_name,
|
|
|
tdk3.kind_name_i18n ->> #{i18n} AS stay_time_len_name
|
|
|
|
|
|
FROM dkic_b.t_crm_cus_follow tccf
|
|
|
+ <if test="measureStatus != null and measureStatus != ''">
|
|
|
+ LEFT JOIN dkic_b.t_crm_measure_receipt tcmr ON tcmr.cus_id = tccf.cus_id and tcmr.measure_status = #{measureStatus}
|
|
|
+ LEFT JOIN sys.t_data_kind tdk4 on tdk4.kind_code = tcmr.measure_status
|
|
|
+ </if>
|
|
|
LEFT JOIN dkic_b.t_mst_customer tmc ON tmc.cus_id = tccf.cus_id
|
|
|
LEFT JOIN dkic_b.t_mst_org tmo on tmo.org_id = tccf.follow_org
|
|
|
LEFT JOIN dkic_b.t_mst_staff tms on tms.staff_id = tccf.follow_staff
|
|
|
@@ -333,7 +342,7 @@
|
|
|
LEFT JOIN sys.t_data_kind tdk1 on tdk1.kind_code = tccf.follow_status
|
|
|
|
|
|
<include refid="Condition_Join"/>
|
|
|
-
|
|
|
+ ORDER BY tccf.op_create_time DESC
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询表t_crm_cus_follow,(条件查询)个数 -->
|