|
|
@ -331,7 +331,7 @@ public class SubscribeServiceImpl implements SubscribeService { |
|
|
|
List<String> resiPubTmplIds = |
|
|
|
wxResiResult.getData().getData().stream().map(WxGetTemplateResult.DataBean::getPriTmplId).collect(Collectors.toList()); |
|
|
|
List<TemplateDTO> resiList = personalTemplateService.getListByCustomer(formDTO.getResiAppId(), formDTO.getCustomerId(), "resi"); |
|
|
|
List<String> resiTmplIds = resiList.stream().map(TemplateDTO::getPriTmplId).collect(Collectors.toList()); |
|
|
|
List<String> resiTmplIds = resiList.stream().map(TemplateDTO::getTmplId).collect(Collectors.toList()); |
|
|
|
List<String> resiReduce = resiPubTmplIds.stream().filter(item -> !resiTmplIds.contains(item)).collect(Collectors.toList()); |
|
|
|
resiReduce.forEach(tmplId -> { |
|
|
|
WxDelTemplateReq request = new WxDelTemplateReq(); |
|
|
@ -354,7 +354,7 @@ public class SubscribeServiceImpl implements SubscribeService { |
|
|
|
List<String> workPubTmplIds = |
|
|
|
wxWorkResult.getData().getData().stream().map(WxGetTemplateResult.DataBean::getPriTmplId).collect(Collectors.toList()); |
|
|
|
List<TemplateDTO> workList = personalTemplateService.getListByCustomer(formDTO.getWorkAppId(), formDTO.getCustomerId(), "work"); |
|
|
|
List<String> workTmplIds = workList.stream().map(TemplateDTO::getPriTmplId).collect(Collectors.toList()); |
|
|
|
List<String> workTmplIds = workList.stream().map(TemplateDTO::getTmplId).collect(Collectors.toList()); |
|
|
|
List<String> workReduce = workPubTmplIds.stream().filter(item -> !workTmplIds.contains(item)).collect(Collectors.toList()); |
|
|
|
workReduce.forEach(tmplId -> { |
|
|
|
WxDelTemplateReq request = new WxDelTemplateReq(); |
|
|
|