Commit 3e64c903 by 王祖波

Merge remote-tracking branch 'origin/feature-wm' into feature-wm

parents d72ec81a ac45ca4a
...@@ -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
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment