commit
5ac18c690b
@ -0,0 +1,33 @@
|
|||||||
|
package com.ssf.mysqloracletest.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VSwryGjxxOracle {
|
||||||
|
|
||||||
|
private String GJXXID;
|
||||||
|
private String GJLX;
|
||||||
|
private String KEY1;
|
||||||
|
private String VALUE1;
|
||||||
|
private String KEY2;
|
||||||
|
private String VALUE2;
|
||||||
|
private String KEY3;
|
||||||
|
private String VALUE3;
|
||||||
|
private String KEY4;
|
||||||
|
private String VALUE4;
|
||||||
|
private String KEY5;
|
||||||
|
private String VALUE5;
|
||||||
|
private String KEY6;
|
||||||
|
private String VALUE6;
|
||||||
|
private String KEY7;
|
||||||
|
private String VALUE7;
|
||||||
|
private String GJSJ;
|
||||||
|
private String RYWKSJ;
|
||||||
|
private String ZDRYSFZH;
|
||||||
|
private String ZDRYXM;
|
||||||
|
private String KEY8;
|
||||||
|
private String VALUE8;
|
||||||
|
private String DWBH;
|
||||||
|
private String JDZB;
|
||||||
|
private String WDZB;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.ssf.mysqloracletest.mapper;
|
||||||
|
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpUserRecord;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_user_record(涉稳列管人员人脸抓拍记录表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-05 16:27:16
|
||||||
|
* @Entity com.ssf.mysqloracletest.domain.TransitImpUserRecord
|
||||||
|
*/
|
||||||
|
public interface TransitImpUserRecordMapper extends BaseMapper<TransitImpUserRecord> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.ssf.mysqloracletest.mapper;
|
||||||
|
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpVehicleRecord;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_vehicle_record(重点人车辆记录表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-05 16:27:27
|
||||||
|
* @Entity com.ssf.mysqloracletest.domain.TransitImpVehicleRecord
|
||||||
|
*/
|
||||||
|
public interface TransitImpVehicleRecordMapper extends BaseMapper<TransitImpVehicleRecord> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.ssf.mysqloracletest.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle;
|
||||||
|
import com.ssf.mysqloracletest.domain.VSwryGjxxOracle;
|
||||||
|
import com.ssf.mysqloracletest.domain.VSySydwCyryOracle;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【v_sy_sydw_cyry】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-29 20:30:59
|
||||||
|
* @Entity com.ssf.mysqloracletest.domain.VSySydwCyry
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface VSwryGjxxOracleMapper extends BaseMapper<VSwryGjxxOracle> {
|
||||||
|
public int countSwry();
|
||||||
|
|
||||||
|
public List<VSwryGjxxOracle> getSwryList(Map map);
|
||||||
|
|
||||||
|
public List<VSwryGjxxOracle> getRealTimeRecording(String maxTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.ssf.mysqloracletest.service;
|
||||||
|
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpUserRecord;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_user_record(涉稳列管人员人脸抓拍记录表)】的数据库操作Service
|
||||||
|
* @createDate 2023-12-05 16:27:16
|
||||||
|
*/
|
||||||
|
public interface TransitImpUserRecordService extends IService<TransitImpUserRecord> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.ssf.mysqloracletest.service;
|
||||||
|
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpVehicleRecord;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_vehicle_record(重点人车辆记录表)】的数据库操作Service
|
||||||
|
* @createDate 2023-12-05 16:27:27
|
||||||
|
*/
|
||||||
|
public interface TransitImpVehicleRecordService extends IService<TransitImpVehicleRecord> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.ssf.mysqloracletest.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle;
|
||||||
|
import com.ssf.mysqloracletest.domain.VSwryGjxxOracle;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【v_sy_sydw_Swry】的数据库操作Service
|
||||||
|
* @createDate 2023-11-29 20:30:59
|
||||||
|
*/
|
||||||
|
public interface VSySwryGjxxOracleService extends IService<VSwryGjxxOracle> {
|
||||||
|
public int countSwry();
|
||||||
|
|
||||||
|
public List<VSwryGjxxOracle> getSwryList(Map map);
|
||||||
|
|
||||||
|
public List<VSwryGjxxOracle> getRealTimeRecording(String maxTime);
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.ssf.mysqloracletest.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpUserRecord;
|
||||||
|
import com.ssf.mysqloracletest.service.TransitImpUserRecordService;
|
||||||
|
import com.ssf.mysqloracletest.mapper.TransitImpUserRecordMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_user_record(涉稳列管人员人脸抓拍记录表)】的数据库操作Service实现
|
||||||
|
* @createDate 2023-12-05 16:27:16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TransitImpUserRecordServiceImpl extends ServiceImpl<TransitImpUserRecordMapper, TransitImpUserRecord>
|
||||||
|
implements TransitImpUserRecordService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.ssf.mysqloracletest.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpVehicleRecord;
|
||||||
|
import com.ssf.mysqloracletest.service.TransitImpVehicleRecordService;
|
||||||
|
import com.ssf.mysqloracletest.mapper.TransitImpVehicleRecordMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【transit_imp_vehicle_record(重点人车辆记录表)】的数据库操作Service实现
|
||||||
|
* @createDate 2023-12-05 16:27:27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TransitImpVehicleRecordServiceImpl extends ServiceImpl<TransitImpVehicleRecordMapper, TransitImpVehicleRecord>
|
||||||
|
implements TransitImpVehicleRecordService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.ssf.mysqloracletest.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ssf.mysqloracletest.domain.JcjCjxxViewOracle;
|
||||||
|
import com.ssf.mysqloracletest.domain.VSwryGjxxOracle;
|
||||||
|
import com.ssf.mysqloracletest.mapper.VSwryGjxxOracleMapper;
|
||||||
|
import com.ssf.mysqloracletest.service.VSySwryGjxxOracleService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 28758
|
||||||
|
* @description 针对表【swry】的数据库操作Service实现
|
||||||
|
* @createDate 2023-11-29 20:30:59
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("oracleSydz")
|
||||||
|
public class VSwryGjxxOracleServiceImpl extends ServiceImpl<VSwryGjxxOracleMapper, VSwryGjxxOracle>
|
||||||
|
implements VSySwryGjxxOracleService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private VSwryGjxxOracleMapper oracleMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int countSwry() {
|
||||||
|
return oracleMapper.countSwry();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<VSwryGjxxOracle> getSwryList(Map map) {
|
||||||
|
return oracleMapper.getSwryList(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<VSwryGjxxOracle> getRealTimeRecording(String time) {
|
||||||
|
return oracleMapper.getRealTimeRecording(time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,181 @@
|
|||||||
|
package com.ssf.mysqloracletest.task;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpUserRecord;
|
||||||
|
import com.ssf.mysqloracletest.domain.TransitImpVehicleRecord;
|
||||||
|
import com.ssf.mysqloracletest.domain.VSwryGjxxOracle;
|
||||||
|
import com.ssf.mysqloracletest.service.TransitImpUserRecordService;
|
||||||
|
import com.ssf.mysqloracletest.service.TransitImpVehicleRecordService;
|
||||||
|
import com.ssf.mysqloracletest.service.VSySwryGjxxOracleService;
|
||||||
|
import com.ssf.mysqloracletest.utils.ConfigParam;
|
||||||
|
import com.ssf.mysqloracletest.utils.NumKit;
|
||||||
|
import com.ssf.mysqloracletest.utils.StringKit;
|
||||||
|
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import oracle.sql.TRANSDUMP;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.CountDownLatch;
|
||||||
|
import java.util.concurrent.ExecutorService;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户数据接入
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class VSwryGjxxTask {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(VSwryGjxxTask.class);
|
||||||
|
|
||||||
|
|
||||||
|
String pattern = "yyyyMMddHHmmss";
|
||||||
|
|
||||||
|
SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private final VSySwryGjxxOracleService vSySwryGjxxOracleService;
|
||||||
|
|
||||||
|
private final TransitImpUserRecordService transitImpUserRecordService;
|
||||||
|
|
||||||
|
private final TransitImpVehicleRecordService transitImpVehicleRecordService;
|
||||||
|
|
||||||
|
final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
||||||
|
|
||||||
|
private boolean SwryTag = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连云港 对接海康平台获取人员基础数据
|
||||||
|
* //
|
||||||
|
*/
|
||||||
|
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
||||||
|
public void transSwry() {
|
||||||
|
|
||||||
|
if (SwryTag) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!"true".equals(ConfigParam.SwrySwitch)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
int countSwry = vSySwryGjxxOracleService.countSwry();
|
||||||
|
logger.info("countSwry:" + countSwry);
|
||||||
|
|
||||||
|
logger.info("countSwry:" + countSwry);
|
||||||
|
if (countSwry > 0) {
|
||||||
|
|
||||||
|
SwryTag = true;
|
||||||
|
|
||||||
|
int count = countSwry / oncesCounts;
|
||||||
|
CountDownLatch latch = new CountDownLatch(count);
|
||||||
|
ExecutorService SwryPool = Executors.newFixedThreadPool(50);
|
||||||
|
|
||||||
|
for (int i = 0; i <= count; i++) {
|
||||||
|
Map SwryMap = new HashMap();
|
||||||
|
SwryMap.put("rowStart", i * oncesCounts);
|
||||||
|
SwryMap.put("rowEnd", (i + 1) * oncesCounts);
|
||||||
|
SwryPool.submit(() -> {
|
||||||
|
try {
|
||||||
|
List<VSwryGjxxOracle> Swrys = vSySwryGjxxOracleService.getSwryList(SwryMap);
|
||||||
|
for (VSwryGjxxOracle swry : Swrys) {
|
||||||
|
if ("02".equals(swry.getGJLX())){
|
||||||
|
TransitImpVehicleRecord transitImpVehicleRecord = new TransitImpVehicleRecord();
|
||||||
|
transitImpVehicleRecord.setDeviceCode(swry.getVALUE3());
|
||||||
|
transitImpVehicleRecord.setLongitude(NumKit.checkBigDecimal(swry.getJDZB()));
|
||||||
|
transitImpVehicleRecord.setLatitude(NumKit.checkBigDecimal(swry.getWDZB()));
|
||||||
|
transitImpVehicleRecord.setDeviceAddress(swry.getVALUE1());
|
||||||
|
transitImpVehicleRecord.setPlateNo(swry.getVALUE2());
|
||||||
|
transitImpVehicleRecord.setGlobalPic(swry.getVALUE5());
|
||||||
|
transitImpVehicleRecord.setUserPic(swry.getVALUE4());
|
||||||
|
transitImpVehicleRecord.setOwnerName(swry.getZDRYXM());
|
||||||
|
transitImpVehicleRecord.setIdCard(swry.getZDRYSFZH());
|
||||||
|
transitImpVehicleRecord.setPassTime(NumKit.checkLong(swry.getRYWKSJ()));
|
||||||
|
transitImpVehicleRecord.setPartitionField(dateFormat.parse(swry.getRYWKSJ()));
|
||||||
|
TransitImpVehicleRecord one = transitImpVehicleRecordService.lambdaQuery().eq(TransitImpVehicleRecord::getGlobalPic, swry.getVALUE5()).one();
|
||||||
|
if (one==null){
|
||||||
|
boolean save = transitImpVehicleRecordService.save(transitImpVehicleRecord);
|
||||||
|
if (save) {
|
||||||
|
logger.info("Swry-" + swry.getGJXXID() + ":插入成功");
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
UpdateWrapper<TransitImpVehicleRecord> transitImpVehicleRecordUpdateWrapper = new UpdateWrapper<>();
|
||||||
|
transitImpVehicleRecordUpdateWrapper.eq("global_pic",swry.getVALUE5());
|
||||||
|
boolean update = transitImpVehicleRecordService.update(transitImpVehicleRecord, transitImpVehicleRecordUpdateWrapper);
|
||||||
|
if (update) {
|
||||||
|
logger.info("Swry-" + swry.getGJXXID() + ":更新成功");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if ("03".equals(swry.getGJSJ())){
|
||||||
|
TransitImpUserRecord transitImpUserRecord = new TransitImpUserRecord();
|
||||||
|
transitImpUserRecord.setDeviceCode(swry.getVALUE6());
|
||||||
|
transitImpUserRecord.setLongitude(NumKit.checkBigDecimal(swry.getJDZB()));
|
||||||
|
transitImpUserRecord.setLatitude(NumKit.checkBigDecimal(swry.getWDZB()));
|
||||||
|
transitImpUserRecord.setDeviceAddress(swry.getVALUE1());
|
||||||
|
transitImpUserRecord.setGlobalPic(swry.getVALUE4());
|
||||||
|
transitImpUserRecord.setUserPic(swry.getVALUE3());
|
||||||
|
transitImpUserRecord.setSimilarity(swry.getVALUE2());
|
||||||
|
transitImpUserRecord.setOwnerName(swry.getZDRYXM());
|
||||||
|
transitImpUserRecord.setIdCard(swry.getZDRYSFZH());
|
||||||
|
transitImpUserRecord.setPassTime(NumKit.checkLong(swry.getRYWKSJ()));
|
||||||
|
transitImpUserRecord.setPartitionField(dateFormat.parse(swry.getRYWKSJ()));
|
||||||
|
TransitImpUserRecord one = transitImpUserRecordService.lambdaQuery().eq(TransitImpUserRecord::getGlobalPic,swry.getVALUE4()).one();
|
||||||
|
if (one==null) {
|
||||||
|
boolean save = transitImpUserRecordService.save(transitImpUserRecord);
|
||||||
|
if (save) {
|
||||||
|
logger.info("Swry-" + swry.getGJXXID() + ":插入成功");
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
UpdateWrapper<TransitImpUserRecord> transitImpUserRecordUpdateWrapper = new UpdateWrapper<>();
|
||||||
|
transitImpUserRecordUpdateWrapper.eq("global_pic",swry.getVALUE4());
|
||||||
|
boolean update = transitImpUserRecordService.update(transitImpUserRecord, transitImpUserRecordUpdateWrapper);
|
||||||
|
if (update) {
|
||||||
|
logger.info("Swry-" + swry.getGJXXID() + ":更新成功");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("Swrys:" + StringKit.getTrace(e));
|
||||||
|
}
|
||||||
|
latch.countDown();
|
||||||
|
});
|
||||||
|
logger.info("SwryMap数据总量:" + countSwry + "," + "当前处理下标:" + SwryMap.get("rowStart") + "/" + SwryMap.get("rowEnd"));
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Wait for all threads to complete
|
||||||
|
latch.await();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
// 关闭线程池
|
||||||
|
SwryPool.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info(StringKit.getTrace(e));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ssf.mysqloracletest.mapper.VSwryGjxxOracleMapper">
|
||||||
|
|
||||||
|
<select id="countSwry" resultType="int">
|
||||||
|
select count(*)
|
||||||
|
from SYX_JWSZPT.V_SWRY_GJXX
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.ssf.mysqloracletest.domain.VSwryGjxxOracle">
|
||||||
|
<result property="GJXXID" column="GJXXID" jdbcType="VARCHAR"/>
|
||||||
|
<result property="GJLX" column="GJLX" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY1" column="KEY1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE1" column="VALUE1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY2" column="KEY2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE2" column="VALUE2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY3" column="KEY3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE3" column="VALUE3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY4" column="KEY4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE4" column="VALUE4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY5" column="KEY5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE5" column="VALUE5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY6" column="KEY6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE6" column="VALUE6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY7" column="KEY7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE7" column="VALUE7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="GJSJ" column="GJSJ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="RYWKSJ" column="RYWKSJ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ZDRYSFZH" column="ZDRYSFZH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ZDRYXM" column="ZDRYXM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="KEY8" column="KEY8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="VALUE8" column="VALUE8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="DWBH" column="DWBH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="JDZB" column="JDZB" jdbcType="VARCHAR"/>
|
||||||
|
<result property="WDZB" column="WDZB" jdbcType="VARCHAR"/>
|
||||||
|
|
||||||
|
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<select id="getSwryList" parameterType="java.util.Map" resultMap="BaseResultMap">
|
||||||
|
SELECT t2.*
|
||||||
|
FROM (SELECT ROWNUM rn, t1.* FROM (SELECT * FROM SYX_JWSZPT.V_SWRY_GJXX) t1 WHERE ROWNUM<![CDATA[ <= ]]> ${rowEnd}) t2
|
||||||
|
WHERE t2.rn <![CDATA[ >= ]]> ${rowStart}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getRealTimeRecording" parameterType="java.util.Map" resultMap="BaseResultMap">
|
||||||
|
SELECT * FROM SYX_JWSZPT.V_SWRY_GJXX where GJSJ >#{maxTime}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in new issue