Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
b2724f97
Commit
b2724f97
authored
Apr 23, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend' into 'developer'
最后一次建联和换绑导购一致则不清除建联 See merge request
!2831
parents
6a97b715
025d1eab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
ContactLogService.java
...ban/manage/service/service/contact/ContactLogService.java
+1
-1
ContactLogServiceImpl.java
...e/service/service/contact/impl/ContactLogServiceImpl.java
+8
-2
RouterApiServiceImpl.java
...service/service/out/impl/common/RouterApiServiceImpl.java
+2
-1
ContactOrderApiServiceImpl.java
.../service/out/impl/contact/ContactOrderApiServiceImpl.java
+1
-1
ContactTest.java
...an-manage3-service/src/test/java/contact/ContactTest.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/ContactLogService.java
View file @
b2724f97
...
...
@@ -22,7 +22,7 @@ public interface ContactLogService {
* @param memberId
* @param clearType 1 消费清除 2 换绑主导购
*/
void
clearContactLog
(
String
memberId
,
Integer
clearType
);
void
clearContactLog
(
String
memberId
,
Integer
clearType
,
String
clerkId
);
/**
* 获取最近一条有效建联记录
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/impl/ContactLogServiceImpl.java
View file @
b2724f97
...
...
@@ -116,8 +116,8 @@ public class ContactLogServiceImpl implements ContactLogService {
}
@Override
public
void
clearContactLog
(
String
memberId
,
Integer
clearType
)
{
logger
.
info
(
"清除建联状态:{},clearType:{}
"
,
memberId
,
clearType
);
public
void
clearContactLog
(
String
memberId
,
Integer
clearType
,
String
clerkId
)
{
logger
.
info
(
"清除建联状态:{},clearType:{}
,clerkId:{}"
,
memberId
,
clearType
,
clerkId
);
TabContactLog
lastContactLog
=
contactLogMapper
.
queryLastLog
(
memberId
,
null
,
null
,
null
);
if
(
lastContactLog
==
null
)
{
return
;
...
...
@@ -128,6 +128,12 @@ public class ContactLogServiceImpl implements ContactLogService {
update
.
setLogId
(
lastContactLog
.
getLogId
());
update
.
setContactStatus
(
Constant
.
FLAG_FALSE
);
contactLogMapper
.
update
(
update
);
}
else
if
(
Objects
.
equals
(
clearType
,
2
))
{
String
lastClerkId
=
lastContactLog
.
getClerkId
();
if
(
Objects
.
equals
(
lastClerkId
,
clerkId
))
{
logger
.
info
(
"最后一次建联和换绑导购一致则不清除建联"
);
return
;
}
}
// 清除es建联时间 -1
refreshContactTime
(
lastContactLog
.
getEnterpriseId
(),
memberId
,
-
1L
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/common/RouterApiServiceImpl.java
View file @
b2724f97
...
...
@@ -33,9 +33,10 @@ public class RouterApiServiceImpl implements RouterApiService {
ClerkAddEventParam
clerkAddEventParam
=
JSONObject
.
parseObject
(
params
,
ClerkAddEventParam
.
class
);
String
memberId
=
clerkAddEventParam
.
getMemberId
();
Integer
changeType
=
clerkAddEventParam
.
getChangeType
();
String
clerkId
=
clerkAddEventParam
.
getClerkId
();
if
(
Objects
.
equals
(
changeType
,
1
))
{
// 换绑主导购清除建联状态
contactLogService
.
clearContactLog
(
memberId
,
2
);
contactLogService
.
clearContactLog
(
memberId
,
2
,
clerkId
);
}
return
ServiceResponse
.
success
();
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactOrderApiServiceImpl.java
View file @
b2724f97
...
...
@@ -41,7 +41,7 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
OrderInfoResp
result
=
serviceResponse
.
getResult
();
boolean
contactOrder
=
contactOrderService
.
saveContactOrder
(
result
);
if
(
contactOrder
)
{
contactLogService
.
clearContactLog
(
memberId
,
1
);
contactLogService
.
clearContactLog
(
memberId
,
1
,
""
);
}
return
ServiceResponse
.
success
();
}
...
...
haoban-manage3-service/src/test/java/contact/ContactTest.java
View file @
b2724f97
...
...
@@ -98,7 +98,7 @@ public class ContactTest {
@Test
public
void
clearContactLog
()
throws
Exception
{
contactLogService
.
clearContactLog
(
memberId
,
1
);
contactLogService
.
clearContactLog
(
memberId
,
1
,
""
);
}
@Test
...
...
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