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
e84ecf56
Commit
e84ecf56
authored
Jun 22, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成客戶查詢需求
parent
d420af44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
0 deletions
+90
-0
CloudCustomerMapper.xml
...main/resources/production/mybatis/CloudCustomerMapper.xml
+13
-0
CustomerMapper.xml
.../src/main/resources/production/mybatis/CustomerMapper.xml
+37
-0
CustomerMergeMapper.xml
...main/resources/production/mybatis/CustomerMergeMapper.xml
+30
-0
MarketCustomerMapper.xml
...ain/resources/production/mybatis/MarketCustomerMapper.xml
+10
-0
No files found.
house365-hgs-ws/src/main/resources/production/mybatis/CloudCustomerMapper.xml
View file @
e84ecf56
...
...
@@ -384,4 +384,16 @@
</if>
</select>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultType=
"String"
>
SELECT DISTINCT phone FROM cloud_customer where is_delete = 0 and status = #{status}
<if
test=
"phoneList != null and phoneList.size() > 0 "
>
and phone IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
house365-hgs-ws/src/main/resources/production/mybatis/CustomerMapper.xml
View file @
e84ecf56
...
...
@@ -889,4 +889,40 @@
and customer_source_type=8
and creater=#{userId}
</select>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultMap=
"infoMap"
>
SELECT * FROM customer where is_delete = 0
<if
test=
"status != null and status != '' "
>
AND status = #{status}
</if>
<if
test=
"manager_id != null and manager_id == 0"
>
AND manager_id IS NULL
</if>
<if
test=
"manager_id != null and manager_id == 1"
>
AND manager_id IS NOT NULL
</if>
<if
test=
"createSource != null and createSource != '' "
>
AND create_source = #{createSource}
</if>
<if
test=
"isRecycled != null and isRecycled >=0"
>
AND isRecycled = #{isRecycled}
</if>
<if
test=
"notBuyIntention != null and notBuyIntention != ''"
>
AND buy_intention != #{notBuyIntention}
</if>
<if
test=
"hotlone != null and hotlone != ''"
>
AND status in (11,0,99)
</if>
<if
test=
"isWaitCall != null and isWaitCall != ''"
>
AND isWaitCall = #{isWaitCall}
</if>
<if
test=
"phoneList != null and phoneList.size() > 0 "
>
and phone IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
group by phone
</select>
</mapper>
\ No newline at end of file
house365-hgs-ws/src/main/resources/production/mybatis/CustomerMergeMapper.xml
View file @
e84ecf56
...
...
@@ -1232,4 +1232,34 @@
</if>
</select>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultMap=
"infoMap"
>
SELECT * FROM customer_merge where is_delete = 0 and
STATUS IN ( 11, 0, 99 ) AND
( isWaitCall = 0 OR isWaitCall IS NULL )
<if
test=
"phoneList != null and phoneList.size() > 0 "
>
and (
phone IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
OR bak_phone1 IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
OR bak_phone2 IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
OR bak_phone3 IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)
</if>
</select>
</mapper>
house365-hgs-ws/src/main/resources/production/mybatis/MarketCustomerMapper.xml
View file @
e84ecf56
...
...
@@ -66,5 +66,14 @@
customerId = #{customerId}
WHERE id = #{id}
</update>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultType=
"String"
>
SELECT DISTINCT phone FROM market_customer where (manager_id is null or manager_id = '')
<if
test=
"phoneList != null and phoneList.size() > 0 "
>
and phone IN
<foreach
collection=
"phoneList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
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