Commit 61b6cd79 authored by 徐州's avatar 徐州

修改test數據庫

parent 64e2a5af
...@@ -1530,21 +1530,22 @@ ...@@ -1530,21 +1530,22 @@
starCustomer = 0 starCustomer = 0
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.isShowInPlat">
<isNotEmpty prepend="AND" property="searchFilters.isPtStar">
<![CDATA[ <![CDATA[
c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value# star_pt_customer = 1
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.starCustomer"> <isNotEmpty prepend="AND" property="searchFilters.isNotPtStar">
<![CDATA[ <![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value# star_pt_customer = 0
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotNull prepend="AND" property="searchFilters.isHandover"> <isNotEmpty prepend="AND" property="searchFilters.isShowInPlat">
<![CDATA[ <![CDATA[
isHandover $searchFilters.isHandover.operation$ #searchFilters.isHandover.value# c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value#
]]> ]]>
</isNotNull> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.actSources"> <isNotEmpty prepend="AND" property="searchFilters.actSources">
<![CDATA[ c.act_source in ]]> <![CDATA[ c.act_source in ]]>
...@@ -1553,6 +1554,16 @@ ...@@ -1553,6 +1554,16 @@
</iterate> </iterate>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.starCustomer">
<![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
]]>
</isNotEmpty>
<isNotNull prepend="AND" property="searchFilters.isHandover">
<![CDATA[
isHandover $searchFilters.isHandover.operation$ #searchFilters.isHandover.value#
]]>
</isNotNull>
<isNotNull prepend="AND" property="searchFilters.isActive"> <isNotNull prepend="AND" property="searchFilters.isActive">
<![CDATA[ <![CDATA[
is_active = 1 is_active = 1
...@@ -1603,6 +1614,11 @@ ...@@ -1603,6 +1614,11 @@
AND c.phone = t.phone) AND c.phone = t.phone)
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.createrName">
<![CDATA[
c.creater in (select id from user u3 where u3.realName LIKE concat('', #searchFilters.createrName.value#, '%') )
]]>
</isNotEmpty>
</isNotNull> </isNotNull>
</dynamic> </dynamic>
</sql> </sql>
...@@ -1642,7 +1658,7 @@ ...@@ -1642,7 +1658,7 @@
update_time, updater, cityCode,cityName, biz_port,crmId,act_source_id, trace_status, remark, crm_sync, update_time, updater, cityCode,cityName, biz_port,crmId,act_source_id, trace_status, remark, crm_sync,
hotline_call_time,hotline_call_spend,ocean_date,is_delete,last_manager,bind_time, customer_source_type, hotline_call_time,hotline_call_spend,ocean_date,is_delete,last_manager,bind_time, customer_source_type,
customer_rel_id, isWaitCall, singupTime,marketActId, marketActName,is_peer, starCustomer, isHandover, customer_rel_id, isWaitCall, singupTime,marketActId, marketActName,is_peer, starCustomer, isHandover,
isRecycled,is_active isRecycled,is_active,starCustomer AS star_pt_customer
FROM customer_merge c FROM customer_merge c
<include refid="customer.queryManagementPage"/> <include refid="customer.queryManagementPage"/>
<isNotEmpty prepend="ORDER BY" property="searchFilters.orderBy"> <isNotEmpty prepend="ORDER BY" property="searchFilters.orderBy">
...@@ -1663,6 +1679,8 @@ ...@@ -1663,6 +1679,8 @@
( SELECT ct.NAME FROM customer ct WHERE ct.id = c.id ))) NAME, ( SELECT ct.NAME FROM customer ct WHERE ct.id = c.id ))) NAME,
c.phone, c.phone,
(select u2.realName from user u2 where u2.id = c.creater) creater, (select u2.realName from user u2 where u2.id = c.creater) creater,
c.creater AS createrId,
c.star_pt_customer AS starPtCustomer,
( (
IFNULL((SELECT min( ct.create_time ) FROM customer ct WHERE ct.phone = c.phone AND ct.manager_id = c.manager_id AND ct.cityCode = #searchFilters.cityCode.value# AND ct.is_delete = 0 AND ct.STATUS IN ( 11, 0, 99 )), IFNULL((SELECT min( ct.create_time ) FROM customer ct WHERE ct.phone = c.phone AND ct.manager_id = c.manager_id AND ct.cityCode = #searchFilters.cityCode.value# AND ct.is_delete = 0 AND ct.STATUS IN ( 11, 0, 99 )),
(SELECT ct.create_time FROM customer ct WHERE ct.id = c.id)) (SELECT ct.create_time FROM customer ct WHERE ct.id = c.id))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment