|
|
@@ -9,9 +9,7 @@ import java.util.UUID;
|
|
|
import javax.mail.MessagingException;
|
|
|
|
|
|
import com.goafanti.admin.bo.AdminListBo;
|
|
|
-import com.goafanti.common.dao.AdminMapper;
|
|
|
-import com.goafanti.common.dao.NewOrderChangeMapper;
|
|
|
-import com.goafanti.common.dao.TChangeTaskMapper;
|
|
|
+import com.goafanti.common.dao.*;
|
|
|
import com.goafanti.common.enums.NoticeStatus;
|
|
|
import com.goafanti.common.model.Admin;
|
|
|
import com.goafanti.common.model.TChangeTask;
|
|
|
@@ -22,7 +20,6 @@ import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
-import com.goafanti.common.dao.NoticeMapper;
|
|
|
import com.goafanti.common.enums.NoticeTypes;
|
|
|
import com.goafanti.common.model.Notice;
|
|
|
|
|
|
@@ -34,9 +31,11 @@ public class AsyncUtils {
|
|
|
@Autowired
|
|
|
private AdminMapper adminMapper;
|
|
|
@Autowired
|
|
|
- private TChangeTaskMapper tChangeTaskMapper;
|
|
|
+ private TOrderNewMapper tOrderNewMapper;
|
|
|
@Autowired
|
|
|
private NewOrderChangeMapper newOrderChangeMapper;
|
|
|
+ @Autowired
|
|
|
+ private TOrderInvoiceMapper tOrderInvoiceMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -111,7 +110,22 @@ public class AsyncUtils {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 切换审核人员
|
|
|
+ * @param type 3财务
|
|
|
+ * @param depId 部门编号
|
|
|
+ * @param aid 切换后审核人
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void updateexamineName(Integer type, String depId, String aid) {
|
|
|
+ if (type==3){
|
|
|
+ tOrderNewMapper.updateexamineName(3,depId,aid);
|
|
|
+ newOrderChangeMapper.updateexamineName(5,depId,aid);
|
|
|
+ tOrderInvoiceMapper.updateexamineName(0,depId,aid);
|
|
|
+ }else if (type==1){
|
|
|
+ tOrderNewMapper.updateexamineName(1,depId,aid);
|
|
|
+ newOrderChangeMapper.updateexamineName(1,depId,aid);
|
|
|
+ tOrderInvoiceMapper.updateexamineName(1,depId,aid);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|