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
64758415
Commit
64758415
authored
Mar 28, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 好办sharding 回滚
parent
14902899
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
2 deletions
+103
-2
InteractRecordBO.java
...age/service/pojo/bo/content/message/InteractRecordBO.java
+64
-0
InteractRecordMessageService.java
...service/content/message/InteractRecordMessageService.java
+36
-0
applicationContext-conf.xml
...e3-service/src/main/resources/applicationContext-conf.xml
+3
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/content/message/InteractRecordBO.java
0 → 100644
View file @
64758415
package
com
.
gic
.
haoban
.
manage
.
service
.
pojo
.
bo
.
content
.
message
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Author MUSI
* @Date 2023/3/28 2:51 PM
* @Description
* @Version
**/
@Data
public
class
InteractRecordBO
implements
Serializable
{
/**
* 企业id
*/
private
String
enterpriseId
;
/**
* 会员id
*/
private
String
memberId
;
/**
* 会员unionId
*/
private
String
unionId
;
/**
* 导购id
*/
private
String
clerkId
;
/**
* 门店id
*/
private
String
storeId
;
/**
* 来源渠道
* 线索来源 1朋友圈; 2客户群; 3 对话框; 0其他
*/
private
Integer
channelSource
;
/**
* 事件类型 1浏览素材;2查看商品; 3购买商品
*/
private
Integer
eventType
;
/**
* 停留时长
* 单位ms
*/
private
Integer
durationTime
;
/**
* 购买商品时的 订单id
*/
private
String
orderId
;
/**
* 查看商品时查看的商品id
*/
private
List
<
String
>
goodsIds
;
/**
* 业务唯一标识
*/
private
String
businessUUId
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/message/InteractRecordMessageService.java
0 → 100644
View file @
64758415
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
content
.
message
;
import
com.gic.haoban.manage.service.pojo.bo.content.message.InteractRecordBO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
/**
* @Author MUSI
* @Date 2023/3/28 2:50 PM
* @Description
* @Version
* 互动记录消息处理器
**/
@Slf4j
@Component
public
class
InteractRecordMessageService
{
/**
* 处理互动记录
* @param interactRecordBO
*/
public
void
dealRecord
(
InteractRecordBO
interactRecordBO
)
{
// 参数是否完整
// 根据businessId clerkId memberId materialId 构建唯一标识key
// 根据key 查询是否存在记录
// 新增
// 通过clerkId、memberId、materialId 查询之前存在的记录总数,本次是第几次访问 在之前的记录总数上加1
// 编辑
// 合并时间类型
//
}
}
haoban-manage3-service/src/main/resources/applicationContext-conf.xml
View file @
64758415
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<import
resource=
"classpath*:kafka-setting.xml"
/>
<import
resource=
"classpath*:kafka-setting.xml"
/>
<import
resource=
"classpath:dubbo-haoban-manage-service.xml"
/>
<import
resource=
"classpath:dubbo-haoban-manage-service.xml"
/>
<import
resource=
"classpath:dubbo-setting-test.xml"
/>
<import
resource=
"classpath:dubbo-setting-test.xml"
/>
<!-- <import resource="classpath:jdbc-haoban-manage-service.xml" />--
>
<import
resource=
"classpath:jdbc-haoban-manage-service.xml"
/
>
<import
resource=
"classpath*:jdbc-haoban-manage-service-sharding.xml"
/
>
<!-- <import resource="classpath*:jdbc-haoban-manage-service-sharding.xml" />--
>
<import
resource=
"classpath*:log-record-init.xml"
/>
<import
resource=
"classpath*:log-record-init.xml"
/>
</beans>
</beans>
\ No newline at end of file
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