anderx hace 4 años
padre
commit
c37e7f2c5a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/java/com/goafanti/common/utils/AsyncUtils.java

+ 1 - 1
src/main/java/com/goafanti/common/utils/AsyncUtils.java

@@ -57,7 +57,7 @@ public class AsyncUtils {
 
 	public void addNoticAndEmail(Notice n) {
 		n.setType(NoticeTypes.getType(n.getNoticeType()));
-		AdminListBo a = adminMapper.getDeptNameByAid(TokenManager.getAdminId());
+		AdminListBo a = adminMapper.getDeptNameByAid(n.getAid());
 		EmailBo bo=new EmailBo(NoticeStatus.getStatus(n.getNoticeType()).getDesc(),a.getEmail(),n.getContent()) ;
 		noticeMapper.insertSelective(n);
 		send(bo);