|
|
@ -36,13 +36,12 @@ public class MetaImpUserModelInfoTask {
|
|
|
|
|
|
|
|
|
|
|
|
// final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
|
|
|
// final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
|
|
|
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
|
|
|
public void transswzdry() {
|
|
|
|
public void transswzdry() {
|
|
|
|
if (!"true".equals(ConfigParam.SwzdrySwitch)) {
|
|
|
|
if (!"true".equals(ConfigParam.SwzdrySwitch)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
String format = now.format(formatter);
|
|
|
|
String format = now.format(formatter);
|
|
|
@ -51,18 +50,22 @@ public class MetaImpUserModelInfoTask {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<SwzdryView> wrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<SwzdryView> wrapper = new QueryWrapper<>();
|
|
|
|
wrapper.between("HDFSSJ", format1, format);
|
|
|
|
wrapper.between("YJFBSJ", format1, format);
|
|
|
|
List<SwzdryView> list = swzdryViewService.list(wrapper);
|
|
|
|
List<SwzdryView> list = swzdryViewService.list(wrapper);
|
|
|
|
for (SwzdryView Info : list) {
|
|
|
|
for (SwzdryView Info : list) {
|
|
|
|
MetaImpUserModelInfo modelInfo = new MetaImpUserModelInfo();
|
|
|
|
MetaImpUserModelInfo modelInfo = new MetaImpUserModelInfo();
|
|
|
|
modelInfo.setWarning_id(Info.getZDRYYJXXID());
|
|
|
|
modelInfo.setWarning_id(Info.getZDRYYJXXID());
|
|
|
|
modelInfo.setDataType(Integer.parseInt(Info.getDTXXLB()));
|
|
|
|
modelInfo.setDataType(Info.getDTXXLB());
|
|
|
|
modelInfo.setImpUserSubType(Info.getZDRYXL());
|
|
|
|
modelInfo.setImpUserSubType(Info.getZDRYXL());
|
|
|
|
modelInfo.setImpUserName(Info.getZDRYXM());
|
|
|
|
modelInfo.setImpUserName(Info.getZDRYXM());
|
|
|
|
modelInfo.setImpUserIdCard(Info.getZDRYSFZH());
|
|
|
|
modelInfo.setImpUserIdCard(Info.getZDRYSFZH());
|
|
|
|
modelInfo.setLongitude(Info.getHDFSDJDZB());
|
|
|
|
modelInfo.setLongitude(Info.getHDFSDJDZB());
|
|
|
|
modelInfo.setLatitude(Info.getHDFSDWDZB());
|
|
|
|
modelInfo.setLatitude(Info.getHDFSDWDZB());
|
|
|
|
modelInfo.setActivityTime(Info.getHDFSSJ());
|
|
|
|
String hdfssj = Info.getHDFSSJ();
|
|
|
|
|
|
|
|
String yjfbsjString = Info.getYJFBSJ();
|
|
|
|
|
|
|
|
LocalDateTime hdfssjTime = LocalDateTime.parse(hdfssj, formatter);
|
|
|
|
|
|
|
|
LocalDateTime yjfbsjTime = LocalDateTime.parse(yjfbsjString, formatter);
|
|
|
|
|
|
|
|
modelInfo.setActivityTime(hdfssjTime.format(outputFormatter));
|
|
|
|
modelInfo.setActivityDeviceAddress(Info.getHDFSCSDM());
|
|
|
|
modelInfo.setActivityDeviceAddress(Info.getHDFSCSDM());
|
|
|
|
modelInfo.setActivityDeviceCode(Info.getHDFSCSDM());
|
|
|
|
modelInfo.setActivityDeviceCode(Info.getHDFSCSDM());
|
|
|
|
modelInfo.setActivityPoliceStationCode(Info.getHDFSDSSGAJGDM());
|
|
|
|
modelInfo.setActivityPoliceStationCode(Info.getHDFSDSSGAJGDM());
|
|
|
@ -74,9 +77,7 @@ public class MetaImpUserModelInfoTask {
|
|
|
|
modelInfo.setDisposalStatus(Integer.parseInt(Info.getFKZT()));// 反馈状态 0:未反馈 1:已反馈
|
|
|
|
modelInfo.setDisposalStatus(Integer.parseInt(Info.getFKZT()));// 反馈状态 0:未反馈 1:已反馈
|
|
|
|
modelInfo.setSignPoliceStation(Info.getYJJSDWMC());
|
|
|
|
modelInfo.setSignPoliceStation(Info.getYJJSDWMC());
|
|
|
|
modelInfo.setSignPoliceCode(Info.getYJJSDW());
|
|
|
|
modelInfo.setSignPoliceCode(Info.getYJJSDW());
|
|
|
|
String yjfbsjString = Info.getYJFBSJ();
|
|
|
|
modelInfo.setWarningTime(yjfbsjTime.format(outputFormatter));
|
|
|
|
Date yjfbsjDate = dateFormat.parse(yjfbsjString);
|
|
|
|
|
|
|
|
modelInfo.setWarningTime(StringKit.toString(yjfbsjDate));
|
|
|
|
|
|
|
|
modelInfo.setIsImpAddress(Info.getSFZDDW());
|
|
|
|
modelInfo.setIsImpAddress(Info.getSFZDDW());
|
|
|
|
modelInfo.setKey1(Info.getKEY1());
|
|
|
|
modelInfo.setKey1(Info.getKEY1());
|
|
|
|
modelInfo.setKey2(Info.getKEY2());
|
|
|
|
modelInfo.setKey2(Info.getKEY2());
|
|
|
|