| | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.FileDirPath; |
| | | import com.whyc.dto.MailDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.ZipUtils; |
| | | import com.whyc.mapper.BOMFeedbakMapper; |
| | |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.CommonUtil; |
| | | import com.whyc.util.MailUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | @Autowired(required = false) |
| | | private BOMFeedbakMapper mapper; |
| | | @Autowired |
| | | private MailUtil mailUtil; |
| | | private MailService mailService; |
| | | @Resource |
| | | private DocUserMapper userMapper; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | String subject = "Bom问题反馈-"+senderName; |
| | | String subject = "【Bom问题反馈】-"+senderName; |
| | | String content = feedback.getContent(); |
| | | mailUtil.sendMailBatch(senderName,receiverMailList,subject,content); |
| | | |
| | | MailDTO mailDTO = new MailDTO(); |
| | | mailDTO.setTitle(subject); |
| | | mailDTO.setContent(content); |
| | | mailDTO.setMailList(receiverMailList); |
| | | mailService.sendMail(mailDTO); |
| | | //mailUtil.sendMailBatch(senderName,receiverMailList,subject,content); |
| | | return new Response().set(1,true,"反馈完成"); |
| | | } |
| | | //根据文件路径下载 |
| | |
| | | } |
| | | |
| | | if(receiverMailList.size()>0) { |
| | | String subject = "Bom问题反馈-" + senderName + ",并由" + appendUsername + "转发给您"; |
| | | String subject = "【Bom问题反馈】-" + senderName + ",由" + appendUsername + "转发给您"; |
| | | String content = feedback.getContent(); |
| | | mailUtil.sendMailBatch(senderName, receiverMailList, subject, content); |
| | | MailDTO mailDTO = new MailDTO(); |
| | | mailDTO.setTitle(subject); |
| | | mailDTO.setContent(content); |
| | | mailDTO.setMailList(receiverMailList); |
| | | mailService.sendMail(mailDTO); |
| | | //mailUtil.sendMailBatch(senderName, receiverMailList, subject, content); |
| | | } |
| | | return new Response().setII(1,"追加反馈用户完成"); |
| | | } |