|
|
@@ -102,7 +102,7 @@ public class RateTask {
|
|
|
//先写在代码上,20个工作日自动好评
|
|
|
automaticReceipt = 20;
|
|
|
|
|
|
- List<Order> orderList = orderService.findByAfterStatus(Status.RECEIVED.value());
|
|
|
+ List<Order> orderList = orderService.findByNotRateVendor();
|
|
|
String ids = "-";
|
|
|
for (Order order : orderList) {
|
|
|
List<StatusHistory> statusHistories = FastjsonUtils.fromJsonArray(order.getStatushistory(), StatusHistory.class);
|
|
|
@@ -161,7 +161,7 @@ public class RateTask {
|
|
|
}
|
|
|
// //先写在代码上,180个工作日自动追评价
|
|
|
automaticReceipt = 180;
|
|
|
- List<Order> orderList = orderService.findByAfterStatus(Status.RECEIVED.value());
|
|
|
+ List<Order> orderList = orderService.findByNotRateVendor();
|
|
|
String ids = "-";
|
|
|
for (Order order : orderList) {
|
|
|
List<StatusHistory> statusHistories = FastjsonUtils.fromJsonArray(order.getStatushistory(), StatusHistory.class);
|
|
|
@@ -204,7 +204,7 @@ public class RateTask {
|
|
|
private void autoVendorRate(Integer automaticReceipt,boolean isFirst) {
|
|
|
try {
|
|
|
//采购单的自动初评
|
|
|
- List<Purchase> purchasesList = purchaseService.findByAfterStatus(Status.TOBEPAID.value());
|
|
|
+ List<Purchase> purchasesList = purchaseService.findByNotRateVendor();
|
|
|
String pids = "-";
|
|
|
for (Purchase purchase : purchasesList) {
|
|
|
List<StatusHistory> statusHistories = FastjsonUtils.fromJsonArray(purchase.getStatushistory(), StatusHistory.class);
|