|
|
@@ -1,11 +1,9 @@
|
|
|
package com.goafanti.common.task;
|
|
|
|
|
|
|
|
|
-import java.io.UnsupportedEncodingException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
|
|
|
-import javax.mail.MessagingException;
|
|
|
|
|
|
import com.goafanti.common.bo.ErrorDunListBo;
|
|
|
import com.goafanti.order.bo.*;
|
|
|
@@ -16,11 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
@@ -32,7 +26,6 @@ import com.goafanti.common.enums.NoticeStatus;
|
|
|
import com.goafanti.common.model.Notice;
|
|
|
import com.goafanti.common.model.PaymentNode;
|
|
|
import com.goafanti.common.model.TArrearsDun;
|
|
|
-import com.goafanti.common.model.TOrderDun;
|
|
|
import com.goafanti.common.model.TOrderMid;
|
|
|
import com.goafanti.common.model.TOrderNew;
|
|
|
import com.goafanti.common.utils.AsyncUtils;
|
|
|
@@ -88,7 +81,7 @@ public class OrderDunTask {
|
|
|
/**
|
|
|
* 法务订单催款处理
|
|
|
*/
|
|
|
- @RequestMapping(value = "/open/pushLegalAffairs", method = RequestMethod.GET)
|
|
|
+// @RequestMapping(value = "/open/pushLegalAffairs", method = RequestMethod.GET)
|
|
|
public void pushLegalAffairs() {
|
|
|
InputOrderListBo in = new InputOrderListBo();
|
|
|
in.setType(0);
|
|
|
@@ -118,7 +111,7 @@ public class OrderDunTask {
|
|
|
/**
|
|
|
* 询处理需要新催款的信息
|
|
|
*/
|
|
|
- @RequestMapping(value = "/open/updateNewOrderDun", method = RequestMethod.GET)
|
|
|
+// @RequestMapping(value = "/open/updateNewOrderDun", method = RequestMethod.GET)
|
|
|
public void updateNewOrderDun(){
|
|
|
try {
|
|
|
LoggerUtils.debug(logger, "======================新催款任务轮询启动===================");
|
|
|
@@ -224,7 +217,7 @@ public class OrderDunTask {
|
|
|
*
|
|
|
*/
|
|
|
@Scheduled(cron = "0 0 4 1 * ?")
|
|
|
- @RequestMapping(value = "/open/pushOrderArrearsDun", method = RequestMethod.GET)
|
|
|
+// @RequestMapping(value = "/open/pushOrderArrearsDun", method = RequestMethod.GET)
|
|
|
public void pushOrderArrearsDun(){
|
|
|
try {
|
|
|
LoggerUtils.debug(logger, "======================欠款催款启动===================");
|
|
|
@@ -404,17 +397,4 @@ public class OrderDunTask {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private void updateOrderDun(OrderDunTaskBo t) throws UnsupportedEncodingException, MessagingException {
|
|
|
- LoggerUtils.debug(logger, "======================修改催款任务===================");
|
|
|
- TOrderDun tDun=new TOrderDun();
|
|
|
- tDun.setId(t.getId());
|
|
|
- tDun.setDunStatus(1);
|
|
|
- tDun.setStartTime(new Date());
|
|
|
- orderNewService.updateOrderDun(tDun);
|
|
|
- orderNewService.addNoticAndSendEmail(t.getOrderNo(),t,NoticeStatus.ORDER_DUN.getCode());
|
|
|
- }
|
|
|
-
|
|
|
}
|