|
|
@@ -589,10 +589,16 @@ public class PatentNewServiceImpl extends BaseMybatisDao<PatentNewMapper> imple
|
|
|
userName=patentNew.getHolders();
|
|
|
}
|
|
|
BigDecimal amout = patentNew.getPatentAmount().multiply(new BigDecimal(10000));
|
|
|
- EmailBo emailBo = new EmailBo("专利提醒", patentNew.getEmail().trim(), userName, "科德集团", a.getName(),
|
|
|
- patentNew.getName(), patentNew.getPatentNo(), amout.stripTrailingZeros().toPlainString(),
|
|
|
- patentNew.getEndDate());
|
|
|
- list.add(emailBo);
|
|
|
+ String emailList = patentNew.getEmail();
|
|
|
+ if (StringUtils.isNotEmpty(emailList)){
|
|
|
+ String[] split = emailList.split(",");
|
|
|
+ for (String email : split) {
|
|
|
+ EmailBo emailBo = new EmailBo("专利提醒", email, userName, "科德集团", a.getName(),
|
|
|
+ patentNew.getName(), patentNew.getPatentNo(), amout.stripTrailingZeros().toPlainString(),
|
|
|
+ patentNew.getEndDate());
|
|
|
+ list.add(emailBo);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
asyncUtils.patentSend(list);
|
|
|
}
|