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
3e64c903
Commit
3e64c903
authored
Nov 30, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-wm' into feature-wm
parents
d72ec81a
ac45ca4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
InteractRecordMessageService.java
...service/content/message/InteractRecordMessageService.java
+1
-1
ContentSettingController.java
...nage/web/controller/content/ContentSettingController.java
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/message/InteractRecordMessageService.java
View file @
3e64c903
...
@@ -49,6 +49,7 @@ public class InteractRecordMessageService {
...
@@ -49,6 +49,7 @@ public class InteractRecordMessageService {
// 参数是否完整
// 参数是否完整
// 根据businessId clerkId memberId materialId 构建唯一标识key
// 根据businessId clerkId memberId materialId 构建唯一标识key
String
recordKey
=
context
.
buildRecordKey
();
String
recordKey
=
context
.
buildRecordKey
();
RedisUtil
.
lock
(
recordKey
,
3L
,
TimeUnit
.
SECONDS
,
2L
);
// 根据key 查询是否存在记录
// 根据key 查询是否存在记录
InteractRecordBO
interactRecordBO
=
null
;
InteractRecordBO
interactRecordBO
=
null
;
if
(
MaterialInteractRecordEventType
.
ORDER
.
getCode
().
equals
(
interactRecordMessageBO
.
getEventType
()))
{
if
(
MaterialInteractRecordEventType
.
ORDER
.
getCode
().
equals
(
interactRecordMessageBO
.
getEventType
()))
{
...
@@ -65,7 +66,6 @@ public class InteractRecordMessageService {
...
@@ -65,7 +66,6 @@ public class InteractRecordMessageService {
interactRecordBO
=
interactRecordService
.
queryWithInteractInfo
(
interactRecordMessageBO
.
getEnterpriseId
(),
context
.
buildRecordKeyWithUnionId
());
interactRecordBO
=
interactRecordService
.
queryWithInteractInfo
(
interactRecordMessageBO
.
getEnterpriseId
(),
context
.
buildRecordKeyWithUnionId
());
}
}
}
}
RedisUtil
.
lock
(
recordKey
,
3L
,
TimeUnit
.
SECONDS
,
2L
);
try
{
try
{
if
(
interactRecordBO
==
null
)
{
if
(
interactRecordBO
==
null
)
{
if
(
interactRecordMessageBO
.
getChannelSource
()
==
null
if
(
interactRecordMessageBO
.
getChannelSource
()
==
null
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentSettingController.java
View file @
3e64c903
...
@@ -8,13 +8,16 @@ import com.gic.content.api.service.ContentSettingApiService;
...
@@ -8,13 +8,16 @@ import com.gic.content.api.service.ContentSettingApiService;
import
com.gic.haoban.manage.web.vo.content.ContentSettingVO
;
import
com.gic.haoban.manage.web.vo.content.ContentSettingVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* 好办-内容配置
* @Author MUSI
* @Author MUSI
* @Date 2023/11/29 10:43 AM
* @Date 2023/11/29 10:43 AM
* @Description
* @Description
* @Version
* @Version
**/
**/
@RestController
@RequestMapping
(
path
=
"/content/setting"
)
@RequestMapping
(
path
=
"/content/setting"
)
public
class
ContentSettingController
{
public
class
ContentSettingController
{
...
...
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