|
|
|
@ -18,6 +18,9 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
|
|
@ -33,12 +36,17 @@ public class MetaImpUserModelInfoTask {
|
|
|
|
|
|
|
|
|
|
final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
|
|
|
|
public void transswzdry() {
|
|
|
|
|
if (!"true".equals(ConfigParam.SwzdrySwitch)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
|
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
String format = now.format(formatter);
|
|
|
|
|
String format1 = now.minusDays(1).format(formatter);
|
|
|
|
|
try {
|
|
|
|
|
int countTStrh = swzdryViewService.count();
|
|
|
|
|
if (countTStrh > 0) {
|
|
|
|
@ -47,8 +55,9 @@ public class MetaImpUserModelInfoTask {
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i <= count; i++) {
|
|
|
|
|
try {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
|
|
|
|
|
QueryWrapper<SwzdryView> wrapper = new QueryWrapper<>();
|
|
|
|
|
wrapper.between("HDFSSJ",format1,format);
|
|
|
|
|
List<SwzdryView> list = swzdryViewService.list(wrapper);
|
|
|
|
|
for (SwzdryView Info : list) {
|
|
|
|
|
MetaImpUserModelInfo modelInfo = new MetaImpUserModelInfo();
|
|
|
|
|