Bladeren bron

缓存2

develop
bin 3 jaren geleden
bovenliggende
commit
b8e3882d6b
3 gewijzigde bestanden met toevoegingen van 611 en 0 verwijderingen
  1. +253
    -0
      src/main/java/com/ssjl/zhaobiao/guizhou/entity/DianxinGzDeviceConfig.java
  2. +21
    -0
      src/main/java/com/ssjl/zhaobiao/guizhou/repository/DianxinGzDeviceConfigMapper.java
  3. +337
    -0
      src/main/resources/mapper/DianxinGzDeviceConfigMapper.xml

+ 253
- 0
src/main/java/com/ssjl/zhaobiao/guizhou/entity/DianxinGzDeviceConfig.java Bestand weergeven

@@ -0,0 +1,253 @@
package com.ssjl.zhaobiao.guizhou.entity;

public class DianxinGzDeviceConfig {
private Integer id;

private String deviceImei;

private String httpIp;

private String httpUrl;

private String smsNumber;

private String locationInterval;

private String sleepTime;

private String affectionPhone;

private String sosPhone;

private String whitePhone;

private String smsWhitePhone;

private String phone;

private String clockTime;

private String smsSet;

private String addressBook;

private String syncTime;

private String tcpAddress;

private String autoShutdown;

private String callTime;

private String locationMode;

private String connectType;

private String phoneType;

private String rfid;

private Integer lat;

private Integer lon;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getDeviceImei() {
return deviceImei;
}

public void setDeviceImei(String deviceImei) {
this.deviceImei = deviceImei == null ? null : deviceImei.trim();
}

public String getHttpIp() {
return httpIp;
}

public void setHttpIp(String httpIp) {
this.httpIp = httpIp == null ? null : httpIp.trim();
}

public String getHttpUrl() {
return httpUrl;
}

public void setHttpUrl(String httpUrl) {
this.httpUrl = httpUrl == null ? null : httpUrl.trim();
}

public String getSmsNumber() {
return smsNumber;
}

public void setSmsNumber(String smsNumber) {
this.smsNumber = smsNumber == null ? null : smsNumber.trim();
}

public String getLocationInterval() {
return locationInterval;
}

public void setLocationInterval(String locationInterval) {
this.locationInterval = locationInterval == null ? null : locationInterval.trim();
}

public String getSleepTime() {
return sleepTime;
}

public void setSleepTime(String sleepTime) {
this.sleepTime = sleepTime == null ? null : sleepTime.trim();
}

public String getAffectionPhone() {
return affectionPhone;
}

public void setAffectionPhone(String affectionPhone) {
this.affectionPhone = affectionPhone == null ? null : affectionPhone.trim();
}

public String getSosPhone() {
return sosPhone;
}

public void setSosPhone(String sosPhone) {
this.sosPhone = sosPhone == null ? null : sosPhone.trim();
}

public String getWhitePhone() {
return whitePhone;
}

public void setWhitePhone(String whitePhone) {
this.whitePhone = whitePhone == null ? null : whitePhone.trim();
}

public String getSmsWhitePhone() {
return smsWhitePhone;
}

public void setSmsWhitePhone(String smsWhitePhone) {
this.smsWhitePhone = smsWhitePhone == null ? null : smsWhitePhone.trim();
}

public String getPhone() {
return phone;
}

public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}

public String getClockTime() {
return clockTime;
}

public void setClockTime(String clockTime) {
this.clockTime = clockTime == null ? null : clockTime.trim();
}

public String getSmsSet() {
return smsSet;
}

public void setSmsSet(String smsSet) {
this.smsSet = smsSet == null ? null : smsSet.trim();
}

public String getAddressBook() {
return addressBook;
}

public void setAddressBook(String addressBook) {
this.addressBook = addressBook == null ? null : addressBook.trim();
}

public String getSyncTime() {
return syncTime;
}

public void setSyncTime(String syncTime) {
this.syncTime = syncTime == null ? null : syncTime.trim();
}

public String getTcpAddress() {
return tcpAddress;
}

public void setTcpAddress(String tcpAddress) {
this.tcpAddress = tcpAddress == null ? null : tcpAddress.trim();
}

public String getAutoShutdown() {
return autoShutdown;
}

public void setAutoShutdown(String autoShutdown) {
this.autoShutdown = autoShutdown == null ? null : autoShutdown.trim();
}

public String getCallTime() {
return callTime;
}

public void setCallTime(String callTime) {
this.callTime = callTime == null ? null : callTime.trim();
}

public String getLocationMode() {
return locationMode;
}

public void setLocationMode(String locationMode) {
this.locationMode = locationMode == null ? null : locationMode.trim();
}

public String getConnectType() {
return connectType;
}

public void setConnectType(String connectType) {
this.connectType = connectType == null ? null : connectType.trim();
}

public String getPhoneType() {
return phoneType;
}

public void setPhoneType(String phoneType) {
this.phoneType = phoneType == null ? null : phoneType.trim();
}

public String getRfid() {
return rfid;
}

public void setRfid(String rfid) {
this.rfid = rfid == null ? null : rfid.trim();
}

public Integer getLat() {
return lat;
}

public void setLat(Integer lat) {
this.lat = lat;
}

public Integer getLon() {
return lon;
}

public void setLon(Integer lon) {
this.lon = lon;
}
}

+ 21
- 0
src/main/java/com/ssjl/zhaobiao/guizhou/repository/DianxinGzDeviceConfigMapper.java Bestand weergeven

@@ -0,0 +1,21 @@
package com.ssjl.zhaobiao.guizhou.repository;

import com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig;

public interface DianxinGzDeviceConfigMapper {
int deleteByPrimaryKey(Integer id);

int insert(DianxinGzDeviceConfig record);

int insertSelective(DianxinGzDeviceConfig record);

DianxinGzDeviceConfig selectByPrimaryKey(Integer id);

int updateByPrimaryKeySelective(DianxinGzDeviceConfig record);

int updateByPrimaryKey(DianxinGzDeviceConfig record);

DianxinGzDeviceConfig selectByImei(String imei);

DianxinGzDeviceConfig selectByPhone(String phone);
}

+ 337
- 0
src/main/resources/mapper/DianxinGzDeviceConfigMapper.xml Bestand weergeven

@@ -0,0 +1,337 @@
<?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.ssjl.zhaobiao.guizhou.repository.DianxinGzDeviceConfigMapper">
<resultMap id="BaseResultMap" type="com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="device_imei" jdbcType="VARCHAR" property="deviceImei" />
<result column="http_ip" jdbcType="VARCHAR" property="httpIp" />
<result column="http_url" jdbcType="VARCHAR" property="httpUrl" />
<result column="sms_number" jdbcType="VARCHAR" property="smsNumber" />
<result column="location_interval" jdbcType="VARCHAR" property="locationInterval" />
<result column="sleep_time" jdbcType="VARCHAR" property="sleepTime" />
<result column="affection_phone" jdbcType="VARCHAR" property="affectionPhone" />
<result column="sos_phone" jdbcType="VARCHAR" property="sosPhone" />
<result column="white_phone" jdbcType="VARCHAR" property="whitePhone" />
<result column="sms_white_phone" jdbcType="VARCHAR" property="smsWhitePhone" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="clock_time" jdbcType="VARCHAR" property="clockTime" />
<result column="sms_set" jdbcType="VARCHAR" property="smsSet" />
<result column="address_book" jdbcType="VARCHAR" property="addressBook" />
<result column="sync_time" jdbcType="VARCHAR" property="syncTime" />
<result column="tcp_address" jdbcType="VARCHAR" property="tcpAddress" />
<result column="auto_shutdown" jdbcType="VARCHAR" property="autoShutdown" />
<result column="call_time" jdbcType="VARCHAR" property="callTime" />
<result column="location_mode" jdbcType="VARCHAR" property="locationMode" />
<result column="connect_type" jdbcType="VARCHAR" property="connectType" />
<result column="phone_type" jdbcType="VARCHAR" property="phoneType" />
<result column="rfid" jdbcType="VARCHAR" property="rfid" />
<result column="lat" jdbcType="INTEGER" property="lat" />
<result column="lon" jdbcType="INTEGER" property="lon" />
</resultMap>
<sql id="Base_Column_List">
id, device_imei, http_ip, http_url, sms_number, location_interval, sleep_time, affection_phone,
sos_phone, white_phone, sms_white_phone, phone, clock_time, sms_set, address_book,
sync_time, tcp_address, auto_shutdown, call_time, location_mode, connect_type, phone_type,
rfid, lat, lon
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from dianxin_gz_device_config
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from dianxin_gz_device_config
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig">
insert into dianxin_gz_device_config (id, device_imei, http_ip,
http_url, sms_number, location_interval,
sleep_time, affection_phone, sos_phone,
white_phone, sms_white_phone, phone,
clock_time, sms_set, address_book,
sync_time, tcp_address, auto_shutdown,
call_time, location_mode, connect_type,
phone_type, rfid, lat,
lon)
values (#{id,jdbcType=INTEGER}, #{deviceImei,jdbcType=VARCHAR}, #{httpIp,jdbcType=VARCHAR},
#{httpUrl,jdbcType=VARCHAR}, #{smsNumber,jdbcType=VARCHAR}, #{locationInterval,jdbcType=VARCHAR},
#{sleepTime,jdbcType=VARCHAR}, #{affectionPhone,jdbcType=VARCHAR}, #{sosPhone,jdbcType=VARCHAR},
#{whitePhone,jdbcType=VARCHAR}, #{smsWhitePhone,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
#{clockTime,jdbcType=VARCHAR}, #{smsSet,jdbcType=VARCHAR}, #{addressBook,jdbcType=VARCHAR},
#{syncTime,jdbcType=VARCHAR}, #{tcpAddress,jdbcType=VARCHAR}, #{autoShutdown,jdbcType=VARCHAR},
#{callTime,jdbcType=VARCHAR}, #{locationMode,jdbcType=VARCHAR}, #{connectType,jdbcType=VARCHAR},
#{phoneType,jdbcType=VARCHAR}, #{rfid,jdbcType=VARCHAR}, #{lat,jdbcType=INTEGER},
#{lon,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig">
insert into dianxin_gz_device_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="deviceImei != null">
device_imei,
</if>
<if test="httpIp != null">
http_ip,
</if>
<if test="httpUrl != null">
http_url,
</if>
<if test="smsNumber != null">
sms_number,
</if>
<if test="locationInterval != null">
location_interval,
</if>
<if test="sleepTime != null">
sleep_time,
</if>
<if test="affectionPhone != null">
affection_phone,
</if>
<if test="sosPhone != null">
sos_phone,
</if>
<if test="whitePhone != null">
white_phone,
</if>
<if test="smsWhitePhone != null">
sms_white_phone,
</if>
<if test="phone != null">
phone,
</if>
<if test="clockTime != null">
clock_time,
</if>
<if test="smsSet != null">
sms_set,
</if>
<if test="addressBook != null">
address_book,
</if>
<if test="syncTime != null">
sync_time,
</if>
<if test="tcpAddress != null">
tcp_address,
</if>
<if test="autoShutdown != null">
auto_shutdown,
</if>
<if test="callTime != null">
call_time,
</if>
<if test="locationMode != null">
location_mode,
</if>
<if test="connectType != null">
connect_type,
</if>
<if test="phoneType != null">
phone_type,
</if>
<if test="rfid != null">
rfid,
</if>
<if test="lat != null">
lat,
</if>
<if test="lon != null">
lon,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="deviceImei != null">
#{deviceImei,jdbcType=VARCHAR},
</if>
<if test="httpIp != null">
#{httpIp,jdbcType=VARCHAR},
</if>
<if test="httpUrl != null">
#{httpUrl,jdbcType=VARCHAR},
</if>
<if test="smsNumber != null">
#{smsNumber,jdbcType=VARCHAR},
</if>
<if test="locationInterval != null">
#{locationInterval,jdbcType=VARCHAR},
</if>
<if test="sleepTime != null">
#{sleepTime,jdbcType=VARCHAR},
</if>
<if test="affectionPhone != null">
#{affectionPhone,jdbcType=VARCHAR},
</if>
<if test="sosPhone != null">
#{sosPhone,jdbcType=VARCHAR},
</if>
<if test="whitePhone != null">
#{whitePhone,jdbcType=VARCHAR},
</if>
<if test="smsWhitePhone != null">
#{smsWhitePhone,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="clockTime != null">
#{clockTime,jdbcType=VARCHAR},
</if>
<if test="smsSet != null">
#{smsSet,jdbcType=VARCHAR},
</if>
<if test="addressBook != null">
#{addressBook,jdbcType=VARCHAR},
</if>
<if test="syncTime != null">
#{syncTime,jdbcType=VARCHAR},
</if>
<if test="tcpAddress != null">
#{tcpAddress,jdbcType=VARCHAR},
</if>
<if test="autoShutdown != null">
#{autoShutdown,jdbcType=VARCHAR},
</if>
<if test="callTime != null">
#{callTime,jdbcType=VARCHAR},
</if>
<if test="locationMode != null">
#{locationMode,jdbcType=VARCHAR},
</if>
<if test="connectType != null">
#{connectType,jdbcType=VARCHAR},
</if>
<if test="phoneType != null">
#{phoneType,jdbcType=VARCHAR},
</if>
<if test="rfid != null">
#{rfid,jdbcType=VARCHAR},
</if>
<if test="lat != null">
#{lat,jdbcType=INTEGER},
</if>
<if test="lon != null">
#{lon,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig">
update dianxin_gz_device_config
<set>
<if test="deviceImei != null">
device_imei = #{deviceImei,jdbcType=VARCHAR},
</if>
<if test="httpIp != null">
http_ip = #{httpIp,jdbcType=VARCHAR},
</if>
<if test="httpUrl != null">
http_url = #{httpUrl,jdbcType=VARCHAR},
</if>
<if test="smsNumber != null">
sms_number = #{smsNumber,jdbcType=VARCHAR},
</if>
<if test="locationInterval != null">
location_interval = #{locationInterval,jdbcType=VARCHAR},
</if>
<if test="sleepTime != null">
sleep_time = #{sleepTime,jdbcType=VARCHAR},
</if>
<if test="affectionPhone != null">
affection_phone = #{affectionPhone,jdbcType=VARCHAR},
</if>
<if test="sosPhone != null">
sos_phone = #{sosPhone,jdbcType=VARCHAR},
</if>
<if test="whitePhone != null">
white_phone = #{whitePhone,jdbcType=VARCHAR},
</if>
<if test="smsWhitePhone != null">
sms_white_phone = #{smsWhitePhone,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="clockTime != null">
clock_time = #{clockTime,jdbcType=VARCHAR},
</if>
<if test="smsSet != null">
sms_set = #{smsSet,jdbcType=VARCHAR},
</if>
<if test="addressBook != null">
address_book = #{addressBook,jdbcType=VARCHAR},
</if>
<if test="syncTime != null">
sync_time = #{syncTime,jdbcType=VARCHAR},
</if>
<if test="tcpAddress != null">
tcp_address = #{tcpAddress,jdbcType=VARCHAR},
</if>
<if test="autoShutdown != null">
auto_shutdown = #{autoShutdown,jdbcType=VARCHAR},
</if>
<if test="callTime != null">
call_time = #{callTime,jdbcType=VARCHAR},
</if>
<if test="locationMode != null">
location_mode = #{locationMode,jdbcType=VARCHAR},
</if>
<if test="connectType != null">
connect_type = #{connectType,jdbcType=VARCHAR},
</if>
<if test="phoneType != null">
phone_type = #{phoneType,jdbcType=VARCHAR},
</if>
<if test="rfid != null">
rfid = #{rfid,jdbcType=VARCHAR},
</if>
<if test="lat != null">
lat = #{lat,jdbcType=INTEGER},
</if>
<if test="lon != null">
lon = #{lon,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.ssjl.zhaobiao.guizhou.entity.DianxinGzDeviceConfig">
update dianxin_gz_device_config
set device_imei = #{deviceImei,jdbcType=VARCHAR},
http_ip = #{httpIp,jdbcType=VARCHAR},
http_url = #{httpUrl,jdbcType=VARCHAR},
sms_number = #{smsNumber,jdbcType=VARCHAR},
location_interval = #{locationInterval,jdbcType=VARCHAR},
sleep_time = #{sleepTime,jdbcType=VARCHAR},
affection_phone = #{affectionPhone,jdbcType=VARCHAR},
sos_phone = #{sosPhone,jdbcType=VARCHAR},
white_phone = #{whitePhone,jdbcType=VARCHAR},
sms_white_phone = #{smsWhitePhone,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
clock_time = #{clockTime,jdbcType=VARCHAR},
sms_set = #{smsSet,jdbcType=VARCHAR},
address_book = #{addressBook,jdbcType=VARCHAR},
sync_time = #{syncTime,jdbcType=VARCHAR},
tcp_address = #{tcpAddress,jdbcType=VARCHAR},
auto_shutdown = #{autoShutdown,jdbcType=VARCHAR},
call_time = #{callTime,jdbcType=VARCHAR},
location_mode = #{locationMode,jdbcType=VARCHAR},
connect_type = #{connectType,jdbcType=VARCHAR},
phone_type = #{phoneType,jdbcType=VARCHAR},
rfid = #{rfid,jdbcType=VARCHAR},
lat = #{lat,jdbcType=INTEGER},
lon = #{lon,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>

<select id="selectByImei" resultMap="BaseResultMap">
SELECT * FROM dianxin_gz_device_config WHERE device_imei=#{imei};
</select>
<select id="selectByPhone" resultMap="BaseResultMap">
SELECT * FROM dianxin_gz_device_config WHERE phone = #{phone};
</select>
</mapper>

Laden…
Annuleren
Opslaan