|
|
@@ -22,6 +22,8 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.core.task.TaskExecutor;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
@@ -925,7 +927,22 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
|
|
|
return tOrderLogMapper.selectOrderByNo(orderNo);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 异步发送邮件
|
|
|
+ *
|
|
|
+ * @param email
|
|
|
+ */
|
|
|
+ @Async
|
|
|
+ public void sendMailByAsynchronousMode(List<String> alist, Integer type,String OrderNo,String adminId){
|
|
|
+ try {
|
|
|
+ generalSendNoticeAndEmail(alist, type, OrderNo, adminId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Async
|
|
|
public void generalSendNoticeAndEmail(List<String> alist, Integer type,String OrderNo,String adminId) {
|
|
|
AdminListBo a = adminMapper.getDeptNameByAid(TokenManager.getAdminId());
|
|
|
String str=NoticeStatus.getValueByCode(type)+": 订单编号 -"+OrderNo+", 操作人:"+a.getDepartmentName()+"-"+a.getName()+"。";
|