develop
hanrenchun 11 months ago
parent 829c2b9a64
commit 1829fd77f7

@ -1,6 +1,5 @@
package com.ssf.mysqloracletest.domain; package com.ssf.mysqloracletest.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -3,11 +3,10 @@ package com.ssf.mysqloracletest.domain;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import lombok.Data;
/** /**
* @TableName jcj_jjxx_view * @TableName jcj_jjxx_view
*/ */

@ -4,10 +4,11 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import lombok.Data;
/** /**
* *
@ -22,71 +23,103 @@ public class MetaAlarmInfo implements Serializable {
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
private Long id; private Long id;
@TableField(value = "alarm_code")
private String alarmCode; private String alarmCode;
/** /**
* *
*/ */
@TableField(value = "police_receiver_name")
private String policeReceiverName; private String policeReceiverName;
/** /**
* *
*/ */
@TableField(value = "alarm_response_unit")
private String alarmResponseUnit; private String alarmResponseUnit;
/** /**
* *
*/ */
@TableField(value = "alarm_response_time")
private String alarmResponseTime; private String alarmResponseTime;
/** /**
* *
*/ */
@TableField(value = "alarm_response_content")
private String alarmResponseContent; private String alarmResponseContent;
/** /**
* *
*/ */
@TableField(value = "alarm_response_type_name")
private String alarmResponseTypeName; private String alarmResponseTypeName;
/** /**
* *
*/ */
@TableField(value = "informant_name")
private String informantName; private String informantName;
/** /**
* *
*/ */
@TableField(value = "informant_phone")
private String informantPhone; private String informantPhone;
/** /**
* *
*/ */
@TableField(value = "informant_time")
private String informantTime; private String informantTime;
/** /**
* *
*/ */
@TableField(value = "alarm_address")
private String alarmAddress; private String alarmAddress;
/** /**
* *
*/ */
@TableField(value = "longitude")
private BigDecimal longitude; private BigDecimal longitude;
/** /**
* *
*/ */
@TableField(value = "latitude")
private BigDecimal latitude; private BigDecimal latitude;
/** /**
* *
*/ */
@TableField(value = "create_time")
private Date createTime; private Date createTime;
/**
*
*/
@TableField(value = "create_by")
private Integer createBy;
/**
*
*/
@TableField(value = "update_time")
private Date updateTime;
/**
*
*/
@TableField(value = "update_by")
private Integer updateBy;
/** /**
* 0:,1: * 0:,1:
*/ */
@TableField(value = "is_active")
private Integer isActive; private Integer isActive;
// @TableField(exist = false) // @TableField(exist = false)

@ -4,9 +4,10 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import lombok.Data;
/** /**
* *
@ -24,51 +25,78 @@ public class MetaHandleAlarmInfo implements Serializable {
/** /**
* *
*/ */
@TableField(value = "alarm_code")
private String alarmCode; private String alarmCode;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_unit")
private String handleAlarmUnit; private String handleAlarmUnit;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_time")
private String handleAlarmTime; private String handleAlarmTime;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_content")
private String handleAlarmContent; private String handleAlarmContent;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_address")
private String handleAlarmAddress; private String handleAlarmAddress;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_user")
private String handleAlarmUser; private String handleAlarmUser;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_user_code")
private String handleAlarmUserCode; private String handleAlarmUserCode;
/** /**
* *
*/ */
@TableField(value = "handle_alarm_result")
private String handleAlarmResult; private String handleAlarmResult;
/** /**
* *
*/ */
@TableField(value = "create_time")
private Date createTime; private Date createTime;
/**
*
*/
@TableField(value = "create_by")
private Integer createBy;
/**
*
*/
@TableField(value = "update_time")
private Date updateTime;
/**
*
*/
@TableField(value = "update_by")
private Integer updateBy;
/** /**
* 0:,1: * 0:,1:
*/ */
@TableField(value = "is_active")
private Integer isActive; private Integer isActive;
@TableField(exist = false) @TableField(exist = false)

@ -0,0 +1,207 @@
package com.ssf.mysqloracletest.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* @TableName transit_user_record
*/
@TableName(value ="transit_user_record")
@Data
public class TransitUserRecord implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
*
*/
@TableId
private Date partitionField;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String deviceCode;
/**
*
*/
private String deviceName;
/**
*
*/
private String gbsChannelNo;
/**
*
*/
private String deviceAddress;
/**
*
*/
private Integer orientation;
/**
* ip
*/
private String deviceIp;
/**
*
*/
private String globalPic;
/**
*
*/
private String personPic;
/**
*
*/
private String bodyGlobalPic;
/**
*
*/
private String bodyPic;
/**
*
*/
private String userStandardPic;
/**
*
*/
private String userName;
/**
*
*/
private String dossierCode;
/**
*
*/
private String idCard;
/**
*
*/
private String phone;
/**
*
*/
private String recordId;
/**
*
*/
private String userVehicleRecordId;
/**
* ID
*/
private String userBodyRecordId;
/**
*
*/
private String stUserRecordId;
/**
* ID
*/
private String sourceId;
/**
* ID
*/
private String personImageId;
/**
* ID
*/
private String globalImageId;
/**
*
*/
private String similarity;
/**
*
*/
private Integer isCompare;
/**
*
*/
private Integer direction;
/**
*
*/
private Long passTime;
/**
*
*/
private String axis;
/**
*
*/
private Integer dataSrc;
/**
*
*/
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,232 @@
package com.ssf.mysqloracletest.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* @TableName transit_vehicle_record
*/
@TableName(value ="transit_vehicle_record")
@Data
public class TransitVehicleRecord implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
*
*/
@TableId
private Date partitionField;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String deviceCode;
/**
*
*/
private String deviceName;
/**
*
*/
private String gbsChannelNo;
/**
*
*/
private String deviceAddress;
/**
*
*/
private Integer orientation;
/**
* ip
*/
private String deviceIp;
/**
*
*/
private String plateNo;
/**
*
*/
private String globalPic;
/**
*
*/
private String platePic;
/**
* ID
*/
private String recordId;
/**
* ID
*/
private String sourceId;
/**
* ID
*/
private String plateImageId;
/**
* ID
*/
private String globalImageId;
/**
*
*/
private String userVehicleRecordId;
/**
*
*/
private String ownerPersonPic;
/**
*
*/
private String ownerGlobalPic;
/**
*
*/
private String ownerName;
/**
*
*/
private String idCard;
/**
*
*/
private String phone;
/**
*
*/
private String copilotPersonPic;
/**
*
*/
private String copilotGlobalPic;
/**
*
*/
private String copilotOwnerName;
/**
*
*/
private String copilotIdcard;
/**
*
*/
private String copilotPhone;
/**
*
*/
private Integer direction;
/**
*
*/
private String doorwayCode;
/**
*
*/
private String roadCode;
/**
*
*/
private Long passTime;
/**
*
*/
private String plateColor;
/**
*
*/
private String vehicleColor;
/**
*
*/
private String vehicleType;
/**
*
*/
private String vehicleBrand;
/**
*
*/
private Integer dataSrc;
/**
*
*/
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -2,7 +2,6 @@ package com.ssf.mysqloracletest.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql; import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**

@ -3,6 +3,7 @@ package com.ssf.mysqloracletest.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssf.mysqloracletest.domain.JcjCjxxViewOracle; import com.ssf.mysqloracletest.domain.JcjCjxxViewOracle;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

@ -1,7 +1,7 @@
package com.ssf.mysqloracletest.mapper; package com.ssf.mysqloracletest.mapper;
import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**

@ -1,7 +1,7 @@
package com.ssf.mysqloracletest.mapper; package com.ssf.mysqloracletest.mapper;
import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**

@ -0,0 +1,18 @@
package com.ssf.mysqloracletest.mapper;
import com.ssf.mysqloracletest.domain.TransitUserRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author 28758
* @description transit_user_record()Mapper
* @createDate 2023-12-14 16:46:10
* @Entity com.ssf.mysqloracletest.domain.TransitUserRecord
*/
public interface TransitUserRecordMapper extends BaseMapper<TransitUserRecord> {
}

@ -0,0 +1,18 @@
package com.ssf.mysqloracletest.mapper;
import com.ssf.mysqloracletest.domain.TransitVehicleRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author 28758
* @description transit_vehicle_record()Mapper
* @createDate 2023-12-14 16:47:49
* @Entity com.ssf.mysqloracletest.domain.TransitVehicleRecord
*/
public interface TransitVehicleRecordMapper extends BaseMapper<TransitVehicleRecord> {
}

@ -2,8 +2,6 @@ package com.ssf.mysqloracletest.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql; import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
/** /**
* @author 28758 * @author 28758

@ -1,7 +1,7 @@
package com.ssf.mysqloracletest.service; package com.ssf.mysqloracletest.service;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
/** /**
* @author 10503 * @author 10503

@ -1,7 +1,7 @@
package com.ssf.mysqloracletest.service; package com.ssf.mysqloracletest.service;
import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
/** /**
* @author 10503 * @author 10503

@ -1,7 +1,7 @@
package com.ssf.mysqloracletest.service; package com.ssf.mysqloracletest.service;
import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo;
/** /**
* @author 28758 * @author 28758

@ -0,0 +1,13 @@
package com.ssf.mysqloracletest.service;
import com.ssf.mysqloracletest.domain.TransitUserRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author 28758
* @description transit_user_record()Service
* @createDate 2023-12-14 16:46:10
*/
public interface TransitUserRecordService extends IService<TransitUserRecord> {
}

@ -0,0 +1,13 @@
package com.ssf.mysqloracletest.service;
import com.ssf.mysqloracletest.domain.TransitVehicleRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author 28758
* @description transit_vehicle_record()Service
* @createDate 2023-12-14 16:47:49
*/
public interface TransitVehicleRecordService extends IService<TransitVehicleRecord> {
}

@ -3,7 +3,6 @@ package com.ssf.mysqloracletest.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql; import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
import com.ssf.mysqloracletest.mapper.JcjCjxxViewMysqlMapper; import com.ssf.mysqloracletest.mapper.JcjCjxxViewMysqlMapper;
import com.ssf.mysqloracletest.service.JcjCjxxViewMysqlService; import com.ssf.mysqloracletest.service.JcjCjxxViewMysqlService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

@ -2,11 +2,8 @@ package com.ssf.mysqloracletest.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle; import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle;
import com.ssf.mysqloracletest.mapper.JcjJjxxViewOracleMapper; import com.ssf.mysqloracletest.mapper.JcjJjxxViewOracleMapper;
import com.ssf.mysqloracletest.mapper.JcjJxxViewMysqlMapper;
import com.ssf.mysqloracletest.service.JcjJjxxViewMysqlService;
import com.ssf.mysqloracletest.service.JcjJjxxViewOracleService; import com.ssf.mysqloracletest.service.JcjJjxxViewOracleService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

@ -3,8 +3,8 @@ package com.ssf.mysqloracletest.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssf.mysqloracletest.domain.MetaAlarmInfo; import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
import com.ssf.mysqloracletest.service.MetaAlarmInfoService;
import com.ssf.mysqloracletest.mapper.MetaAlarmInfoMapper; import com.ssf.mysqloracletest.mapper.MetaAlarmInfoMapper;
import com.ssf.mysqloracletest.service.MetaAlarmInfoService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

@ -3,8 +3,8 @@ package com.ssf.mysqloracletest.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo; import com.ssf.mysqloracletest.domain.MetaHandleAlarmInfo;
import com.ssf.mysqloracletest.service.MetaHandleAlarmInfoService;
import com.ssf.mysqloracletest.mapper.MetaHandleAlarmInfoMapper; import com.ssf.mysqloracletest.mapper.MetaHandleAlarmInfoMapper;
import com.ssf.mysqloracletest.service.MetaHandleAlarmInfoService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**

@ -0,0 +1,26 @@
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.TransitUserRecord;
import com.ssf.mysqloracletest.service.TransitUserRecordService;
import com.ssf.mysqloracletest.mapper.TransitUserRecordMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* @author 28758
* @description transit_user_record()Service
* @createDate 2023-12-14 16:46:10
*/
@Service
@RequiredArgsConstructor
@DS("mysql")
public class TransitUserRecordServiceImpl extends ServiceImpl<TransitUserRecordMapper, TransitUserRecord>
implements TransitUserRecordService{
}

@ -0,0 +1,26 @@
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.TransitVehicleRecord;
import com.ssf.mysqloracletest.service.TransitVehicleRecordService;
import com.ssf.mysqloracletest.mapper.TransitVehicleRecordMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* @author 28758
* @description transit_vehicle_record()Service
* @createDate 2023-12-14 16:47:49
*/
@Service
@RequiredArgsConstructor
@DS("mysql")
public class TransitVehicleRecordServiceImpl extends ServiceImpl<TransitVehicleRecordMapper, TransitVehicleRecord>
implements TransitVehicleRecordService{
}

@ -7,6 +7,7 @@ import com.ssf.mysqloracletest.domain.MetaAlarmInfo;
import com.ssf.mysqloracletest.service.JcjJjxxViewMysqlService; import com.ssf.mysqloracletest.service.JcjJjxxViewMysqlService;
import com.ssf.mysqloracletest.service.MetaAlarmInfoService; import com.ssf.mysqloracletest.service.MetaAlarmInfoService;
import com.ssf.mysqloracletest.utils.ConfigParam; import com.ssf.mysqloracletest.utils.ConfigParam;
import com.ssf.mysqloracletest.utils.NumKit;
import com.ssf.mysqloracletest.utils.StringKit; import com.ssf.mysqloracletest.utils.StringKit;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -15,7 +16,6 @@ import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
@ -82,6 +82,7 @@ public class AlarmInfoTask {
JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql(); JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql();
try { try {
BeanUtils.copyProperties(bean, jjxxViewMysqlCp); BeanUtils.copyProperties(bean, jjxxViewMysqlCp);
JcjJjxxViewMysql jwd = jjxxViewMysqlService.selectJcjJxxByJJBH(bean.getJJBH());
MetaAlarmInfo alarmInfo = new MetaAlarmInfo(); MetaAlarmInfo alarmInfo = new MetaAlarmInfo();
//设置目标字段的值 //设置目标字段的值
//alarm_code<-----JJBH 接警编号 //alarm_code<-----JJBH 接警编号
@ -105,23 +106,15 @@ public class AlarmInfoTask {
//alarm_response_unit<-----JJDWMC接警单位名称 //alarm_response_unit<-----JJDWMC接警单位名称
alarmInfo.setAlarmResponseUnit(jjxxViewMysqlCp.getJJDWMC()); alarmInfo.setAlarmResponseUnit(jjxxViewMysqlCp.getJJDWMC());
if (jjxxViewMysqlCp.getWDZB() != null) { if (jwd.getGIS_Y() != null) {
//转换类型
BigDecimal WDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getWDZB());
//latitude(纬度)<-----WDZB纬度坐标
alarmInfo.setLatitude(WDZBDecimal);
} else {
//latitude(纬度)<-----WDZB纬度坐标 //latitude(纬度)<-----WDZB纬度坐标
alarmInfo.setLatitude(null); alarmInfo.setLatitude(NumKit.checkBigDecimal(jwd.getGIS_Y()));
} }
if (jjxxViewMysqlCp.getJDZB() != null) { if (jwd.getGIS_X() != null) {
BigDecimal JDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getJDZB());
//longitude(经度)<-----JDZB经度坐标
alarmInfo.setLatitude(JDZBDecimal);
} else {
//longitude(经度)<-----JDZB经度坐标 //longitude(经度)<-----JDZB经度坐标
alarmInfo.setLongitude(null); alarmInfo.setLongitude(NumKit.checkBigDecimal(jwd.getGIS_X()));
} }
boolean b = alarmInfoService.save(alarmInfo); boolean b = alarmInfoService.save(alarmInfo);

@ -3,7 +3,6 @@ package com.ssf.mysqloracletest.task;
import cn.hutool.core.io.FileUtil; import cn.hutool.core.io.FileUtil;
import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql; import com.ssf.mysqloracletest.domain.JcjCjxxViewMysql;
import com.ssf.mysqloracletest.domain.JcjCjxxViewOracle; import com.ssf.mysqloracletest.domain.JcjCjxxViewOracle;
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
import com.ssf.mysqloracletest.service.JcjCjxxViewMysqlService; import com.ssf.mysqloracletest.service.JcjCjxxViewMysqlService;
import com.ssf.mysqloracletest.service.JcjCjxxViewOracleService; import com.ssf.mysqloracletest.service.JcjCjxxViewOracleService;
import com.ssf.mysqloracletest.utils.ConfigParam; import com.ssf.mysqloracletest.utils.ConfigParam;
@ -17,7 +16,6 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.File; import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
@ -168,7 +166,7 @@ public class JcjCjxxTask {
//1 去mysql查出当前最大时间 //1 去mysql查出当前最大时间
JcjCjxxViewMysql cjxxViewMysql = cjxxMysqlService.selectRecordOrderByRksj(); JcjCjxxViewMysql cjxxViewMysql = cjxxMysqlService.selectRecordOrderByRksj();
//2 用得到的最大时间去oracle 查询大于这个时间的记录 //2 用得到的最大时间去oracle 查询大于这个时间的记录
List<JcjCjxxViewOracle> list = cjxxOracleService.getRealTimeRecording(cjxxViewMysql.getCJSJ()); List<JcjCjxxViewOracle> list = cjxxOracleService.getRealTimeRecording(cjxxViewMysql.getWS_RKSJ());
//3 解析入库 //3 解析入库
for (JcjCjxxViewOracle cjxx : list) { for (JcjCjxxViewOracle cjxx : list) {
JcjCjxxViewMysql sBean = new JcjCjxxViewMysql(); JcjCjxxViewMysql sBean = new JcjCjxxViewMysql();

@ -118,10 +118,6 @@ public class JcjJjxxTask {
return; return;
} }
if (!"true".equals(ConfigParam.JjxxSwitch)) {
return;
}
//1 去mysql查出当前最大时间 //1 去mysql查出当前最大时间
JcjJjxxViewMysql jcjJjxxViewMysql = jcjJjxxViewMysqlService.selectRecordOrderByRksj(); JcjJjxxViewMysql jcjJjxxViewMysql = jcjJjxxViewMysqlService.selectRecordOrderByRksj();
//2 用得到的最大时间去oracle 查询大于这个时间的记录 //2 用得到的最大时间去oracle 查询大于这个时间的记录

@ -0,0 +1,48 @@
<?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.TransitUserRecordMapper">
<resultMap id="BaseResultMap" type="com.ssf.mysqloracletest.domain.TransitUserRecord">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="partitionField" column="partition_field" jdbcType="TIMESTAMP"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="gbsChannelNo" column="gbs_channel_no" jdbcType="VARCHAR"/>
<result property="deviceAddress" column="device_address" jdbcType="VARCHAR"/>
<result property="orientation" column="orientation" jdbcType="TINYINT"/>
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
<result property="globalPic" column="global_pic" jdbcType="VARCHAR"/>
<result property="personPic" column="person_pic" jdbcType="VARCHAR"/>
<result property="bodyGlobalPic" column="body_global_pic" jdbcType="VARCHAR"/>
<result property="bodyPic" column="body_pic" jdbcType="VARCHAR"/>
<result property="userStandardPic" column="user_standard_pic" jdbcType="VARCHAR"/>
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
<result property="dossierCode" column="dossier_code" jdbcType="VARCHAR"/>
<result property="idCard" column="id_card" jdbcType="VARCHAR"/>
<result property="phone" column="phone" jdbcType="VARCHAR"/>
<result property="recordId" column="record_id" jdbcType="VARCHAR"/>
<result property="userVehicleRecordId" column="user_vehicle_record_id" jdbcType="VARCHAR"/>
<result property="userBodyRecordId" column="user_body_record_id" jdbcType="VARCHAR"/>
<result property="stUserRecordId" column="st_user_record_id" jdbcType="VARCHAR"/>
<result property="sourceId" column="source_id" jdbcType="VARCHAR"/>
<result property="personImageId" column="person_image_id" jdbcType="VARCHAR"/>
<result property="globalImageId" column="global_image_id" jdbcType="VARCHAR"/>
<result property="similarity" column="similarity" jdbcType="VARCHAR"/>
<result property="isCompare" column="is_compare" jdbcType="TINYINT"/>
<result property="direction" column="direction" jdbcType="TINYINT"/>
<result property="passTime" column="pass_time" jdbcType="BIGINT"/>
<result property="axis" column="axis" jdbcType="VARCHAR"/>
<result property="dataSrc" column="data_src" jdbcType="TINYINT"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
</resultMap>
</mapper>

@ -0,0 +1,53 @@
<?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.TransitVehicleRecordMapper">
<resultMap id="BaseResultMap" type="com.ssf.mysqloracletest.domain.TransitVehicleRecord">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="partitionField" column="partition_field" jdbcType="TIMESTAMP"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="gbsChannelNo" column="gbs_channel_no" jdbcType="VARCHAR"/>
<result property="deviceAddress" column="device_address" jdbcType="VARCHAR"/>
<result property="orientation" column="orientation" jdbcType="TINYINT"/>
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
<result property="plateNo" column="plate_no" jdbcType="VARCHAR"/>
<result property="globalPic" column="global_pic" jdbcType="VARCHAR"/>
<result property="platePic" column="plate_pic" jdbcType="VARCHAR"/>
<result property="recordId" column="record_id" jdbcType="VARCHAR"/>
<result property="sourceId" column="source_id" jdbcType="VARCHAR"/>
<result property="plateImageId" column="plate_image_id" jdbcType="VARCHAR"/>
<result property="globalImageId" column="global_image_id" jdbcType="VARCHAR"/>
<result property="userVehicleRecordId" column="user_vehicle_record_id" jdbcType="VARCHAR"/>
<result property="ownerPersonPic" column="owner_person_pic" jdbcType="VARCHAR"/>
<result property="ownerGlobalPic" column="owner_global_pic" jdbcType="VARCHAR"/>
<result property="ownerName" column="owner_name" jdbcType="VARCHAR"/>
<result property="idCard" column="id_card" jdbcType="VARCHAR"/>
<result property="phone" column="phone" jdbcType="VARCHAR"/>
<result property="copilotPersonPic" column="copilot_person_pic" jdbcType="VARCHAR"/>
<result property="copilotGlobalPic" column="copilot_global_pic" jdbcType="VARCHAR"/>
<result property="copilotOwnerName" column="copilot_owner_name" jdbcType="VARCHAR"/>
<result property="copilotIdcard" column="copilot_idcard" jdbcType="VARCHAR"/>
<result property="copilotPhone" column="copilot_phone" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="TINYINT"/>
<result property="doorwayCode" column="doorway_code" jdbcType="VARCHAR"/>
<result property="roadCode" column="road_code" jdbcType="VARCHAR"/>
<result property="passTime" column="pass_time" jdbcType="BIGINT"/>
<result property="plateColor" column="plate_color" jdbcType="VARCHAR"/>
<result property="vehicleColor" column="vehicle_color" jdbcType="VARCHAR"/>
<result property="vehicleType" column="vehicle_type" jdbcType="VARCHAR"/>
<result property="vehicleBrand" column="vehicle_brand" jdbcType="VARCHAR"/>
<result property="dataSrc" column="data_src" jdbcType="TINYINT"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
</resultMap>
</mapper>
Loading…
Cancel
Save