|
@@ -501,17 +501,17 @@ public class PatentNewServiceImpl extends BaseMybatisDao<PatentNewMapper> imple
|
|
|
String[] s = ids.split(",");
|
|
String[] s = ids.split(",");
|
|
|
List<String> ls = Arrays.asList(s);
|
|
List<String> ls = Arrays.asList(s);
|
|
|
addPatentNewLog(type, ls, aid);
|
|
addPatentNewLog(type, ls, aid);
|
|
|
- List<PatentNew> lp = patentNewMapper.selectByids(ls);
|
|
|
|
|
- List<EmailBo> list = new ArrayList<EmailBo>();
|
|
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
|
- for (PatentNew patentNew : lp) {
|
|
|
|
|
- if (patentNew.getStatus() == 0) {
|
|
|
|
|
- throw new BusinessException("专利号[" + patentNew.getPatentNo() + "]未达到距离截止时间90天,不允许发送邮件");
|
|
|
|
|
- }
|
|
|
|
|
- if (!SendEmailUtil.isEmail(patentNew.getEmail())) {
|
|
|
|
|
- throw new BusinessException("专利号[" + patentNew.getPatentNo() + "]的邮箱不正确。");
|
|
|
|
|
|
|
+ List<PatentNew> lp = patentNewMapper.selectByids(ls);
|
|
|
|
|
+ List<EmailBo> list = new ArrayList<EmailBo>();
|
|
|
|
|
+ for (PatentNew patentNew : lp) {
|
|
|
|
|
+ if (patentNew.getStatus() == 0) {
|
|
|
|
|
+ throw new BusinessException("专利号[" + patentNew.getPatentNo() + "]未达到距离截止时间90天,不允许发送邮件");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!SendEmailUtil.isEmail(patentNew.getEmail())) {
|
|
|
|
|
+ throw new BusinessException("专利号[" + patentNew.getPatentNo() + "]的邮箱不正确。");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
for (PatentNew patentNew : lp) {
|
|
for (PatentNew patentNew : lp) {
|
|
|
Admin a = adminMapper.selectByPrimaryKey(patentNew.getAid());
|
|
Admin a = adminMapper.selectByPrimaryKey(patentNew.getAid());
|
|
|
String userName = patentNewMapper.selectUserNameByTid(patentNew.getTid());
|
|
String userName = patentNewMapper.selectUserNameByTid(patentNew.getTid());
|