|
@@ -19,10 +19,10 @@ import com.goafanti.order.enums.OrderChangeProcess;
|
|
|
import com.goafanti.order.enums.OrderChangeType;
|
|
import com.goafanti.order.enums.OrderChangeType;
|
|
|
import com.goafanti.order.enums.ProcessStatus;
|
|
import com.goafanti.order.enums.ProcessStatus;
|
|
|
import com.goafanti.organization.bo.OrganizationListOut;
|
|
import com.goafanti.organization.bo.OrganizationListOut;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.mail.MessagingException;
|
|
import javax.mail.MessagingException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -33,42 +33,44 @@ import java.util.UUID;
|
|
|
@Component
|
|
@Component
|
|
|
@Async
|
|
@Async
|
|
|
public class AsyncUtils {
|
|
public class AsyncUtils {
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private NoticeMapper noticeMapper;
|
|
private NoticeMapper noticeMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private AdminMapper adminMapper;
|
|
private AdminMapper adminMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TOrderNewMapper tOrderNewMapper;
|
|
private TOrderNewMapper tOrderNewMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TOrderTaskMapper tOrderTaskMapper;
|
|
private TOrderTaskMapper tOrderTaskMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private NewOrderChangeMapper newOrderChangeMapper;
|
|
private NewOrderChangeMapper newOrderChangeMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private OrderExamineMapper orderExamineMapper;
|
|
private OrderExamineMapper orderExamineMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TaskAttributionLogMapper taskAttributionLogMapper;
|
|
private TaskAttributionLogMapper taskAttributionLogMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TTaskLogMapper tTaskLogMapper;
|
|
private TTaskLogMapper tTaskLogMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private DepartmentMapper departmentMapper;
|
|
private DepartmentMapper departmentMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private OrderChangeLogMapper orderChangeLogMapper;
|
|
private OrderChangeLogMapper orderChangeLogMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TOrderMidMapper tOrderMidMapper;
|
|
private TOrderMidMapper tOrderMidMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private RoleMapper roleMapper;
|
|
private RoleMapper roleMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private ExpenseAccountMapper expenseAccountMapper;
|
|
private ExpenseAccountMapper expenseAccountMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TOrderInvoiceMapper tOrderInvoiceMapper;
|
|
private TOrderInvoiceMapper tOrderInvoiceMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TTaskMemberMapper tTaskMemberMapper;
|
|
private TTaskMemberMapper tTaskMemberMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private TOrderPaymentMapper tOrderPaymentMapper;
|
|
private TOrderPaymentMapper tOrderPaymentMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private AdminUserCountMapper adminUserCountMapper;
|
|
private AdminUserCountMapper adminUserCountMapper;
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private FinanceCountMapper financeCountMapper;
|
|
private FinanceCountMapper financeCountMapper;
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private WeChatUtils weChatUtils;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -193,6 +195,10 @@ public class AsyncUtils {
|
|
|
addNoticAndEmail(n);
|
|
addNoticAndEmail(n);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public void addNoticAndEmail(Notice n) {
|
|
public void addNoticAndEmail(Notice n) {
|
|
|
n.setType(NoticeTypes.getType(n.getNoticeType()));
|
|
n.setType(NoticeTypes.getType(n.getNoticeType()));
|
|
|
AdminListBo a = adminMapper.getDeptNameByAid(n.getAid());
|
|
AdminListBo a = adminMapper.getDeptNameByAid(n.getAid());
|
|
@@ -825,4 +831,10 @@ public class AsyncUtils {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public void sendWeChat( String publicCarbonCopy,Integer id, String name, String startTime, String endTime, String typeName, String plan) {
|
|
|
|
|
+ Admin admin = adminMapper.selectByPrimaryKey(publicCarbonCopy);
|
|
|
|
|
+ weChatUtils.addSendCopyNotice(admin.getOpenId(), id, name, startTime, endTime, typeName, plan);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|