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
ce0958f9
Commit
ce0958f9
authored
Jun 13, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增查询客户时,获取公海配置以客户城市为依据
parent
922a5b6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
CustomerController.java
.../java/com/house365/web/controller/CustomerController.java
+2
-3
CustomerMapper.xml
...src/main/resources/development/mybatis/CustomerMapper.xml
+1
-1
CustomerMapper.xml
...hgs-ws/src/main/resources/test/mybatis/CustomerMapper.xml
+1
-1
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/CustomerController.java
View file @
ce0958f9
...
...
@@ -3184,10 +3184,10 @@ public class CustomerController extends BaseController {
if
(
TextUtils
.
isEmpty
(
mobilesStr
))
{
return
getAutoUrl
();
}
model
.
addAttribute
(
"mobiles"
,
mobilesStr
);
String
[]
mobiles
=
mobilesStr
.
split
(
"\r\n"
);
List
<
String
>
phoneList
=
Arrays
.
stream
(
mobiles
).
distinct
().
filter
(
i
->
!
TextUtils
.
isEmpty
(
i
)).
map
(
i
->
i
.
trim
(
)).
collect
(
Collectors
.
toList
());
List
<
String
>
phoneList
=
Arrays
.
stream
(
mobiles
).
distinct
().
map
(
i
->
i
.
trim
()).
filter
(
i
->
!
TextUtils
.
isEmpty
(
i
)).
collect
(
Collectors
.
toList
());
if
(
mobiles
.
length
>
100
)
{
addErrorMessage
(
model
,
"最多可搜索100个手机号"
);
...
...
@@ -3308,7 +3308,6 @@ public class CustomerController extends BaseController {
}
model
.
addAttribute
(
"mobiles"
,
mobilesStr
);
model
.
addAttribute
(
"dpSize"
,
dpPhones
==
null
?
0
:
dpPhones
.
size
());
model
.
addAttribute
(
"skSize"
,
skPhones
==
null
?
0
:
skPhones
.
size
());
model
.
addAttribute
(
"ghSize"
,
ghPhones
==
null
?
0
:
ghPhones
.
size
());
...
...
house365-hgs-ws/src/main/resources/development/mybatis/CustomerMapper.xml
View file @
ce0958f9
...
...
@@ -892,7 +892,7 @@
</select>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultMap=
"infoMap"
>
SELECT * FROM customer where
1=1
SELECT * FROM customer where
is_delete = 0
<if
test=
"status != null and status != '' "
>
AND status = #{status}
...
...
house365-hgs-ws/src/main/resources/test/mybatis/CustomerMapper.xml
View file @
ce0958f9
...
...
@@ -870,7 +870,7 @@
</select>
<select
id=
"getExistByPhone"
parameterType=
"map"
resultMap=
"infoMap"
>
SELECT * FROM customer where
1=1
SELECT * FROM customer where
is_delete = 0
<if
test=
"status != null and status != '' "
>
AND status = #{status}
...
...
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