|
@@ -44,59 +44,45 @@ import java.util.stream.Collectors;
|
|
@Service
|
|
@Service
|
|
public class MailServiceImpl implements IMailService {
|
|
public class MailServiceImpl implements IMailService {
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 创建一个线程池
|
|
|
|
+ */
|
|
|
|
+ private static final ExecutorService executorService = new ThreadPoolExecutor(
|
|
|
|
+ 5,
|
|
|
|
+ 10,
|
|
|
|
+ 1,
|
|
|
|
+ TimeUnit.MINUTES,
|
|
|
|
+ new ArrayBlockingQueue<>(10)
|
|
|
|
+ );
|
|
@Autowired
|
|
@Autowired
|
|
private MailMapper mailMapper;
|
|
private MailMapper mailMapper;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPersonalMessageService personalMessageService;
|
|
private IPersonalMessageService personalMessageService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseMessageService enterpriseMessageService;
|
|
private IEnterpriseMessageService enterpriseMessageService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseMessageAddressService enterpriseMessageAddressService;
|
|
private IEnterpriseMessageAddressService enterpriseMessageAddressService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseMessageAttachmentService enterpriseMessageAttachmentService;
|
|
private IEnterpriseMessageAttachmentService enterpriseMessageAttachmentService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseMessageContentService enterpriseMessageContentService;
|
|
private IEnterpriseMessageContentService enterpriseMessageContentService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPersonalMessageAddressService personalMessageAddressService;
|
|
private IPersonalMessageAddressService personalMessageAddressService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPersonalMessageAttachmentService personalMessageAttachmentService;
|
|
private IPersonalMessageAttachmentService personalMessageAttachmentService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPersonalMessageContentService personalMessageContentService;
|
|
private IPersonalMessageContentService personalMessageContentService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPersonalMailboxService personalMailboxService;
|
|
private IPersonalMailboxService personalMailboxService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseMailboxService enterpriseMailboxService;
|
|
private IEnterpriseMailboxService enterpriseMailboxService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseDomainService enterpriseDomainService;
|
|
private IEnterpriseDomainService enterpriseDomainService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private TransactionDefinition transactionDefinition;
|
|
private TransactionDefinition transactionDefinition;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private PlatformTransactionManager platformTransactionManager;
|
|
private PlatformTransactionManager platformTransactionManager;
|
|
|
|
|
|
- /**
|
|
|
|
- * 创建一个线程池
|
|
|
|
- */
|
|
|
|
- private static final ExecutorService executorService = new ThreadPoolExecutor(
|
|
|
|
- 5,
|
|
|
|
- 10,
|
|
|
|
- 1,
|
|
|
|
- TimeUnit.MINUTES,
|
|
|
|
- new ArrayBlockingQueue<>(10)
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
public List<MailboxInfo> getMailboxInfoListByUserId(List<Long> userIdList) {
|
|
public List<MailboxInfo> getMailboxInfoListByUserId(List<Long> userIdList) {
|
|
if (ObjectUtil.isEmpty(userIdList)) {
|
|
if (ObjectUtil.isEmpty(userIdList)) {
|