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
95877b53
Commit
95877b53
authored
Dec 28, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员合并
parent
41fe3527
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
HaobanCommonMQApiServiceImpl.java
...ervice/service/out/impl/HaobanCommonMQApiServiceImpl.java
+3
-1
InteractRecordApiServiceImpl.java
...ervice/out/impl/content/InteractRecordApiServiceImpl.java
+15
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HaobanCommonMQApiServiceImpl.java
View file @
95877b53
...
@@ -151,8 +151,10 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
...
@@ -151,8 +151,10 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
dto
.
setMergeMemberId
(
memberId
);
dto
.
setMergeMemberId
(
memberId
);
dto
.
setEnterpriseId
(
enterpriseId
);
dto
.
setEnterpriseId
(
enterpriseId
);
dto
.
setOpt
(
2
);
dto
.
setOpt
(
2
);
JSONObject
msg
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
dto
))
;
msg
.
put
(
"eventFlag"
,
1
)
;
try
{
try
{
GICMQClientUtil
.
getClientInstance
().
sendMessage
(
"memberIdChangeNotify"
,
JSON
.
toJSONString
(
dto
));
GICMQClientUtil
.
getClientInstance
().
sendMessage
(
"memberIdChangeNotify"
,
msg
.
toJSONString
(
));
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
throw
new
RuntimeException
(
ex
);
throw
new
RuntimeException
(
ex
);
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/InteractRecordApiServiceImpl.java
View file @
95877b53
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
.
content
;
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
.
content
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.qdto.content.InteractRecordQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.content.InteractRecordQDTO
;
...
@@ -12,6 +13,7 @@ import com.gic.haoban.manage.service.pojo.bo.content.MemberAttrChangeBO;
...
@@ -12,6 +13,7 @@ import com.gic.haoban.manage.service.pojo.bo.content.MemberAttrChangeBO;
import
com.gic.haoban.manage.service.pojo.qo.content.InteractRecordQO
;
import
com.gic.haoban.manage.service.pojo.qo.content.InteractRecordQO
;
import
com.gic.haoban.manage.service.service.content.InteractRecordService
;
import
com.gic.haoban.manage.service.service.content.InteractRecordService
;
import
com.gic.haoban.manage.service.service.content.PotentialCustomerService
;
import
com.gic.haoban.manage.service.service.content.PotentialCustomerService
;
import
com.gic.haoban.manage.service.util.EventUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -97,6 +99,19 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
...
@@ -97,6 +99,19 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
log
.
info
(
"会员id发生变化 {}"
,
params
);
log
.
info
(
"会员id发生变化 {}"
,
params
);
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
params
);
int
eventFlag
=
jsonObject
.
getIntValue
(
"eventFlag"
)
;
if
(
EventUtils
.
isOpenEvent
())
{
if
(
eventFlag
==
0
)
{
log
.
info
(
"非事件入口,不处理"
);
return
ServiceResponse
.
success
();
}
}
else
{
if
(
eventFlag
==
1
)
{
log
.
info
(
"事件入口,不处理"
);
return
ServiceResponse
.
success
();
}
}
MemberAttrChangeBO
memberAttrChangeBO
=
JSON
.
parseObject
(
params
,
MemberAttrChangeBO
.
class
);
MemberAttrChangeBO
memberAttrChangeBO
=
JSON
.
parseObject
(
params
,
MemberAttrChangeBO
.
class
);
if
(
memberAttrChangeBO
==
null
)
{
if
(
memberAttrChangeBO
==
null
)
{
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
...
...
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