feat:(REQ-3201) 刷新消息模版Job-最低版本优化
This commit is contained in:
parent
e91a557bab
commit
8071df0f3c
@ -150,6 +150,7 @@ public class TodoWithCardWrapper {
|
||||
try {
|
||||
//1 构建对象
|
||||
CardSendRequest cardSendRequest = this.buildCardSendRequest(param);
|
||||
ctx.addLogContent(JSON.toJSONString(cardSendRequest));
|
||||
//2 发送
|
||||
cardManager.send(cardSendRequest);
|
||||
todoLogger.logTodosUpdated(ctx, todos);
|
||||
@ -263,7 +264,7 @@ public class TodoWithCardWrapper {
|
||||
}
|
||||
|
||||
private Set<PeerPerson> buildReceivers(List<PersonDTO> personDTOS, Long ouId, Long workspaceId) {
|
||||
if (CollectionUtils.isNotEmpty(personDTOS)) {
|
||||
if (CollectionUtils.isEmpty(personDTOS)) {
|
||||
return Sets.newHashSet();
|
||||
}
|
||||
return personDTOS.stream().map(item -> PeerPerson.newPeerPerson(item.getId(), ouId, workspaceId)).collect(Collectors.toSet());
|
||||
|
||||
@ -177,14 +177,14 @@ public class UpdateTemplateV3ChannelStyleVersionJob extends IJobHandler {
|
||||
List<AppVersionConfig> updateAppVersionConfigs = Lists.newArrayList();
|
||||
String minAppVersion = templateV3.getMinAppVersion();
|
||||
List<PushTerminalEnum> pushTerminalEnums = JSON.parseArray(templateV3.getPushTerminal(), PushTerminalEnum.class);
|
||||
if (StringUtils.hasText(minAppVersion) && !CollectionUtils.isEmpty(pushTerminalEnums)) {
|
||||
if (!CollectionUtils.isEmpty(pushTerminalEnums)) {
|
||||
pushTerminalEnums.stream().forEach(item -> {
|
||||
|
||||
AppTypeEnum appType = item.toAppType();
|
||||
if (Objects.nonNull(appType)) {
|
||||
AppVersionConfig appVersionConfig = new AppVersionConfig();
|
||||
appVersionConfig.setAppType(appType);
|
||||
appVersionConfig.setMinVersion(minAppVersion);
|
||||
appVersionConfig.setMinVersion(StringUtils.hasText(minAppVersion) ? minAppVersion : "");
|
||||
|
||||
updateAppVersionConfigs.add(appVersionConfig);
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ public enum CardBizState implements CodeDefinition<String> {
|
||||
ABORTED("已中止", true, "https://axzo-public.oss-cn-chengdu.aliyuncs.com/%E5%8D%B0%E7%AB%A0-%E8%AF%A6%E6%83%85end.png"),
|
||||
COMPLETED("已处理", true, "https://axzo-public.oss-cn-chengdu.aliyuncs.com/msg-center/todo_card_state/card_biz_state_completed_20241218.png"),
|
||||
END("已完结", true, "https://static.axzo.cn/fe-static/uni-icon/public/seal-1%23_%241699341908382.png"),
|
||||
IN_PROGRESS("进行中", false, null)
|
||||
IN_PROGRESS("进行中", false, "")
|
||||
|
||||
;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user