Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
Hgs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐州
Hgs
Commits
99f968ad
Commit
99f968ad
authored
Jun 07, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---bug修复--平台人搜索
parent
ea1fe9e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
64 deletions
+4
-64
CustomerMergeMapper.xml
...ain/resources/development/mybatis/CustomerMergeMapper.xml
+2
-32
CustomerMergeMapper.xml
...main/resources/production/mybatis/CustomerMergeMapper.xml
+2
-32
No files found.
house365-hgs-ws/src/main/resources/development/mybatis/CustomerMergeMapper.xml
View file @
99f968ad
...
...
@@ -194,7 +194,7 @@
c.id, c.name, c.phone,c.status, c.create_time, c.creater,c.buy_intention, c.last_call_time, c.manager_id,c.manager_name, c.update_time,c.create_source,
c.cityCode, c.cityName, c.trace_status, c.crm_sync,c.bind_time, c.customer_source_type, c.isWaitCall,c.is_peer, c.starCustomer, c.isHandover
FROM customer_merge c
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )'
>
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )
|| (createrId != null and createrId != "")
'
>
inner join (
SELECT
c3.manager_id,c3.phone
...
...
@@ -219,21 +219,6 @@
<if
test=
"callbackLog != null and callbackLog != '' "
>
and c2.content like CONCAT('%', #{callbackLog},'%')
</if>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
'(createrId != null and createrId != "" )'
>
inner join (
SELECT
c3.manager_id,c3.phone
FROM
customer_callback_log c2 right join customer c3 on c2.customer_id = c3.id
where 1=1
and c3.cityCode=#{cityCode}
AND c3.is_delete = 0
AND ( c3.isWaitCall = 0 OR c3.isWaitCall IS NULL )
AND c3.manager_id IS NOT NULL
AND c3.STATUS IN ( 11, 0, 99 )
<if
test=
"createrId != null and createrId != '' "
>
AND c3.creater =#{createrId}
</if>
...
...
@@ -462,7 +447,7 @@
SELECT
count(c.id)
FROM customer_merge c
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )'
>
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )
|| (createrId != null and createrId != "")
'
>
inner join (
SELECT
c3.manager_id,c3.phone
...
...
@@ -487,21 +472,6 @@
<if
test=
"callbackLog != null and callbackLog != '' "
>
and c2.content like CONCAT('%', #{callbackLog},'%')
</if>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
'(createrId != null and createrId != "" )'
>
inner join (
SELECT
c3.manager_id,c3.phone
FROM
customer_callback_log c2 right join customer c3 on c2.customer_id = c3.id
where 1=1
and c3.cityCode=#{cityCode}
AND c3.is_delete = 0
AND ( c3.isWaitCall = 0 OR c3.isWaitCall IS NULL )
AND c3.manager_id IS NOT NULL
AND c3.STATUS IN ( 11, 0, 99 )
<if
test=
"createrId != null and createrId != '' "
>
AND c3.creater =#{createrId}
</if>
...
...
house365-hgs-ws/src/main/resources/production/mybatis/CustomerMergeMapper.xml
View file @
99f968ad
...
...
@@ -194,7 +194,7 @@
c.id, c.name, c.phone,c.status, c.create_time, c.creater,c.buy_intention, c.last_call_time, c.manager_id,c.manager_name, c.update_time,c.create_source,
c.cityCode, c.cityName, c.trace_status, c.crm_sync,c.bind_time, c.customer_source_type, c.isWaitCall,c.is_peer, c.starCustomer, c.isHandover
FROM customer_merge c
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )'
>
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )
|| (createrId != null and createrId != "")
'
>
inner join (
SELECT
c3.manager_id,c3.phone
...
...
@@ -219,21 +219,6 @@
<if
test=
"callbackLog != null and callbackLog != '' "
>
and c2.content like CONCAT('%', #{callbackLog},'%')
</if>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
'(createrId != null and createrId != "" )'
>
inner join (
SELECT
c3.manager_id,c3.phone
FROM
customer_callback_log c2 right join customer c3 on c2.customer_id = c3.id
where 1=1
and c3.cityCode=#{cityCode}
AND c3.is_delete = 0
AND ( c3.isWaitCall = 0 OR c3.isWaitCall IS NULL )
AND c3.manager_id IS NOT NULL
AND c3.STATUS IN ( 11, 0, 99 )
<if
test=
"createrId != null and createrId != '' "
>
AND c3.creater =#{createrId}
</if>
...
...
@@ -462,7 +447,7 @@
SELECT
count(c.id)
FROM customer_merge c
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )'
>
<if
test=
'tabType =="9" || (callbackLog != null and callbackLog != "") || (customerSourceType2 != null and customerSourceType2 != "" )
|| (createrId != null and createrId != "")
'
>
inner join (
SELECT
c3.manager_id,c3.phone
...
...
@@ -487,21 +472,6 @@
<if
test=
"callbackLog != null and callbackLog != '' "
>
and c2.content like CONCAT('%', #{callbackLog},'%')
</if>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
'(createrId != null and createrId != "" )'
>
inner join (
SELECT
c3.manager_id,c3.phone
FROM
customer_callback_log c2 right join customer c3 on c2.customer_id = c3.id
where 1=1
and c3.cityCode=#{cityCode}
AND c3.is_delete = 0
AND ( c3.isWaitCall = 0 OR c3.isWaitCall IS NULL )
AND c3.manager_id IS NOT NULL
AND c3.STATUS IN ( 11, 0, 99 )
<if
test=
"createrId != null and createrId != '' "
>
AND c3.creater =#{createrId}
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment