|
|
@@ -36,9 +36,11 @@ import com.goafanti.order.service.OrderProjectService;
|
|
|
import com.goafanti.organization.bo.OutPaymentNode;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
@Component
|
|
|
+@RestController
|
|
|
public class OrderDunTask {
|
|
|
@Autowired
|
|
|
private OrderNewService orderNewService;
|
|
|
@@ -114,7 +116,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, "======================新催款任务轮询启动===================");
|
|
|
@@ -240,7 +242,7 @@ public class OrderDunTask {
|
|
|
td.setStartTime(date);
|
|
|
td.setOrderArrears(tm.getOrderArrears());
|
|
|
td.setOrderReceivables(tm.getOrderReceivables());
|
|
|
- orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b,0);
|
|
|
+ orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b);
|
|
|
tArrearsDunMapper.updateByPrimaryKeySelective(td);
|
|
|
}else if(tm.getOrderArrears().compareTo(new BigDecimal(0))<1) {
|
|
|
td.setDunStatus(2);
|
|
|
@@ -264,7 +266,7 @@ public class OrderDunTask {
|
|
|
ta.setOrderArrears(tm.getOrderArrears());
|
|
|
ta.setOrderReceivables(tm.getOrderReceivables());
|
|
|
tArrearsDunMapper.insertSelective(ta);
|
|
|
- orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b,0);
|
|
|
+ orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b);
|
|
|
}else if(tm.getOrderArrears().compareTo(new BigDecimal(0))<1) {
|
|
|
ta.setDunStatus(2);
|
|
|
ta.setOrderArrears(tm.getOrderArrears());
|
|
|
@@ -288,7 +290,7 @@ public class OrderDunTask {
|
|
|
ta.setOrderArrears(tm.getOrderArrears());
|
|
|
ta.setOrderReceivables(tm.getOrderReceivables());
|
|
|
tArrearsDunMapper.insertSelective(ta);
|
|
|
- orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b,0);
|
|
|
+ orderNewService.addNotic(NoticeStatus.ORDER_ARREARS_DUN.getCode(),a,b);
|
|
|
}else if(tm.getOrderArrears().compareTo(new BigDecimal(0))<1) {
|
|
|
ta.setDunStatus(2);
|
|
|
ta.setOrderReceivables(tm.getOrderReceivables());
|