diff --git a/src/main/java/com/ssjl/zhaobiao/guizhou/entity/DianxinGzDeviceConfig.java b/src/main/java/com/ssjl/zhaobiao/guizhou/entity/DianxinGzDeviceConfig.java new file mode 100644 index 0000000..ab9c4ea --- /dev/null +++ b/src/main/java/com/ssjl/zhaobiao/guizhou/entity/DianxinGzDeviceConfig.java @@ -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; + } +} \ No newline at end of file diff --git a/src/main/java/com/ssjl/zhaobiao/guizhou/repository/DianxinGzDeviceConfigMapper.java b/src/main/java/com/ssjl/zhaobiao/guizhou/repository/DianxinGzDeviceConfigMapper.java new file mode 100644 index 0000000..690036d --- /dev/null +++ b/src/main/java/com/ssjl/zhaobiao/guizhou/repository/DianxinGzDeviceConfigMapper.java @@ -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); +} \ No newline at end of file diff --git a/src/main/resources/mapper/DianxinGzDeviceConfigMapper.xml b/src/main/resources/mapper/DianxinGzDeviceConfigMapper.xml new file mode 100644 index 0000000..aafa62c --- /dev/null +++ b/src/main/resources/mapper/DianxinGzDeviceConfigMapper.xml @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + delete from dianxin_gz_device_config + where id = #{id,jdbcType=INTEGER} + + + 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 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, + + + + + #{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}, + + + + + update dianxin_gz_device_config + + + 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 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} + + + + + \ No newline at end of file