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