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
ea1fe9e3
Commit
ea1fe9e3
authored
Jun 07, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---bug修复
parent
2e15f1bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
12 deletions
+72
-12
CustomerMergeMapper.xml
...ain/resources/development/mybatis/CustomerMergeMapper.xml
+36
-6
CustomerMergeMapper.xml
...main/resources/production/mybatis/CustomerMergeMapper.xml
+36
-6
No files found.
house365-hgs-ws/src/main/resources/development/mybatis/CustomerMergeMapper.xml
View file @
ea1fe9e3
...
...
@@ -222,6 +222,24 @@
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>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
"(projectName != null and projectName != '') or (projectStatus != null and projectStatus != '')"
>
LEFT JOIN (
SELECT c1.manager_id, c1.phone FROM customer c1 inner join customer_project p1 on c1.id=p1.customer_id
...
...
@@ -434,9 +452,6 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
<if
test=
"orderBy != null and orderBy != '' "
>
order by ${orderBy}
</if>
...
...
@@ -475,6 +490,24 @@
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>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
"(projectName != null and projectName != '') or (projectStatus != null and projectStatus != '')"
>
LEFT JOIN (
SELECT c1.manager_id, c1.phone FROM customer c1 inner join customer_project p1 on c1.id=p1.customer_id
...
...
@@ -687,9 +720,6 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
</select>
...
...
house365-hgs-ws/src/main/resources/production/mybatis/CustomerMergeMapper.xml
View file @
ea1fe9e3
...
...
@@ -222,6 +222,24 @@
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>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
"(projectName != null and projectName != '') or (projectStatus != null and projectStatus != '')"
>
LEFT JOIN (
SELECT c1.manager_id, c1.phone FROM customer c1 inner join customer_project p1 on c1.id=p1.customer_id
...
...
@@ -434,9 +452,6 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
<if
test=
"orderBy != null and orderBy != '' "
>
order by ${orderBy}
</if>
...
...
@@ -475,6 +490,24 @@
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>
group by c3.manager_id,c3.phone
) t1 on c.manager_id=t1.manager_id and c.phone=t1.phone
</if>
<if
test=
"(projectName != null and projectName != '') or (projectStatus != null and projectStatus != '')"
>
LEFT JOIN (
SELECT c1.manager_id, c1.phone FROM customer c1 inner join customer_project p1 on c1.id=p1.customer_id
...
...
@@ -687,9 +720,6 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
</select>
...
...
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