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
f976321a
Commit
f976321a
authored
Mar 20, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换绑主导购清除建联状态
parent
9fc7a4fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
0 deletions
+61
-0
RouterApiService.java
...ic/haoban/manage/api/service/common/RouterApiService.java
+18
-0
RouterApiServiceImpl.java
...service/service/out/impl/common/RouterApiServiceImpl.java
+39
-0
ContactOrderApiServiceImpl.java
.../service/out/impl/contact/ContactOrderApiServiceImpl.java
+3
-0
dubbo-haoban-manage-service.xml
...ervice/src/main/resources/dubbo-haoban-manage-service.xml
+1
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/common/RouterApiService.java
0 → 100644
View file @
f976321a
package
com
.
gic
.
haoban
.
manage
.
api
.
service
.
common
;
import
com.gic.api.base.commons.ServiceResponse
;
/**
* @author: YuZhi
* @date: 2022/3/16 13:32
*/
public
interface
RouterApiService
{
/**
* 会员导购通用事件订阅
* @param params
* @return
*/
ServiceResponse
<
Void
>
memberClerkEvent
(
String
params
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/common/RouterApiServiceImpl.java
0 → 100644
View file @
f976321a
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
.
common
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.service.common.RouterApiService
;
import
com.gic.haoban.manage.service.service.contact.ContactLogService
;
import
com.gic.member.api.dto.event.clerk.ClerkAddEventParam
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Objects
;
@Service
(
"routerApiService"
)
public
class
RouterApiServiceImpl
implements
RouterApiService
{
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
RouterApiService
.
class
);
@Autowired
private
ContactLogService
contactLogService
;
@Override
public
ServiceResponse
<
Void
>
memberClerkEvent
(
String
params
)
{
if
(
StringUtils
.
isBlank
(
params
))
{
return
ServiceResponse
.
success
();
}
ClerkAddEventParam
clerkAddEventParam
=
JSONObject
.
parseObject
(
params
,
ClerkAddEventParam
.
class
);
String
memberId
=
clerkAddEventParam
.
getMemberId
();
Integer
changeType
=
clerkAddEventParam
.
getChangeType
();
if
(
Objects
.
equals
(
changeType
,
1
))
{
// 换绑主导购清除建联状态
contactLogService
.
clearContactLog
(
memberId
,
2
);
}
return
ServiceResponse
.
success
();
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactOrderApiServiceImpl.java
View file @
f976321a
...
...
@@ -23,6 +23,8 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
@Autowired
private
ContactOrderService
contactOrderService
;
@Autowired
private
ContactLogService
contactLogService
;
@Autowired
private
MemberOrderReadApiService
memberOrderReadApiService
;
@Override
...
...
@@ -38,6 +40,7 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
}
OrderInfoResp
result
=
serviceResponse
.
getResult
();
contactOrderService
.
saveContactOrder
(
result
);
contactLogService
.
clearContactLog
(
memberId
,
1
);
return
ServiceResponse
.
success
();
}
...
...
haoban-manage3-service/src/main/resources/dubbo-haoban-manage-service.xml
View file @
f976321a
...
...
@@ -28,6 +28,7 @@
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatPlanApiService"
ref=
"groupChatPlanApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatHmApiService"
ref=
"groupChatHmApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatApiService"
ref=
"groupChatApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.common.RouterApiService"
ref=
"routerApiService"
timeout=
"10000"
/>
<!-- 社群邀请有礼 -->
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatActivityApiService"
ref=
"groupChatActivityApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.chat.GroupChatActivityLogApiService"
ref=
"groupChatActivityLogApiService"
timeout=
"10000"
/>
...
...
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