|
|
@ -180,6 +180,11 @@ public class SubscribeServiceImpl implements SubscribeService { |
|
|
|
String keywords = String.join(",", formDTO.getNameList()); |
|
|
|
List<String> keyIdList = formDTO.getKidList().stream().map(Object::toString).collect(Collectors.toList()); |
|
|
|
String keyIds = String.join(",", keyIdList); |
|
|
|
//根据tid和keyIds查询是否已存在该模板类型数据
|
|
|
|
List<PersonalTemplateDTO> list = personalTemplateService.getListByKey(formDTO.getAppId(), formDTO.getTid(), keyIds); |
|
|
|
if (null != list && list.size() > NumConstant.ZERO) { |
|
|
|
throw new RenException(formDTO.getTitle() + "已存在所选关键词[" + keywords + "]的模板"); |
|
|
|
} |
|
|
|
//将公共模板存入数据库
|
|
|
|
PersonalTemplateDTO personalTemplateDTO = new PersonalTemplateDTO(); |
|
|
|
personalTemplateDTO.setCustomerId(authInfo.getCustomerId()); |
|
|
|