|
|
@@ -110,6 +110,8 @@ public class CoreReminderConfigurationServiceImpl extends ServiceImpl<CoreRemind
|
|
|
save(config);
|
|
|
saveConfigurationRoles(config.getConfigId(), editDto.getRoleIdList(), names);
|
|
|
saveConfigurationOrgList(config.getConfigId(), sysOrgList);
|
|
|
+ reminderScheduleService.deleteByConfigId(config.getConfigId());
|
|
|
+ findTask(Collections.singletonList(config.getConfigId()));
|
|
|
return;
|
|
|
}
|
|
|
populateBean(editDto, config);
|
|
|
@@ -118,6 +120,8 @@ public class CoreReminderConfigurationServiceImpl extends ServiceImpl<CoreRemind
|
|
|
saveConfigurationRoles(config.getConfigId(), editDto.getRoleIdList(), names);
|
|
|
coreReminderConfigurationOrgMapper.deleteByConfigId(config.getConfigId());
|
|
|
saveConfigurationOrgList(config.getConfigId(), sysOrgList);
|
|
|
+ reminderScheduleService.deleteByConfigId(config.getConfigId());
|
|
|
+ findTask(Collections.singletonList(config.getConfigId()));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -235,8 +239,11 @@ public class CoreReminderConfigurationServiceImpl extends ServiceImpl<CoreRemind
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void findTask() {
|
|
|
- List<CoreReminderConfigurationFullVo> configList = baseMapper.findAllFullData();
|
|
|
+ public void findTask(List<Long> congfigIdList) {
|
|
|
+ List<CoreReminderConfigurationFullVo> configList = baseMapper.findAllFullData(congfigIdList);
|
|
|
+ if (configList.isEmpty()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
Map<String, List<CoreReminderConfigurationFullVo>> listMap = configList.stream().collect(Collectors.groupingBy(CoreReminderConfigurationFullVo::getSendModule));
|
|
|
for (Map.Entry<String, List<CoreReminderConfigurationFullVo>> entry : listMap.entrySet()) {
|
|
|
BusinessPlanType type = BusinessPlanType.getBusinessPlanType(entry.getKey());
|