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
5188ed82
Commit
5188ed82
authored
Mar 02, 2021
by
jay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云迹拉取修改
parent
9cb03dac
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
CloudActivityImpl.java
...va/com/house365/ws/interfaces/impl/CloudActivityImpl.java
+6
-4
AddCloudCustomerImpl.java
...com/house365/ws/interfaces/rest/AddCloudCustomerImpl.java
+3
-1
CloudCustomerMapper.xml
...ain/resources/development/mybatis/CloudCustomerMapper.xml
+3
-0
CloudCustomerMapper.xml
...main/resources/production/mybatis/CloudCustomerMapper.xml
+3
-0
CloudCustomerMapper.xml
...s/src/main/resources/test/mybatis/CloudCustomerMapper.xml
+3
-0
No files found.
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/impl/CloudActivityImpl.java
View file @
5188ed82
...
...
@@ -424,20 +424,22 @@ public class CloudActivityImpl implements ICloudActivityInterface {
int
count2
=
0
;
for
(
int
i
=
0
;
i
<
seeList
.
size
();
i
++)
{
Map
<
String
,
Object
>
s
=
seeList
.
get
(
i
);
//数据保护机制
只过滤私客存在
的客户
//数据保护机制
1、过滤私客存在的客户 2、过滤已拉取
的客户
String
phone
=
s
.
get
(
"loginAccount"
).
toString
();
String
houseName
=
s
.
get
(
"projectName"
).
toString
();
Map
<
String
,
Object
>
queryMap
=
new
HashMap
<>(
5
);
queryMap
.
put
(
"phone"
,
phone
);
List
<
CustomerEntity
>
cusList
=
mergeMapper
.
queryByConditions
(
queryMap
);
queryMap
.
put
(
"mobile"
,
phone
);
List
<
CloudCustomerEntity
>
cloudList
=
cloudCustomerMapper
.
queryByConditions
(
queryMap
);
if
(
CollectionUtils
.
isNotEmpty
(
cusList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
cusList
)
||
CollectionUtils
.
isNotEmpty
(
cloudList
)
)
{
Long
count
=
increaseProtectKey
(
activeId
);
logger
.
warn
(
"cloud protect "
+
phone
+
" count :"
+
count
+
" total:"
+
getFinishCount
(
activeId
));
count1
++;
count1
++;
continue
;
}
else
{
count2
++;
count2
++;
Long
count
=
increaseDoneKey
(
activeId
);
logger
.
warn
(
"cloud线程:"
+
"-"
+
total
+
" done count:"
+
count
+
" total:"
+
getFinishCount
(
activeId
));
CloudCustomerEntity
entity
=
getCloudCustomer
(
phone
,
houseName
,
city
);
...
...
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/rest/AddCloudCustomerImpl.java
View file @
5188ed82
...
...
@@ -88,7 +88,9 @@ public class AddCloudCustomerImpl implements IAddCloudCustomer {
Map
<
String
,
Object
>
queryMap
=
new
HashMap
<>(
5
);
queryMap
.
put
(
"phone"
,
phone
);
List
<
CustomerEntity
>
cusList
=
mergeMapper
.
queryByConditions
(
queryMap
);
if
(
CollectionUtils
.
isEmpty
(
cusList
))
{
queryMap
.
put
(
"mobile"
,
phone
);
List
<
CloudCustomerEntity
>
cloudList
=
mapper
.
queryByConditions
(
queryMap
);
if
(
CollectionUtils
.
isEmpty
(
cusList
)
&&
CollectionUtils
.
isEmpty
(
cloudList
))
{
CloudCustomerEntity
entity
=
getCloudCustomer
(
m
);
entity
.
setActiveId
(
activeId
);
entity
.
setIsOvertime
(
0
);
...
...
house365-hgs-ws/src/main/resources/development/mybatis/CloudCustomerMapper.xml
View file @
5188ed82
...
...
@@ -265,6 +265,9 @@
<if
test=
"city != null and city != ''"
>
AND city_code = #{city}
</if>
<if
test=
"mobile != null and mobile != ''"
>
AND phone = #{mobile}
</if>
<if
test=
"activeId != null and activeId >= 0 "
>
AND active_id = #{activeId}
</if>
...
...
house365-hgs-ws/src/main/resources/production/mybatis/CloudCustomerMapper.xml
View file @
5188ed82
...
...
@@ -265,6 +265,9 @@
<if
test=
"city != null and city != ''"
>
AND city_code = #{city}
</if>
<if
test=
"mobile != null and mobile != ''"
>
AND phone = #{mobile}
</if>
<if
test=
"activeId != null and activeId >= 0 "
>
AND active_id = #{activeId}
</if>
...
...
house365-hgs-ws/src/main/resources/test/mybatis/CloudCustomerMapper.xml
View file @
5188ed82
...
...
@@ -265,6 +265,9 @@
<if
test=
"city != null and city != ''"
>
AND city_code = #{city}
</if>
<if
test=
"mobile != null and mobile != ''"
>
AND phone = #{mobile}
</if>
<if
test=
"activeId != null and activeId >= 0 "
>
AND active_id = #{activeId}
</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