Commit 51c436c6 by songyinghui

feat: 感觉是否开启高级版调整

parent 54ff1e59
......@@ -507,9 +507,6 @@ public class GroupMessageServiceImpl implements GroupMessageService {
List<String> enterpriseIds = materialEnterpriseAdaptor.queryHasRightEnterpriseIds(level);
log.info("有权限的企业信息 level:{}, enterpriseIds:{}", level, JSON.toJSONString(enterpriseIds));
if (CollectionUtils.isEmpty(enterpriseIds)) {
return Collections.singletonList("ff8080815dacd3a2015dacd3ef5c0000");
}
return enterpriseIds;
}
}
......@@ -55,9 +55,12 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
@Override
public ServiceResponse<Void> groupMsgTaskJob(String params) {
log.info("执行群发定时任务 {}", DateUtil.datetimeToString(new Date()));
log.info("执行触达客户定时任务 {}", DateUtil.datetimeToString(new Date()));
// 获取开启【内容】权限的企业id
List<String> enterpriseIds = groupMessageService.hasMaterialRightEnterprise(MaterialEnterpriseAdaptor.MaterialLevel.LOW.getCode());
if (CollectionUtils.isEmpty(enterpriseIds)) {
return ServiceResponse.success();
}
// 获取企业 (当前时间 - 30分钟, 当前时间)范围内的 导购分享记录。按创建时间排序
Date currentTime = new Date();
for (String enterpriseId : enterpriseIds) {
......
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