|
@@ -16,6 +16,7 @@ import com.malk.utils.UtilMap;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.sql.*;
|
|
import java.sql.*;
|
|
@@ -493,8 +494,10 @@ public class NCServiceImpl implements NCService {
|
|
@Override
|
|
@Override
|
|
public void getProjectOperate() {
|
|
public void getProjectOperate() {
|
|
int year = lastMonth.getYear();
|
|
int year = lastMonth.getYear();
|
|
|
|
+ System.out.println(year);
|
|
String month = String.format("%02d",lastMonth.getMonthValue()) ;
|
|
String month = String.format("%02d",lastMonth.getMonthValue()) ;
|
|
String yearAndMonth = year +"-"+month;
|
|
String yearAndMonth = year +"-"+month;
|
|
|
|
+ log.info("年月:{}",yearAndMonth);
|
|
LocalDate now = LocalDate.now();
|
|
LocalDate now = LocalDate.now();
|
|
int thisYear = now.getYear();
|
|
int thisYear = now.getYear();
|
|
String thisStrMonth = String.format("%02d",now.getMonthValue());
|
|
String thisStrMonth = String.format("%02d",now.getMonthValue());
|
|
@@ -1878,7 +1881,7 @@ public class NCServiceImpl implements NCService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Async
|
|
@Override
|
|
@Override
|
|
public void getNcCollection(Map data) {
|
|
public void getNcCollection(Map data) {
|
|
String year = data.get("year").toString();
|
|
String year = data.get("year").toString();
|
|
@@ -1991,6 +1994,7 @@ public class NCServiceImpl implements NCService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Async
|
|
@Override
|
|
@Override
|
|
public void getNcCollectionOld(Map data) {
|
|
public void getNcCollectionOld(Map data) {
|
|
|
|
|