|
@@ -105,12 +105,16 @@ public class EmailTemplateInfoServiceImpl implements EmailTemplateInfoService {
|
|
emailTemplateDataRuleMapper.batchInsert(addList);
|
|
emailTemplateDataRuleMapper.batchInsert(addList);
|
|
}
|
|
}
|
|
if(editList.size() > 0){
|
|
if(editList.size() > 0){
|
|
- emailTemplateDataRuleMapper.batchUpdate(editList.subList(0,1));
|
|
|
|
|
|
+ emailTemplateDataRuleMapper.batchUpdate(editList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
List<EmailTemplateApplicationRuleVO> emailTemplateApplicationRuleVOList = saveTemplateInfoVO.getEmailTemplateApplicationRuleVOList();
|
|
List<EmailTemplateApplicationRuleVO> emailTemplateApplicationRuleVOList = saveTemplateInfoVO.getEmailTemplateApplicationRuleVOList();
|
|
if(emailTemplateApplicationRuleVOList.size() > 0){
|
|
if(emailTemplateApplicationRuleVOList.size() > 0){
|
|
emailTemplateApplicationRuleVOList.forEach(e -> e.setTemplateId(templateId));
|
|
emailTemplateApplicationRuleVOList.forEach(e -> e.setTemplateId(templateId));
|
|
|
|
+ List<Integer> templateIdList = new ArrayList<>();
|
|
|
|
+ templateIdList.add(templateId);
|
|
|
|
+ Integer userId = UserUtils.getLoginUser().getUserId();
|
|
|
|
+ emailTemplateApplicationRuleMapper.deleteByTemplateId(templateIdList,userId);
|
|
List<EmailTemplateApplicationRuleDO> addList = new ArrayList<>();
|
|
List<EmailTemplateApplicationRuleDO> addList = new ArrayList<>();
|
|
List<EmailTemplateApplicationRuleDO> editList = new ArrayList<>();
|
|
List<EmailTemplateApplicationRuleDO> editList = new ArrayList<>();
|
|
for(EmailTemplateApplicationRuleVO applicationRuleVO : emailTemplateApplicationRuleVOList){
|
|
for(EmailTemplateApplicationRuleVO applicationRuleVO : emailTemplateApplicationRuleVOList){
|