| @ -0,0 +1,51 @@ | |||
| package com.topsail.influxdb.controller; | |||
| import com.topsail.influxdb.entity.DeviceHistoryData; | |||
| import com.topsail.influxdb.result.Result; | |||
| import com.topsail.influxdb.service.DeviceDataService; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Controller; | |||
| import org.springframework.validation.BindException; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.text.ParseException; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| @RestController | |||
| @ResponseBody | |||
| @CrossOrigin | |||
| @RequestMapping(value = "/deviceData") | |||
| public class DeviceDataController { | |||
| private Logger logger = LoggerFactory.getLogger(DeviceDataController.class); | |||
| @Autowired | |||
| private DeviceDataService deviceDataService; | |||
| /** | |||
| * 查询单个设备历史数据(根据设备号查询设备历史数据) | |||
| * devices/history/{deviceid} | |||
| */ | |||
| @GetMapping(value = "/history/{deviceid}") | |||
| public Result<List<DeviceHistoryData>> getHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, @PathVariable("deviceid") String Imei) throws ParseException, BindException { | |||
| logger.info("history " + uid); | |||
| List<DeviceHistoryData> list = new ArrayList<>(); | |||
| list = deviceDataService.getDeviceHistoryData(uid, pageNo, pageSize, startTime, endTime, Imei); | |||
| logger.info("finished request " + uid); | |||
| return Result.success(list); | |||
| } | |||
| /** | |||
| * 查询单个设备历史数据(根据设备号查询设备历史数据) | |||
| * devices/history/{deviceid} | |||
| */ | |||
| @RequestMapping(value = "/delete", method = RequestMethod.GET) | |||
| public Result<List<DeviceHistoryData>> deleteDeviceData() throws ParseException, BindException { | |||
| List<DeviceHistoryData> list = new ArrayList<>(); | |||
| deviceDataService.deleteDeviceData(); | |||
| return Result.success(list); | |||
| } | |||
| } | |||
| @ -0,0 +1,58 @@ | |||
| package com.topsail.influxdb.controller; | |||
| import com.topsail.influxdb.entity.DeviceLogData; | |||
| import com.topsail.influxdb.result.CodeMsg; | |||
| import com.topsail.influxdb.result.Result; | |||
| import com.topsail.influxdb.service.DeviceLogService; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.validation.BindException; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.text.ParseException; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| @RestController | |||
| @ResponseBody | |||
| @CrossOrigin | |||
| @RequestMapping(value = "/deviceLog") | |||
| public class DeviceLogController { | |||
| private Logger logger = LoggerFactory.getLogger(DeviceLogController.class); | |||
| @Autowired | |||
| private DeviceLogService deviceLogService; | |||
| /** | |||
| * 查询设备下发命令日志信息 | |||
| * | |||
| * @param pageNode | |||
| * @param pageSize | |||
| * @param startTime | |||
| * @param endTime | |||
| * @param result 下发结果 | |||
| * @param imei 设备号 | |||
| * @param supplierId 供应商id | |||
| * @param companyId 公司id | |||
| * @param operator 操作人 | |||
| * @param houseId 房间id | |||
| * @return | |||
| */ | |||
| @GetMapping(value = "/getPageDeviceLog") | |||
| public Result<List<DeviceLogData>> getPageDeviceLog(Integer pageNode, Integer pageSize, String startTime, String endTime, String result, String imei, String supplierId, String companyId, String operator, Integer houseId) throws ParseException, BindException { | |||
| List<DeviceLogData> list = new ArrayList<>(); | |||
| list = deviceLogService.getPageDeviceLog(pageNode, pageSize, startTime, endTime, result, imei, supplierId, companyId, operator, houseId); | |||
| return Result.success(list); | |||
| } | |||
| /** | |||
| * 查询单个设备历史数据(根据设备号查询设备历史数据) | |||
| * devices/history/{deviceid} | |||
| */ | |||
| @RequestMapping(value = "/delete", method = RequestMethod.GET) | |||
| public Result delete() throws ParseException, BindException { | |||
| deviceLogService.deleteDeviceLog(); | |||
| return Result.success(new CodeMsg(0, "success")); | |||
| } | |||
| } | |||
| @ -0,0 +1,25 @@ | |||
| package com.topsail.influxdb.entity; | |||
| import lombok.AllArgsConstructor; | |||
| import lombok.Builder; | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| @Data | |||
| @AllArgsConstructor | |||
| @NoArgsConstructor | |||
| @Builder | |||
| public class DeviceBelongInfo { | |||
| /** | |||
| * 设备id | |||
| */ | |||
| private String imei; | |||
| /** | |||
| * 房间id | |||
| */ | |||
| private Integer houseId; | |||
| /** | |||
| * 设备所属信息 | |||
| */ | |||
| private String deviceBelongInfo; | |||
| } | |||
| @ -0,0 +1,46 @@ | |||
| package com.topsail.influxdb.entity; | |||
| import lombok.AllArgsConstructor; | |||
| import lombok.Builder; | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| import java.util.List; | |||
| /** | |||
| * 设备历史数据 | |||
| */ | |||
| @Data | |||
| @AllArgsConstructor | |||
| @NoArgsConstructor | |||
| @Builder | |||
| public class DeviceHistoryData { | |||
| private int id; | |||
| private int deviceType; | |||
| private String Imei; | |||
| private int batteryLevel; | |||
| private int signalStrength; | |||
| private String sampleData; | |||
| private int passNum; | |||
| private String alarmType; | |||
| private String unit; | |||
| private String dataBody;//整个数据包体 | |||
| private String time; | |||
| private String offlineTime;//离线时间 | |||
| private Double lon; | |||
| private Double lat; | |||
| private String address; | |||
| private String platformType; | |||
| private String value;//原始数据 | |||
| private String sendDate; | |||
| private String status;//在离线状态 | |||
| private Integer isOnline;//0离线1在线 | |||
| private String pressure;//添加此字段用来配合前端获取数据值 | |||
| private String name; | |||
| private String deviceName; | |||
| private String deviceModelName; | |||
| private List<String> pictureList; | |||
| private Integer houseId;//房间id | |||
| private String deviceBelongInfo;//设备所属信息 | |||
| } | |||
| @ -0,0 +1,32 @@ | |||
| package com.topsail.influxdb.entity; | |||
| import lombok.AllArgsConstructor; | |||
| import lombok.Builder; | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| import java.util.Date; | |||
| @Data | |||
| @AllArgsConstructor | |||
| @NoArgsConstructor | |||
| @Builder | |||
| public class DeviceLogData { | |||
| private Integer id; | |||
| private String imei; | |||
| private String operation; | |||
| private String params; | |||
| private Date updatetime; | |||
| /** | |||
| * 房间id | |||
| */ | |||
| private Integer houseId; | |||
| /** | |||
| * 设备所属信息 | |||
| */ | |||
| private String deviceBelongInfo; | |||
| } | |||
| @ -1,62 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.Alarm; | |||
| import com.topsail.influxdb.pojo.AlarmExample; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface AlarmMapper { | |||
| long countByExample(AlarmExample example); | |||
| int deleteByExample(AlarmExample example); | |||
| int deleteByPrimaryKey(Long id); | |||
| int insert(Alarm record); | |||
| int insertAlarmData(@Param("alarmData") Alarm record); | |||
| int updateAlarmData(Alarm record); | |||
| int insertAlarmDataMonth(@Param("alarmData") Alarm record); | |||
| Alarm findAlarmData(@Param("imei")String imei); | |||
| int insertSelective(Alarm record); | |||
| List<Alarm> selectByExample(AlarmExample example); | |||
| Alarm selectByPrimaryKey(Long id); | |||
| int updateByExampleSelective(@Param("record") Alarm record, @Param("example") AlarmExample example); | |||
| int updateByExample(@Param("record") Alarm record, @Param("example") AlarmExample example); | |||
| int updateByPrimaryKeySelective(Alarm record); | |||
| int updateByPrimaryKey(Alarm record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<Alarm> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<Alarm> list, @Param("selective") Alarm.Column ... selective); | |||
| int deleteAlarmDataMonth(@Param("endTime") Date endTime); | |||
| } | |||
| @ -1,553 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.AlarmMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.Alarm"> | |||
| <id column="id" jdbcType="BIGINT" property="id"/> | |||
| <result column="Imei" jdbcType="VARCHAR" property="imei"/> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype"/> | |||
| <result column="alarmValue" jdbcType="VARCHAR" property="alarmvalue"/> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit"/> | |||
| <result column="status" jdbcType="INTEGER" property="status"/> | |||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime"/> | |||
| <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime"/> | |||
| <result column="endtime" jdbcType="TIMESTAMP" property="endtime"/> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" | |||
| separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" | |||
| separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.AlarmExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List"/> | |||
| from alarm | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause"/> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List"/> | |||
| from alarm | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |||
| delete | |||
| from alarm | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.AlarmExample"> | |||
| delete from alarm | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause"/> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.Alarm"> | |||
| insert into alarm (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) | |||
| values (#{id,jdbcType=BIGINT}, | |||
| #{imei,jdbcType=VARCHAR}, | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| #{alarmvalue,jdbcType=VARCHAR}, | |||
| #{unit,jdbcType=VARCHAR}, | |||
| #{status,jdbcType=INTEGER}, | |||
| #{createtime,jdbcType=TIMESTAMP}, | |||
| #{updatetime,jdbcType=TIMESTAMP}, | |||
| #{endtime,jdbcType=TIMESTAMP}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.Alarm"> | |||
| insert into alarm | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType, | |||
| </if> | |||
| <if test="alarmvalue != null"> | |||
| alarmValue, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit, | |||
| </if> | |||
| <if test="status != null"> | |||
| status, | |||
| </if> | |||
| <if test="createtime != null"> | |||
| createtime, | |||
| </if> | |||
| <if test="updatetime != null"> | |||
| updatetime, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| endtime, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmvalue != null"> | |||
| #{alarmvalue,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="status != null"> | |||
| #{status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="createtime != null"> | |||
| #{createtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="updatetime != null"> | |||
| #{updatetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| #{endtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.AlarmExample" resultType="java.lang.Long"> | |||
| select count(*) from alarm | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause"/> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update alarm | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.alarmtype != null"> | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.alarmvalue != null"> | |||
| alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unit != null"> | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.status != null"> | |||
| status = #{record.status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.createtime != null"> | |||
| createtime = #{record.createtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.updatetime != null"> | |||
| updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.endtime != null"> | |||
| endtime = #{record.endtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause"/> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update alarm | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| status = #{record.status,jdbcType=INTEGER}, | |||
| createtime = #{record.createtime,jdbcType=TIMESTAMP}, | |||
| updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, | |||
| endtime = #{record.endtime,jdbcType=TIMESTAMP} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause"/> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.Alarm"> | |||
| update alarm | |||
| <set> | |||
| <if test="imei != null"> | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmvalue != null"> | |||
| alarmValue = #{alarmvalue,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="status != null"> | |||
| status = #{status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="createtime != null"> | |||
| createtime = #{createtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="updatetime != null"> | |||
| updatetime = #{updatetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| endtime = #{endtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.Alarm"> | |||
| update alarm | |||
| set Imei = #{imei,jdbcType=VARCHAR}, | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| alarmValue = #{alarmvalue,jdbcType=VARCHAR}, | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| status = #{status,jdbcType=INTEGER}, | |||
| createtime = #{createtime,jdbcType=TIMESTAMP}, | |||
| updatetime = #{updatetime,jdbcType=TIMESTAMP}, | |||
| endtime = #{endtime,jdbcType=TIMESTAMP} | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into alarm | |||
| (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.alarmtype,jdbcType=VARCHAR}, | |||
| #{item.alarmvalue,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, | |||
| #{item.createtime,jdbcType=TIMESTAMP}, #{item.updatetime,jdbcType=TIMESTAMP}, | |||
| #{item.endtime,jdbcType=TIMESTAMP} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into alarm ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'Imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'alarmType'.toString() == column.value"> | |||
| #{item.alarmtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'alarmValue'.toString() == column.value"> | |||
| #{item.alarmvalue,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unit'.toString() == column.value"> | |||
| #{item.unit,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'status'.toString() == column.value"> | |||
| #{item.status,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'createtime'.toString() == column.value"> | |||
| #{item.createtime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'updatetime'.toString() == column.value"> | |||
| #{item.updatetime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'endtime'.toString() == column.value"> | |||
| #{item.endtime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <!-- 单个插入 --> | |||
| <insert id="insertAlarmData" parameterType="com.topsail.influxdb.pojo.Alarm" useGeneratedKeys="true" | |||
| keyProperty="alarmData.id"> | |||
| insert into alarm_data | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| imei, | |||
| alarmtype, | |||
| alarmvalue, | |||
| unit, | |||
| `status`, | |||
| createtime, | |||
| updatetime, | |||
| endtime, | |||
| alarm_n, | |||
| address, | |||
| lon, | |||
| lat, | |||
| alarmmsg, | |||
| descr, | |||
| uuid | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| #{alarmData.imei,jdbcType=VARCHAR}, | |||
| #{alarmData.alarmtype,jdbcType=VARCHAR}, | |||
| #{alarmData.alarmvalue,jdbcType=VARCHAR}, | |||
| #{alarmData.unit,jdbcType=VARCHAR}, | |||
| #{alarmData.status,jdbcType=INTEGER}, | |||
| #{alarmData.createtime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.updatetime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.endtime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.alarmN,jdbcType=INTEGER}, | |||
| #{alarmData.address,jdbcType=VARCHAR}, | |||
| #{alarmData.lon,jdbcType=DOUBLE}, | |||
| #{alarmData.lat,jdbcType=DOUBLE}, | |||
| #{alarmData.alarmMsg,jdbcType=VARCHAR}, | |||
| #{alarmData.descr,jdbcType=VARCHAR}, | |||
| #{alarmData.uuid,jdbcType=VARCHAR} | |||
| </trim> | |||
| </insert> | |||
| <!-- 单个插入 --> | |||
| <insert id="insertAlarmDataMonth" parameterType="com.topsail.influxdb.pojo.Alarm" useGeneratedKeys="true" | |||
| keyProperty="alarmData.id"> | |||
| insert into alarm_data_month | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| imei, | |||
| alarmType, | |||
| alarmValue, | |||
| unit, | |||
| `status`, | |||
| createtime, | |||
| updatetime, | |||
| endtime, | |||
| address, | |||
| lon, | |||
| lat, | |||
| alarmMsg, | |||
| descr, | |||
| uuid | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| #{alarmData.imei,jdbcType=VARCHAR}, | |||
| #{alarmData.alarmtype,jdbcType=VARCHAR}, | |||
| #{alarmData.alarmvalue,jdbcType=VARCHAR}, | |||
| #{alarmData.unit,jdbcType=VARCHAR}, | |||
| #{alarmData.status,jdbcType=INTEGER}, | |||
| #{alarmData.createtime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.updatetime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.endtime,jdbcType=TIMESTAMP}, | |||
| #{alarmData.address,jdbcType=VARCHAR}, | |||
| #{alarmData.lon,jdbcType=DOUBLE}, | |||
| #{alarmData.lat,jdbcType=DOUBLE}, | |||
| #{alarmData.alarmMsg,jdbcType=VARCHAR}, | |||
| #{alarmData.descr,jdbcType=VARCHAR}, | |||
| #{alarmData.uuid,jdbcType=VARCHAR} | |||
| </trim> | |||
| </insert> | |||
| <!-- 单个更新 --> | |||
| <update id="updateAlarmData" parameterType="com.topsail.influxdb.pojo.Alarm"> | |||
| update alarm_data | |||
| <set> | |||
| <if test="imei != null"> | |||
| imei=#{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType=#{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="alarmvalue != null"> | |||
| alarmValue=#{alarmvalue,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit=#{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="status != null"> | |||
| `status`=#{status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="createtime != null"> | |||
| createtime=#{createtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="updatetime != null"> | |||
| updatetime=#{updatetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| endtime=#{endtime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="alarmN != null"> | |||
| alarm_n=#{alarmN,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="address != null"> | |||
| address=#{address,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="lon != null"> | |||
| lon=#{lon,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="lat != null"> | |||
| lat=#{lat,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="alarmMsg != null"> | |||
| alarmMsg=#{alarmMsg,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="descr != null"> | |||
| descr=#{descr,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="uuid != null"> | |||
| uuid=#{uuid,jdbcType=VARCHAR} | |||
| </if> | |||
| </set> | |||
| where id = #{id} | |||
| </update> | |||
| <resultMap id="alarmDataMap" type="com.topsail.influxdb.pojo.Alarm"> | |||
| <id column="id" property="id"/> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype" /> | |||
| <result column="alarmValue" jdbcType="VARCHAR" property="alarmvalue" /> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit" /> | |||
| <result column="status" jdbcType="INTEGER" property="status" /> | |||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | |||
| <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" /> | |||
| <result column="endtime" jdbcType="TIMESTAMP" property="endtime" /> | |||
| <result column="alarm_n" jdbcType="INTEGER" property="alarmN" /> | |||
| <result column="address" jdbcType="VARCHAR" property="address" /> | |||
| <result column="lon" jdbcType="DOUBLE" property="lon" /> | |||
| <result column="lat" jdbcType="DOUBLE" property="lat" /> | |||
| <result column="alarMsg" jdbcType="VARCHAR" property="alarMsg" /> | |||
| <result column="descr" jdbcType="VARCHAR" property="descr" /> | |||
| <result column="uuid" jdbcType="VARCHAR" property="uuid" /> | |||
| </resultMap> | |||
| <!-- 基本列 --> | |||
| <sql id="alarmDataColumn"> | |||
| ad.id, | |||
| ad.imei, | |||
| ad.alarmType, | |||
| ad.alarmValue, | |||
| ad.unit, | |||
| ad.status, | |||
| ad.createtime, | |||
| ad.updatetime, | |||
| ad.endtime, | |||
| ad.alarm_n, | |||
| ad.address, | |||
| ad.lon, | |||
| ad.lat, | |||
| ad.alarmMsg, | |||
| ad.descr, | |||
| ad.uuid | |||
| </sql> | |||
| <!-- 单个查询 --> | |||
| <select id="findAlarmData" parameterType="java.lang.String" resultMap="alarmDataMap"> | |||
| SELECT | |||
| <include refid="alarmDataColumn"/> | |||
| FROM alarm_data as ad | |||
| where ad.imei = #{imei} | |||
| </select> | |||
| <!-- 删除超过时间的数据 --> | |||
| <delete id="deleteAlarmDataMonth"> | |||
| delete from alarm_data_month where #{endTime,jdbcType=TIMESTAMP} > createtime | |||
| </delete> | |||
| </mapper> | |||
| @ -1,44 +1,14 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.DeviceInfo; | |||
| import com.topsail.influxdb.pojo.DeviceInfoExample; | |||
| import java.util.List; | |||
| import com.topsail.influxdb.entity.DeviceBelongInfo; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface DeviceInfoMapper { | |||
| long countByExample(DeviceInfoExample example); | |||
| int deleteByExample(DeviceInfoExample example); | |||
| int insert(DeviceInfo record); | |||
| int insertSelective(DeviceInfo record); | |||
| List<DeviceInfo> selectByExampleWithBLOBs(DeviceInfoExample example); | |||
| List<DeviceInfo> selectByExample(DeviceInfoExample example); | |||
| int updateByExampleSelective(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); | |||
| int updateByExampleWithBLOBs(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); | |||
| int updateByExample(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_info | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<DeviceInfo> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_info | |||
| * 查询设备的所属信息 | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| * @param imei | |||
| * @return | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<DeviceInfo> list, @Param("selective") DeviceInfo.Column ... selective); | |||
| DeviceBelongInfo queryDeviceBelongInfo(@Param("imei") String imei); | |||
| } | |||
| @ -1,321 +1,98 @@ | |||
| <?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.topsail.influxdb.mapper.DeviceInfoMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| <result column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="verifyCode" jdbcType="VARCHAR" property="verifycode" /> | |||
| <result column="deviceType" jdbcType="VARCHAR" property="devicetype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="latitude" jdbcType="VARCHAR" property="latitude" /> | |||
| <result column="longitude" jdbcType="VARCHAR" property="longitude" /> | |||
| <result column="version" jdbcType="VARCHAR" property="version" /> | |||
| <result column="fk_pid" jdbcType="INTEGER" property="fkPid" /> | |||
| </resultMap> | |||
| <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| <result column="deviceId" jdbcType="LONGVARCHAR" property="deviceid" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| <result column="id" jdbcType="INTEGER" property="id"/> | |||
| <result column="verifyCode" jdbcType="VARCHAR" property="verifycode"/> | |||
| <result column="deviceType" jdbcType="VARCHAR" property="devicetype"/> | |||
| <result column="userName" jdbcType="VARCHAR" property="username"/> | |||
| <result column="latitude" jdbcType="VARCHAR" property="latitude"/> | |||
| <result column="longitude" jdbcType="VARCHAR" property="longitude"/> | |||
| <result column="version" jdbcType="VARCHAR" property="version"/> | |||
| <result column="fk_pid" jdbcType="INTEGER" property="fkPid"/> | |||
| </resultMap> | |||
| <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| <result column="deviceId" jdbcType="LONGVARCHAR" property="deviceid"/> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" | |||
| separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" | |||
| separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid | |||
| </sql> | |||
| <sql id="Blob_Column_List"> | |||
| deviceId | |||
| </sql> | |||
| <select id="selectByExampleWithBLOBs" parameterType="com.topsail.influxdb.pojo.DeviceInfoExample" resultMap="ResultMapWithBLOBs"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| , | |||
| <include refid="Blob_Column_List" /> | |||
| from device_info | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.DeviceInfoExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from device_info | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.DeviceInfoExample"> | |||
| delete from device_info | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| insert into device_info (id, verifyCode, deviceType, | |||
| userName, latitude, longitude, | |||
| version, fk_pid, deviceId | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, | |||
| #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, | |||
| #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{deviceid,jdbcType=LONGVARCHAR} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.DeviceInfo"> | |||
| insert into device_info | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| verifyCode, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| latitude, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| longitude, | |||
| </if> | |||
| <if test="version != null"> | |||
| version, | |||
| </if> | |||
| <if test="fkPid != null"> | |||
| fk_pid, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| deviceId, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| #{verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| #{latitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| #{longitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="version != null"> | |||
| #{version,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="fkPid != null"> | |||
| #{fkPid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| #{deviceid,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.DeviceInfoExample" resultType="java.lang.Long"> | |||
| select count(*) from device_info | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update device_info | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.verifycode != null"> | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.latitude != null"> | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.longitude != null"> | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.version != null"> | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.fkPid != null"> | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.deviceid != null"> | |||
| deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExampleWithBLOBs" parameterType="map"> | |||
| update device_info | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER}, | |||
| deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update device_info | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_info | |||
| (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, deviceId | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, | |||
| #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, | |||
| #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.deviceid,jdbcType=LONGVARCHAR} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_info ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'verifyCode'.toString() == column.value"> | |||
| #{item.verifycode,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'latitude'.toString() == column.value"> | |||
| #{item.latitude,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'longitude'.toString() == column.value"> | |||
| #{item.longitude,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'version'.toString() == column.value"> | |||
| #{item.version,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'fk_pid'.toString() == column.value"> | |||
| #{item.fkPid,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'deviceId'.toString() == column.value"> | |||
| #{item.deviceid,jdbcType=LONGVARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id | |||
| , verifyCode, deviceType, userName, latitude, longitude, version, fk_pid | |||
| </sql> | |||
| <sql id="Blob_Column_List"> | |||
| deviceId | |||
| </sql> | |||
| <select id="queryDeviceBelongInfo" resultType="com.topsail.influxdb.entity.DeviceBelongInfo"> | |||
| SELECT CONCAT(IFNULL(oo.office_name, ''), '-', IFNULL(s.station_name, ''), '-', IFNULL(v.village_name, ''), '-', | |||
| IFNULL(b.building_name, ''), '-', IFNULL(u.unit_name, ''), '-', IFNULL(h.house_no, ''), '-', | |||
| IFNULL(r.resident_name, '')) AS deviceBelongInfo,h.id AS houseId,#{imei} AS imei | |||
| FROM house AS h | |||
| LEFT JOIN unit u ON h.unit_id = u.id | |||
| LEFT JOIN building b ON u.building_id = b.id | |||
| LEFT JOIN village v ON b.village_id = v.id | |||
| LEFT JOIN station s ON v.station_id = s.id | |||
| LEFT JOIN operating_office oo ON s.office_id = oo.id | |||
| LEFT JOIN resident r ON h.resident_id = r.id | |||
| WHERE FIND_IN_SET(#{imei}, h.valve_no) | |||
| ORDER BY h.id DESC LIMIT 1 | |||
| </select> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.DeviceProjectView; | |||
| import com.topsail.influxdb.pojo.DeviceProjectViewExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface DeviceProjectViewMapper { | |||
| long countByExample(DeviceProjectViewExample example); | |||
| int deleteByExample(DeviceProjectViewExample example); | |||
| int insert(DeviceProjectView record); | |||
| int insertSelective(DeviceProjectView record); | |||
| List<DeviceProjectView> selectByExample(DeviceProjectViewExample example); | |||
| int updateByExampleSelective(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); | |||
| int updateByExample(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<DeviceProjectView> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<DeviceProjectView> list, @Param("selective") DeviceProjectView.Column ... selective); | |||
| } | |||
| @ -1,240 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.DeviceProjectViewMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.DeviceProjectView"> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="imei2" jdbcType="VARCHAR" property="imei2" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| imei, deviceType, userName, company_id, project_id, imei2 | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.DeviceProjectViewExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from device_project_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.DeviceProjectViewExample"> | |||
| delete from device_project_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.DeviceProjectView"> | |||
| insert into device_project_view (imei, deviceType, userName, | |||
| company_id, project_id, imei2 | |||
| ) | |||
| values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, | |||
| #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{imei2,jdbcType=VARCHAR} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.DeviceProjectView"> | |||
| insert into device_project_view | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="imei2 != null"> | |||
| imei2, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei2 != null"> | |||
| #{imei2,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.DeviceProjectViewExample" resultType="java.lang.Long"> | |||
| select count(*) from device_project_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update device_project_view | |||
| <set> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.imei2 != null"> | |||
| imei2 = #{record.imei2,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update device_project_view | |||
| set imei = #{record.imei,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| imei2 = #{record.imei2,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_project_view | |||
| (imei, deviceType, userName, company_id, project_id, imei2) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, | |||
| #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, #{item.imei2,jdbcType=VARCHAR} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_project_view ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'imei2'.toString() == column.value"> | |||
| #{item.imei2,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.DeviceUser; | |||
| import com.topsail.influxdb.pojo.DeviceUserExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface DeviceUserMapper { | |||
| long countByExample(DeviceUserExample example); | |||
| int deleteByExample(DeviceUserExample example); | |||
| int insert(DeviceUser record); | |||
| int insertSelective(DeviceUser record); | |||
| List<DeviceUser> selectByExample(DeviceUserExample example); | |||
| int updateByExampleSelective(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); | |||
| int updateByExample(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<DeviceUser> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<DeviceUser> list, @Param("selective") DeviceUser.Column ... selective); | |||
| } | |||
| @ -1,483 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.DeviceUserMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.DeviceUser"> | |||
| <result column="Imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="batteryLevel" jdbcType="INTEGER" property="batterylevel" /> | |||
| <result column="singalStrength" jdbcType="INTEGER" property="singalstrength" /> | |||
| <result column="sampleData" jdbcType="VARCHAR" property="sampledata" /> | |||
| <result column="passNum" jdbcType="INTEGER" property="passnum" /> | |||
| <result column="batteryState" jdbcType="INTEGER" property="batterystate" /> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit" /> | |||
| <result column="sendTime" jdbcType="VARCHAR" property="sendtime" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="offlineTime" jdbcType="TIMESTAMP" property="offlinetime" /> | |||
| <result column="address" jdbcType="VARCHAR" property="address" /> | |||
| <result column="lon" jdbcType="DOUBLE" property="lon" /> | |||
| <result column="lat" jdbcType="DOUBLE" property="lat" /> | |||
| <result column="value" jdbcType="VARCHAR" property="value" /> | |||
| <result column="name" jdbcType="VARCHAR" property="name" /> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="user_id" jdbcType="INTEGER" property="userId" /> | |||
| <result column="STATUS" jdbcType="VARCHAR" property="status" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, lon, | |||
| lat, value, name, project_id, user_id, STATUS | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.DeviceUserExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from device_user | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.DeviceUserExample"> | |||
| delete from device_user | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.DeviceUser"> | |||
| insert into device_user (Imei, deviceType, batteryLevel, | |||
| singalStrength, sampleData, passNum, | |||
| batteryState, alarmType, platformType, | |||
| userName, unit, sendTime, | |||
| time, offlineTime, address, | |||
| lon, lat, value, name, | |||
| project_id, user_id, STATUS | |||
| ) | |||
| values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{batterylevel,jdbcType=INTEGER}, | |||
| #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, #{passnum,jdbcType=INTEGER}, | |||
| #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, | |||
| #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{sendtime,jdbcType=VARCHAR}, | |||
| #{time,jdbcType=TIMESTAMP}, #{offlinetime,jdbcType=TIMESTAMP}, #{address,jdbcType=VARCHAR}, | |||
| #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{value,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, | |||
| #{projectId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.DeviceUser"> | |||
| insert into device_user | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| Imei, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="offlinetime != null"> | |||
| offlineTime, | |||
| </if> | |||
| <if test="address != null"> | |||
| address, | |||
| </if> | |||
| <if test="lon != null"> | |||
| lon, | |||
| </if> | |||
| <if test="lat != null"> | |||
| lat, | |||
| </if> | |||
| <if test="value != null"> | |||
| value, | |||
| </if> | |||
| <if test="name != null"> | |||
| name, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="userId != null"> | |||
| user_id, | |||
| </if> | |||
| <if test="status != null"> | |||
| STATUS, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="offlinetime != null"> | |||
| #{offlinetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="address != null"> | |||
| #{address,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="lon != null"> | |||
| #{lon,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="lat != null"> | |||
| #{lat,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="value != null"> | |||
| #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="name != null"> | |||
| #{name,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="userId != null"> | |||
| #{userId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="status != null"> | |||
| #{status,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.DeviceUserExample" resultType="java.lang.Long"> | |||
| select count(*) from device_user | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update device_user | |||
| <set> | |||
| <if test="record.imei != null"> | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.batterylevel != null"> | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.singalstrength != null"> | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sampledata != null"> | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.passnum != null"> | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.batterystate != null"> | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.alarmtype != null"> | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unit != null"> | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.sendtime != null"> | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.offlinetime != null"> | |||
| offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.address != null"> | |||
| address = #{record.address,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.lon != null"> | |||
| lon = #{record.lon,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="record.lat != null"> | |||
| lat = #{record.lat,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="record.value != null"> | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.name != null"> | |||
| name = #{record.name,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.userId != null"> | |||
| user_id = #{record.userId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.status != null"> | |||
| STATUS = #{record.status,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update device_user | |||
| set Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, | |||
| address = #{record.address,jdbcType=VARCHAR}, | |||
| lon = #{record.lon,jdbcType=DOUBLE}, | |||
| lat = #{record.lat,jdbcType=DOUBLE}, | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| name = #{record.name,jdbcType=VARCHAR}, | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| user_id = #{record.userId,jdbcType=INTEGER}, | |||
| STATUS = #{record.status,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_user | |||
| (Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, | |||
| lon, lat, value, name, project_id, user_id, STATUS) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.batterylevel,jdbcType=INTEGER}, | |||
| #{item.singalstrength,jdbcType=INTEGER}, #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, | |||
| #{item.batterystate,jdbcType=INTEGER}, #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, | |||
| #{item.username,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, | |||
| #{item.time,jdbcType=TIMESTAMP}, #{item.offlinetime,jdbcType=TIMESTAMP}, #{item.address,jdbcType=VARCHAR}, | |||
| #{item.lon,jdbcType=DOUBLE}, #{item.lat,jdbcType=DOUBLE}, #{item.value,jdbcType=VARCHAR}, | |||
| #{item.name,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.userId,jdbcType=INTEGER}, | |||
| #{item.status,jdbcType=VARCHAR}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into device_user ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'Imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'batteryLevel'.toString() == column.value"> | |||
| #{item.batterylevel,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'singalStrength'.toString() == column.value"> | |||
| #{item.singalstrength,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sampleData'.toString() == column.value"> | |||
| #{item.sampledata,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'passNum'.toString() == column.value"> | |||
| #{item.passnum,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'batteryState'.toString() == column.value"> | |||
| #{item.batterystate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'alarmType'.toString() == column.value"> | |||
| #{item.alarmtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unit'.toString() == column.value"> | |||
| #{item.unit,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendTime'.toString() == column.value"> | |||
| #{item.sendtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'offlineTime'.toString() == column.value"> | |||
| #{item.offlinetime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'address'.toString() == column.value"> | |||
| #{item.address,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'lon'.toString() == column.value"> | |||
| #{item.lon,jdbcType=DOUBLE} | |||
| </if> | |||
| <if test="'lat'.toString() == column.value"> | |||
| #{item.lat,jdbcType=DOUBLE} | |||
| </if> | |||
| <if test="'value'.toString() == column.value"> | |||
| #{item.value,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'name'.toString() == column.value"> | |||
| #{item.name,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'user_id'.toString() == column.value"> | |||
| #{item.userId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'STATUS'.toString() == column.value"> | |||
| #{item.status,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,32 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.GatewayDevice; | |||
| import org.apache.ibatis.annotations.Param; | |||
| import org.apache.ibatis.annotations.Update; | |||
| /** | |||
| * | |||
| * | |||
| * @version | |||
| * <pre> | |||
| * Author Version Date Changes | |||
| * Administrator 1.0 2022年04月22日 Created | |||
| * | |||
| * </pre> | |||
| * @since 1. | |||
| */ | |||
| public interface GatewayDeviceMapper { | |||
| /** | |||
| * 新增 | |||
| * | |||
| * @param | |||
| * @return | |||
| */ | |||
| int saveGatewayDevice(GatewayDevice gatewayDevice); | |||
| @Update("update gateway_device set bind_status = #{bindStatus} where imei = #{imei}") | |||
| int updateGatewayDeviceStatus(@Param("imei") String imei,@Param("bindStatus") Integer bindStatus); | |||
| } | |||
| @ -1,17 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.GatewayDeviceMapper"> | |||
| <insert id="saveGatewayDevice" parameterType="com.topsail.influxdb.pojo.GatewayDevice"> | |||
| insert into gateway_device | |||
| (imei,parent_imei,device_id,platform_type,bind_status,create_time) | |||
| values | |||
| (#{imei},#{parentImei},#{deviceId},#{platformType},#{bindStatus},now()) | |||
| ON DUPLICATE KEY UPDATE | |||
| device_id = #{deviceId}, | |||
| platform_type = #{platformType}, | |||
| bind_status = #{bindStatus}, | |||
| update_time = now(); | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.HistoryAll; | |||
| import com.topsail.influxdb.pojo.HistoryAllExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface HistoryAllMapper { | |||
| long countByExample(HistoryAllExample example); | |||
| int deleteByExample(HistoryAllExample example); | |||
| int deleteByPrimaryKey(Long id); | |||
| int insert(HistoryAll record); | |||
| int insertSelective(HistoryAll record); | |||
| List<HistoryAll> selectByExample(HistoryAllExample example); | |||
| HistoryAll selectByPrimaryKey(Long id); | |||
| int updateByExampleSelective(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); | |||
| int updateByExample(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); | |||
| int updateByPrimaryKeySelective(HistoryAll record); | |||
| int updateByPrimaryKey(HistoryAll record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<HistoryAll> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<HistoryAll> list, @Param("selective") HistoryAll.Column ... selective); | |||
| } | |||
| @ -1,491 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.HistoryAllMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.HistoryAll"> | |||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="Imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="batteryLevel" jdbcType="INTEGER" property="batterylevel" /> | |||
| <result column="singalStrength" jdbcType="INTEGER" property="singalstrength" /> | |||
| <result column="sampleData" jdbcType="VARCHAR" property="sampledata" /> | |||
| <result column="passNum" jdbcType="INTEGER" property="passnum" /> | |||
| <result column="batteryState" jdbcType="INTEGER" property="batterystate" /> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit" /> | |||
| <result column="sendTime" jdbcType="VARCHAR" property="sendtime" /> | |||
| <result column="dataBody" jdbcType="VARCHAR" property="databody" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="value" jdbcType="VARCHAR" property="value" /> | |||
| <result column="sendDate" jdbcType="TIMESTAMP" property="senddate" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.HistoryAllExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from history_all | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from history_all | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |||
| delete from history_all | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.HistoryAllExample"> | |||
| delete from history_all | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.HistoryAll"> | |||
| insert into history_all (id, deviceType, Imei, | |||
| batteryLevel, singalStrength, sampleData, | |||
| passNum, batteryState, alarmType, | |||
| platformType, userName, unit, | |||
| sendTime, dataBody, time, | |||
| value, sendDate) | |||
| values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, | |||
| #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, | |||
| #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, | |||
| #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, | |||
| #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, | |||
| #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.HistoryAll"> | |||
| insert into history_all | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="value != null"> | |||
| value, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| #{databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.HistoryAllExample" resultType="java.lang.Long"> | |||
| select count(*) from history_all | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update history_all | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.batterylevel != null"> | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.singalstrength != null"> | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sampledata != null"> | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.passnum != null"> | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.batterystate != null"> | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.alarmtype != null"> | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unit != null"> | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.sendtime != null"> | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.databody != null"> | |||
| dataBody = #{record.databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.value != null"> | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.senddate != null"> | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update history_all | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| dataBody = #{record.databody,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.HistoryAll"> | |||
| update history_all | |||
| <set> | |||
| <if test="devicetype != null"> | |||
| deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody = #{databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.HistoryAll"> | |||
| update history_all | |||
| set deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| dataBody = #{databody,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP} | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history_all | |||
| (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, | |||
| #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, | |||
| #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, | |||
| #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, | |||
| #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, | |||
| #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history_all ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'Imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'batteryLevel'.toString() == column.value"> | |||
| #{item.batterylevel,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'singalStrength'.toString() == column.value"> | |||
| #{item.singalstrength,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sampleData'.toString() == column.value"> | |||
| #{item.sampledata,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'passNum'.toString() == column.value"> | |||
| #{item.passnum,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'batteryState'.toString() == column.value"> | |||
| #{item.batterystate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'alarmType'.toString() == column.value"> | |||
| #{item.alarmtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unit'.toString() == column.value"> | |||
| #{item.unit,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendTime'.toString() == column.value"> | |||
| #{item.sendtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'dataBody'.toString() == column.value"> | |||
| #{item.databody,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'value'.toString() == column.value"> | |||
| #{item.value,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendDate'.toString() == column.value"> | |||
| #{item.senddate,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.HistoryErr; | |||
| import com.topsail.influxdb.pojo.HistoryErrExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface HistoryErrMapper { | |||
| long countByExample(HistoryErrExample example); | |||
| int deleteByExample(HistoryErrExample example); | |||
| int deleteByPrimaryKey(Long id); | |||
| int insert(HistoryErr record); | |||
| int insertSelective(HistoryErr record); | |||
| List<HistoryErr> selectByExample(HistoryErrExample example); | |||
| HistoryErr selectByPrimaryKey(Long id); | |||
| int updateByExampleSelective(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); | |||
| int updateByExample(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); | |||
| int updateByPrimaryKeySelective(HistoryErr record); | |||
| int updateByPrimaryKey(HistoryErr record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<HistoryErr> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<HistoryErr> list, @Param("selective") HistoryErr.Column ... selective); | |||
| } | |||
| @ -1,491 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.HistoryErrMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.HistoryErr"> | |||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="Imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="batteryLevel" jdbcType="INTEGER" property="batterylevel" /> | |||
| <result column="singalStrength" jdbcType="INTEGER" property="singalstrength" /> | |||
| <result column="sampleData" jdbcType="VARCHAR" property="sampledata" /> | |||
| <result column="passNum" jdbcType="INTEGER" property="passnum" /> | |||
| <result column="batteryState" jdbcType="INTEGER" property="batterystate" /> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit" /> | |||
| <result column="sendTime" jdbcType="VARCHAR" property="sendtime" /> | |||
| <result column="dataBody" jdbcType="VARCHAR" property="databody" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="value" jdbcType="VARCHAR" property="value" /> | |||
| <result column="sendDate" jdbcType="TIMESTAMP" property="senddate" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.HistoryErrExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from history_err | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from history_err | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |||
| delete from history_err | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.HistoryErrExample"> | |||
| delete from history_err | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.HistoryErr"> | |||
| insert into history_err (id, deviceType, Imei, | |||
| batteryLevel, singalStrength, sampleData, | |||
| passNum, batteryState, alarmType, | |||
| platformType, userName, unit, | |||
| sendTime, dataBody, time, | |||
| value, sendDate) | |||
| values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, | |||
| #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, | |||
| #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, | |||
| #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, | |||
| #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, | |||
| #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.HistoryErr"> | |||
| insert into history_err | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="value != null"> | |||
| value, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| #{databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.HistoryErrExample" resultType="java.lang.Long"> | |||
| select count(*) from history_err | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update history_err | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.batterylevel != null"> | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.singalstrength != null"> | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sampledata != null"> | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.passnum != null"> | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.batterystate != null"> | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.alarmtype != null"> | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unit != null"> | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.sendtime != null"> | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.databody != null"> | |||
| dataBody = #{record.databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.value != null"> | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.senddate != null"> | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update history_err | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| dataBody = #{record.databody,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.HistoryErr"> | |||
| update history_err | |||
| <set> | |||
| <if test="devicetype != null"> | |||
| deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody = #{databody,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.HistoryErr"> | |||
| update history_err | |||
| set deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| dataBody = #{databody,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP} | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history_err | |||
| (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, | |||
| #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, | |||
| #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, | |||
| #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, | |||
| #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, | |||
| #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history_err ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'Imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'batteryLevel'.toString() == column.value"> | |||
| #{item.batterylevel,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'singalStrength'.toString() == column.value"> | |||
| #{item.singalstrength,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sampleData'.toString() == column.value"> | |||
| #{item.sampledata,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'passNum'.toString() == column.value"> | |||
| #{item.passnum,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'batteryState'.toString() == column.value"> | |||
| #{item.batterystate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'alarmType'.toString() == column.value"> | |||
| #{item.alarmtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unit'.toString() == column.value"> | |||
| #{item.unit,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendTime'.toString() == column.value"> | |||
| #{item.sendtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'dataBody'.toString() == column.value"> | |||
| #{item.databody,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'value'.toString() == column.value"> | |||
| #{item.value,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendDate'.toString() == column.value"> | |||
| #{item.senddate,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,60 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.History; | |||
| import com.topsail.influxdb.pojo.HistoryExample; | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| import org.apache.ibatis.annotations.Param; | |||
| import org.apache.ibatis.annotations.Select; | |||
| public interface HistoryMapper { | |||
| long countByExample(HistoryExample example); | |||
| int deleteByExample(HistoryExample example); | |||
| int deleteByPrimaryKey(Long id); | |||
| int insert(History record); | |||
| int insertSelective(History record); | |||
| List<History> selectByExampleWithBLOBs(HistoryExample example); | |||
| List<History> selectByExample(HistoryExample example); | |||
| History selectByPrimaryKey(Long id); | |||
| int updateByExampleSelective(@Param("record") History record, @Param("example") HistoryExample example); | |||
| int updateByExampleWithBLOBs(@Param("record") History record, @Param("example") HistoryExample example); | |||
| int updateByExample(@Param("record") History record, @Param("example") HistoryExample example); | |||
| int updateByPrimaryKeySelective(History record); | |||
| int updateByPrimaryKeyWithBLOBs(History record); | |||
| int updateByPrimaryKey(History record); | |||
| @Select("select * from (SELECT imei,count( 1 ) as num FROM history GROUP BY imei ORDER BY count( 1 ) DESC ) m where num>200") | |||
| List<Map<String,Object>> getBigImei(); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<History> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<History> list, @Param("selective") History.Column ... selective); | |||
| } | |||
| @ -1,555 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.HistoryMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.History"> | |||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="Imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="batteryLevel" jdbcType="INTEGER" property="batterylevel" /> | |||
| <result column="singalStrength" jdbcType="INTEGER" property="singalstrength" /> | |||
| <result column="sampleData" jdbcType="VARCHAR" property="sampledata" /> | |||
| <result column="passNum" jdbcType="INTEGER" property="passnum" /> | |||
| <result column="batteryState" jdbcType="INTEGER" property="batterystate" /> | |||
| <result column="alarmType" jdbcType="VARCHAR" property="alarmtype" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="unit" jdbcType="VARCHAR" property="unit" /> | |||
| <result column="sendTime" jdbcType="VARCHAR" property="sendtime" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="value" jdbcType="VARCHAR" property="value" /> | |||
| <result column="sendDate" jdbcType="TIMESTAMP" property="senddate" /> | |||
| </resultMap> | |||
| <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.topsail.influxdb.pojo.History"> | |||
| <result column="dataBody" jdbcType="LONGVARCHAR" property="databody" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, time, value, sendDate | |||
| </sql> | |||
| <sql id="Blob_Column_List"> | |||
| dataBody | |||
| </sql> | |||
| <select id="selectByExampleWithBLOBs" parameterType="com.topsail.influxdb.pojo.HistoryExample" resultMap="ResultMapWithBLOBs"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| , | |||
| <include refid="Blob_Column_List" /> | |||
| from history | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.HistoryExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from history | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| , | |||
| <include refid="Blob_Column_List" /> | |||
| from history | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |||
| delete from history | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.HistoryExample"> | |||
| delete from history | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.History"> | |||
| insert into history (id, deviceType, Imei, | |||
| batteryLevel, singalStrength, sampleData, | |||
| passNum, batteryState, alarmType, | |||
| platformType, userName, unit, | |||
| sendTime, time, value, | |||
| sendDate, dataBody,devModel) | |||
| values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, | |||
| #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, | |||
| #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, | |||
| #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, | |||
| #{sendtime,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{value,jdbcType=VARCHAR}, | |||
| #{senddate,jdbcType=TIMESTAMP}, #{databody,jdbcType=LONGVARCHAR},#{devModel,jdbcType=INTEGER}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.History"> | |||
| insert into history | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="value != null"> | |||
| value, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| #{databody,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.HistoryExample" resultType="java.lang.Long"> | |||
| select count(*) from history | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update history | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.batterylevel != null"> | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.singalstrength != null"> | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sampledata != null"> | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.passnum != null"> | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.batterystate != null"> | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.alarmtype != null"> | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unit != null"> | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.sendtime != null"> | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.value != null"> | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.senddate != null"> | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.databody != null"> | |||
| dataBody = #{record.databody,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExampleWithBLOBs" parameterType="map"> | |||
| update history | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP}, | |||
| dataBody = #{record.databody,jdbcType=LONGVARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update history | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| Imei = #{record.imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{record.singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{record.sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{record.passnum,jdbcType=INTEGER}, | |||
| batteryState = #{record.batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{record.alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| unit = #{record.unit,jdbcType=VARCHAR}, | |||
| sendTime = #{record.sendtime,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| value = #{record.value,jdbcType=VARCHAR}, | |||
| sendDate = #{record.senddate,jdbcType=TIMESTAMP} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.History"> | |||
| update history | |||
| <set> | |||
| <if test="devicetype != null"> | |||
| deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="batterylevel != null"> | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="singalstrength != null"> | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sampledata != null"> | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="passnum != null"> | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="batterystate != null"> | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="alarmtype != null"> | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unit != null"> | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="sendtime != null"> | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="value != null"> | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="senddate != null"> | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="databody != null"> | |||
| dataBody = #{databody,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.topsail.influxdb.pojo.History"> | |||
| update history | |||
| set deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP}, | |||
| dataBody = #{databody,jdbcType=LONGVARCHAR} | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.History"> | |||
| update history | |||
| set deviceType = #{devicetype,jdbcType=INTEGER}, | |||
| Imei = #{imei,jdbcType=VARCHAR}, | |||
| batteryLevel = #{batterylevel,jdbcType=INTEGER}, | |||
| singalStrength = #{singalstrength,jdbcType=INTEGER}, | |||
| sampleData = #{sampledata,jdbcType=VARCHAR}, | |||
| passNum = #{passnum,jdbcType=INTEGER}, | |||
| batteryState = #{batterystate,jdbcType=INTEGER}, | |||
| alarmType = #{alarmtype,jdbcType=VARCHAR}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| unit = #{unit,jdbcType=VARCHAR}, | |||
| sendTime = #{sendtime,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| value = #{value,jdbcType=VARCHAR}, | |||
| sendDate = #{senddate,jdbcType=TIMESTAMP} | |||
| where id = #{id,jdbcType=BIGINT} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history | |||
| (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, | |||
| alarmType, platformType, userName, unit, sendTime, time, value, sendDate, dataBody | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, | |||
| #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, | |||
| #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, | |||
| #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, | |||
| #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, | |||
| #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP}, #{item.databody,jdbcType=LONGVARCHAR} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into history ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'Imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'batteryLevel'.toString() == column.value"> | |||
| #{item.batterylevel,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'singalStrength'.toString() == column.value"> | |||
| #{item.singalstrength,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sampleData'.toString() == column.value"> | |||
| #{item.sampledata,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'passNum'.toString() == column.value"> | |||
| #{item.passnum,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'batteryState'.toString() == column.value"> | |||
| #{item.batterystate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'alarmType'.toString() == column.value"> | |||
| #{item.alarmtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unit'.toString() == column.value"> | |||
| #{item.unit,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendTime'.toString() == column.value"> | |||
| #{item.sendtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'value'.toString() == column.value"> | |||
| #{item.value,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'sendDate'.toString() == column.value"> | |||
| #{item.senddate,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'dataBody'.toString() == column.value"> | |||
| #{item.databody,jdbcType=LONGVARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,72 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.ImsiImei; | |||
| import org.apache.ibatis.annotations.Param; | |||
| import java.util.List; | |||
| /** | |||
| * | |||
| * imsi和imei关系表Dao | |||
| * | |||
| * @version | |||
| * <pre> | |||
| * Author Version Date Changes | |||
| * Administrator 1.0 2021年05月31日 Created | |||
| * | |||
| * </pre> | |||
| * @since 1. | |||
| */ | |||
| public interface ImsiImeiMapper { | |||
| /** | |||
| * imsi和imei关系表 新增 | |||
| * | |||
| * @param imsiImei | |||
| * @return | |||
| */ | |||
| int saveImsiImei(@Param("imsiImei") ImsiImei imsiImei); | |||
| /** | |||
| * imsi和imei关系表 更新 | |||
| * | |||
| * @param imsiImei | |||
| * @return | |||
| */ | |||
| int updateImsiImei(ImsiImei imsiImei); | |||
| /** | |||
| *imsi和imei关系表 删除 | |||
| * | |||
| * @param id | |||
| * @return | |||
| */ | |||
| int deleteImsiImei(@Param("imsi") String id); | |||
| /** | |||
| * imsi和imei关系表 查询列表 | |||
| * | |||
| * @param imsiImei | |||
| * @param start | |||
| * @param pageSize | |||
| * @return | |||
| */ | |||
| List<ImsiImei> pageListImsiImei(@Param("imsiImei") ImsiImei imsiImei, @Param("start") Integer start, @Param("pageSize") Integer pageSize); | |||
| /** | |||
| * imsi和imei关系表 count | |||
| * | |||
| * @param imsiImei | |||
| * @return | |||
| */ | |||
| Integer findCountImsiImei(@Param("imsiImei") ImsiImei imsiImei); | |||
| /** | |||
| * imsi和imei关系表 根据id查询 | |||
| * | |||
| * @param imsi | |||
| * @return | |||
| */ | |||
| ImsiImei findImsiImei(String imsi); | |||
| } | |||
| @ -1,131 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.ImsiImeiMapper"> | |||
| <resultMap id="imsiImeiMap" type="com.topsail.influxdb.pojo.ImsiImei"> | |||
| <result column="imsi" jdbcType="VARCHAR" property="imsi" /> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> | |||
| <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> | |||
| </resultMap> | |||
| <!-- 基本列 --> | |||
| <sql id="imsiImeiColumn"> | |||
| ii.imsi, | |||
| ii.imei, | |||
| ii.create_time, | |||
| ii.update_time | |||
| </sql> | |||
| <!-- 单个插入 --> | |||
| <insert id="saveImsiImei" parameterType="com.topsail.influxdb.pojo.ImsiImei" useGeneratedKeys="true" keyProperty="imsiImei.id"> | |||
| insert into imsi_imei | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| imsi, | |||
| imei, | |||
| create_time | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| #{imsiImei.imsi,jdbcType=VARCHAR}, | |||
| #{imsiImei.imei,jdbcType=VARCHAR}, | |||
| now() | |||
| </trim> | |||
| ON DUPLICATE KEY UPDATE | |||
| imei = #{imsiImei.imei}, | |||
| update_time = now(); | |||
| </insert> | |||
| <!-- 批量新增 --> | |||
| <!-- 单个更新 --> | |||
| <update id="updateImsiImei" parameterType="com.topsail.influxdb.pojo.ImsiImei"> | |||
| update imsi_imei | |||
| <set> | |||
| <if test="imsi != null"> | |||
| imsi=#{imsi,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| imei=#{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="updateTime != null"> | |||
| update_time=#{updateTime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| where imsi = #{imsi} | |||
| </update> | |||
| <!-- 批量更新 --> | |||
| <!-- 删除 --> | |||
| <delete id="deleteImsiImei" parameterType="java.lang.String"> | |||
| delete from imsi_imei where imsi = #{imsi} | |||
| </delete> | |||
| <!-- 批量删除 --> | |||
| <!-- 分页查询 --> | |||
| <select id="pageListImsiImei" resultMap="imsiImeiMap"> | |||
| SELECT | |||
| <include refid="imsiImeiColumn"/> | |||
| FROM imsi_imei as ii | |||
| <where> | |||
| <if test="imsiImei.imsi != null and imsiImei.imsi != ''"> | |||
| AND ii.imsi=#{imsiImei.imsi,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="imsiImei.imei != null and imsiImei.imei != ''"> | |||
| AND ii.imei=#{imsiImei.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="imsiImei.createTime != null and imsiImei.createTime != ''"> | |||
| AND ii.create_time=#{imsiImei.createTime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="imsiImei.updateTime != null and imsiImei.updateTime != ''"> | |||
| AND ii.update_time=#{imsiImei.updateTime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </where> | |||
| <choose> | |||
| <when test="start != null and pageSize != null"> | |||
| order by ii.create_time desc | |||
| limit #{start},#{pageSize}; | |||
| </when> | |||
| <otherwise> | |||
| order by ii.create_time desc | |||
| </otherwise> | |||
| </choose> | |||
| </select> | |||
| <!-- 单个查询 --> | |||
| <select id="findImsiImei" parameterType="java.lang.String" resultMap="imsiImeiMap"> | |||
| SELECT | |||
| <include refid="imsiImeiColumn"/> | |||
| FROM imsi_imei as ii | |||
| where ii.imsi = #{imsi} | |||
| </select> | |||
| <!-- 查询count --> | |||
| <select id="findCountImsiImei" resultType="java.lang.Integer"> | |||
| SELECT | |||
| count(*) | |||
| FROM imsi_imei as ii | |||
| <where> | |||
| <if test="imsiImei.imsi != null and imsiImei.imsi != ''"> | |||
| AND ii.imsi=#{imsiImei.imsi,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="imsiImei.imei != null and imsiImei.imei != ''"> | |||
| AND ii.imei=#{imsiImei.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="imsiImei.createTime != null and imsiImei.createTime != ''"> | |||
| AND ii.create_time=#{imsiImei.createTime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="imsiImei.updateTime != null and imsiImei.updateTime != ''"> | |||
| AND ii.update_time=#{imsiImei.updateTime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </where> | |||
| </select> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.NbiotConfig; | |||
| import com.topsail.influxdb.pojo.NbiotConfigExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface NbiotConfigMapper { | |||
| long countByExample(NbiotConfigExample example); | |||
| int deleteByExample(NbiotConfigExample example); | |||
| int insert(NbiotConfig record); | |||
| int insertSelective(NbiotConfig record); | |||
| List<NbiotConfig> selectByExample(NbiotConfigExample example); | |||
| int updateByExampleSelective(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); | |||
| int updateByExample(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<NbiotConfig> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<NbiotConfig> list, @Param("selective") NbiotConfig.Column ... selective); | |||
| } | |||
| @ -1,688 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.NbiotConfigMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.NbiotConfig"> | |||
| <result column="id" jdbcType="BIGINT" property="id" /> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="typeName" jdbcType="VARCHAR" property="typename" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="collectionGap" jdbcType="INTEGER" property="collectiongap" /> | |||
| <result column="sendingGap" jdbcType="INTEGER" property="sendinggap" /> | |||
| <result column="urlAddress" jdbcType="VARCHAR" property="urladdress" /> | |||
| <result column="port" jdbcType="VARCHAR" property="port" /> | |||
| <result column="unipathThresholdLimit" jdbcType="INTEGER" property="unipaththresholdlimit" /> | |||
| <result column="unipathThresholdUpper" jdbcType="INTEGER" property="unipaththresholdupper" /> | |||
| <result column="unipathChangeThreshold" jdbcType="INTEGER" property="unipathchangethreshold" /> | |||
| <result column="multipleThresholdLimit" jdbcType="INTEGER" property="multiplethresholdlimit" /> | |||
| <result column="multipleThresholdUpper" jdbcType="INTEGER" property="multiplethresholdupper" /> | |||
| <result column="multipleChangeThreshold" jdbcType="INTEGER" property="multiplechangethreshold" /> | |||
| <result column="controlValveState" jdbcType="INTEGER" property="controlvalvestate" /> | |||
| <result column="startTime" jdbcType="VARCHAR" property="starttime" /> | |||
| <result column="endTime" jdbcType="VARCHAR" property="endtime" /> | |||
| <result column="numDays" jdbcType="INTEGER" property="numdays" /> | |||
| <result column="switchingValue" jdbcType="INTEGER" property="switchingvalue" /> | |||
| <result column="stopReporting" jdbcType="INTEGER" property="stopreporting" /> | |||
| <result column="softwareVersions" jdbcType="VARCHAR" property="softwareversions" /> | |||
| <result column="hardwareVersions" jdbcType="VARCHAR" property="hardwareversions" /> | |||
| <result column="IMSI" jdbcType="VARCHAR" property="imsi" /> | |||
| <result column="APN" jdbcType="VARCHAR" property="apn" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="autoControlPolicy" jdbcType="VARCHAR" property="autocontrolpolicy" /> | |||
| <result column="autoControlTime" jdbcType="VARCHAR" property="autocontroltime" /> | |||
| <result column="selfCheckTime" jdbcType="VARCHAR" property="selfchecktime" /> | |||
| <result column="collide" jdbcType="INTEGER" property="collide" /> | |||
| <result column="lean" jdbcType="INTEGER" property="lean" /> | |||
| <result column="lora_frequency" jdbcType="INTEGER" property="loraFrequency" /> | |||
| <result column="lora_bandwidth" jdbcType="INTEGER" property="loraBandwidth" /> | |||
| <result column="lora_spreading" jdbcType="INTEGER" property="loraSpreading" /> | |||
| <result column="lora_encoding_rate" jdbcType="INTEGER" property="loraEncodingRate" /> | |||
| <result column="netType" jdbcType="INTEGER" property="nettype" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, | |||
| stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, | |||
| autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, | |||
| lora_encoding_rate, netType | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.NbiotConfigExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from nbiot_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.NbiotConfigExample"> | |||
| delete from nbiot_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.NbiotConfig"> | |||
| insert into nbiot_config (id, imei, typeName, | |||
| deviceType, collectionGap, sendingGap, | |||
| urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, | |||
| multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, | |||
| startTime, endTime, numDays, | |||
| switchingValue, stopReporting, softwareVersions, | |||
| hardwareVersions, IMSI, APN, | |||
| time, autoControlPolicy, autoControlTime, | |||
| selfCheckTime, collide, lean, | |||
| lora_frequency, lora_bandwidth, lora_spreading, | |||
| lora_encoding_rate, netType) | |||
| values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, | |||
| #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, | |||
| #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, | |||
| #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, | |||
| #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, | |||
| #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, | |||
| #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, | |||
| #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, | |||
| #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, | |||
| #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, | |||
| #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, | |||
| #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, | |||
| #{loraEncodingRate,jdbcType=INTEGER}, #{nettype,jdbcType=INTEGER}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.NbiotConfig"> | |||
| insert into nbiot_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="typename != null"> | |||
| typeName, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="collectiongap != null"> | |||
| collectionGap, | |||
| </if> | |||
| <if test="sendinggap != null"> | |||
| sendingGap, | |||
| </if> | |||
| <if test="urladdress != null"> | |||
| urlAddress, | |||
| </if> | |||
| <if test="port != null"> | |||
| port, | |||
| </if> | |||
| <if test="unipaththresholdlimit != null"> | |||
| unipathThresholdLimit, | |||
| </if> | |||
| <if test="unipaththresholdupper != null"> | |||
| unipathThresholdUpper, | |||
| </if> | |||
| <if test="unipathchangethreshold != null"> | |||
| unipathChangeThreshold, | |||
| </if> | |||
| <if test="multiplethresholdlimit != null"> | |||
| multipleThresholdLimit, | |||
| </if> | |||
| <if test="multiplethresholdupper != null"> | |||
| multipleThresholdUpper, | |||
| </if> | |||
| <if test="multiplechangethreshold != null"> | |||
| multipleChangeThreshold, | |||
| </if> | |||
| <if test="controlvalvestate != null"> | |||
| controlValveState, | |||
| </if> | |||
| <if test="starttime != null"> | |||
| startTime, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| endTime, | |||
| </if> | |||
| <if test="numdays != null"> | |||
| numDays, | |||
| </if> | |||
| <if test="switchingvalue != null"> | |||
| switchingValue, | |||
| </if> | |||
| <if test="stopreporting != null"> | |||
| stopReporting, | |||
| </if> | |||
| <if test="softwareversions != null"> | |||
| softwareVersions, | |||
| </if> | |||
| <if test="hardwareversions != null"> | |||
| hardwareVersions, | |||
| </if> | |||
| <if test="imsi != null"> | |||
| IMSI, | |||
| </if> | |||
| <if test="apn != null"> | |||
| APN, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="autocontrolpolicy != null"> | |||
| autoControlPolicy, | |||
| </if> | |||
| <if test="autocontroltime != null"> | |||
| autoControlTime, | |||
| </if> | |||
| <if test="selfchecktime != null"> | |||
| selfCheckTime, | |||
| </if> | |||
| <if test="collide != null"> | |||
| collide, | |||
| </if> | |||
| <if test="lean != null"> | |||
| lean, | |||
| </if> | |||
| <if test="loraFrequency != null"> | |||
| lora_frequency, | |||
| </if> | |||
| <if test="loraBandwidth != null"> | |||
| lora_bandwidth, | |||
| </if> | |||
| <if test="loraSpreading != null"> | |||
| lora_spreading, | |||
| </if> | |||
| <if test="loraEncodingRate != null"> | |||
| lora_encoding_rate, | |||
| </if> | |||
| <if test="nettype != null"> | |||
| netType, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="typename != null"> | |||
| #{typename,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="collectiongap != null"> | |||
| #{collectiongap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sendinggap != null"> | |||
| #{sendinggap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="urladdress != null"> | |||
| #{urladdress,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unipaththresholdlimit != null"> | |||
| #{unipaththresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="unipaththresholdupper != null"> | |||
| #{unipaththresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="unipathchangethreshold != null"> | |||
| #{unipathchangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplethresholdlimit != null"> | |||
| #{multiplethresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplethresholdupper != null"> | |||
| #{multiplethresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplechangethreshold != null"> | |||
| #{multiplechangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="controlvalvestate != null"> | |||
| #{controlvalvestate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="starttime != null"> | |||
| #{starttime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| #{endtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="numdays != null"> | |||
| #{numdays,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="switchingvalue != null"> | |||
| #{switchingvalue,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="stopreporting != null"> | |||
| #{stopreporting,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="softwareversions != null"> | |||
| #{softwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="hardwareversions != null"> | |||
| #{hardwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="imsi != null"> | |||
| #{imsi,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="apn != null"> | |||
| #{apn,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="autocontrolpolicy != null"> | |||
| #{autocontrolpolicy,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="autocontroltime != null"> | |||
| #{autocontroltime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="selfchecktime != null"> | |||
| #{selfchecktime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="collide != null"> | |||
| #{collide,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="lean != null"> | |||
| #{lean,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraFrequency != null"> | |||
| #{loraFrequency,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraBandwidth != null"> | |||
| #{loraBandwidth,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraSpreading != null"> | |||
| #{loraSpreading,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraEncodingRate != null"> | |||
| #{loraEncodingRate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="nettype != null"> | |||
| #{nettype,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.NbiotConfigExample" resultType="java.lang.Long"> | |||
| select count(*) from nbiot_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update nbiot_config | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.typename != null"> | |||
| typeName = #{record.typename,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.collectiongap != null"> | |||
| collectionGap = #{record.collectiongap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sendinggap != null"> | |||
| sendingGap = #{record.sendinggap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.urladdress != null"> | |||
| urlAddress = #{record.urladdress,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.port != null"> | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unipaththresholdlimit != null"> | |||
| unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.unipaththresholdupper != null"> | |||
| unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.unipathchangethreshold != null"> | |||
| unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplethresholdlimit != null"> | |||
| multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplethresholdupper != null"> | |||
| multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplechangethreshold != null"> | |||
| multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.controlvalvestate != null"> | |||
| controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.starttime != null"> | |||
| startTime = #{record.starttime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.endtime != null"> | |||
| endTime = #{record.endtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.numdays != null"> | |||
| numDays = #{record.numdays,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.switchingvalue != null"> | |||
| switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.stopreporting != null"> | |||
| stopReporting = #{record.stopreporting,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.softwareversions != null"> | |||
| softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.hardwareversions != null"> | |||
| hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.imsi != null"> | |||
| IMSI = #{record.imsi,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.apn != null"> | |||
| APN = #{record.apn,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.autocontrolpolicy != null"> | |||
| autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.autocontroltime != null"> | |||
| autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.selfchecktime != null"> | |||
| selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.collide != null"> | |||
| collide = #{record.collide,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.lean != null"> | |||
| lean = #{record.lean,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraFrequency != null"> | |||
| lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraBandwidth != null"> | |||
| lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraSpreading != null"> | |||
| lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraEncodingRate != null"> | |||
| lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.nettype != null"> | |||
| netType = #{record.nettype,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update nbiot_config | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| typeName = #{record.typename,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| collectionGap = #{record.collectiongap,jdbcType=INTEGER}, | |||
| sendingGap = #{record.sendinggap,jdbcType=INTEGER}, | |||
| urlAddress = #{record.urladdress,jdbcType=VARCHAR}, | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, | |||
| unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, | |||
| multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, | |||
| multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, | |||
| multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, | |||
| controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, | |||
| startTime = #{record.starttime,jdbcType=VARCHAR}, | |||
| endTime = #{record.endtime,jdbcType=VARCHAR}, | |||
| numDays = #{record.numdays,jdbcType=INTEGER}, | |||
| switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, | |||
| stopReporting = #{record.stopreporting,jdbcType=INTEGER}, | |||
| softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, | |||
| hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, | |||
| IMSI = #{record.imsi,jdbcType=VARCHAR}, | |||
| APN = #{record.apn,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, | |||
| autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, | |||
| selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, | |||
| collide = #{record.collide,jdbcType=INTEGER}, | |||
| lean = #{record.lean,jdbcType=INTEGER}, | |||
| lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, | |||
| lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, | |||
| lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, | |||
| lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, | |||
| netType = #{record.nettype,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into nbiot_config | |||
| (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, | |||
| stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, | |||
| autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, | |||
| lora_spreading, lora_encoding_rate, netType) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, | |||
| #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, | |||
| #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, | |||
| #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, | |||
| #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, | |||
| #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, | |||
| #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, | |||
| #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, | |||
| #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, | |||
| #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, | |||
| #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, | |||
| #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, | |||
| #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, | |||
| #{item.nettype,jdbcType=INTEGER}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into nbiot_config ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'typeName'.toString() == column.value"> | |||
| #{item.typename,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'collectionGap'.toString() == column.value"> | |||
| #{item.collectiongap,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sendingGap'.toString() == column.value"> | |||
| #{item.sendinggap,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'urlAddress'.toString() == column.value"> | |||
| #{item.urladdress,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'port'.toString() == column.value"> | |||
| #{item.port,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unipathThresholdLimit'.toString() == column.value"> | |||
| #{item.unipaththresholdlimit,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'unipathThresholdUpper'.toString() == column.value"> | |||
| #{item.unipaththresholdupper,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'unipathChangeThreshold'.toString() == column.value"> | |||
| #{item.unipathchangethreshold,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleThresholdLimit'.toString() == column.value"> | |||
| #{item.multiplethresholdlimit,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleThresholdUpper'.toString() == column.value"> | |||
| #{item.multiplethresholdupper,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleChangeThreshold'.toString() == column.value"> | |||
| #{item.multiplechangethreshold,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'controlValveState'.toString() == column.value"> | |||
| #{item.controlvalvestate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'startTime'.toString() == column.value"> | |||
| #{item.starttime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'endTime'.toString() == column.value"> | |||
| #{item.endtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'numDays'.toString() == column.value"> | |||
| #{item.numdays,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'switchingValue'.toString() == column.value"> | |||
| #{item.switchingvalue,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'stopReporting'.toString() == column.value"> | |||
| #{item.stopreporting,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'softwareVersions'.toString() == column.value"> | |||
| #{item.softwareversions,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'hardwareVersions'.toString() == column.value"> | |||
| #{item.hardwareversions,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'IMSI'.toString() == column.value"> | |||
| #{item.imsi,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'APN'.toString() == column.value"> | |||
| #{item.apn,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'autoControlPolicy'.toString() == column.value"> | |||
| #{item.autocontrolpolicy,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'autoControlTime'.toString() == column.value"> | |||
| #{item.autocontroltime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'selfCheckTime'.toString() == column.value"> | |||
| #{item.selfchecktime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'collide'.toString() == column.value"> | |||
| #{item.collide,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lean'.toString() == column.value"> | |||
| #{item.lean,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_frequency'.toString() == column.value"> | |||
| #{item.loraFrequency,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_bandwidth'.toString() == column.value"> | |||
| #{item.loraBandwidth,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_spreading'.toString() == column.value"> | |||
| #{item.loraSpreading,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_encoding_rate'.toString() == column.value"> | |||
| #{item.loraEncodingRate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'netType'.toString() == column.value"> | |||
| #{item.nettype,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OcCompany; | |||
| import com.topsail.influxdb.pojo.OcCompanyExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OcCompanyMapper { | |||
| long countByExample(OcCompanyExample example); | |||
| int deleteByExample(OcCompanyExample example); | |||
| int insert(OcCompany record); | |||
| int insertSelective(OcCompany record); | |||
| List<OcCompany> selectByExample(OcCompanyExample example); | |||
| int updateByExampleSelective(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); | |||
| int updateByExample(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OcCompany> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OcCompany> list, @Param("selective") OcCompany.Column ... selective); | |||
| } | |||
| @ -1,285 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OcCompanyMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OcCompany"> | |||
| <result column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="username" jdbcType="VARCHAR" property="username" /> | |||
| <result column="userip" jdbcType="VARCHAR" property="userip" /> | |||
| <result column="userport" jdbcType="INTEGER" property="userport" /> | |||
| <result column="userprot" jdbcType="VARCHAR" property="userprot" /> | |||
| <result column="period" jdbcType="VARCHAR" property="period" /> | |||
| <result column="phoneNum" jdbcType="VARCHAR" property="phonenum" /> | |||
| <result column="cid" jdbcType="INTEGER" property="cid" /> | |||
| <result column="cperiod" jdbcType="VARCHAR" property="cperiod" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, username, userip, userport, userprot, period, phoneNum, cid, cperiod | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OcCompanyExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from oc_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OcCompanyExample"> | |||
| delete from oc_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OcCompany"> | |||
| insert into oc_company (id, username, userip, | |||
| userport, userprot, period, | |||
| phoneNum, cid, cperiod | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, | |||
| #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, | |||
| #{phonenum,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{cperiod,jdbcType=VARCHAR} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OcCompany"> | |||
| insert into oc_company | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="username != null"> | |||
| username, | |||
| </if> | |||
| <if test="userip != null"> | |||
| userip, | |||
| </if> | |||
| <if test="userport != null"> | |||
| userport, | |||
| </if> | |||
| <if test="userprot != null"> | |||
| userprot, | |||
| </if> | |||
| <if test="period != null"> | |||
| period, | |||
| </if> | |||
| <if test="phonenum != null"> | |||
| phoneNum, | |||
| </if> | |||
| <if test="cid != null"> | |||
| cid, | |||
| </if> | |||
| <if test="cperiod != null"> | |||
| cperiod, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="userip != null"> | |||
| #{userip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="userport != null"> | |||
| #{userport,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="userprot != null"> | |||
| #{userprot,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="period != null"> | |||
| #{period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="phonenum != null"> | |||
| #{phonenum,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="cid != null"> | |||
| #{cid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="cperiod != null"> | |||
| #{cperiod,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OcCompanyExample" resultType="java.lang.Long"> | |||
| select count(*) from oc_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update oc_company | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| username = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.userip != null"> | |||
| userip = #{record.userip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.userport != null"> | |||
| userport = #{record.userport,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.userprot != null"> | |||
| userprot = #{record.userprot,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.period != null"> | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.phonenum != null"> | |||
| phoneNum = #{record.phonenum,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.cid != null"> | |||
| cid = #{record.cid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.cperiod != null"> | |||
| cperiod = #{record.cperiod,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update oc_company | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| username = #{record.username,jdbcType=VARCHAR}, | |||
| userip = #{record.userip,jdbcType=VARCHAR}, | |||
| userport = #{record.userport,jdbcType=INTEGER}, | |||
| userprot = #{record.userprot,jdbcType=VARCHAR}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| phoneNum = #{record.phonenum,jdbcType=VARCHAR}, | |||
| cid = #{record.cid,jdbcType=INTEGER}, | |||
| cperiod = #{record.cperiod,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_company | |||
| (id, username, userip, userport, userprot, period, phoneNum, cid, cperiod) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, | |||
| #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, | |||
| #{item.phonenum,jdbcType=VARCHAR}, #{item.cid,jdbcType=INTEGER}, #{item.cperiod,jdbcType=VARCHAR} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_company ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'username'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userip'.toString() == column.value"> | |||
| #{item.userip,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userport'.toString() == column.value"> | |||
| #{item.userport,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'userprot'.toString() == column.value"> | |||
| #{item.userprot,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'period'.toString() == column.value"> | |||
| #{item.period,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'phoneNum'.toString() == column.value"> | |||
| #{item.phonenum,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'cid'.toString() == column.value"> | |||
| #{item.cid,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'cperiod'.toString() == column.value"> | |||
| #{item.cperiod,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OcConfig; | |||
| import com.topsail.influxdb.pojo.OcConfigExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OcConfigMapper { | |||
| long countByExample(OcConfigExample example); | |||
| int deleteByExample(OcConfigExample example); | |||
| int insert(OcConfig record); | |||
| int insertSelective(OcConfig record); | |||
| List<OcConfig> selectByExample(OcConfigExample example); | |||
| int updateByExampleSelective(@Param("record") OcConfig record, @Param("example") OcConfigExample example); | |||
| int updateByExample(@Param("record") OcConfig record, @Param("example") OcConfigExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OcConfig> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OcConfig> list, @Param("selective") OcConfig.Column ... selective); | |||
| } | |||
| @ -1,688 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OcConfigMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OcConfig"> | |||
| <result column="id" jdbcType="BIGINT" property="id" /> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="typeName" jdbcType="VARCHAR" property="typename" /> | |||
| <result column="deviceType" jdbcType="INTEGER" property="devicetype" /> | |||
| <result column="collectionGap" jdbcType="INTEGER" property="collectiongap" /> | |||
| <result column="sendingGap" jdbcType="INTEGER" property="sendinggap" /> | |||
| <result column="urlAddress" jdbcType="VARCHAR" property="urladdress" /> | |||
| <result column="port" jdbcType="VARCHAR" property="port" /> | |||
| <result column="unipathThresholdLimit" jdbcType="INTEGER" property="unipaththresholdlimit" /> | |||
| <result column="unipathThresholdUpper" jdbcType="INTEGER" property="unipaththresholdupper" /> | |||
| <result column="unipathChangeThreshold" jdbcType="INTEGER" property="unipathchangethreshold" /> | |||
| <result column="multipleThresholdLimit" jdbcType="INTEGER" property="multiplethresholdlimit" /> | |||
| <result column="multipleThresholdUpper" jdbcType="INTEGER" property="multiplethresholdupper" /> | |||
| <result column="multipleChangeThreshold" jdbcType="INTEGER" property="multiplechangethreshold" /> | |||
| <result column="controlValveState" jdbcType="INTEGER" property="controlvalvestate" /> | |||
| <result column="startTime" jdbcType="VARCHAR" property="starttime" /> | |||
| <result column="endTime" jdbcType="VARCHAR" property="endtime" /> | |||
| <result column="numDays" jdbcType="INTEGER" property="numdays" /> | |||
| <result column="switchingValue" jdbcType="INTEGER" property="switchingvalue" /> | |||
| <result column="stopReporting" jdbcType="INTEGER" property="stopreporting" /> | |||
| <result column="softwareVersions" jdbcType="VARCHAR" property="softwareversions" /> | |||
| <result column="hardwareVersions" jdbcType="VARCHAR" property="hardwareversions" /> | |||
| <result column="IMSI" jdbcType="VARCHAR" property="imsi" /> | |||
| <result column="APN" jdbcType="VARCHAR" property="apn" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="autoControlPolicy" jdbcType="VARCHAR" property="autocontrolpolicy" /> | |||
| <result column="autoControlTime" jdbcType="VARCHAR" property="autocontroltime" /> | |||
| <result column="selfCheckTime" jdbcType="VARCHAR" property="selfchecktime" /> | |||
| <result column="collide" jdbcType="INTEGER" property="collide" /> | |||
| <result column="lean" jdbcType="INTEGER" property="lean" /> | |||
| <result column="lora_frequency" jdbcType="INTEGER" property="loraFrequency" /> | |||
| <result column="lora_bandwidth" jdbcType="INTEGER" property="loraBandwidth" /> | |||
| <result column="lora_spreading" jdbcType="INTEGER" property="loraSpreading" /> | |||
| <result column="lora_encoding_rate" jdbcType="INTEGER" property="loraEncodingRate" /> | |||
| <result column="cimei" jdbcType="VARCHAR" property="cimei" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, | |||
| stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, | |||
| autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, | |||
| lora_encoding_rate, cimei | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OcConfigExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from oc_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OcConfigExample"> | |||
| delete from oc_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OcConfig"> | |||
| insert into oc_config (id, imei, typeName, | |||
| deviceType, collectionGap, sendingGap, | |||
| urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, | |||
| multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, | |||
| startTime, endTime, numDays, | |||
| switchingValue, stopReporting, softwareVersions, | |||
| hardwareVersions, IMSI, APN, | |||
| time, autoControlPolicy, autoControlTime, | |||
| selfCheckTime, collide, lean, | |||
| lora_frequency, lora_bandwidth, lora_spreading, | |||
| lora_encoding_rate, cimei) | |||
| values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, | |||
| #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, | |||
| #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, | |||
| #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, | |||
| #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, | |||
| #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, | |||
| #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, | |||
| #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, | |||
| #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, | |||
| #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, | |||
| #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, | |||
| #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, | |||
| #{loraEncodingRate,jdbcType=INTEGER}, #{cimei,jdbcType=VARCHAR}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OcConfig"> | |||
| insert into oc_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="typename != null"> | |||
| typeName, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="collectiongap != null"> | |||
| collectionGap, | |||
| </if> | |||
| <if test="sendinggap != null"> | |||
| sendingGap, | |||
| </if> | |||
| <if test="urladdress != null"> | |||
| urlAddress, | |||
| </if> | |||
| <if test="port != null"> | |||
| port, | |||
| </if> | |||
| <if test="unipaththresholdlimit != null"> | |||
| unipathThresholdLimit, | |||
| </if> | |||
| <if test="unipaththresholdupper != null"> | |||
| unipathThresholdUpper, | |||
| </if> | |||
| <if test="unipathchangethreshold != null"> | |||
| unipathChangeThreshold, | |||
| </if> | |||
| <if test="multiplethresholdlimit != null"> | |||
| multipleThresholdLimit, | |||
| </if> | |||
| <if test="multiplethresholdupper != null"> | |||
| multipleThresholdUpper, | |||
| </if> | |||
| <if test="multiplechangethreshold != null"> | |||
| multipleChangeThreshold, | |||
| </if> | |||
| <if test="controlvalvestate != null"> | |||
| controlValveState, | |||
| </if> | |||
| <if test="starttime != null"> | |||
| startTime, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| endTime, | |||
| </if> | |||
| <if test="numdays != null"> | |||
| numDays, | |||
| </if> | |||
| <if test="switchingvalue != null"> | |||
| switchingValue, | |||
| </if> | |||
| <if test="stopreporting != null"> | |||
| stopReporting, | |||
| </if> | |||
| <if test="softwareversions != null"> | |||
| softwareVersions, | |||
| </if> | |||
| <if test="hardwareversions != null"> | |||
| hardwareVersions, | |||
| </if> | |||
| <if test="imsi != null"> | |||
| IMSI, | |||
| </if> | |||
| <if test="apn != null"> | |||
| APN, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="autocontrolpolicy != null"> | |||
| autoControlPolicy, | |||
| </if> | |||
| <if test="autocontroltime != null"> | |||
| autoControlTime, | |||
| </if> | |||
| <if test="selfchecktime != null"> | |||
| selfCheckTime, | |||
| </if> | |||
| <if test="collide != null"> | |||
| collide, | |||
| </if> | |||
| <if test="lean != null"> | |||
| lean, | |||
| </if> | |||
| <if test="loraFrequency != null"> | |||
| lora_frequency, | |||
| </if> | |||
| <if test="loraBandwidth != null"> | |||
| lora_bandwidth, | |||
| </if> | |||
| <if test="loraSpreading != null"> | |||
| lora_spreading, | |||
| </if> | |||
| <if test="loraEncodingRate != null"> | |||
| lora_encoding_rate, | |||
| </if> | |||
| <if test="cimei != null"> | |||
| cimei, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="typename != null"> | |||
| #{typename,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="collectiongap != null"> | |||
| #{collectiongap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="sendinggap != null"> | |||
| #{sendinggap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="urladdress != null"> | |||
| #{urladdress,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="unipaththresholdlimit != null"> | |||
| #{unipaththresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="unipaththresholdupper != null"> | |||
| #{unipaththresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="unipathchangethreshold != null"> | |||
| #{unipathchangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplethresholdlimit != null"> | |||
| #{multiplethresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplethresholdupper != null"> | |||
| #{multiplethresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="multiplechangethreshold != null"> | |||
| #{multiplechangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="controlvalvestate != null"> | |||
| #{controlvalvestate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="starttime != null"> | |||
| #{starttime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="endtime != null"> | |||
| #{endtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="numdays != null"> | |||
| #{numdays,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="switchingvalue != null"> | |||
| #{switchingvalue,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="stopreporting != null"> | |||
| #{stopreporting,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="softwareversions != null"> | |||
| #{softwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="hardwareversions != null"> | |||
| #{hardwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="imsi != null"> | |||
| #{imsi,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="apn != null"> | |||
| #{apn,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="autocontrolpolicy != null"> | |||
| #{autocontrolpolicy,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="autocontroltime != null"> | |||
| #{autocontroltime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="selfchecktime != null"> | |||
| #{selfchecktime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="collide != null"> | |||
| #{collide,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="lean != null"> | |||
| #{lean,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraFrequency != null"> | |||
| #{loraFrequency,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraBandwidth != null"> | |||
| #{loraBandwidth,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraSpreading != null"> | |||
| #{loraSpreading,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="loraEncodingRate != null"> | |||
| #{loraEncodingRate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="cimei != null"> | |||
| #{cimei,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OcConfigExample" resultType="java.lang.Long"> | |||
| select count(*) from oc_config | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update oc_config | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.typename != null"> | |||
| typeName = #{record.typename,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.collectiongap != null"> | |||
| collectionGap = #{record.collectiongap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.sendinggap != null"> | |||
| sendingGap = #{record.sendinggap,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.urladdress != null"> | |||
| urlAddress = #{record.urladdress,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.port != null"> | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.unipaththresholdlimit != null"> | |||
| unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.unipaththresholdupper != null"> | |||
| unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.unipathchangethreshold != null"> | |||
| unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplethresholdlimit != null"> | |||
| multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplethresholdupper != null"> | |||
| multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.multiplechangethreshold != null"> | |||
| multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.controlvalvestate != null"> | |||
| controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.starttime != null"> | |||
| startTime = #{record.starttime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.endtime != null"> | |||
| endTime = #{record.endtime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.numdays != null"> | |||
| numDays = #{record.numdays,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.switchingvalue != null"> | |||
| switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.stopreporting != null"> | |||
| stopReporting = #{record.stopreporting,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.softwareversions != null"> | |||
| softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.hardwareversions != null"> | |||
| hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.imsi != null"> | |||
| IMSI = #{record.imsi,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.apn != null"> | |||
| APN = #{record.apn,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.autocontrolpolicy != null"> | |||
| autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.autocontroltime != null"> | |||
| autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.selfchecktime != null"> | |||
| selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.collide != null"> | |||
| collide = #{record.collide,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.lean != null"> | |||
| lean = #{record.lean,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraFrequency != null"> | |||
| lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraBandwidth != null"> | |||
| lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraSpreading != null"> | |||
| lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.loraEncodingRate != null"> | |||
| lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.cimei != null"> | |||
| cimei = #{record.cimei,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update oc_config | |||
| set id = #{record.id,jdbcType=BIGINT}, | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| typeName = #{record.typename,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=INTEGER}, | |||
| collectionGap = #{record.collectiongap,jdbcType=INTEGER}, | |||
| sendingGap = #{record.sendinggap,jdbcType=INTEGER}, | |||
| urlAddress = #{record.urladdress,jdbcType=VARCHAR}, | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, | |||
| unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, | |||
| multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, | |||
| multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, | |||
| multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, | |||
| controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, | |||
| startTime = #{record.starttime,jdbcType=VARCHAR}, | |||
| endTime = #{record.endtime,jdbcType=VARCHAR}, | |||
| numDays = #{record.numdays,jdbcType=INTEGER}, | |||
| switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, | |||
| stopReporting = #{record.stopreporting,jdbcType=INTEGER}, | |||
| softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, | |||
| hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, | |||
| IMSI = #{record.imsi,jdbcType=VARCHAR}, | |||
| APN = #{record.apn,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, | |||
| autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, | |||
| selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, | |||
| collide = #{record.collide,jdbcType=INTEGER}, | |||
| lean = #{record.lean,jdbcType=INTEGER}, | |||
| lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, | |||
| lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, | |||
| lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, | |||
| lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, | |||
| cimei = #{record.cimei,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_config | |||
| (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, | |||
| unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, | |||
| multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, | |||
| stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, | |||
| autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, | |||
| lora_spreading, lora_encoding_rate, cimei) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, | |||
| #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, | |||
| #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, | |||
| #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, | |||
| #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, | |||
| #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, | |||
| #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, | |||
| #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, | |||
| #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, | |||
| #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, | |||
| #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, | |||
| #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, | |||
| #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, | |||
| #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, | |||
| #{item.cimei,jdbcType=VARCHAR}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_config ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'typeName'.toString() == column.value"> | |||
| #{item.typename,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'collectionGap'.toString() == column.value"> | |||
| #{item.collectiongap,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'sendingGap'.toString() == column.value"> | |||
| #{item.sendinggap,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'urlAddress'.toString() == column.value"> | |||
| #{item.urladdress,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'port'.toString() == column.value"> | |||
| #{item.port,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'unipathThresholdLimit'.toString() == column.value"> | |||
| #{item.unipaththresholdlimit,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'unipathThresholdUpper'.toString() == column.value"> | |||
| #{item.unipaththresholdupper,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'unipathChangeThreshold'.toString() == column.value"> | |||
| #{item.unipathchangethreshold,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleThresholdLimit'.toString() == column.value"> | |||
| #{item.multiplethresholdlimit,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleThresholdUpper'.toString() == column.value"> | |||
| #{item.multiplethresholdupper,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'multipleChangeThreshold'.toString() == column.value"> | |||
| #{item.multiplechangethreshold,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'controlValveState'.toString() == column.value"> | |||
| #{item.controlvalvestate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'startTime'.toString() == column.value"> | |||
| #{item.starttime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'endTime'.toString() == column.value"> | |||
| #{item.endtime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'numDays'.toString() == column.value"> | |||
| #{item.numdays,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'switchingValue'.toString() == column.value"> | |||
| #{item.switchingvalue,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'stopReporting'.toString() == column.value"> | |||
| #{item.stopreporting,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'softwareVersions'.toString() == column.value"> | |||
| #{item.softwareversions,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'hardwareVersions'.toString() == column.value"> | |||
| #{item.hardwareversions,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'IMSI'.toString() == column.value"> | |||
| #{item.imsi,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'APN'.toString() == column.value"> | |||
| #{item.apn,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'autoControlPolicy'.toString() == column.value"> | |||
| #{item.autocontrolpolicy,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'autoControlTime'.toString() == column.value"> | |||
| #{item.autocontroltime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'selfCheckTime'.toString() == column.value"> | |||
| #{item.selfchecktime,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'collide'.toString() == column.value"> | |||
| #{item.collide,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lean'.toString() == column.value"> | |||
| #{item.lean,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_frequency'.toString() == column.value"> | |||
| #{item.loraFrequency,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_bandwidth'.toString() == column.value"> | |||
| #{item.loraBandwidth,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_spreading'.toString() == column.value"> | |||
| #{item.loraSpreading,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'lora_encoding_rate'.toString() == column.value"> | |||
| #{item.loraEncodingRate,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'cimei'.toString() == column.value"> | |||
| #{item.cimei,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,44 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OcDevice; | |||
| import com.topsail.influxdb.pojo.OcDeviceExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OcDeviceMapper { | |||
| long countByExample(OcDeviceExample example); | |||
| int deleteByExample(OcDeviceExample example); | |||
| int insert(OcDevice record); | |||
| int insertSelective(OcDevice record); | |||
| List<OcDevice> selectByExampleWithBLOBs(OcDeviceExample example); | |||
| List<OcDevice> selectByExample(OcDeviceExample example); | |||
| int updateByExampleSelective(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); | |||
| int updateByExampleWithBLOBs(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); | |||
| int updateByExample(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OcDevice> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OcDevice> list, @Param("selective") OcDevice.Column ... selective); | |||
| } | |||
| @ -1,385 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OcDeviceMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OcDevice"> | |||
| <result column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="verifyCode" jdbcType="VARCHAR" property="verifycode" /> | |||
| <result column="deviceType" jdbcType="VARCHAR" property="devicetype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="latitude" jdbcType="VARCHAR" property="latitude" /> | |||
| <result column="longitude" jdbcType="VARCHAR" property="longitude" /> | |||
| <result column="version" jdbcType="VARCHAR" property="version" /> | |||
| <result column="fk_pid" jdbcType="INTEGER" property="fkPid" /> | |||
| <result column="period" jdbcType="VARCHAR" property="period" /> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="dperiod" jdbcType="INTEGER" property="dperiod" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| </resultMap> | |||
| <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.topsail.influxdb.pojo.OcDevice"> | |||
| <result column="deviceId" jdbcType="LONGVARCHAR" property="deviceid" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, | |||
| imei, dperiod, company_id | |||
| </sql> | |||
| <sql id="Blob_Column_List"> | |||
| deviceId | |||
| </sql> | |||
| <select id="selectByExampleWithBLOBs" parameterType="com.topsail.influxdb.pojo.OcDeviceExample" resultMap="ResultMapWithBLOBs"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| , | |||
| <include refid="Blob_Column_List" /> | |||
| from oc_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OcDeviceExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from oc_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OcDeviceExample"> | |||
| delete from oc_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OcDevice"> | |||
| insert into oc_device (id, verifyCode, deviceType, | |||
| userName, latitude, longitude, | |||
| version, fk_pid, period, | |||
| imei, dperiod, company_id, | |||
| deviceId) | |||
| values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, | |||
| #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, | |||
| #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{period,jdbcType=VARCHAR}, | |||
| #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, | |||
| #{deviceid,jdbcType=LONGVARCHAR}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OcDevice"> | |||
| insert into oc_device | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| verifyCode, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| latitude, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| longitude, | |||
| </if> | |||
| <if test="version != null"> | |||
| version, | |||
| </if> | |||
| <if test="fkPid != null"> | |||
| fk_pid, | |||
| </if> | |||
| <if test="period != null"> | |||
| period, | |||
| </if> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| dperiod, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| deviceId, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| #{verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| #{latitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| #{longitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="version != null"> | |||
| #{version,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="fkPid != null"> | |||
| #{fkPid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="period != null"> | |||
| #{period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| #{dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| #{deviceid,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OcDeviceExample" resultType="java.lang.Long"> | |||
| select count(*) from oc_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update oc_device | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.verifycode != null"> | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.latitude != null"> | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.longitude != null"> | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.version != null"> | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.fkPid != null"> | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.period != null"> | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.dperiod != null"> | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.deviceid != null"> | |||
| deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExampleWithBLOBs" parameterType="map"> | |||
| update oc_device | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update oc_device | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| latitude = #{record.latitude,jdbcType=VARCHAR}, | |||
| longitude = #{record.longitude,jdbcType=VARCHAR}, | |||
| version = #{record.version,jdbcType=VARCHAR}, | |||
| fk_pid = #{record.fkPid,jdbcType=INTEGER}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_device | |||
| (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, | |||
| imei, dperiod, company_id, deviceId) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, | |||
| #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, | |||
| #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.period,jdbcType=VARCHAR}, | |||
| #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, | |||
| #{item.deviceid,jdbcType=LONGVARCHAR}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into oc_device ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'verifyCode'.toString() == column.value"> | |||
| #{item.verifycode,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'latitude'.toString() == column.value"> | |||
| #{item.latitude,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'longitude'.toString() == column.value"> | |||
| #{item.longitude,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'version'.toString() == column.value"> | |||
| #{item.version,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'fk_pid'.toString() == column.value"> | |||
| #{item.fkPid,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'period'.toString() == column.value"> | |||
| #{item.period,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'dperiod'.toString() == column.value"> | |||
| #{item.dperiod,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'deviceId'.toString() == column.value"> | |||
| #{item.deviceid,jdbcType=LONGVARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OnenetCompany; | |||
| import com.topsail.influxdb.pojo.OnenetCompanyExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OnenetCompanyMapper { | |||
| long countByExample(OnenetCompanyExample example); | |||
| int deleteByExample(OnenetCompanyExample example); | |||
| int insert(OnenetCompany record); | |||
| int insertSelective(OnenetCompany record); | |||
| List<OnenetCompany> selectByExample(OnenetCompanyExample example); | |||
| int updateByExampleSelective(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); | |||
| int updateByExample(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OnenetCompany> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OnenetCompany> list, @Param("selective") OnenetCompany.Column ... selective); | |||
| } | |||
| @ -1,254 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OnenetCompanyMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OnenetCompany"> | |||
| <result column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="username" jdbcType="VARCHAR" property="username" /> | |||
| <result column="userip" jdbcType="VARCHAR" property="userip" /> | |||
| <result column="userport" jdbcType="INTEGER" property="userport" /> | |||
| <result column="userprot" jdbcType="VARCHAR" property="userprot" /> | |||
| <result column="period" jdbcType="VARCHAR" property="period" /> | |||
| <result column="cperiod" jdbcType="VARCHAR" property="cperiod" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, username, userip, userport, userprot, period, cperiod | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OnenetCompanyExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from onenet_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OnenetCompanyExample"> | |||
| delete from onenet_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OnenetCompany"> | |||
| insert into onenet_company (id, username, userip, | |||
| userport, userprot, period, | |||
| cperiod) | |||
| values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, | |||
| #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, | |||
| #{cperiod,jdbcType=VARCHAR}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OnenetCompany"> | |||
| insert into onenet_company | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="username != null"> | |||
| username, | |||
| </if> | |||
| <if test="userip != null"> | |||
| userip, | |||
| </if> | |||
| <if test="userport != null"> | |||
| userport, | |||
| </if> | |||
| <if test="userprot != null"> | |||
| userprot, | |||
| </if> | |||
| <if test="period != null"> | |||
| period, | |||
| </if> | |||
| <if test="cperiod != null"> | |||
| cperiod, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="userip != null"> | |||
| #{userip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="userport != null"> | |||
| #{userport,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="userprot != null"> | |||
| #{userprot,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="period != null"> | |||
| #{period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="cperiod != null"> | |||
| #{cperiod,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OnenetCompanyExample" resultType="java.lang.Long"> | |||
| select count(*) from onenet_company | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update onenet_company | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| username = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.userip != null"> | |||
| userip = #{record.userip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.userport != null"> | |||
| userport = #{record.userport,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.userprot != null"> | |||
| userprot = #{record.userprot,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.period != null"> | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.cperiod != null"> | |||
| cperiod = #{record.cperiod,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update onenet_company | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| username = #{record.username,jdbcType=VARCHAR}, | |||
| userip = #{record.userip,jdbcType=VARCHAR}, | |||
| userport = #{record.userport,jdbcType=INTEGER}, | |||
| userprot = #{record.userprot,jdbcType=VARCHAR}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| cperiod = #{record.cperiod,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into onenet_company | |||
| (id, username, userip, userport, userprot, period, cperiod) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, | |||
| #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, | |||
| #{item.cperiod,jdbcType=VARCHAR}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into onenet_company ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'username'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userip'.toString() == column.value"> | |||
| #{item.userip,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userport'.toString() == column.value"> | |||
| #{item.userport,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'userprot'.toString() == column.value"> | |||
| #{item.userprot,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'period'.toString() == column.value"> | |||
| #{item.period,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'cperiod'.toString() == column.value"> | |||
| #{item.cperiod,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OnenetDevice; | |||
| import com.topsail.influxdb.pojo.OnenetDeviceExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OnenetDeviceMapper { | |||
| long countByExample(OnenetDeviceExample example); | |||
| int deleteByExample(OnenetDeviceExample example); | |||
| int insert(OnenetDevice record); | |||
| int insertSelective(OnenetDevice record); | |||
| List<OnenetDevice> selectByExample(OnenetDeviceExample example); | |||
| int updateByExampleSelective(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); | |||
| int updateByExample(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OnenetDevice> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OnenetDevice> list, @Param("selective") OnenetDevice.Column ... selective); | |||
| } | |||
| @ -1,332 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OnenetDeviceMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OnenetDevice"> | |||
| <result column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="verifyCode" jdbcType="VARCHAR" property="verifycode" /> | |||
| <result column="deviceId" jdbcType="VARCHAR" property="deviceid" /> | |||
| <result column="deviceType" jdbcType="VARCHAR" property="devicetype" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="latitude" jdbcType="DOUBLE" property="latitude" /> | |||
| <result column="longitude" jdbcType="DOUBLE" property="longitude" /> | |||
| <result column="type" jdbcType="VARCHAR" property="type" /> | |||
| <result column="period" jdbcType="VARCHAR" property="period" /> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="dperiod" jdbcType="INTEGER" property="dperiod" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, | |||
| imei, dperiod, company_id | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OnenetDeviceExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from onenet_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OnenetDeviceExample"> | |||
| delete from onenet_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OnenetDevice"> | |||
| insert into onenet_device (id, verifyCode, deviceId, | |||
| deviceType, userName, latitude, | |||
| longitude, type, period, | |||
| imei, dperiod, company_id | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, | |||
| #{devicetype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE}, | |||
| #{longitude,jdbcType=DOUBLE}, #{type,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, | |||
| #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OnenetDevice"> | |||
| insert into onenet_device | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| verifyCode, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| deviceId, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| deviceType, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| latitude, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| longitude, | |||
| </if> | |||
| <if test="type != null"> | |||
| type, | |||
| </if> | |||
| <if test="period != null"> | |||
| period, | |||
| </if> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| dperiod, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="verifycode != null"> | |||
| #{verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="deviceid != null"> | |||
| #{deviceid,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="devicetype != null"> | |||
| #{devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="latitude != null"> | |||
| #{latitude,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="longitude != null"> | |||
| #{longitude,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="type != null"> | |||
| #{type,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="period != null"> | |||
| #{period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| #{dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OnenetDeviceExample" resultType="java.lang.Long"> | |||
| select count(*) from onenet_device | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update onenet_device | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.verifycode != null"> | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.deviceid != null"> | |||
| deviceId = #{record.deviceid,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.devicetype != null"> | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.latitude != null"> | |||
| latitude = #{record.latitude,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="record.longitude != null"> | |||
| longitude = #{record.longitude,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="record.type != null"> | |||
| type = #{record.type,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.period != null"> | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.dperiod != null"> | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update onenet_device | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| verifyCode = #{record.verifycode,jdbcType=VARCHAR}, | |||
| deviceId = #{record.deviceid,jdbcType=VARCHAR}, | |||
| deviceType = #{record.devicetype,jdbcType=VARCHAR}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| latitude = #{record.latitude,jdbcType=DOUBLE}, | |||
| longitude = #{record.longitude,jdbcType=DOUBLE}, | |||
| type = #{record.type,jdbcType=VARCHAR}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into onenet_device | |||
| (id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, | |||
| imei, dperiod, company_id) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR}, | |||
| #{item.devicetype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=DOUBLE}, | |||
| #{item.longitude,jdbcType=DOUBLE}, #{item.type,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, | |||
| #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into onenet_device ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'verifyCode'.toString() == column.value"> | |||
| #{item.verifycode,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceId'.toString() == column.value"> | |||
| #{item.deviceid,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'deviceType'.toString() == column.value"> | |||
| #{item.devicetype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'latitude'.toString() == column.value"> | |||
| #{item.latitude,jdbcType=DOUBLE} | |||
| </if> | |||
| <if test="'longitude'.toString() == column.value"> | |||
| #{item.longitude,jdbcType=DOUBLE} | |||
| </if> | |||
| <if test="'type'.toString() == column.value"> | |||
| #{item.type,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'period'.toString() == column.value"> | |||
| #{item.period,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'dperiod'.toString() == column.value"> | |||
| #{item.dperiod,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OnlineProject; | |||
| import com.topsail.influxdb.pojo.OnlineProjectExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OnlineProjectMapper { | |||
| long countByExample(OnlineProjectExample example); | |||
| int deleteByExample(OnlineProjectExample example); | |||
| int insert(OnlineProject record); | |||
| int insertSelective(OnlineProject record); | |||
| List<OnlineProject> selectByExample(OnlineProjectExample example); | |||
| int updateByExampleSelective(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); | |||
| int updateByExample(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OnlineProject> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OnlineProject> list, @Param("selective") OnlineProject.Column ... selective); | |||
| } | |||
| @ -1,209 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OnlineProjectMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OnlineProject"> | |||
| <result column="num" jdbcType="BIGINT" property="num" /> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| <result column="STATUS" jdbcType="INTEGER" property="status" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| num, project_id, company_id, STATUS | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OnlineProjectExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from online_project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OnlineProjectExample"> | |||
| delete from online_project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OnlineProject"> | |||
| insert into online_project (num, project_id, company_id, | |||
| STATUS) | |||
| values (#{num,jdbcType=BIGINT}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, | |||
| #{status,jdbcType=INTEGER}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OnlineProject"> | |||
| insert into online_project | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="num != null"> | |||
| num, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| <if test="status != null"> | |||
| STATUS, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="num != null"> | |||
| #{num,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="status != null"> | |||
| #{status,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OnlineProjectExample" resultType="java.lang.Long"> | |||
| select count(*) from online_project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update online_project | |||
| <set> | |||
| <if test="record.num != null"> | |||
| num = #{record.num,jdbcType=BIGINT}, | |||
| </if> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.status != null"> | |||
| STATUS = #{record.status,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update online_project | |||
| set num = #{record.num,jdbcType=BIGINT}, | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| STATUS = #{record.status,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_project | |||
| (num, project_id, company_id, STATUS) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.num,jdbcType=BIGINT}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, | |||
| #{item.status,jdbcType=INTEGER}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_project ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'num'.toString() == column.value"> | |||
| #{item.num,jdbcType=BIGINT} | |||
| </if> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'STATUS'.toString() == column.value"> | |||
| #{item.status,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OnlineRate; | |||
| import com.topsail.influxdb.pojo.OnlineRateExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OnlineRateMapper { | |||
| long countByExample(OnlineRateExample example); | |||
| int deleteByExample(OnlineRateExample example); | |||
| int deleteByPrimaryKey(Integer id); | |||
| int insert(OnlineRate record); | |||
| int insertSelective(OnlineRate record); | |||
| List<OnlineRate> selectByExample(OnlineRateExample example); | |||
| OnlineRate selectByPrimaryKey(Integer id); | |||
| int updateByExampleSelective(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); | |||
| int updateByExample(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); | |||
| int updateByPrimaryKeySelective(OnlineRate record); | |||
| int updateByPrimaryKey(OnlineRate record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OnlineRate> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OnlineRate> list, @Param("selective") OnlineRate.Column ... selective); | |||
| } | |||
| @ -1,337 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OnlineRateMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OnlineRate"> | |||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="online" jdbcType="INTEGER" property="online" /> | |||
| <result column="count" jdbcType="INTEGER" property="count" /> | |||
| <result column="per" jdbcType="DOUBLE" property="per" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="userName" jdbcType="VARCHAR" property="username" /> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, online, count, per, platformType, time, userName, project_id, company_id | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from online_rate | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from online_rate | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | |||
| delete from online_rate | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateExample"> | |||
| delete from online_rate | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OnlineRate"> | |||
| insert into online_rate (id, online, count, | |||
| per, platformType, time, | |||
| userName, project_id, company_id | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{online,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}, | |||
| #{per,jdbcType=DOUBLE}, #{platformtype,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, | |||
| #{username,jdbcType=VARCHAR}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OnlineRate"> | |||
| insert into online_rate | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="online != null"> | |||
| online, | |||
| </if> | |||
| <if test="count != null"> | |||
| count, | |||
| </if> | |||
| <if test="per != null"> | |||
| per, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="online != null"> | |||
| #{online,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="count != null"> | |||
| #{count,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="per != null"> | |||
| #{per,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="username != null"> | |||
| #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateExample" resultType="java.lang.Long"> | |||
| select count(*) from online_rate | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update online_rate | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.online != null"> | |||
| online = #{record.online,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.count != null"> | |||
| count = #{record.count,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.per != null"> | |||
| per = #{record.per,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.username != null"> | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update online_rate | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| online = #{record.online,jdbcType=INTEGER}, | |||
| count = #{record.count,jdbcType=INTEGER}, | |||
| per = #{record.per,jdbcType=DOUBLE}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| userName = #{record.username,jdbcType=VARCHAR}, | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.OnlineRate"> | |||
| update online_rate | |||
| <set> | |||
| <if test="online != null"> | |||
| online = #{online,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="count != null"> | |||
| count = #{count,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="per != null"> | |||
| per = #{per,jdbcType=DOUBLE}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="username != null"> | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id = #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id = #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.OnlineRate"> | |||
| update online_rate | |||
| set online = #{online,jdbcType=INTEGER}, | |||
| count = #{count,jdbcType=INTEGER}, | |||
| per = #{per,jdbcType=DOUBLE}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| userName = #{username,jdbcType=VARCHAR}, | |||
| project_id = #{projectId,jdbcType=INTEGER}, | |||
| company_id = #{companyId,jdbcType=INTEGER} | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_rate | |||
| (id, online, count, per, platformType, time, userName, project_id, company_id) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.online,jdbcType=INTEGER}, #{item.count,jdbcType=INTEGER}, | |||
| #{item.per,jdbcType=DOUBLE}, #{item.platformtype,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, | |||
| #{item.username,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_rate ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'online'.toString() == column.value"> | |||
| #{item.online,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'count'.toString() == column.value"> | |||
| #{item.count,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'per'.toString() == column.value"> | |||
| #{item.per,jdbcType=DOUBLE} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'userName'.toString() == column.value"> | |||
| #{item.username,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.OnlineRateView; | |||
| import com.topsail.influxdb.pojo.OnlineRateViewExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface OnlineRateViewMapper { | |||
| long countByExample(OnlineRateViewExample example); | |||
| int deleteByExample(OnlineRateViewExample example); | |||
| int insert(OnlineRateView record); | |||
| int insertSelective(OnlineRateView record); | |||
| List<OnlineRateView> selectByExample(OnlineRateViewExample example); | |||
| int updateByExampleSelective(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); | |||
| int updateByExample(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<OnlineRateView> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<OnlineRateView> list, @Param("selective") OnlineRateView.Column ... selective); | |||
| } | |||
| @ -1,195 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.OnlineRateViewMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.OnlineRateView"> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="num" jdbcType="BIGINT" property="num" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| project_id, time, num | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateViewExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from online_rate_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateViewExample"> | |||
| delete from online_rate_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.OnlineRateView"> | |||
| insert into online_rate_view (project_id, time, num | |||
| ) | |||
| values (#{projectId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP}, #{num,jdbcType=BIGINT} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.OnlineRateView"> | |||
| insert into online_rate_view | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="num != null"> | |||
| num, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="num != null"> | |||
| #{num,jdbcType=BIGINT}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.OnlineRateViewExample" resultType="java.lang.Long"> | |||
| select count(*) from online_rate_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update online_rate_view | |||
| <set> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.num != null"> | |||
| num = #{record.num,jdbcType=BIGINT}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update online_rate_view | |||
| set project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| num = #{record.num,jdbcType=BIGINT} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_rate_view | |||
| (project_id, time, num) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.projectId,jdbcType=INTEGER}, #{item.time,jdbcType=TIMESTAMP}, #{item.num,jdbcType=BIGINT} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into online_rate_view ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'num'.toString() == column.value"> | |||
| #{item.num,jdbcType=BIGINT} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.Project; | |||
| import com.topsail.influxdb.pojo.ProjectExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface ProjectMapper { | |||
| long countByExample(ProjectExample example); | |||
| int deleteByExample(ProjectExample example); | |||
| int deleteByPrimaryKey(Integer id); | |||
| int insert(Project record); | |||
| int insertSelective(Project record); | |||
| List<Project> selectByExample(ProjectExample example); | |||
| Project selectByPrimaryKey(Integer id); | |||
| int updateByExampleSelective(@Param("record") Project record, @Param("example") ProjectExample example); | |||
| int updateByExample(@Param("record") Project record, @Param("example") ProjectExample example); | |||
| int updateByPrimaryKeySelective(Project record); | |||
| int updateByPrimaryKey(Project record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<Project> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<Project> list, @Param("selective") Project.Column ... selective); | |||
| } | |||
| @ -1,355 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.ProjectMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.Project"> | |||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="name" jdbcType="VARCHAR" property="name" /> | |||
| <result column="platformType" jdbcType="VARCHAR" property="platformtype" /> | |||
| <result column="descr" jdbcType="VARCHAR" property="descr" /> | |||
| <result column="ip" jdbcType="VARCHAR" property="ip" /> | |||
| <result column="port" jdbcType="VARCHAR" property="port" /> | |||
| <result column="protocol" jdbcType="VARCHAR" property="protocol" /> | |||
| <result column="order_id" jdbcType="INTEGER" property="orderId" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, name, platformType, descr, ip, port, protocol, order_id, company_id, time | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.ProjectExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from project | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | |||
| delete from project | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.ProjectExample"> | |||
| delete from project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.Project"> | |||
| insert into project (id, name, platformType, | |||
| descr, ip, port, protocol, | |||
| order_id, company_id, time | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, | |||
| #{descr,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}, | |||
| #{orderId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.Project"> | |||
| insert into project | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="name != null"> | |||
| name, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType, | |||
| </if> | |||
| <if test="descr != null"> | |||
| descr, | |||
| </if> | |||
| <if test="ip != null"> | |||
| ip, | |||
| </if> | |||
| <if test="port != null"> | |||
| port, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| protocol, | |||
| </if> | |||
| <if test="orderId != null"> | |||
| order_id, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="name != null"> | |||
| #{name,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="descr != null"> | |||
| #{descr,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="ip != null"> | |||
| #{ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| #{protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="orderId != null"> | |||
| #{orderId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.ProjectExample" resultType="java.lang.Long"> | |||
| select count(*) from project | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update project | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.name != null"> | |||
| name = #{record.name,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.platformtype != null"> | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.descr != null"> | |||
| descr = #{record.descr,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.ip != null"> | |||
| ip = #{record.ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.port != null"> | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.protocol != null"> | |||
| protocol = #{record.protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.orderId != null"> | |||
| order_id = #{record.orderId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update project | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| name = #{record.name,jdbcType=VARCHAR}, | |||
| platformType = #{record.platformtype,jdbcType=VARCHAR}, | |||
| descr = #{record.descr,jdbcType=VARCHAR}, | |||
| ip = #{record.ip,jdbcType=VARCHAR}, | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| protocol = #{record.protocol,jdbcType=VARCHAR}, | |||
| order_id = #{record.orderId,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| time = #{record.time,jdbcType=TIMESTAMP} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.Project"> | |||
| update project | |||
| <set> | |||
| <if test="name != null"> | |||
| name = #{name,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="platformtype != null"> | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="descr != null"> | |||
| descr = #{descr,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="ip != null"> | |||
| ip = #{ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| port = #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| protocol = #{protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="orderId != null"> | |||
| order_id = #{orderId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id = #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.Project"> | |||
| update project | |||
| set name = #{name,jdbcType=VARCHAR}, | |||
| platformType = #{platformtype,jdbcType=VARCHAR}, | |||
| descr = #{descr,jdbcType=VARCHAR}, | |||
| ip = #{ip,jdbcType=VARCHAR}, | |||
| port = #{port,jdbcType=VARCHAR}, | |||
| protocol = #{protocol,jdbcType=VARCHAR}, | |||
| order_id = #{orderId,jdbcType=INTEGER}, | |||
| company_id = #{companyId,jdbcType=INTEGER}, | |||
| time = #{time,jdbcType=TIMESTAMP} | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into project | |||
| (id, name, platformType, descr, ip, port, protocol, order_id, company_id, time) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, | |||
| #{item.descr,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, | |||
| #{item.protocol,jdbcType=VARCHAR}, #{item.orderId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, | |||
| #{item.time,jdbcType=TIMESTAMP}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into project ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'name'.toString() == column.value"> | |||
| #{item.name,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'platformType'.toString() == column.value"> | |||
| #{item.platformtype,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'descr'.toString() == column.value"> | |||
| #{item.descr,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'ip'.toString() == column.value"> | |||
| #{item.ip,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'port'.toString() == column.value"> | |||
| #{item.port,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'protocol'.toString() == column.value"> | |||
| #{item.protocol,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'order_id'.toString() == column.value"> | |||
| #{item.orderId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.ProjectTransmit; | |||
| import com.topsail.influxdb.pojo.ProjectTransmitExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface ProjectTransmitMapper { | |||
| long countByExample(ProjectTransmitExample example); | |||
| int deleteByExample(ProjectTransmitExample example); | |||
| int deleteByPrimaryKey(Integer id); | |||
| int insert(ProjectTransmit record); | |||
| int insertSelective(ProjectTransmit record); | |||
| List<ProjectTransmit> selectByExample(ProjectTransmitExample example); | |||
| ProjectTransmit selectByPrimaryKey(Integer id); | |||
| int updateByExampleSelective(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); | |||
| int updateByExample(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); | |||
| int updateByPrimaryKeySelective(ProjectTransmit record); | |||
| int updateByPrimaryKey(ProjectTransmit record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<ProjectTransmit> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<ProjectTransmit> list, @Param("selective") ProjectTransmit.Column ... selective); | |||
| } | |||
| @ -1,432 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.ProjectTransmitMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.ProjectTransmit"> | |||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="company_id" jdbcType="INTEGER" property="companyId" /> | |||
| <result column="project_id" jdbcType="INTEGER" property="projectId" /> | |||
| <result column="protocol" jdbcType="VARCHAR" property="protocol" /> | |||
| <result column="ip" jdbcType="VARCHAR" property="ip" /> | |||
| <result column="port" jdbcType="VARCHAR" property="port" /> | |||
| <result column="time" jdbcType="TIMESTAMP" property="time" /> | |||
| <result column="type" jdbcType="VARCHAR" property="type" /> | |||
| <result column="status" jdbcType="INTEGER" property="status" /> | |||
| <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> | |||
| <result column="total" jdbcType="INTEGER" property="total" /> | |||
| <result column="suc" jdbcType="INTEGER" property="suc" /> | |||
| <result column="err" jdbcType="INTEGER" property="err" /> | |||
| <result column="params" jdbcType="VARCHAR" property="params" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, company_id, project_id, protocol, ip, port, time, type, status, update_time, | |||
| total, suc, err, params | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.ProjectTransmitExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from project_transmit | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from project_transmit | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | |||
| delete from project_transmit | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.ProjectTransmitExample"> | |||
| delete from project_transmit | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.ProjectTransmit"> | |||
| insert into project_transmit (id, company_id, project_id, | |||
| protocol, ip, port, | |||
| time, type, status, | |||
| update_time, total, suc, | |||
| err, params) | |||
| values (#{id,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, | |||
| #{protocol,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, | |||
| #{time,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, | |||
| #{updateTime,jdbcType=TIMESTAMP}, #{total,jdbcType=INTEGER}, #{suc,jdbcType=INTEGER}, | |||
| #{err,jdbcType=INTEGER}, #{params,jdbcType=VARCHAR}) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.ProjectTransmit"> | |||
| insert into project_transmit | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| company_id, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| protocol, | |||
| </if> | |||
| <if test="ip != null"> | |||
| ip, | |||
| </if> | |||
| <if test="port != null"> | |||
| port, | |||
| </if> | |||
| <if test="time != null"> | |||
| time, | |||
| </if> | |||
| <if test="type != null"> | |||
| type, | |||
| </if> | |||
| <if test="status != null"> | |||
| status, | |||
| </if> | |||
| <if test="updateTime != null"> | |||
| update_time, | |||
| </if> | |||
| <if test="total != null"> | |||
| total, | |||
| </if> | |||
| <if test="suc != null"> | |||
| suc, | |||
| </if> | |||
| <if test="err != null"> | |||
| err, | |||
| </if> | |||
| <if test="params != null"> | |||
| params, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="companyId != null"> | |||
| #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| #{protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="ip != null"> | |||
| #{ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="type != null"> | |||
| #{type,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="status != null"> | |||
| #{status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="updateTime != null"> | |||
| #{updateTime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="total != null"> | |||
| #{total,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="suc != null"> | |||
| #{suc,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="err != null"> | |||
| #{err,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="params != null"> | |||
| #{params,jdbcType=VARCHAR}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.ProjectTransmitExample" resultType="java.lang.Long"> | |||
| select count(*) from project_transmit | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update project_transmit | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.companyId != null"> | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.projectId != null"> | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.protocol != null"> | |||
| protocol = #{record.protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.ip != null"> | |||
| ip = #{record.ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.port != null"> | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.time != null"> | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.type != null"> | |||
| type = #{record.type,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.status != null"> | |||
| status = #{record.status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.updateTime != null"> | |||
| update_time = #{record.updateTime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="record.total != null"> | |||
| total = #{record.total,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.suc != null"> | |||
| suc = #{record.suc,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.err != null"> | |||
| err = #{record.err,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.params != null"> | |||
| params = #{record.params,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update project_transmit | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| company_id = #{record.companyId,jdbcType=INTEGER}, | |||
| project_id = #{record.projectId,jdbcType=INTEGER}, | |||
| protocol = #{record.protocol,jdbcType=VARCHAR}, | |||
| ip = #{record.ip,jdbcType=VARCHAR}, | |||
| port = #{record.port,jdbcType=VARCHAR}, | |||
| time = #{record.time,jdbcType=TIMESTAMP}, | |||
| type = #{record.type,jdbcType=VARCHAR}, | |||
| status = #{record.status,jdbcType=INTEGER}, | |||
| update_time = #{record.updateTime,jdbcType=TIMESTAMP}, | |||
| total = #{record.total,jdbcType=INTEGER}, | |||
| suc = #{record.suc,jdbcType=INTEGER}, | |||
| err = #{record.err,jdbcType=INTEGER}, | |||
| params = #{record.params,jdbcType=VARCHAR} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.ProjectTransmit"> | |||
| update project_transmit | |||
| <set> | |||
| <if test="companyId != null"> | |||
| company_id = #{companyId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="projectId != null"> | |||
| project_id = #{projectId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="protocol != null"> | |||
| protocol = #{protocol,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="ip != null"> | |||
| ip = #{ip,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="port != null"> | |||
| port = #{port,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="time != null"> | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="type != null"> | |||
| type = #{type,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="status != null"> | |||
| status = #{status,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="updateTime != null"> | |||
| update_time = #{updateTime,jdbcType=TIMESTAMP}, | |||
| </if> | |||
| <if test="total != null"> | |||
| total = #{total,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="suc != null"> | |||
| suc = #{suc,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="err != null"> | |||
| err = #{err,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="params != null"> | |||
| params = #{params,jdbcType=VARCHAR}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.ProjectTransmit"> | |||
| update project_transmit | |||
| set company_id = #{companyId,jdbcType=INTEGER}, | |||
| project_id = #{projectId,jdbcType=INTEGER}, | |||
| protocol = #{protocol,jdbcType=VARCHAR}, | |||
| ip = #{ip,jdbcType=VARCHAR}, | |||
| port = #{port,jdbcType=VARCHAR}, | |||
| time = #{time,jdbcType=TIMESTAMP}, | |||
| type = #{type,jdbcType=VARCHAR}, | |||
| status = #{status,jdbcType=INTEGER}, | |||
| update_time = #{updateTime,jdbcType=TIMESTAMP}, | |||
| total = #{total,jdbcType=INTEGER}, | |||
| suc = #{suc,jdbcType=INTEGER}, | |||
| err = #{err,jdbcType=INTEGER}, | |||
| params = #{params,jdbcType=VARCHAR} | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into project_transmit | |||
| (id, company_id, project_id, protocol, ip, port, time, type, status, update_time, | |||
| total, suc, err, params) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, | |||
| #{item.protocol,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, | |||
| #{item.time,jdbcType=TIMESTAMP}, #{item.type,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, | |||
| #{item.updateTime,jdbcType=TIMESTAMP}, #{item.total,jdbcType=INTEGER}, #{item.suc,jdbcType=INTEGER}, | |||
| #{item.err,jdbcType=INTEGER}, #{item.params,jdbcType=VARCHAR}) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into project_transmit ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'company_id'.toString() == column.value"> | |||
| #{item.companyId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'project_id'.toString() == column.value"> | |||
| #{item.projectId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'protocol'.toString() == column.value"> | |||
| #{item.protocol,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'ip'.toString() == column.value"> | |||
| #{item.ip,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'port'.toString() == column.value"> | |||
| #{item.port,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'time'.toString() == column.value"> | |||
| #{item.time,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'type'.toString() == column.value"> | |||
| #{item.type,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'status'.toString() == column.value"> | |||
| #{item.status,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'update_time'.toString() == column.value"> | |||
| #{item.updateTime,jdbcType=TIMESTAMP} | |||
| </if> | |||
| <if test="'total'.toString() == column.value"> | |||
| #{item.total,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'suc'.toString() == column.value"> | |||
| #{item.suc,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'err'.toString() == column.value"> | |||
| #{item.err,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'params'.toString() == column.value"> | |||
| #{item.params,jdbcType=VARCHAR} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,48 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.TransmitType; | |||
| import com.topsail.influxdb.pojo.TransmitTypeExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface TransmitTypeMapper { | |||
| long countByExample(TransmitTypeExample example); | |||
| int deleteByExample(TransmitTypeExample example); | |||
| int deleteByPrimaryKey(Integer id); | |||
| int insert(TransmitType record); | |||
| int insertSelective(TransmitType record); | |||
| List<TransmitType> selectByExample(TransmitTypeExample example); | |||
| TransmitType selectByPrimaryKey(Integer id); | |||
| int updateByExampleSelective(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); | |||
| int updateByExample(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); | |||
| int updateByPrimaryKeySelective(TransmitType record); | |||
| int updateByPrimaryKey(TransmitType record); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<TransmitType> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<TransmitType> list, @Param("selective") TransmitType.Column ... selective); | |||
| } | |||
| @ -1,223 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.TransmitTypeMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.TransmitType"> | |||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||
| <result column="transmit_id" jdbcType="INTEGER" property="transmitId" /> | |||
| <result column="datatype" jdbcType="INTEGER" property="datatype" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| id, transmit_id, datatype | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.TransmitTypeExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from transmit_type | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | |||
| select | |||
| <include refid="Base_Column_List" /> | |||
| from transmit_type | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </select> | |||
| <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | |||
| delete from transmit_type | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </delete> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.TransmitTypeExample"> | |||
| delete from transmit_type | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.TransmitType"> | |||
| insert into transmit_type (id, transmit_id, datatype | |||
| ) | |||
| values (#{id,jdbcType=INTEGER}, #{transmitId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.TransmitType"> | |||
| insert into transmit_type | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| id, | |||
| </if> | |||
| <if test="transmitId != null"> | |||
| transmit_id, | |||
| </if> | |||
| <if test="datatype != null"> | |||
| datatype, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null"> | |||
| #{id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="transmitId != null"> | |||
| #{transmitId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="datatype != null"> | |||
| #{datatype,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.TransmitTypeExample" resultType="java.lang.Long"> | |||
| select count(*) from transmit_type | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update transmit_type | |||
| <set> | |||
| <if test="record.id != null"> | |||
| id = #{record.id,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.transmitId != null"> | |||
| transmit_id = #{record.transmitId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="record.datatype != null"> | |||
| datatype = #{record.datatype,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update transmit_type | |||
| set id = #{record.id,jdbcType=INTEGER}, | |||
| transmit_id = #{record.transmitId,jdbcType=INTEGER}, | |||
| datatype = #{record.datatype,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByPrimaryKeySelective" parameterType="com.topsail.influxdb.pojo.TransmitType"> | |||
| update transmit_type | |||
| <set> | |||
| <if test="transmitId != null"> | |||
| transmit_id = #{transmitId,jdbcType=INTEGER}, | |||
| </if> | |||
| <if test="datatype != null"> | |||
| datatype = #{datatype,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <update id="updateByPrimaryKey" parameterType="com.topsail.influxdb.pojo.TransmitType"> | |||
| update transmit_type | |||
| set transmit_id = #{transmitId,jdbcType=INTEGER}, | |||
| datatype = #{datatype,jdbcType=INTEGER} | |||
| where id = #{id,jdbcType=INTEGER} | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into transmit_type | |||
| (id, transmit_id, datatype) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.id,jdbcType=INTEGER}, #{item.transmitId,jdbcType=INTEGER}, #{item.datatype,jdbcType=INTEGER} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into transmit_type ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'id'.toString() == column.value"> | |||
| #{item.id,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'transmit_id'.toString() == column.value"> | |||
| #{item.transmitId,jdbcType=INTEGER} | |||
| </if> | |||
| <if test="'datatype'.toString() == column.value"> | |||
| #{item.datatype,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -1,40 +0,0 @@ | |||
| package com.topsail.influxdb.mapper; | |||
| import com.topsail.influxdb.pojo.UpdateMsgView; | |||
| import com.topsail.influxdb.pojo.UpdateMsgViewExample; | |||
| import java.util.List; | |||
| import org.apache.ibatis.annotations.Param; | |||
| public interface UpdateMsgViewMapper { | |||
| long countByExample(UpdateMsgViewExample example); | |||
| int deleteByExample(UpdateMsgViewExample example); | |||
| int insert(UpdateMsgView record); | |||
| int insertSelective(UpdateMsgView record); | |||
| List<UpdateMsgView> selectByExample(UpdateMsgViewExample example); | |||
| int updateByExampleSelective(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); | |||
| int updateByExample(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsert(@Param("list") List<UpdateMsgView> list); | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| int batchInsertSelective(@Param("list") List<UpdateMsgView> list, @Param("selective") UpdateMsgView.Column ... selective); | |||
| } | |||
| @ -1,195 +0,0 @@ | |||
| <?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.topsail.influxdb.mapper.UpdateMsgViewMapper"> | |||
| <resultMap id="BaseResultMap" type="com.topsail.influxdb.pojo.UpdateMsgView"> | |||
| <result column="imei" jdbcType="VARCHAR" property="imei" /> | |||
| <result column="period" jdbcType="VARCHAR" property="period" /> | |||
| <result column="dperiod" jdbcType="INTEGER" property="dperiod" /> | |||
| </resultMap> | |||
| <sql id="Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Update_By_Example_Where_Clause"> | |||
| <where> | |||
| <foreach collection="example.oredCriteria" item="criteria" separator="or"> | |||
| <if test="criteria.valid"> | |||
| <trim prefix="(" prefixOverrides="and" suffix=")"> | |||
| <foreach collection="criteria.criteria" item="criterion"> | |||
| <choose> | |||
| <when test="criterion.noValue"> | |||
| and ${criterion.condition} | |||
| </when> | |||
| <when test="criterion.singleValue"> | |||
| and ${criterion.condition} #{criterion.value} | |||
| </when> | |||
| <when test="criterion.betweenValue"> | |||
| and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | |||
| </when> | |||
| <when test="criterion.listValue"> | |||
| and ${criterion.condition} | |||
| <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | |||
| #{listItem} | |||
| </foreach> | |||
| </when> | |||
| </choose> | |||
| </foreach> | |||
| </trim> | |||
| </if> | |||
| </foreach> | |||
| </where> | |||
| </sql> | |||
| <sql id="Base_Column_List"> | |||
| imei, period, dperiod | |||
| </sql> | |||
| <select id="selectByExample" parameterType="com.topsail.influxdb.pojo.UpdateMsgViewExample" resultMap="BaseResultMap"> | |||
| select | |||
| <if test="distinct"> | |||
| distinct | |||
| </if> | |||
| <include refid="Base_Column_List" /> | |||
| from update_msg_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| <if test="orderByClause != null"> | |||
| order by ${orderByClause} | |||
| </if> | |||
| </select> | |||
| <delete id="deleteByExample" parameterType="com.topsail.influxdb.pojo.UpdateMsgViewExample"> | |||
| delete from update_msg_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </delete> | |||
| <insert id="insert" parameterType="com.topsail.influxdb.pojo.UpdateMsgView"> | |||
| insert into update_msg_view (imei, period, dperiod | |||
| ) | |||
| values (#{imei,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER} | |||
| ) | |||
| </insert> | |||
| <insert id="insertSelective" parameterType="com.topsail.influxdb.pojo.UpdateMsgView"> | |||
| insert into update_msg_view | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| imei, | |||
| </if> | |||
| <if test="period != null"> | |||
| period, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| dperiod, | |||
| </if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="imei != null"> | |||
| #{imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="period != null"> | |||
| #{period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="dperiod != null"> | |||
| #{dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| </trim> | |||
| </insert> | |||
| <select id="countByExample" parameterType="com.topsail.influxdb.pojo.UpdateMsgViewExample" resultType="java.lang.Long"> | |||
| select count(*) from update_msg_view | |||
| <if test="_parameter != null"> | |||
| <include refid="Example_Where_Clause" /> | |||
| </if> | |||
| </select> | |||
| <update id="updateByExampleSelective" parameterType="map"> | |||
| update update_msg_view | |||
| <set> | |||
| <if test="record.imei != null"> | |||
| imei = #{record.imei,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.period != null"> | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| </if> | |||
| <if test="record.dperiod != null"> | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER}, | |||
| </if> | |||
| </set> | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <update id="updateByExample" parameterType="map"> | |||
| update update_msg_view | |||
| set imei = #{record.imei,jdbcType=VARCHAR}, | |||
| period = #{record.period,jdbcType=VARCHAR}, | |||
| dperiod = #{record.dperiod,jdbcType=INTEGER} | |||
| <if test="_parameter != null"> | |||
| <include refid="Update_By_Example_Where_Clause" /> | |||
| </if> | |||
| </update> | |||
| <insert id="batchInsert" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into update_msg_view | |||
| (imei, period, dperiod) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| (#{item.imei,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER} | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| <insert id="batchInsertSelective" parameterType="map"> | |||
| <!-- | |||
| WARNING - @mbg.generated | |||
| This element is automatically generated by MyBatis Generator, do not modify. | |||
| @project https://github.com/itfsw/mybatis-generator-plugin | |||
| --> | |||
| insert into update_msg_view ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| ${column.escapedColumnName} | |||
| </foreach> | |||
| ) | |||
| values | |||
| <foreach collection="list" item="item" separator=","> | |||
| ( | |||
| <foreach collection="selective" item="column" separator=","> | |||
| <if test="'imei'.toString() == column.value"> | |||
| #{item.imei,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'period'.toString() == column.value"> | |||
| #{item.period,jdbcType=VARCHAR} | |||
| </if> | |||
| <if test="'dperiod'.toString() == column.value"> | |||
| #{item.dperiod,jdbcType=INTEGER} | |||
| </if> | |||
| </foreach> | |||
| ) | |||
| </foreach> | |||
| </insert> | |||
| </mapper> | |||
| @ -0,0 +1,34 @@ | |||
| package com.topsail.influxdb.model; | |||
| import com.influxdb.annotations.Column; | |||
| import com.influxdb.annotations.Measurement; | |||
| import java.time.Instant; | |||
| @Measurement(name = "devicelog") | |||
| public class DeviceLogInfluxData { | |||
| @Column(tag = true) | |||
| public String imei; | |||
| @Column | |||
| public double value1; | |||
| @Column | |||
| public double value2; | |||
| @Column | |||
| public double value3; | |||
| @Column | |||
| public double value4; | |||
| @Column | |||
| public Integer battery; | |||
| @Column | |||
| public Integer sigal; | |||
| @Column | |||
| public String values; | |||
| @Column | |||
| public String unit; | |||
| @Column | |||
| public String alarmtype; | |||
| @Column | |||
| public String jsondata; | |||
| @Column(timestamp = true) | |||
| public Instant time; | |||
| } | |||
| @ -1,409 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class Alarm { | |||
| public static void main(String[] args) { | |||
| System.out.println(Integer.parseInt("31",16)+""); | |||
| String result=""; | |||
| String[] units={"℃","O/F"}; | |||
| String[] datas={"27.12","0a"}; | |||
| int i = 0; | |||
| while (i < 2) { | |||
| if (i != 0) { | |||
| result += ","; | |||
| } | |||
| String un = units[i]; | |||
| String data = datas[i]; | |||
| String newdata = data; | |||
| if (un.trim().equals("O/F")) { | |||
| String first = data.substring(0, 1); | |||
| if (first.equals("1")&&data.length()==2) { | |||
| data = data.substring(1, data.length()); | |||
| } | |||
| /* if (data.equals("0.0000")) { | |||
| newdata = "0"; | |||
| } else if (data.equals("0a")) { | |||
| newdata = "10"; | |||
| } else if (data.equals("a")) { | |||
| newdata = "10"; | |||
| } else { | |||
| newdata = String.valueOf((int) Double.parseDouble(data)); | |||
| }*/ | |||
| if(data.equals("0a")||data.equals("a")){ | |||
| newdata = "10"; | |||
| } else{ | |||
| newdata=Integer.parseInt(String.valueOf((int) Double.parseDouble(data)),16)+""; | |||
| } | |||
| } | |||
| result += newdata; | |||
| i++; | |||
| } | |||
| System.out.println(result); | |||
| } | |||
| private Long id; | |||
| private String imei; | |||
| private String alarmtype; | |||
| private String alarmvalue; | |||
| private String unit; | |||
| private Integer status; | |||
| private Date createtime; | |||
| private Date updatetime; | |||
| private Date endtime; | |||
| /** | |||
| *告警类型msg | |||
| */ | |||
| private String alarmMsg; | |||
| /** | |||
| *地址 | |||
| */ | |||
| private String address; | |||
| /** | |||
| *经度 | |||
| */ | |||
| private Double lon; | |||
| /** | |||
| *纬度 | |||
| */ | |||
| private Double lat; | |||
| /** | |||
| *uuid | |||
| */ | |||
| private String uuid; | |||
| /** | |||
| *描述 | |||
| */ | |||
| private String descr; | |||
| /** | |||
| * 总告警 | |||
| */ | |||
| private Integer alarmN; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public String getAlarmtype() { | |||
| return alarmtype; | |||
| } | |||
| public void setAlarmtype(String alarmtype) { | |||
| this.alarmtype = alarmtype == null ? null : alarmtype.trim(); | |||
| } | |||
| public String getAlarmvalue() { | |||
| return alarmvalue; | |||
| } | |||
| public void setAlarmvalue(String alarmvalue) { | |||
| this.alarmvalue = alarmvalue == null ? null : alarmvalue.trim(); | |||
| } | |||
| public String getUnit() { | |||
| return unit; | |||
| } | |||
| public void setUnit(String unit) { | |||
| this.unit = unit == null ? null : unit.trim(); | |||
| } | |||
| public Integer getStatus() { | |||
| return status; | |||
| } | |||
| public void setStatus(Integer status) { | |||
| this.status = status; | |||
| } | |||
| public Date getCreatetime() { | |||
| return createtime; | |||
| } | |||
| public void setCreatetime(Date createtime) { | |||
| this.createtime = createtime; | |||
| } | |||
| public Date getUpdatetime() { | |||
| return updatetime; | |||
| } | |||
| public void setUpdatetime(Date updatetime) { | |||
| this.updatetime = updatetime; | |||
| } | |||
| public Date getEndtime() { | |||
| return endtime; | |||
| } | |||
| public void setEndtime(Date endtime) { | |||
| this.endtime = endtime; | |||
| } | |||
| public String getAlarmMsg() { | |||
| return alarmMsg; | |||
| } | |||
| public void setAlarmMsg(String alarmMsg) { | |||
| this.alarmMsg = alarmMsg; | |||
| } | |||
| public String getAddress() { | |||
| return address; | |||
| } | |||
| public void setAddress(String address) { | |||
| this.address = address; | |||
| } | |||
| public Double getLon() { | |||
| return lon; | |||
| } | |||
| public void setLon(Double lon) { | |||
| this.lon = lon; | |||
| } | |||
| public Double getLat() { | |||
| return lat; | |||
| } | |||
| public void setLat(Double lat) { | |||
| this.lat = lat; | |||
| } | |||
| public String getUuid() { | |||
| return uuid; | |||
| } | |||
| public void setUuid(String uuid) { | |||
| this.uuid = uuid; | |||
| } | |||
| public String getDescr() { | |||
| return descr; | |||
| } | |||
| public void setDescr(String descr) { | |||
| this.descr = descr; | |||
| } | |||
| public Integer getAlarmN() { | |||
| return alarmN; | |||
| } | |||
| public void setAlarmN(Integer alarmN) { | |||
| this.alarmN = alarmN; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| imei("Imei", "imei", "VARCHAR", false), | |||
| alarmtype("alarmType", "alarmtype", "VARCHAR", false), | |||
| alarmvalue("alarmValue", "alarmvalue", "VARCHAR", false), | |||
| unit("unit", "unit", "VARCHAR", false), | |||
| status("status", "status", "INTEGER", false), | |||
| createtime("createtime", "createtime", "TIMESTAMP", false), | |||
| updatetime("updatetime", "updatetime", "TIMESTAMP", false), | |||
| endtime("endtime", "endtime", "TIMESTAMP", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table alarm | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,781 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| public class AlarmExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public AlarmExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Long value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Long value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Long value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Long value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Long value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Long value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Long> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Long> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Long value1, Long value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Long value1, Long value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNull() { | |||
| addCriterion("Imei is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNotNull() { | |||
| addCriterion("Imei is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiEqualTo(String value) { | |||
| addCriterion("Imei =", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotEqualTo(String value) { | |||
| addCriterion("Imei <>", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThan(String value) { | |||
| addCriterion("Imei >", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThanOrEqualTo(String value) { | |||
| addCriterion("Imei >=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThan(String value) { | |||
| addCriterion("Imei <", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThanOrEqualTo(String value) { | |||
| addCriterion("Imei <=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLike(String value) { | |||
| addCriterion("Imei like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotLike(String value) { | |||
| addCriterion("Imei not like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIn(List<String> values) { | |||
| addCriterion("Imei in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotIn(List<String> values) { | |||
| addCriterion("Imei not in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiBetween(String value1, String value2) { | |||
| addCriterion("Imei between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotBetween(String value1, String value2) { | |||
| addCriterion("Imei not between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeIsNull() { | |||
| addCriterion("alarmType is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeIsNotNull() { | |||
| addCriterion("alarmType is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeEqualTo(String value) { | |||
| addCriterion("alarmType =", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeNotEqualTo(String value) { | |||
| addCriterion("alarmType <>", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeGreaterThan(String value) { | |||
| addCriterion("alarmType >", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("alarmType >=", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeLessThan(String value) { | |||
| addCriterion("alarmType <", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeLessThanOrEqualTo(String value) { | |||
| addCriterion("alarmType <=", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeLike(String value) { | |||
| addCriterion("alarmType like", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeNotLike(String value) { | |||
| addCriterion("alarmType not like", value, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeIn(List<String> values) { | |||
| addCriterion("alarmType in", values, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeNotIn(List<String> values) { | |||
| addCriterion("alarmType not in", values, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeBetween(String value1, String value2) { | |||
| addCriterion("alarmType between", value1, value2, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmtypeNotBetween(String value1, String value2) { | |||
| addCriterion("alarmType not between", value1, value2, "alarmtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueIsNull() { | |||
| addCriterion("alarmValue is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueIsNotNull() { | |||
| addCriterion("alarmValue is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueEqualTo(String value) { | |||
| addCriterion("alarmValue =", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueNotEqualTo(String value) { | |||
| addCriterion("alarmValue <>", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueGreaterThan(String value) { | |||
| addCriterion("alarmValue >", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueGreaterThanOrEqualTo(String value) { | |||
| addCriterion("alarmValue >=", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueLessThan(String value) { | |||
| addCriterion("alarmValue <", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueLessThanOrEqualTo(String value) { | |||
| addCriterion("alarmValue <=", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueLike(String value) { | |||
| addCriterion("alarmValue like", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueNotLike(String value) { | |||
| addCriterion("alarmValue not like", value, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueIn(List<String> values) { | |||
| addCriterion("alarmValue in", values, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueNotIn(List<String> values) { | |||
| addCriterion("alarmValue not in", values, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueBetween(String value1, String value2) { | |||
| addCriterion("alarmValue between", value1, value2, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andAlarmvalueNotBetween(String value1, String value2) { | |||
| addCriterion("alarmValue not between", value1, value2, "alarmvalue"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitIsNull() { | |||
| addCriterion("unit is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitIsNotNull() { | |||
| addCriterion("unit is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitEqualTo(String value) { | |||
| addCriterion("unit =", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitNotEqualTo(String value) { | |||
| addCriterion("unit <>", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitGreaterThan(String value) { | |||
| addCriterion("unit >", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitGreaterThanOrEqualTo(String value) { | |||
| addCriterion("unit >=", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitLessThan(String value) { | |||
| addCriterion("unit <", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitLessThanOrEqualTo(String value) { | |||
| addCriterion("unit <=", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitLike(String value) { | |||
| addCriterion("unit like", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitNotLike(String value) { | |||
| addCriterion("unit not like", value, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitIn(List<String> values) { | |||
| addCriterion("unit in", values, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitNotIn(List<String> values) { | |||
| addCriterion("unit not in", values, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitBetween(String value1, String value2) { | |||
| addCriterion("unit between", value1, value2, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUnitNotBetween(String value1, String value2) { | |||
| addCriterion("unit not between", value1, value2, "unit"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIsNull() { | |||
| addCriterion("status is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIsNotNull() { | |||
| addCriterion("status is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusEqualTo(Integer value) { | |||
| addCriterion("status =", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotEqualTo(Integer value) { | |||
| addCriterion("status <>", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusGreaterThan(Integer value) { | |||
| addCriterion("status >", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("status >=", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusLessThan(Integer value) { | |||
| addCriterion("status <", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusLessThanOrEqualTo(Integer value) { | |||
| addCriterion("status <=", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIn(List<Integer> values) { | |||
| addCriterion("status in", values, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotIn(List<Integer> values) { | |||
| addCriterion("status not in", values, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusBetween(Integer value1, Integer value2) { | |||
| addCriterion("status between", value1, value2, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("status not between", value1, value2, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeIsNull() { | |||
| addCriterion("createtime is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeIsNotNull() { | |||
| addCriterion("createtime is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeEqualTo(Date value) { | |||
| addCriterion("createtime =", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeNotEqualTo(Date value) { | |||
| addCriterion("createtime <>", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeGreaterThan(Date value) { | |||
| addCriterion("createtime >", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("createtime >=", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeLessThan(Date value) { | |||
| addCriterion("createtime <", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("createtime <=", value, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeIn(List<Date> values) { | |||
| addCriterion("createtime in", values, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeNotIn(List<Date> values) { | |||
| addCriterion("createtime not in", values, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeBetween(Date value1, Date value2) { | |||
| addCriterion("createtime between", value1, value2, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCreatetimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("createtime not between", value1, value2, "createtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeIsNull() { | |||
| addCriterion("updatetime is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeIsNotNull() { | |||
| addCriterion("updatetime is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeEqualTo(Date value) { | |||
| addCriterion("updatetime =", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeNotEqualTo(Date value) { | |||
| addCriterion("updatetime <>", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeGreaterThan(Date value) { | |||
| addCriterion("updatetime >", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("updatetime >=", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeLessThan(Date value) { | |||
| addCriterion("updatetime <", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("updatetime <=", value, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeIn(List<Date> values) { | |||
| addCriterion("updatetime in", values, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeNotIn(List<Date> values) { | |||
| addCriterion("updatetime not in", values, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeBetween(Date value1, Date value2) { | |||
| addCriterion("updatetime between", value1, value2, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("updatetime not between", value1, value2, "updatetime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeIsNull() { | |||
| addCriterion("endtime is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeIsNotNull() { | |||
| addCriterion("endtime is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeEqualTo(Date value) { | |||
| addCriterion("endtime =", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeNotEqualTo(Date value) { | |||
| addCriterion("endtime <>", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeGreaterThan(Date value) { | |||
| addCriterion("endtime >", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("endtime >=", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeLessThan(Date value) { | |||
| addCriterion("endtime <", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("endtime <=", value, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeIn(List<Date> values) { | |||
| addCriterion("endtime in", values, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeNotIn(List<Date> values) { | |||
| addCriterion("endtime not in", values, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeBetween(Date value1, Date value2) { | |||
| addCriterion("endtime between", value1, value2, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andEndtimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("endtime not between", value1, value2, "endtime"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,246 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class DeviceProjectView { | |||
| private String imei; | |||
| private Integer devicetype; | |||
| private String username; | |||
| private Integer companyId; | |||
| private Integer projectId; | |||
| private String imei2; | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public String getImei2() { | |||
| return imei2; | |||
| } | |||
| public void setImei2(String imei2) { | |||
| this.imei2 = imei2 == null ? null : imei2.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| companyId("company_id", "companyId", "INTEGER", false), | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| imei2("imei2", "imei2", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_project_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,590 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class DeviceProjectViewExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public DeviceProjectViewExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andImeiIsNull() { | |||
| addCriterion("imei is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNotNull() { | |||
| addCriterion("imei is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiEqualTo(String value) { | |||
| addCriterion("imei =", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotEqualTo(String value) { | |||
| addCriterion("imei <>", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThan(String value) { | |||
| addCriterion("imei >", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThanOrEqualTo(String value) { | |||
| addCriterion("imei >=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThan(String value) { | |||
| addCriterion("imei <", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThanOrEqualTo(String value) { | |||
| addCriterion("imei <=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLike(String value) { | |||
| addCriterion("imei like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotLike(String value) { | |||
| addCriterion("imei not like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIn(List<String> values) { | |||
| addCriterion("imei in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotIn(List<String> values) { | |||
| addCriterion("imei not in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiBetween(String value1, String value2) { | |||
| addCriterion("imei between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotBetween(String value1, String value2) { | |||
| addCriterion("imei not between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIsNull() { | |||
| addCriterion("deviceType is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIsNotNull() { | |||
| addCriterion("deviceType is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeEqualTo(Integer value) { | |||
| addCriterion("deviceType =", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotEqualTo(Integer value) { | |||
| addCriterion("deviceType <>", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeGreaterThan(Integer value) { | |||
| addCriterion("deviceType >", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("deviceType >=", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeLessThan(Integer value) { | |||
| addCriterion("deviceType <", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { | |||
| addCriterion("deviceType <=", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIn(List<Integer> values) { | |||
| addCriterion("deviceType in", values, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotIn(List<Integer> values) { | |||
| addCriterion("deviceType not in", values, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeBetween(Integer value1, Integer value2) { | |||
| addCriterion("deviceType between", value1, value2, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("deviceType not between", value1, value2, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNull() { | |||
| addCriterion("userName is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNotNull() { | |||
| addCriterion("userName is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameEqualTo(String value) { | |||
| addCriterion("userName =", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotEqualTo(String value) { | |||
| addCriterion("userName <>", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThan(String value) { | |||
| addCriterion("userName >", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userName >=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThan(String value) { | |||
| addCriterion("userName <", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThanOrEqualTo(String value) { | |||
| addCriterion("userName <=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLike(String value) { | |||
| addCriterion("userName like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotLike(String value) { | |||
| addCriterion("userName not like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIn(List<String> values) { | |||
| addCriterion("userName in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotIn(List<String> values) { | |||
| addCriterion("userName not in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameBetween(String value1, String value2) { | |||
| addCriterion("userName between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotBetween(String value1, String value2) { | |||
| addCriterion("userName not between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNull() { | |||
| addCriterion("company_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNotNull() { | |||
| addCriterion("company_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdEqualTo(Integer value) { | |||
| addCriterion("company_id =", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotEqualTo(Integer value) { | |||
| addCriterion("company_id <>", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThan(Integer value) { | |||
| addCriterion("company_id >", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id >=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThan(Integer value) { | |||
| addCriterion("company_id <", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id <=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIn(List<Integer> values) { | |||
| addCriterion("company_id in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotIn(List<Integer> values) { | |||
| addCriterion("company_id not in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id not between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNull() { | |||
| addCriterion("project_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNotNull() { | |||
| addCriterion("project_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdEqualTo(Integer value) { | |||
| addCriterion("project_id =", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotEqualTo(Integer value) { | |||
| addCriterion("project_id <>", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThan(Integer value) { | |||
| addCriterion("project_id >", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id >=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThan(Integer value) { | |||
| addCriterion("project_id <", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id <=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIn(List<Integer> values) { | |||
| addCriterion("project_id in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotIn(List<Integer> values) { | |||
| addCriterion("project_id not in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id not between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2IsNull() { | |||
| addCriterion("imei2 is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2IsNotNull() { | |||
| addCriterion("imei2 is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2EqualTo(String value) { | |||
| addCriterion("imei2 =", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2NotEqualTo(String value) { | |||
| addCriterion("imei2 <>", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2GreaterThan(String value) { | |||
| addCriterion("imei2 >", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2GreaterThanOrEqualTo(String value) { | |||
| addCriterion("imei2 >=", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2LessThan(String value) { | |||
| addCriterion("imei2 <", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2LessThanOrEqualTo(String value) { | |||
| addCriterion("imei2 <=", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2Like(String value) { | |||
| addCriterion("imei2 like", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2NotLike(String value) { | |||
| addCriterion("imei2 not like", value, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2In(List<String> values) { | |||
| addCriterion("imei2 in", values, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2NotIn(List<String> values) { | |||
| addCriterion("imei2 not in", values, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2Between(String value1, String value2) { | |||
| addCriterion("imei2 between", value1, value2, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImei2NotBetween(String value1, String value2) { | |||
| addCriterion("imei2 not between", value1, value2, "imei2"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,423 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class DeviceUser { | |||
| private String imei; | |||
| private Integer devicetype; | |||
| private Integer batterylevel; | |||
| private Integer singalstrength; | |||
| private String sampledata; | |||
| private Integer passnum; | |||
| private Integer batterystate; | |||
| private String alarmtype; | |||
| private String platformtype; | |||
| private String username; | |||
| private String unit; | |||
| private String sendtime; | |||
| private Date time; | |||
| private Date offlinetime; | |||
| private String address; | |||
| private Double lon; | |||
| private Double lat; | |||
| private String value; | |||
| private String name; | |||
| private Integer projectId; | |||
| private Integer userId; | |||
| private String status; | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public Integer getBatterylevel() { | |||
| return batterylevel; | |||
| } | |||
| public void setBatterylevel(Integer batterylevel) { | |||
| this.batterylevel = batterylevel; | |||
| } | |||
| public Integer getSingalstrength() { | |||
| return singalstrength; | |||
| } | |||
| public void setSingalstrength(Integer singalstrength) { | |||
| this.singalstrength = singalstrength; | |||
| } | |||
| public String getSampledata() { | |||
| return sampledata; | |||
| } | |||
| public void setSampledata(String sampledata) { | |||
| this.sampledata = sampledata == null ? null : sampledata.trim(); | |||
| } | |||
| public Integer getPassnum() { | |||
| return passnum; | |||
| } | |||
| public void setPassnum(Integer passnum) { | |||
| this.passnum = passnum; | |||
| } | |||
| public Integer getBatterystate() { | |||
| return batterystate; | |||
| } | |||
| public void setBatterystate(Integer batterystate) { | |||
| this.batterystate = batterystate; | |||
| } | |||
| public String getAlarmtype() { | |||
| return alarmtype; | |||
| } | |||
| public void setAlarmtype(String alarmtype) { | |||
| this.alarmtype = alarmtype == null ? null : alarmtype.trim(); | |||
| } | |||
| public String getPlatformtype() { | |||
| return platformtype; | |||
| } | |||
| public void setPlatformtype(String platformtype) { | |||
| this.platformtype = platformtype == null ? null : platformtype.trim(); | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getUnit() { | |||
| return unit; | |||
| } | |||
| public void setUnit(String unit) { | |||
| this.unit = unit == null ? null : unit.trim(); | |||
| } | |||
| public String getSendtime() { | |||
| return sendtime; | |||
| } | |||
| public void setSendtime(String sendtime) { | |||
| this.sendtime = sendtime == null ? null : sendtime.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public Date getOfflinetime() { | |||
| return offlinetime; | |||
| } | |||
| public void setOfflinetime(Date offlinetime) { | |||
| this.offlinetime = offlinetime; | |||
| } | |||
| public String getAddress() { | |||
| return address; | |||
| } | |||
| public void setAddress(String address) { | |||
| this.address = address == null ? null : address.trim(); | |||
| } | |||
| public Double getLon() { | |||
| return lon; | |||
| } | |||
| public void setLon(Double lon) { | |||
| this.lon = lon; | |||
| } | |||
| public Double getLat() { | |||
| return lat; | |||
| } | |||
| public void setLat(Double lat) { | |||
| this.lat = lat; | |||
| } | |||
| public String getValue() { | |||
| return value; | |||
| } | |||
| public void setValue(String value) { | |||
| this.value = value == null ? null : value.trim(); | |||
| } | |||
| public String getName() { | |||
| return name; | |||
| } | |||
| public void setName(String name) { | |||
| this.name = name == null ? null : name.trim(); | |||
| } | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public Integer getUserId() { | |||
| return userId; | |||
| } | |||
| public void setUserId(Integer userId) { | |||
| this.userId = userId; | |||
| } | |||
| public String getStatus() { | |||
| return status; | |||
| } | |||
| public void setStatus(String status) { | |||
| this.status = status == null ? null : status.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| imei("Imei", "imei", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| batterylevel("batteryLevel", "batterylevel", "INTEGER", false), | |||
| singalstrength("singalStrength", "singalstrength", "INTEGER", false), | |||
| sampledata("sampleData", "sampledata", "VARCHAR", false), | |||
| passnum("passNum", "passnum", "INTEGER", false), | |||
| batterystate("batteryState", "batterystate", "INTEGER", false), | |||
| alarmtype("alarmType", "alarmtype", "VARCHAR", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| unit("unit", "unit", "VARCHAR", false), | |||
| sendtime("sendTime", "sendtime", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| offlinetime("offlineTime", "offlinetime", "TIMESTAMP", false), | |||
| address("address", "address", "VARCHAR", false), | |||
| lon("lon", "lon", "DOUBLE", false), | |||
| lat("lat", "lat", "DOUBLE", false), | |||
| value("value", "value", "VARCHAR", false), | |||
| name("name", "name", "VARCHAR", false), | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| userId("user_id", "userId", "INTEGER", false), | |||
| status("STATUS", "status", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table device_user | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,125 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.Date; | |||
| /** | |||
| * @ClassName GatewayDevice | |||
| * @Deacription TODO | |||
| * @Author Administrator | |||
| * @Date 2022/4/22 14:45 | |||
| * @Version 1.0 | |||
| **/ | |||
| public class GatewayDevice { | |||
| /** | |||
| * id | |||
| */ | |||
| private Integer id; | |||
| /** | |||
| * imei | |||
| */ | |||
| private String imei; | |||
| /** | |||
| * 父imei | |||
| */ | |||
| private String parentImei; | |||
| /** | |||
| * 父设备id | |||
| */ | |||
| private String deviceId; | |||
| /** | |||
| * 平台类型 | |||
| */ | |||
| private String platformType; | |||
| /** | |||
| * 绑定状态(0 废除 1 启用 ) | |||
| */ | |||
| private Integer bindStatus = 1; | |||
| /** | |||
| * 修改时间 | |||
| */ | |||
| private Date updateTime; | |||
| /** | |||
| * 创建时间 | |||
| */ | |||
| private Date createTime; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei; | |||
| } | |||
| public String getParentImei() { | |||
| return parentImei; | |||
| } | |||
| public void setParentImei(String parentImei) { | |||
| this.parentImei = parentImei; | |||
| } | |||
| public String getDeviceId() { | |||
| return deviceId; | |||
| } | |||
| public void setDeviceId(String deviceId) { | |||
| this.deviceId = deviceId; | |||
| } | |||
| public String getPlatformType() { | |||
| return platformType; | |||
| } | |||
| public void setPlatformType(String platformType) { | |||
| this.platformType = platformType; | |||
| } | |||
| public Date getUpdateTime() { | |||
| return updateTime; | |||
| } | |||
| public void setUpdateTime(Date updateTime) { | |||
| this.updateTime = updateTime; | |||
| } | |||
| public Date getCreateTime() { | |||
| return createTime; | |||
| } | |||
| public void setCreateTime(Date createTime) { | |||
| this.createTime = createTime; | |||
| } | |||
| public Integer getBindStatus() { | |||
| return bindStatus; | |||
| } | |||
| public void setBindStatus(Integer bindStatus) { | |||
| this.bindStatus = bindStatus; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return "GatewayDevice{" + | |||
| "id=" + id + | |||
| ", imei='" + imei + '\'' + | |||
| ", parentImei='" + parentImei + '\'' + | |||
| ", deviceId='" + deviceId + '\'' + | |||
| ", platformType='" + platformType + '\'' + | |||
| ", bindStatus=" + bindStatus + | |||
| ", updateTime=" + updateTime + | |||
| ", createTime=" + createTime + | |||
| '}'; | |||
| } | |||
| } | |||
| @ -1,368 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class HistoryAll { | |||
| private Long id; | |||
| private Integer devicetype; | |||
| private String imei; | |||
| private Integer batterylevel; | |||
| private Integer singalstrength; | |||
| private String sampledata; | |||
| private Integer passnum; | |||
| private Integer batterystate; | |||
| private String alarmtype; | |||
| private String platformtype; | |||
| private String username; | |||
| private String unit; | |||
| private String sendtime; | |||
| private String databody; | |||
| private Date time; | |||
| private String value; | |||
| private Date senddate; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getBatterylevel() { | |||
| return batterylevel; | |||
| } | |||
| public void setBatterylevel(Integer batterylevel) { | |||
| this.batterylevel = batterylevel; | |||
| } | |||
| public Integer getSingalstrength() { | |||
| return singalstrength; | |||
| } | |||
| public void setSingalstrength(Integer singalstrength) { | |||
| this.singalstrength = singalstrength; | |||
| } | |||
| public String getSampledata() { | |||
| return sampledata; | |||
| } | |||
| public void setSampledata(String sampledata) { | |||
| this.sampledata = sampledata == null ? null : sampledata.trim(); | |||
| } | |||
| public Integer getPassnum() { | |||
| return passnum; | |||
| } | |||
| public void setPassnum(Integer passnum) { | |||
| this.passnum = passnum; | |||
| } | |||
| public Integer getBatterystate() { | |||
| return batterystate; | |||
| } | |||
| public void setBatterystate(Integer batterystate) { | |||
| this.batterystate = batterystate; | |||
| } | |||
| public String getAlarmtype() { | |||
| return alarmtype; | |||
| } | |||
| public void setAlarmtype(String alarmtype) { | |||
| this.alarmtype = alarmtype == null ? null : alarmtype.trim(); | |||
| } | |||
| public String getPlatformtype() { | |||
| return platformtype; | |||
| } | |||
| public void setPlatformtype(String platformtype) { | |||
| this.platformtype = platformtype == null ? null : platformtype.trim(); | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getUnit() { | |||
| return unit; | |||
| } | |||
| public void setUnit(String unit) { | |||
| this.unit = unit == null ? null : unit.trim(); | |||
| } | |||
| public String getSendtime() { | |||
| return sendtime; | |||
| } | |||
| public void setSendtime(String sendtime) { | |||
| this.sendtime = sendtime == null ? null : sendtime.trim(); | |||
| } | |||
| public String getDatabody() { | |||
| return databody; | |||
| } | |||
| public void setDatabody(String databody) { | |||
| this.databody = databody == null ? null : databody.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getValue() { | |||
| return value; | |||
| } | |||
| public void setValue(String value) { | |||
| this.value = value == null ? null : value.trim(); | |||
| } | |||
| public Date getSenddate() { | |||
| return senddate; | |||
| } | |||
| public void setSenddate(Date senddate) { | |||
| this.senddate = senddate; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| imei("Imei", "imei", "VARCHAR", false), | |||
| batterylevel("batteryLevel", "batterylevel", "INTEGER", false), | |||
| singalstrength("singalStrength", "singalstrength", "INTEGER", false), | |||
| sampledata("sampleData", "sampledata", "VARCHAR", false), | |||
| passnum("passNum", "passnum", "INTEGER", false), | |||
| batterystate("batteryState", "batterystate", "INTEGER", false), | |||
| alarmtype("alarmType", "alarmtype", "VARCHAR", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| unit("unit", "unit", "VARCHAR", false), | |||
| sendtime("sendTime", "sendtime", "VARCHAR", false), | |||
| databody("dataBody", "databody", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| value("value", "value", "VARCHAR", false), | |||
| senddate("sendDate", "senddate", "TIMESTAMP", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_all | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,368 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class HistoryErr { | |||
| private Long id; | |||
| private Integer devicetype; | |||
| private String imei; | |||
| private Integer batterylevel; | |||
| private Integer singalstrength; | |||
| private String sampledata; | |||
| private Integer passnum; | |||
| private Integer batterystate; | |||
| private String alarmtype; | |||
| private String platformtype; | |||
| private String username; | |||
| private String unit; | |||
| private String sendtime; | |||
| private String databody; | |||
| private Date time; | |||
| private String value; | |||
| private Date senddate; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getBatterylevel() { | |||
| return batterylevel; | |||
| } | |||
| public void setBatterylevel(Integer batterylevel) { | |||
| this.batterylevel = batterylevel; | |||
| } | |||
| public Integer getSingalstrength() { | |||
| return singalstrength; | |||
| } | |||
| public void setSingalstrength(Integer singalstrength) { | |||
| this.singalstrength = singalstrength; | |||
| } | |||
| public String getSampledata() { | |||
| return sampledata; | |||
| } | |||
| public void setSampledata(String sampledata) { | |||
| this.sampledata = sampledata == null ? null : sampledata.trim(); | |||
| } | |||
| public Integer getPassnum() { | |||
| return passnum; | |||
| } | |||
| public void setPassnum(Integer passnum) { | |||
| this.passnum = passnum; | |||
| } | |||
| public Integer getBatterystate() { | |||
| return batterystate; | |||
| } | |||
| public void setBatterystate(Integer batterystate) { | |||
| this.batterystate = batterystate; | |||
| } | |||
| public String getAlarmtype() { | |||
| return alarmtype; | |||
| } | |||
| public void setAlarmtype(String alarmtype) { | |||
| this.alarmtype = alarmtype == null ? null : alarmtype.trim(); | |||
| } | |||
| public String getPlatformtype() { | |||
| return platformtype; | |||
| } | |||
| public void setPlatformtype(String platformtype) { | |||
| this.platformtype = platformtype == null ? null : platformtype.trim(); | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getUnit() { | |||
| return unit; | |||
| } | |||
| public void setUnit(String unit) { | |||
| this.unit = unit == null ? null : unit.trim(); | |||
| } | |||
| public String getSendtime() { | |||
| return sendtime; | |||
| } | |||
| public void setSendtime(String sendtime) { | |||
| this.sendtime = sendtime == null ? null : sendtime.trim(); | |||
| } | |||
| public String getDatabody() { | |||
| return databody; | |||
| } | |||
| public void setDatabody(String databody) { | |||
| this.databody = databody == null ? null : databody.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getValue() { | |||
| return value; | |||
| } | |||
| public void setValue(String value) { | |||
| this.value = value == null ? null : value.trim(); | |||
| } | |||
| public Date getSenddate() { | |||
| return senddate; | |||
| } | |||
| public void setSenddate(Date senddate) { | |||
| this.senddate = senddate; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| imei("Imei", "imei", "VARCHAR", false), | |||
| batterylevel("batteryLevel", "batterylevel", "INTEGER", false), | |||
| singalstrength("singalStrength", "singalstrength", "INTEGER", false), | |||
| sampledata("sampleData", "sampledata", "VARCHAR", false), | |||
| passnum("passNum", "passnum", "INTEGER", false), | |||
| batterystate("batteryState", "batterystate", "INTEGER", false), | |||
| alarmtype("alarmType", "alarmtype", "VARCHAR", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| unit("unit", "unit", "VARCHAR", false), | |||
| sendtime("sendTime", "sendtime", "VARCHAR", false), | |||
| databody("dataBody", "databody", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| value("value", "value", "VARCHAR", false), | |||
| senddate("sendDate", "senddate", "TIMESTAMP", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history_err | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,215 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class HistoryWithBLOBs extends History { | |||
| private String sampledata; | |||
| private String databody; | |||
| public String getSampledata() { | |||
| return sampledata; | |||
| } | |||
| public void setSampledata(String sampledata) { | |||
| this.sampledata = sampledata == null ? null : sampledata.trim(); | |||
| } | |||
| public String getDatabody() { | |||
| return databody; | |||
| } | |||
| public void setDatabody(String databody) { | |||
| this.databody = databody == null ? null : databody.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| imei("Imei", "imei", "VARCHAR", false), | |||
| batterylevel("batteryLevel", "batterylevel", "INTEGER", false), | |||
| singalstrength("singalStrength", "singalstrength", "INTEGER", false), | |||
| passnum("passNum", "passnum", "INTEGER", false), | |||
| batterystate("batteryState", "batterystate", "INTEGER", false), | |||
| alarmtype("alarmType", "alarmtype", "VARCHAR", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| unit("unit", "unit", "VARCHAR", false), | |||
| sendtime("sendTime", "sendtime", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| sampledata("sampleData", "sampledata", "LONGVARCHAR", false), | |||
| databody("dataBody", "databody", "LONGVARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table history | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,75 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import org.springframework.format.annotation.DateTimeFormat; | |||
| import java.io.Serializable; | |||
| import java.util.Date; | |||
| /** | |||
| * | |||
| * imsi和imei关系表实体 | |||
| * | |||
| * @version | |||
| * | |||
| <pre> | |||
| * Author Version Date Changes | |||
| * Administrator 1.0 2021年05月31日 Created | |||
| * | |||
| * </pre> | |||
| * @since 1. | |||
| */ | |||
| public class ImsiImei implements Serializable { | |||
| private static final long serialVersionUID = 197866838149659L; | |||
| /** | |||
| * | |||
| */ | |||
| private String imsi; | |||
| /** | |||
| *imei | |||
| */ | |||
| private String imei; | |||
| /** | |||
| *创建时间 | |||
| */ | |||
| @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | |||
| private Date createTime; | |||
| /** | |||
| *修改时间 | |||
| */ | |||
| @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | |||
| private Date updateTime; | |||
| public String getImsi() { | |||
| return imsi; | |||
| } | |||
| public void setImsi(String imsi) { | |||
| this.imsi = imsi; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei; | |||
| } | |||
| public Date getCreateTime() { | |||
| return createTime; | |||
| } | |||
| public void setCreateTime(Date createTime) { | |||
| this.createTime = createTime; | |||
| } | |||
| public Date getUpdateTime() { | |||
| return updateTime; | |||
| } | |||
| public void setUpdateTime(Date updateTime) { | |||
| this.updateTime = updateTime; | |||
| } | |||
| } | |||
| @ -1,566 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class NbiotConfig { | |||
| private Long id; | |||
| private String imei; | |||
| private String typename; | |||
| private Integer devicetype; | |||
| private Integer collectiongap; | |||
| private Integer sendinggap; | |||
| private String urladdress; | |||
| private String port; | |||
| private Integer unipaththresholdlimit; | |||
| private Integer unipaththresholdupper; | |||
| private Integer unipathchangethreshold; | |||
| private Integer multiplethresholdlimit; | |||
| private Integer multiplethresholdupper; | |||
| private Integer multiplechangethreshold; | |||
| private Integer controlvalvestate; | |||
| private String starttime; | |||
| private String endtime; | |||
| private Integer numdays; | |||
| private Integer switchingvalue; | |||
| private Integer stopreporting; | |||
| private String softwareversions; | |||
| private String hardwareversions; | |||
| private String imsi; | |||
| private String apn; | |||
| private Date time; | |||
| private String autocontrolpolicy; | |||
| private String autocontroltime; | |||
| private String selfchecktime; | |||
| private Integer collide; | |||
| private Integer lean; | |||
| private Integer loraFrequency; | |||
| private Integer loraBandwidth; | |||
| private Integer loraSpreading; | |||
| private Integer loraEncodingRate; | |||
| private Integer nettype; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public String getTypename() { | |||
| return typename; | |||
| } | |||
| public void setTypename(String typename) { | |||
| this.typename = typename == null ? null : typename.trim(); | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public Integer getCollectiongap() { | |||
| return collectiongap; | |||
| } | |||
| public void setCollectiongap(Integer collectiongap) { | |||
| this.collectiongap = collectiongap; | |||
| } | |||
| public Integer getSendinggap() { | |||
| return sendinggap; | |||
| } | |||
| public void setSendinggap(Integer sendinggap) { | |||
| this.sendinggap = sendinggap; | |||
| } | |||
| public String getUrladdress() { | |||
| return urladdress; | |||
| } | |||
| public void setUrladdress(String urladdress) { | |||
| this.urladdress = urladdress == null ? null : urladdress.trim(); | |||
| } | |||
| public String getPort() { | |||
| return port; | |||
| } | |||
| public void setPort(String port) { | |||
| this.port = port == null ? null : port.trim(); | |||
| } | |||
| public Integer getUnipaththresholdlimit() { | |||
| return unipaththresholdlimit; | |||
| } | |||
| public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { | |||
| this.unipaththresholdlimit = unipaththresholdlimit; | |||
| } | |||
| public Integer getUnipaththresholdupper() { | |||
| return unipaththresholdupper; | |||
| } | |||
| public void setUnipaththresholdupper(Integer unipaththresholdupper) { | |||
| this.unipaththresholdupper = unipaththresholdupper; | |||
| } | |||
| public Integer getUnipathchangethreshold() { | |||
| return unipathchangethreshold; | |||
| } | |||
| public void setUnipathchangethreshold(Integer unipathchangethreshold) { | |||
| this.unipathchangethreshold = unipathchangethreshold; | |||
| } | |||
| public Integer getMultiplethresholdlimit() { | |||
| return multiplethresholdlimit; | |||
| } | |||
| public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { | |||
| this.multiplethresholdlimit = multiplethresholdlimit; | |||
| } | |||
| public Integer getMultiplethresholdupper() { | |||
| return multiplethresholdupper; | |||
| } | |||
| public void setMultiplethresholdupper(Integer multiplethresholdupper) { | |||
| this.multiplethresholdupper = multiplethresholdupper; | |||
| } | |||
| public Integer getMultiplechangethreshold() { | |||
| return multiplechangethreshold; | |||
| } | |||
| public void setMultiplechangethreshold(Integer multiplechangethreshold) { | |||
| this.multiplechangethreshold = multiplechangethreshold; | |||
| } | |||
| public Integer getControlvalvestate() { | |||
| return controlvalvestate; | |||
| } | |||
| public void setControlvalvestate(Integer controlvalvestate) { | |||
| this.controlvalvestate = controlvalvestate; | |||
| } | |||
| public String getStarttime() { | |||
| return starttime; | |||
| } | |||
| public void setStarttime(String starttime) { | |||
| this.starttime = starttime == null ? null : starttime.trim(); | |||
| } | |||
| public String getEndtime() { | |||
| return endtime; | |||
| } | |||
| public void setEndtime(String endtime) { | |||
| this.endtime = endtime == null ? null : endtime.trim(); | |||
| } | |||
| public Integer getNumdays() { | |||
| return numdays; | |||
| } | |||
| public void setNumdays(Integer numdays) { | |||
| this.numdays = numdays; | |||
| } | |||
| public Integer getSwitchingvalue() { | |||
| return switchingvalue; | |||
| } | |||
| public void setSwitchingvalue(Integer switchingvalue) { | |||
| this.switchingvalue = switchingvalue; | |||
| } | |||
| public Integer getStopreporting() { | |||
| return stopreporting; | |||
| } | |||
| public void setStopreporting(Integer stopreporting) { | |||
| this.stopreporting = stopreporting; | |||
| } | |||
| public String getSoftwareversions() { | |||
| return softwareversions; | |||
| } | |||
| public void setSoftwareversions(String softwareversions) { | |||
| this.softwareversions = softwareversions == null ? null : softwareversions.trim(); | |||
| } | |||
| public String getHardwareversions() { | |||
| return hardwareversions; | |||
| } | |||
| public void setHardwareversions(String hardwareversions) { | |||
| this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); | |||
| } | |||
| public String getImsi() { | |||
| return imsi; | |||
| } | |||
| public void setImsi(String imsi) { | |||
| this.imsi = imsi == null ? null : imsi.trim(); | |||
| } | |||
| public String getApn() { | |||
| return apn; | |||
| } | |||
| public void setApn(String apn) { | |||
| this.apn = apn == null ? null : apn.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getAutocontrolpolicy() { | |||
| return autocontrolpolicy; | |||
| } | |||
| public void setAutocontrolpolicy(String autocontrolpolicy) { | |||
| this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); | |||
| } | |||
| public String getAutocontroltime() { | |||
| return autocontroltime; | |||
| } | |||
| public void setAutocontroltime(String autocontroltime) { | |||
| this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); | |||
| } | |||
| public String getSelfchecktime() { | |||
| return selfchecktime; | |||
| } | |||
| public void setSelfchecktime(String selfchecktime) { | |||
| this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); | |||
| } | |||
| public Integer getCollide() { | |||
| return collide; | |||
| } | |||
| public void setCollide(Integer collide) { | |||
| this.collide = collide; | |||
| } | |||
| public Integer getLean() { | |||
| return lean; | |||
| } | |||
| public void setLean(Integer lean) { | |||
| this.lean = lean; | |||
| } | |||
| public Integer getLoraFrequency() { | |||
| return loraFrequency; | |||
| } | |||
| public void setLoraFrequency(Integer loraFrequency) { | |||
| this.loraFrequency = loraFrequency; | |||
| } | |||
| public Integer getLoraBandwidth() { | |||
| return loraBandwidth; | |||
| } | |||
| public void setLoraBandwidth(Integer loraBandwidth) { | |||
| this.loraBandwidth = loraBandwidth; | |||
| } | |||
| public Integer getLoraSpreading() { | |||
| return loraSpreading; | |||
| } | |||
| public void setLoraSpreading(Integer loraSpreading) { | |||
| this.loraSpreading = loraSpreading; | |||
| } | |||
| public Integer getLoraEncodingRate() { | |||
| return loraEncodingRate; | |||
| } | |||
| public void setLoraEncodingRate(Integer loraEncodingRate) { | |||
| this.loraEncodingRate = loraEncodingRate; | |||
| } | |||
| public Integer getNettype() { | |||
| return nettype; | |||
| } | |||
| public void setNettype(Integer nettype) { | |||
| this.nettype = nettype; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| typename("typeName", "typename", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| collectiongap("collectionGap", "collectiongap", "INTEGER", false), | |||
| sendinggap("sendingGap", "sendinggap", "INTEGER", false), | |||
| urladdress("urlAddress", "urladdress", "VARCHAR", false), | |||
| port("port", "port", "VARCHAR", false), | |||
| unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), | |||
| unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), | |||
| unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), | |||
| multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), | |||
| multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), | |||
| multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), | |||
| controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), | |||
| starttime("startTime", "starttime", "VARCHAR", false), | |||
| endtime("endTime", "endtime", "VARCHAR", false), | |||
| numdays("numDays", "numdays", "INTEGER", false), | |||
| switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), | |||
| stopreporting("stopReporting", "stopreporting", "INTEGER", false), | |||
| softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), | |||
| hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), | |||
| imsi("IMSI", "imsi", "VARCHAR", false), | |||
| apn("APN", "apn", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), | |||
| autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), | |||
| selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), | |||
| collide("collide", "collide", "INTEGER", false), | |||
| lean("lean", "lean", "INTEGER", false), | |||
| loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), | |||
| loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), | |||
| loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), | |||
| loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), | |||
| nettype("netType", "nettype", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table nbiot_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,279 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class OcCompany { | |||
| private Integer id; | |||
| private String username; | |||
| private String userip; | |||
| private Integer userport; | |||
| private String userprot; | |||
| private String period; | |||
| private String phonenum; | |||
| private Integer cid; | |||
| private String cperiod; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getUserip() { | |||
| return userip; | |||
| } | |||
| public void setUserip(String userip) { | |||
| this.userip = userip == null ? null : userip.trim(); | |||
| } | |||
| public Integer getUserport() { | |||
| return userport; | |||
| } | |||
| public void setUserport(Integer userport) { | |||
| this.userport = userport; | |||
| } | |||
| public String getUserprot() { | |||
| return userprot; | |||
| } | |||
| public void setUserprot(String userprot) { | |||
| this.userprot = userprot == null ? null : userprot.trim(); | |||
| } | |||
| public String getPeriod() { | |||
| return period; | |||
| } | |||
| public void setPeriod(String period) { | |||
| this.period = period == null ? null : period.trim(); | |||
| } | |||
| public String getPhonenum() { | |||
| return phonenum; | |||
| } | |||
| public void setPhonenum(String phonenum) { | |||
| this.phonenum = phonenum == null ? null : phonenum.trim(); | |||
| } | |||
| public Integer getCid() { | |||
| return cid; | |||
| } | |||
| public void setCid(Integer cid) { | |||
| this.cid = cid; | |||
| } | |||
| public String getCperiod() { | |||
| return cperiod; | |||
| } | |||
| public void setCperiod(String cperiod) { | |||
| this.cperiod = cperiod == null ? null : cperiod.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| username("username", "username", "VARCHAR", false), | |||
| userip("userip", "userip", "VARCHAR", false), | |||
| userport("userport", "userport", "INTEGER", false), | |||
| userprot("userprot", "userprot", "VARCHAR", false), | |||
| period("period", "period", "VARCHAR", false), | |||
| phonenum("phoneNum", "phonenum", "VARCHAR", false), | |||
| cid("cid", "cid", "INTEGER", false), | |||
| cperiod("cperiod", "cperiod", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,800 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class OcCompanyExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OcCompanyExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNull() { | |||
| addCriterion("username is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNotNull() { | |||
| addCriterion("username is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameEqualTo(String value) { | |||
| addCriterion("username =", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotEqualTo(String value) { | |||
| addCriterion("username <>", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThan(String value) { | |||
| addCriterion("username >", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("username >=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThan(String value) { | |||
| addCriterion("username <", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThanOrEqualTo(String value) { | |||
| addCriterion("username <=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLike(String value) { | |||
| addCriterion("username like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotLike(String value) { | |||
| addCriterion("username not like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIn(List<String> values) { | |||
| addCriterion("username in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotIn(List<String> values) { | |||
| addCriterion("username not in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameBetween(String value1, String value2) { | |||
| addCriterion("username between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotBetween(String value1, String value2) { | |||
| addCriterion("username not between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIsNull() { | |||
| addCriterion("userip is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIsNotNull() { | |||
| addCriterion("userip is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripEqualTo(String value) { | |||
| addCriterion("userip =", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotEqualTo(String value) { | |||
| addCriterion("userip <>", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripGreaterThan(String value) { | |||
| addCriterion("userip >", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userip >=", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLessThan(String value) { | |||
| addCriterion("userip <", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLessThanOrEqualTo(String value) { | |||
| addCriterion("userip <=", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLike(String value) { | |||
| addCriterion("userip like", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotLike(String value) { | |||
| addCriterion("userip not like", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIn(List<String> values) { | |||
| addCriterion("userip in", values, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotIn(List<String> values) { | |||
| addCriterion("userip not in", values, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripBetween(String value1, String value2) { | |||
| addCriterion("userip between", value1, value2, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotBetween(String value1, String value2) { | |||
| addCriterion("userip not between", value1, value2, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIsNull() { | |||
| addCriterion("userport is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIsNotNull() { | |||
| addCriterion("userport is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportEqualTo(Integer value) { | |||
| addCriterion("userport =", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotEqualTo(Integer value) { | |||
| addCriterion("userport <>", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportGreaterThan(Integer value) { | |||
| addCriterion("userport >", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("userport >=", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportLessThan(Integer value) { | |||
| addCriterion("userport <", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportLessThanOrEqualTo(Integer value) { | |||
| addCriterion("userport <=", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIn(List<Integer> values) { | |||
| addCriterion("userport in", values, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotIn(List<Integer> values) { | |||
| addCriterion("userport not in", values, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportBetween(Integer value1, Integer value2) { | |||
| addCriterion("userport between", value1, value2, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("userport not between", value1, value2, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIsNull() { | |||
| addCriterion("userprot is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIsNotNull() { | |||
| addCriterion("userprot is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotEqualTo(String value) { | |||
| addCriterion("userprot =", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotEqualTo(String value) { | |||
| addCriterion("userprot <>", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotGreaterThan(String value) { | |||
| addCriterion("userprot >", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userprot >=", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLessThan(String value) { | |||
| addCriterion("userprot <", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLessThanOrEqualTo(String value) { | |||
| addCriterion("userprot <=", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLike(String value) { | |||
| addCriterion("userprot like", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotLike(String value) { | |||
| addCriterion("userprot not like", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIn(List<String> values) { | |||
| addCriterion("userprot in", values, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotIn(List<String> values) { | |||
| addCriterion("userprot not in", values, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotBetween(String value1, String value2) { | |||
| addCriterion("userprot between", value1, value2, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotBetween(String value1, String value2) { | |||
| addCriterion("userprot not between", value1, value2, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNull() { | |||
| addCriterion("period is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNotNull() { | |||
| addCriterion("period is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodEqualTo(String value) { | |||
| addCriterion("period =", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotEqualTo(String value) { | |||
| addCriterion("period <>", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThan(String value) { | |||
| addCriterion("period >", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("period >=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThan(String value) { | |||
| addCriterion("period <", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThanOrEqualTo(String value) { | |||
| addCriterion("period <=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLike(String value) { | |||
| addCriterion("period like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotLike(String value) { | |||
| addCriterion("period not like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIn(List<String> values) { | |||
| addCriterion("period in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotIn(List<String> values) { | |||
| addCriterion("period not in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodBetween(String value1, String value2) { | |||
| addCriterion("period between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotBetween(String value1, String value2) { | |||
| addCriterion("period not between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumIsNull() { | |||
| addCriterion("phoneNum is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumIsNotNull() { | |||
| addCriterion("phoneNum is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumEqualTo(String value) { | |||
| addCriterion("phoneNum =", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumNotEqualTo(String value) { | |||
| addCriterion("phoneNum <>", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumGreaterThan(String value) { | |||
| addCriterion("phoneNum >", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumGreaterThanOrEqualTo(String value) { | |||
| addCriterion("phoneNum >=", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumLessThan(String value) { | |||
| addCriterion("phoneNum <", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumLessThanOrEqualTo(String value) { | |||
| addCriterion("phoneNum <=", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumLike(String value) { | |||
| addCriterion("phoneNum like", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumNotLike(String value) { | |||
| addCriterion("phoneNum not like", value, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumIn(List<String> values) { | |||
| addCriterion("phoneNum in", values, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumNotIn(List<String> values) { | |||
| addCriterion("phoneNum not in", values, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumBetween(String value1, String value2) { | |||
| addCriterion("phoneNum between", value1, value2, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPhonenumNotBetween(String value1, String value2) { | |||
| addCriterion("phoneNum not between", value1, value2, "phonenum"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidIsNull() { | |||
| addCriterion("cid is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidIsNotNull() { | |||
| addCriterion("cid is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidEqualTo(Integer value) { | |||
| addCriterion("cid =", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidNotEqualTo(Integer value) { | |||
| addCriterion("cid <>", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidGreaterThan(Integer value) { | |||
| addCriterion("cid >", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("cid >=", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidLessThan(Integer value) { | |||
| addCriterion("cid <", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidLessThanOrEqualTo(Integer value) { | |||
| addCriterion("cid <=", value, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidIn(List<Integer> values) { | |||
| addCriterion("cid in", values, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidNotIn(List<Integer> values) { | |||
| addCriterion("cid not in", values, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidBetween(Integer value1, Integer value2) { | |||
| addCriterion("cid between", value1, value2, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCidNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("cid not between", value1, value2, "cid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIsNull() { | |||
| addCriterion("cperiod is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIsNotNull() { | |||
| addCriterion("cperiod is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodEqualTo(String value) { | |||
| addCriterion("cperiod =", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotEqualTo(String value) { | |||
| addCriterion("cperiod <>", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodGreaterThan(String value) { | |||
| addCriterion("cperiod >", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("cperiod >=", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLessThan(String value) { | |||
| addCriterion("cperiod <", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLessThanOrEqualTo(String value) { | |||
| addCriterion("cperiod <=", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLike(String value) { | |||
| addCriterion("cperiod like", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotLike(String value) { | |||
| addCriterion("cperiod not like", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIn(List<String> values) { | |||
| addCriterion("cperiod in", values, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotIn(List<String> values) { | |||
| addCriterion("cperiod not in", values, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodBetween(String value1, String value2) { | |||
| addCriterion("cperiod between", value1, value2, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotBetween(String value1, String value2) { | |||
| addCriterion("cperiod not between", value1, value2, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,566 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class OcConfig { | |||
| private Long id; | |||
| private String imei; | |||
| private String typename; | |||
| private Integer devicetype; | |||
| private Integer collectiongap; | |||
| private Integer sendinggap; | |||
| private String urladdress; | |||
| private String port; | |||
| private Integer unipaththresholdlimit; | |||
| private Integer unipaththresholdupper; | |||
| private Integer unipathchangethreshold; | |||
| private Integer multiplethresholdlimit; | |||
| private Integer multiplethresholdupper; | |||
| private Integer multiplechangethreshold; | |||
| private Integer controlvalvestate; | |||
| private String starttime; | |||
| private String endtime; | |||
| private Integer numdays; | |||
| private Integer switchingvalue; | |||
| private Integer stopreporting; | |||
| private String softwareversions; | |||
| private String hardwareversions; | |||
| private String imsi; | |||
| private String apn; | |||
| private Date time; | |||
| private String autocontrolpolicy; | |||
| private String autocontroltime; | |||
| private String selfchecktime; | |||
| private Integer collide; | |||
| private Integer lean; | |||
| private Integer loraFrequency; | |||
| private Integer loraBandwidth; | |||
| private Integer loraSpreading; | |||
| private Integer loraEncodingRate; | |||
| private String cimei; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public String getTypename() { | |||
| return typename; | |||
| } | |||
| public void setTypename(String typename) { | |||
| this.typename = typename == null ? null : typename.trim(); | |||
| } | |||
| public Integer getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(Integer devicetype) { | |||
| this.devicetype = devicetype; | |||
| } | |||
| public Integer getCollectiongap() { | |||
| return collectiongap; | |||
| } | |||
| public void setCollectiongap(Integer collectiongap) { | |||
| this.collectiongap = collectiongap; | |||
| } | |||
| public Integer getSendinggap() { | |||
| return sendinggap; | |||
| } | |||
| public void setSendinggap(Integer sendinggap) { | |||
| this.sendinggap = sendinggap; | |||
| } | |||
| public String getUrladdress() { | |||
| return urladdress; | |||
| } | |||
| public void setUrladdress(String urladdress) { | |||
| this.urladdress = urladdress == null ? null : urladdress.trim(); | |||
| } | |||
| public String getPort() { | |||
| return port; | |||
| } | |||
| public void setPort(String port) { | |||
| this.port = port == null ? null : port.trim(); | |||
| } | |||
| public Integer getUnipaththresholdlimit() { | |||
| return unipaththresholdlimit; | |||
| } | |||
| public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { | |||
| this.unipaththresholdlimit = unipaththresholdlimit; | |||
| } | |||
| public Integer getUnipaththresholdupper() { | |||
| return unipaththresholdupper; | |||
| } | |||
| public void setUnipaththresholdupper(Integer unipaththresholdupper) { | |||
| this.unipaththresholdupper = unipaththresholdupper; | |||
| } | |||
| public Integer getUnipathchangethreshold() { | |||
| return unipathchangethreshold; | |||
| } | |||
| public void setUnipathchangethreshold(Integer unipathchangethreshold) { | |||
| this.unipathchangethreshold = unipathchangethreshold; | |||
| } | |||
| public Integer getMultiplethresholdlimit() { | |||
| return multiplethresholdlimit; | |||
| } | |||
| public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { | |||
| this.multiplethresholdlimit = multiplethresholdlimit; | |||
| } | |||
| public Integer getMultiplethresholdupper() { | |||
| return multiplethresholdupper; | |||
| } | |||
| public void setMultiplethresholdupper(Integer multiplethresholdupper) { | |||
| this.multiplethresholdupper = multiplethresholdupper; | |||
| } | |||
| public Integer getMultiplechangethreshold() { | |||
| return multiplechangethreshold; | |||
| } | |||
| public void setMultiplechangethreshold(Integer multiplechangethreshold) { | |||
| this.multiplechangethreshold = multiplechangethreshold; | |||
| } | |||
| public Integer getControlvalvestate() { | |||
| return controlvalvestate; | |||
| } | |||
| public void setControlvalvestate(Integer controlvalvestate) { | |||
| this.controlvalvestate = controlvalvestate; | |||
| } | |||
| public String getStarttime() { | |||
| return starttime; | |||
| } | |||
| public void setStarttime(String starttime) { | |||
| this.starttime = starttime == null ? null : starttime.trim(); | |||
| } | |||
| public String getEndtime() { | |||
| return endtime; | |||
| } | |||
| public void setEndtime(String endtime) { | |||
| this.endtime = endtime == null ? null : endtime.trim(); | |||
| } | |||
| public Integer getNumdays() { | |||
| return numdays; | |||
| } | |||
| public void setNumdays(Integer numdays) { | |||
| this.numdays = numdays; | |||
| } | |||
| public Integer getSwitchingvalue() { | |||
| return switchingvalue; | |||
| } | |||
| public void setSwitchingvalue(Integer switchingvalue) { | |||
| this.switchingvalue = switchingvalue; | |||
| } | |||
| public Integer getStopreporting() { | |||
| return stopreporting; | |||
| } | |||
| public void setStopreporting(Integer stopreporting) { | |||
| this.stopreporting = stopreporting; | |||
| } | |||
| public String getSoftwareversions() { | |||
| return softwareversions; | |||
| } | |||
| public void setSoftwareversions(String softwareversions) { | |||
| this.softwareversions = softwareversions == null ? null : softwareversions.trim(); | |||
| } | |||
| public String getHardwareversions() { | |||
| return hardwareversions; | |||
| } | |||
| public void setHardwareversions(String hardwareversions) { | |||
| this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); | |||
| } | |||
| public String getImsi() { | |||
| return imsi; | |||
| } | |||
| public void setImsi(String imsi) { | |||
| this.imsi = imsi == null ? null : imsi.trim(); | |||
| } | |||
| public String getApn() { | |||
| return apn; | |||
| } | |||
| public void setApn(String apn) { | |||
| this.apn = apn == null ? null : apn.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getAutocontrolpolicy() { | |||
| return autocontrolpolicy; | |||
| } | |||
| public void setAutocontrolpolicy(String autocontrolpolicy) { | |||
| this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); | |||
| } | |||
| public String getAutocontroltime() { | |||
| return autocontroltime; | |||
| } | |||
| public void setAutocontroltime(String autocontroltime) { | |||
| this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); | |||
| } | |||
| public String getSelfchecktime() { | |||
| return selfchecktime; | |||
| } | |||
| public void setSelfchecktime(String selfchecktime) { | |||
| this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); | |||
| } | |||
| public Integer getCollide() { | |||
| return collide; | |||
| } | |||
| public void setCollide(Integer collide) { | |||
| this.collide = collide; | |||
| } | |||
| public Integer getLean() { | |||
| return lean; | |||
| } | |||
| public void setLean(Integer lean) { | |||
| this.lean = lean; | |||
| } | |||
| public Integer getLoraFrequency() { | |||
| return loraFrequency; | |||
| } | |||
| public void setLoraFrequency(Integer loraFrequency) { | |||
| this.loraFrequency = loraFrequency; | |||
| } | |||
| public Integer getLoraBandwidth() { | |||
| return loraBandwidth; | |||
| } | |||
| public void setLoraBandwidth(Integer loraBandwidth) { | |||
| this.loraBandwidth = loraBandwidth; | |||
| } | |||
| public Integer getLoraSpreading() { | |||
| return loraSpreading; | |||
| } | |||
| public void setLoraSpreading(Integer loraSpreading) { | |||
| this.loraSpreading = loraSpreading; | |||
| } | |||
| public Integer getLoraEncodingRate() { | |||
| return loraEncodingRate; | |||
| } | |||
| public void setLoraEncodingRate(Integer loraEncodingRate) { | |||
| this.loraEncodingRate = loraEncodingRate; | |||
| } | |||
| public String getCimei() { | |||
| return cimei; | |||
| } | |||
| public void setCimei(String cimei) { | |||
| this.cimei = cimei == null ? null : cimei.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "BIGINT", false), | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| typename("typeName", "typename", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "INTEGER", false), | |||
| collectiongap("collectionGap", "collectiongap", "INTEGER", false), | |||
| sendinggap("sendingGap", "sendinggap", "INTEGER", false), | |||
| urladdress("urlAddress", "urladdress", "VARCHAR", false), | |||
| port("port", "port", "VARCHAR", false), | |||
| unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), | |||
| unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), | |||
| unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), | |||
| multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), | |||
| multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), | |||
| multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), | |||
| controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), | |||
| starttime("startTime", "starttime", "VARCHAR", false), | |||
| endtime("endTime", "endtime", "VARCHAR", false), | |||
| numdays("numDays", "numdays", "INTEGER", false), | |||
| switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), | |||
| stopreporting("stopReporting", "stopreporting", "INTEGER", false), | |||
| softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), | |||
| hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), | |||
| imsi("IMSI", "imsi", "VARCHAR", false), | |||
| apn("APN", "apn", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), | |||
| autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), | |||
| selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), | |||
| collide("collide", "collide", "INTEGER", false), | |||
| lean("lean", "lean", "INTEGER", false), | |||
| loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), | |||
| loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), | |||
| loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), | |||
| loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), | |||
| cimei("cimei", "cimei", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_config | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,323 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class OcDevice { | |||
| private Integer id; | |||
| private String verifycode; | |||
| private String devicetype; | |||
| private String username; | |||
| private String latitude; | |||
| private String longitude; | |||
| private String version; | |||
| private Integer fkPid; | |||
| private String period; | |||
| private String imei; | |||
| private Integer dperiod; | |||
| private Integer companyId; | |||
| private String deviceid; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getVerifycode() { | |||
| return verifycode; | |||
| } | |||
| public void setVerifycode(String verifycode) { | |||
| this.verifycode = verifycode == null ? null : verifycode.trim(); | |||
| } | |||
| public String getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(String devicetype) { | |||
| this.devicetype = devicetype == null ? null : devicetype.trim(); | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getLatitude() { | |||
| return latitude; | |||
| } | |||
| public void setLatitude(String latitude) { | |||
| this.latitude = latitude == null ? null : latitude.trim(); | |||
| } | |||
| public String getLongitude() { | |||
| return longitude; | |||
| } | |||
| public void setLongitude(String longitude) { | |||
| this.longitude = longitude == null ? null : longitude.trim(); | |||
| } | |||
| public String getVersion() { | |||
| return version; | |||
| } | |||
| public void setVersion(String version) { | |||
| this.version = version == null ? null : version.trim(); | |||
| } | |||
| public Integer getFkPid() { | |||
| return fkPid; | |||
| } | |||
| public void setFkPid(Integer fkPid) { | |||
| this.fkPid = fkPid; | |||
| } | |||
| public String getPeriod() { | |||
| return period; | |||
| } | |||
| public void setPeriod(String period) { | |||
| this.period = period == null ? null : period.trim(); | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getDperiod() { | |||
| return dperiod; | |||
| } | |||
| public void setDperiod(Integer dperiod) { | |||
| this.dperiod = dperiod; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| public String getDeviceid() { | |||
| return deviceid; | |||
| } | |||
| public void setDeviceid(String deviceid) { | |||
| this.deviceid = deviceid == null ? null : deviceid.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| verifycode("verifyCode", "verifycode", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| latitude("latitude", "latitude", "VARCHAR", false), | |||
| longitude("longitude", "longitude", "VARCHAR", false), | |||
| version("version", "version", "VARCHAR", false), | |||
| fkPid("fk_pid", "fkPid", "INTEGER", false), | |||
| period("period", "period", "VARCHAR", false), | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| dperiod("dperiod", "dperiod", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false), | |||
| deviceid("deviceId", "deviceid", "LONGVARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table oc_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,257 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class OnenetCompany { | |||
| private Integer id; | |||
| private String username; | |||
| private String userip; | |||
| private Integer userport; | |||
| private String userprot; | |||
| private String period; | |||
| private String cperiod; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public String getUserip() { | |||
| return userip; | |||
| } | |||
| public void setUserip(String userip) { | |||
| this.userip = userip == null ? null : userip.trim(); | |||
| } | |||
| public Integer getUserport() { | |||
| return userport; | |||
| } | |||
| public void setUserport(Integer userport) { | |||
| this.userport = userport; | |||
| } | |||
| public String getUserprot() { | |||
| return userprot; | |||
| } | |||
| public void setUserprot(String userprot) { | |||
| this.userprot = userprot == null ? null : userprot.trim(); | |||
| } | |||
| public String getPeriod() { | |||
| return period; | |||
| } | |||
| public void setPeriod(String period) { | |||
| this.period = period == null ? null : period.trim(); | |||
| } | |||
| public String getCperiod() { | |||
| return cperiod; | |||
| } | |||
| public void setCperiod(String cperiod) { | |||
| this.cperiod = cperiod == null ? null : cperiod.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| username("username", "username", "VARCHAR", false), | |||
| userip("userip", "userip", "VARCHAR", false), | |||
| userport("userport", "userport", "INTEGER", false), | |||
| userprot("userprot", "userprot", "VARCHAR", false), | |||
| period("period", "period", "VARCHAR", false), | |||
| cperiod("cperiod", "cperiod", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_company | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,670 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class OnenetCompanyExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OnenetCompanyExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNull() { | |||
| addCriterion("username is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNotNull() { | |||
| addCriterion("username is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameEqualTo(String value) { | |||
| addCriterion("username =", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotEqualTo(String value) { | |||
| addCriterion("username <>", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThan(String value) { | |||
| addCriterion("username >", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("username >=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThan(String value) { | |||
| addCriterion("username <", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThanOrEqualTo(String value) { | |||
| addCriterion("username <=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLike(String value) { | |||
| addCriterion("username like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotLike(String value) { | |||
| addCriterion("username not like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIn(List<String> values) { | |||
| addCriterion("username in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotIn(List<String> values) { | |||
| addCriterion("username not in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameBetween(String value1, String value2) { | |||
| addCriterion("username between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotBetween(String value1, String value2) { | |||
| addCriterion("username not between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIsNull() { | |||
| addCriterion("userip is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIsNotNull() { | |||
| addCriterion("userip is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripEqualTo(String value) { | |||
| addCriterion("userip =", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotEqualTo(String value) { | |||
| addCriterion("userip <>", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripGreaterThan(String value) { | |||
| addCriterion("userip >", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userip >=", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLessThan(String value) { | |||
| addCriterion("userip <", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLessThanOrEqualTo(String value) { | |||
| addCriterion("userip <=", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripLike(String value) { | |||
| addCriterion("userip like", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotLike(String value) { | |||
| addCriterion("userip not like", value, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripIn(List<String> values) { | |||
| addCriterion("userip in", values, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotIn(List<String> values) { | |||
| addCriterion("userip not in", values, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripBetween(String value1, String value2) { | |||
| addCriterion("userip between", value1, value2, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUseripNotBetween(String value1, String value2) { | |||
| addCriterion("userip not between", value1, value2, "userip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIsNull() { | |||
| addCriterion("userport is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIsNotNull() { | |||
| addCriterion("userport is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportEqualTo(Integer value) { | |||
| addCriterion("userport =", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotEqualTo(Integer value) { | |||
| addCriterion("userport <>", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportGreaterThan(Integer value) { | |||
| addCriterion("userport >", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("userport >=", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportLessThan(Integer value) { | |||
| addCriterion("userport <", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportLessThanOrEqualTo(Integer value) { | |||
| addCriterion("userport <=", value, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportIn(List<Integer> values) { | |||
| addCriterion("userport in", values, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotIn(List<Integer> values) { | |||
| addCriterion("userport not in", values, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportBetween(Integer value1, Integer value2) { | |||
| addCriterion("userport between", value1, value2, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserportNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("userport not between", value1, value2, "userport"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIsNull() { | |||
| addCriterion("userprot is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIsNotNull() { | |||
| addCriterion("userprot is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotEqualTo(String value) { | |||
| addCriterion("userprot =", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotEqualTo(String value) { | |||
| addCriterion("userprot <>", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotGreaterThan(String value) { | |||
| addCriterion("userprot >", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userprot >=", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLessThan(String value) { | |||
| addCriterion("userprot <", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLessThanOrEqualTo(String value) { | |||
| addCriterion("userprot <=", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotLike(String value) { | |||
| addCriterion("userprot like", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotLike(String value) { | |||
| addCriterion("userprot not like", value, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotIn(List<String> values) { | |||
| addCriterion("userprot in", values, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotIn(List<String> values) { | |||
| addCriterion("userprot not in", values, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotBetween(String value1, String value2) { | |||
| addCriterion("userprot between", value1, value2, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUserprotNotBetween(String value1, String value2) { | |||
| addCriterion("userprot not between", value1, value2, "userprot"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNull() { | |||
| addCriterion("period is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNotNull() { | |||
| addCriterion("period is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodEqualTo(String value) { | |||
| addCriterion("period =", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotEqualTo(String value) { | |||
| addCriterion("period <>", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThan(String value) { | |||
| addCriterion("period >", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("period >=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThan(String value) { | |||
| addCriterion("period <", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThanOrEqualTo(String value) { | |||
| addCriterion("period <=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLike(String value) { | |||
| addCriterion("period like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotLike(String value) { | |||
| addCriterion("period not like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIn(List<String> values) { | |||
| addCriterion("period in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotIn(List<String> values) { | |||
| addCriterion("period not in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodBetween(String value1, String value2) { | |||
| addCriterion("period between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotBetween(String value1, String value2) { | |||
| addCriterion("period not between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIsNull() { | |||
| addCriterion("cperiod is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIsNotNull() { | |||
| addCriterion("cperiod is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodEqualTo(String value) { | |||
| addCriterion("cperiod =", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotEqualTo(String value) { | |||
| addCriterion("cperiod <>", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodGreaterThan(String value) { | |||
| addCriterion("cperiod >", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("cperiod >=", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLessThan(String value) { | |||
| addCriterion("cperiod <", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLessThanOrEqualTo(String value) { | |||
| addCriterion("cperiod <=", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodLike(String value) { | |||
| addCriterion("cperiod like", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotLike(String value) { | |||
| addCriterion("cperiod not like", value, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodIn(List<String> values) { | |||
| addCriterion("cperiod in", values, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotIn(List<String> values) { | |||
| addCriterion("cperiod not in", values, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodBetween(String value1, String value2) { | |||
| addCriterion("cperiod between", value1, value2, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCperiodNotBetween(String value1, String value2) { | |||
| addCriterion("cperiod not between", value1, value2, "cperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,312 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class OnenetDevice { | |||
| private Integer id; | |||
| private String verifycode; | |||
| private String deviceid; | |||
| private String devicetype; | |||
| private String username; | |||
| private Double latitude; | |||
| private Double longitude; | |||
| private String type; | |||
| private String period; | |||
| private String imei; | |||
| private Integer dperiod; | |||
| private Integer companyId; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getVerifycode() { | |||
| return verifycode; | |||
| } | |||
| public void setVerifycode(String verifycode) { | |||
| this.verifycode = verifycode == null ? null : verifycode.trim(); | |||
| } | |||
| public String getDeviceid() { | |||
| return deviceid; | |||
| } | |||
| public void setDeviceid(String deviceid) { | |||
| this.deviceid = deviceid == null ? null : deviceid.trim(); | |||
| } | |||
| public String getDevicetype() { | |||
| return devicetype; | |||
| } | |||
| public void setDevicetype(String devicetype) { | |||
| this.devicetype = devicetype == null ? null : devicetype.trim(); | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public Double getLatitude() { | |||
| return latitude; | |||
| } | |||
| public void setLatitude(Double latitude) { | |||
| this.latitude = latitude; | |||
| } | |||
| public Double getLongitude() { | |||
| return longitude; | |||
| } | |||
| public void setLongitude(Double longitude) { | |||
| this.longitude = longitude; | |||
| } | |||
| public String getType() { | |||
| return type; | |||
| } | |||
| public void setType(String type) { | |||
| this.type = type == null ? null : type.trim(); | |||
| } | |||
| public String getPeriod() { | |||
| return period; | |||
| } | |||
| public void setPeriod(String period) { | |||
| this.period = period == null ? null : period.trim(); | |||
| } | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public Integer getDperiod() { | |||
| return dperiod; | |||
| } | |||
| public void setDperiod(Integer dperiod) { | |||
| this.dperiod = dperiod; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| verifycode("verifyCode", "verifycode", "VARCHAR", false), | |||
| deviceid("deviceId", "deviceid", "VARCHAR", false), | |||
| devicetype("deviceType", "devicetype", "VARCHAR", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| latitude("latitude", "latitude", "DOUBLE", false), | |||
| longitude("longitude", "longitude", "DOUBLE", false), | |||
| type("type", "type", "VARCHAR", false), | |||
| period("period", "period", "VARCHAR", false), | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| dperiod("dperiod", "dperiod", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table onenet_device | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,990 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class OnenetDeviceExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OnenetDeviceExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeIsNull() { | |||
| addCriterion("verifyCode is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeIsNotNull() { | |||
| addCriterion("verifyCode is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeEqualTo(String value) { | |||
| addCriterion("verifyCode =", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeNotEqualTo(String value) { | |||
| addCriterion("verifyCode <>", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeGreaterThan(String value) { | |||
| addCriterion("verifyCode >", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("verifyCode >=", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeLessThan(String value) { | |||
| addCriterion("verifyCode <", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeLessThanOrEqualTo(String value) { | |||
| addCriterion("verifyCode <=", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeLike(String value) { | |||
| addCriterion("verifyCode like", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeNotLike(String value) { | |||
| addCriterion("verifyCode not like", value, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeIn(List<String> values) { | |||
| addCriterion("verifyCode in", values, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeNotIn(List<String> values) { | |||
| addCriterion("verifyCode not in", values, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeBetween(String value1, String value2) { | |||
| addCriterion("verifyCode between", value1, value2, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andVerifycodeNotBetween(String value1, String value2) { | |||
| addCriterion("verifyCode not between", value1, value2, "verifycode"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidIsNull() { | |||
| addCriterion("deviceId is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidIsNotNull() { | |||
| addCriterion("deviceId is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidEqualTo(String value) { | |||
| addCriterion("deviceId =", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidNotEqualTo(String value) { | |||
| addCriterion("deviceId <>", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidGreaterThan(String value) { | |||
| addCriterion("deviceId >", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidGreaterThanOrEqualTo(String value) { | |||
| addCriterion("deviceId >=", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidLessThan(String value) { | |||
| addCriterion("deviceId <", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidLessThanOrEqualTo(String value) { | |||
| addCriterion("deviceId <=", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidLike(String value) { | |||
| addCriterion("deviceId like", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidNotLike(String value) { | |||
| addCriterion("deviceId not like", value, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidIn(List<String> values) { | |||
| addCriterion("deviceId in", values, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidNotIn(List<String> values) { | |||
| addCriterion("deviceId not in", values, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidBetween(String value1, String value2) { | |||
| addCriterion("deviceId between", value1, value2, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDeviceidNotBetween(String value1, String value2) { | |||
| addCriterion("deviceId not between", value1, value2, "deviceid"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIsNull() { | |||
| addCriterion("deviceType is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIsNotNull() { | |||
| addCriterion("deviceType is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeEqualTo(String value) { | |||
| addCriterion("deviceType =", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotEqualTo(String value) { | |||
| addCriterion("deviceType <>", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeGreaterThan(String value) { | |||
| addCriterion("deviceType >", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("deviceType >=", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeLessThan(String value) { | |||
| addCriterion("deviceType <", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeLessThanOrEqualTo(String value) { | |||
| addCriterion("deviceType <=", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeLike(String value) { | |||
| addCriterion("deviceType like", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotLike(String value) { | |||
| addCriterion("deviceType not like", value, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeIn(List<String> values) { | |||
| addCriterion("deviceType in", values, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotIn(List<String> values) { | |||
| addCriterion("deviceType not in", values, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeBetween(String value1, String value2) { | |||
| addCriterion("deviceType between", value1, value2, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDevicetypeNotBetween(String value1, String value2) { | |||
| addCriterion("deviceType not between", value1, value2, "devicetype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNull() { | |||
| addCriterion("userName is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNotNull() { | |||
| addCriterion("userName is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameEqualTo(String value) { | |||
| addCriterion("userName =", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotEqualTo(String value) { | |||
| addCriterion("userName <>", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThan(String value) { | |||
| addCriterion("userName >", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userName >=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThan(String value) { | |||
| addCriterion("userName <", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThanOrEqualTo(String value) { | |||
| addCriterion("userName <=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLike(String value) { | |||
| addCriterion("userName like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotLike(String value) { | |||
| addCriterion("userName not like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIn(List<String> values) { | |||
| addCriterion("userName in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotIn(List<String> values) { | |||
| addCriterion("userName not in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameBetween(String value1, String value2) { | |||
| addCriterion("userName between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotBetween(String value1, String value2) { | |||
| addCriterion("userName not between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeIsNull() { | |||
| addCriterion("latitude is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeIsNotNull() { | |||
| addCriterion("latitude is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeEqualTo(Double value) { | |||
| addCriterion("latitude =", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeNotEqualTo(Double value) { | |||
| addCriterion("latitude <>", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeGreaterThan(Double value) { | |||
| addCriterion("latitude >", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeGreaterThanOrEqualTo(Double value) { | |||
| addCriterion("latitude >=", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeLessThan(Double value) { | |||
| addCriterion("latitude <", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeLessThanOrEqualTo(Double value) { | |||
| addCriterion("latitude <=", value, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeIn(List<Double> values) { | |||
| addCriterion("latitude in", values, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeNotIn(List<Double> values) { | |||
| addCriterion("latitude not in", values, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeBetween(Double value1, Double value2) { | |||
| addCriterion("latitude between", value1, value2, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLatitudeNotBetween(Double value1, Double value2) { | |||
| addCriterion("latitude not between", value1, value2, "latitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeIsNull() { | |||
| addCriterion("longitude is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeIsNotNull() { | |||
| addCriterion("longitude is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeEqualTo(Double value) { | |||
| addCriterion("longitude =", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeNotEqualTo(Double value) { | |||
| addCriterion("longitude <>", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeGreaterThan(Double value) { | |||
| addCriterion("longitude >", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeGreaterThanOrEqualTo(Double value) { | |||
| addCriterion("longitude >=", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeLessThan(Double value) { | |||
| addCriterion("longitude <", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeLessThanOrEqualTo(Double value) { | |||
| addCriterion("longitude <=", value, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeIn(List<Double> values) { | |||
| addCriterion("longitude in", values, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeNotIn(List<Double> values) { | |||
| addCriterion("longitude not in", values, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeBetween(Double value1, Double value2) { | |||
| addCriterion("longitude between", value1, value2, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andLongitudeNotBetween(Double value1, Double value2) { | |||
| addCriterion("longitude not between", value1, value2, "longitude"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeIsNull() { | |||
| addCriterion("type is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeIsNotNull() { | |||
| addCriterion("type is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeEqualTo(String value) { | |||
| addCriterion("type =", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeNotEqualTo(String value) { | |||
| addCriterion("type <>", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeGreaterThan(String value) { | |||
| addCriterion("type >", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("type >=", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeLessThan(String value) { | |||
| addCriterion("type <", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeLessThanOrEqualTo(String value) { | |||
| addCriterion("type <=", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeLike(String value) { | |||
| addCriterion("type like", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeNotLike(String value) { | |||
| addCriterion("type not like", value, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeIn(List<String> values) { | |||
| addCriterion("type in", values, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeNotIn(List<String> values) { | |||
| addCriterion("type not in", values, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeBetween(String value1, String value2) { | |||
| addCriterion("type between", value1, value2, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTypeNotBetween(String value1, String value2) { | |||
| addCriterion("type not between", value1, value2, "type"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNull() { | |||
| addCriterion("period is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNotNull() { | |||
| addCriterion("period is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodEqualTo(String value) { | |||
| addCriterion("period =", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotEqualTo(String value) { | |||
| addCriterion("period <>", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThan(String value) { | |||
| addCriterion("period >", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("period >=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThan(String value) { | |||
| addCriterion("period <", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThanOrEqualTo(String value) { | |||
| addCriterion("period <=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLike(String value) { | |||
| addCriterion("period like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotLike(String value) { | |||
| addCriterion("period not like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIn(List<String> values) { | |||
| addCriterion("period in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotIn(List<String> values) { | |||
| addCriterion("period not in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodBetween(String value1, String value2) { | |||
| addCriterion("period between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotBetween(String value1, String value2) { | |||
| addCriterion("period not between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNull() { | |||
| addCriterion("imei is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNotNull() { | |||
| addCriterion("imei is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiEqualTo(String value) { | |||
| addCriterion("imei =", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotEqualTo(String value) { | |||
| addCriterion("imei <>", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThan(String value) { | |||
| addCriterion("imei >", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThanOrEqualTo(String value) { | |||
| addCriterion("imei >=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThan(String value) { | |||
| addCriterion("imei <", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThanOrEqualTo(String value) { | |||
| addCriterion("imei <=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLike(String value) { | |||
| addCriterion("imei like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotLike(String value) { | |||
| addCriterion("imei not like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIn(List<String> values) { | |||
| addCriterion("imei in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotIn(List<String> values) { | |||
| addCriterion("imei not in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiBetween(String value1, String value2) { | |||
| addCriterion("imei between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotBetween(String value1, String value2) { | |||
| addCriterion("imei not between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIsNull() { | |||
| addCriterion("dperiod is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIsNotNull() { | |||
| addCriterion("dperiod is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodEqualTo(Integer value) { | |||
| addCriterion("dperiod =", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotEqualTo(Integer value) { | |||
| addCriterion("dperiod <>", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodGreaterThan(Integer value) { | |||
| addCriterion("dperiod >", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("dperiod >=", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodLessThan(Integer value) { | |||
| addCriterion("dperiod <", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodLessThanOrEqualTo(Integer value) { | |||
| addCriterion("dperiod <=", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIn(List<Integer> values) { | |||
| addCriterion("dperiod in", values, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotIn(List<Integer> values) { | |||
| addCriterion("dperiod not in", values, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodBetween(Integer value1, Integer value2) { | |||
| addCriterion("dperiod between", value1, value2, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("dperiod not between", value1, value2, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNull() { | |||
| addCriterion("company_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNotNull() { | |||
| addCriterion("company_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdEqualTo(Integer value) { | |||
| addCriterion("company_id =", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotEqualTo(Integer value) { | |||
| addCriterion("company_id <>", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThan(Integer value) { | |||
| addCriterion("company_id >", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id >=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThan(Integer value) { | |||
| addCriterion("company_id <", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id <=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIn(List<Integer> values) { | |||
| addCriterion("company_id in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotIn(List<Integer> values) { | |||
| addCriterion("company_id not in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id not between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,224 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class OnlineProject { | |||
| private Long num; | |||
| private Integer projectId; | |||
| private Integer companyId; | |||
| private Integer status; | |||
| public Long getNum() { | |||
| return num; | |||
| } | |||
| public void setNum(Long num) { | |||
| this.num = num; | |||
| } | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| public Integer getStatus() { | |||
| return status; | |||
| } | |||
| public void setStatus(Integer status) { | |||
| this.status = status; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| num("num", "num", "BIGINT", false), | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false), | |||
| status("STATUS", "status", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,440 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class OnlineProjectExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OnlineProjectExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andNumIsNull() { | |||
| addCriterion("num is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumIsNotNull() { | |||
| addCriterion("num is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumEqualTo(Long value) { | |||
| addCriterion("num =", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotEqualTo(Long value) { | |||
| addCriterion("num <>", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumGreaterThan(Long value) { | |||
| addCriterion("num >", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumGreaterThanOrEqualTo(Long value) { | |||
| addCriterion("num >=", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumLessThan(Long value) { | |||
| addCriterion("num <", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumLessThanOrEqualTo(Long value) { | |||
| addCriterion("num <=", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumIn(List<Long> values) { | |||
| addCriterion("num in", values, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotIn(List<Long> values) { | |||
| addCriterion("num not in", values, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumBetween(Long value1, Long value2) { | |||
| addCriterion("num between", value1, value2, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotBetween(Long value1, Long value2) { | |||
| addCriterion("num not between", value1, value2, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNull() { | |||
| addCriterion("project_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNotNull() { | |||
| addCriterion("project_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdEqualTo(Integer value) { | |||
| addCriterion("project_id =", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotEqualTo(Integer value) { | |||
| addCriterion("project_id <>", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThan(Integer value) { | |||
| addCriterion("project_id >", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id >=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThan(Integer value) { | |||
| addCriterion("project_id <", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id <=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIn(List<Integer> values) { | |||
| addCriterion("project_id in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotIn(List<Integer> values) { | |||
| addCriterion("project_id not in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id not between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNull() { | |||
| addCriterion("company_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNotNull() { | |||
| addCriterion("company_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdEqualTo(Integer value) { | |||
| addCriterion("company_id =", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotEqualTo(Integer value) { | |||
| addCriterion("company_id <>", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThan(Integer value) { | |||
| addCriterion("company_id >", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id >=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThan(Integer value) { | |||
| addCriterion("company_id <", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id <=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIn(List<Integer> values) { | |||
| addCriterion("company_id in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotIn(List<Integer> values) { | |||
| addCriterion("company_id not in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id not between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIsNull() { | |||
| addCriterion("STATUS is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIsNotNull() { | |||
| addCriterion("STATUS is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusEqualTo(Integer value) { | |||
| addCriterion("STATUS =", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotEqualTo(Integer value) { | |||
| addCriterion("STATUS <>", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusGreaterThan(Integer value) { | |||
| addCriterion("STATUS >", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("STATUS >=", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusLessThan(Integer value) { | |||
| addCriterion("STATUS <", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusLessThanOrEqualTo(Integer value) { | |||
| addCriterion("STATUS <=", value, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusIn(List<Integer> values) { | |||
| addCriterion("STATUS in", values, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotIn(List<Integer> values) { | |||
| addCriterion("STATUS not in", values, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusBetween(Integer value1, Integer value2) { | |||
| addCriterion("STATUS between", value1, value2, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andStatusNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("STATUS not between", value1, value2, "status"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,280 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class OnlineRate { | |||
| private Integer id; | |||
| private Integer online; | |||
| private Integer count; | |||
| private Double per; | |||
| private String platformtype; | |||
| private Date time; | |||
| private String username; | |||
| private Integer projectId; | |||
| private Integer companyId; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public Integer getOnline() { | |||
| return online; | |||
| } | |||
| public void setOnline(Integer online) { | |||
| this.online = online; | |||
| } | |||
| public Integer getCount() { | |||
| return count; | |||
| } | |||
| public void setCount(Integer count) { | |||
| this.count = count; | |||
| } | |||
| public Double getPer() { | |||
| return per; | |||
| } | |||
| public void setPer(Double per) { | |||
| this.per = per; | |||
| } | |||
| public String getPlatformtype() { | |||
| return platformtype; | |||
| } | |||
| public void setPlatformtype(String platformtype) { | |||
| this.platformtype = platformtype == null ? null : platformtype.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getUsername() { | |||
| return username; | |||
| } | |||
| public void setUsername(String username) { | |||
| this.username = username == null ? null : username.trim(); | |||
| } | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| online("online", "online", "INTEGER", false), | |||
| count("count", "count", "INTEGER", false), | |||
| per("per", "per", "DOUBLE", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| username("userName", "username", "VARCHAR", false), | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,761 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| public class OnlineRateExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OnlineRateExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineIsNull() { | |||
| addCriterion("online is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineIsNotNull() { | |||
| addCriterion("online is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineEqualTo(Integer value) { | |||
| addCriterion("online =", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineNotEqualTo(Integer value) { | |||
| addCriterion("online <>", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineGreaterThan(Integer value) { | |||
| addCriterion("online >", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("online >=", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineLessThan(Integer value) { | |||
| addCriterion("online <", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineLessThanOrEqualTo(Integer value) { | |||
| addCriterion("online <=", value, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineIn(List<Integer> values) { | |||
| addCriterion("online in", values, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineNotIn(List<Integer> values) { | |||
| addCriterion("online not in", values, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineBetween(Integer value1, Integer value2) { | |||
| addCriterion("online between", value1, value2, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOnlineNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("online not between", value1, value2, "online"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountIsNull() { | |||
| addCriterion("count is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountIsNotNull() { | |||
| addCriterion("count is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountEqualTo(Integer value) { | |||
| addCriterion("count =", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountNotEqualTo(Integer value) { | |||
| addCriterion("count <>", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountGreaterThan(Integer value) { | |||
| addCriterion("count >", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("count >=", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountLessThan(Integer value) { | |||
| addCriterion("count <", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountLessThanOrEqualTo(Integer value) { | |||
| addCriterion("count <=", value, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountIn(List<Integer> values) { | |||
| addCriterion("count in", values, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountNotIn(List<Integer> values) { | |||
| addCriterion("count not in", values, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountBetween(Integer value1, Integer value2) { | |||
| addCriterion("count between", value1, value2, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCountNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("count not between", value1, value2, "count"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerIsNull() { | |||
| addCriterion("per is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerIsNotNull() { | |||
| addCriterion("per is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerEqualTo(Double value) { | |||
| addCriterion("per =", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerNotEqualTo(Double value) { | |||
| addCriterion("per <>", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerGreaterThan(Double value) { | |||
| addCriterion("per >", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerGreaterThanOrEqualTo(Double value) { | |||
| addCriterion("per >=", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerLessThan(Double value) { | |||
| addCriterion("per <", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerLessThanOrEqualTo(Double value) { | |||
| addCriterion("per <=", value, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerIn(List<Double> values) { | |||
| addCriterion("per in", values, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerNotIn(List<Double> values) { | |||
| addCriterion("per not in", values, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerBetween(Double value1, Double value2) { | |||
| addCriterion("per between", value1, value2, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPerNotBetween(Double value1, Double value2) { | |||
| addCriterion("per not between", value1, value2, "per"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIsNull() { | |||
| addCriterion("platformType is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIsNotNull() { | |||
| addCriterion("platformType is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeEqualTo(String value) { | |||
| addCriterion("platformType =", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotEqualTo(String value) { | |||
| addCriterion("platformType <>", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeGreaterThan(String value) { | |||
| addCriterion("platformType >", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("platformType >=", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLessThan(String value) { | |||
| addCriterion("platformType <", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLessThanOrEqualTo(String value) { | |||
| addCriterion("platformType <=", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLike(String value) { | |||
| addCriterion("platformType like", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotLike(String value) { | |||
| addCriterion("platformType not like", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIn(List<String> values) { | |||
| addCriterion("platformType in", values, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotIn(List<String> values) { | |||
| addCriterion("platformType not in", values, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeBetween(String value1, String value2) { | |||
| addCriterion("platformType between", value1, value2, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotBetween(String value1, String value2) { | |||
| addCriterion("platformType not between", value1, value2, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNull() { | |||
| addCriterion("time is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNotNull() { | |||
| addCriterion("time is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeEqualTo(Date value) { | |||
| addCriterion("time =", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotEqualTo(Date value) { | |||
| addCriterion("time <>", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThan(Date value) { | |||
| addCriterion("time >", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("time >=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThan(Date value) { | |||
| addCriterion("time <", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("time <=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIn(List<Date> values) { | |||
| addCriterion("time in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotIn(List<Date> values) { | |||
| addCriterion("time not in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeBetween(Date value1, Date value2) { | |||
| addCriterion("time between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("time not between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNull() { | |||
| addCriterion("userName is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIsNotNull() { | |||
| addCriterion("userName is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameEqualTo(String value) { | |||
| addCriterion("userName =", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotEqualTo(String value) { | |||
| addCriterion("userName <>", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThan(String value) { | |||
| addCriterion("userName >", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("userName >=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThan(String value) { | |||
| addCriterion("userName <", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLessThanOrEqualTo(String value) { | |||
| addCriterion("userName <=", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameLike(String value) { | |||
| addCriterion("userName like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotLike(String value) { | |||
| addCriterion("userName not like", value, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameIn(List<String> values) { | |||
| addCriterion("userName in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotIn(List<String> values) { | |||
| addCriterion("userName not in", values, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameBetween(String value1, String value2) { | |||
| addCriterion("userName between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andUsernameNotBetween(String value1, String value2) { | |||
| addCriterion("userName not between", value1, value2, "username"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNull() { | |||
| addCriterion("project_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNotNull() { | |||
| addCriterion("project_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdEqualTo(Integer value) { | |||
| addCriterion("project_id =", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotEqualTo(Integer value) { | |||
| addCriterion("project_id <>", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThan(Integer value) { | |||
| addCriterion("project_id >", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id >=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThan(Integer value) { | |||
| addCriterion("project_id <", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id <=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIn(List<Integer> values) { | |||
| addCriterion("project_id in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotIn(List<Integer> values) { | |||
| addCriterion("project_id not in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id not between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNull() { | |||
| addCriterion("company_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNotNull() { | |||
| addCriterion("company_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdEqualTo(Integer value) { | |||
| addCriterion("company_id =", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotEqualTo(Integer value) { | |||
| addCriterion("company_id <>", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThan(Integer value) { | |||
| addCriterion("company_id >", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id >=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThan(Integer value) { | |||
| addCriterion("company_id <", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id <=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIn(List<Integer> values) { | |||
| addCriterion("company_id in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotIn(List<Integer> values) { | |||
| addCriterion("company_id not in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id not between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,214 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class OnlineRateView { | |||
| private Integer projectId; | |||
| private Date time; | |||
| private Long num; | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public Long getNum() { | |||
| return num; | |||
| } | |||
| public void setNum(Long num) { | |||
| this.num = num; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| num("num", "num", "BIGINT", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table online_rate_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,381 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| public class OnlineRateViewExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public OnlineRateViewExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andProjectIdIsNull() { | |||
| addCriterion("project_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIsNotNull() { | |||
| addCriterion("project_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdEqualTo(Integer value) { | |||
| addCriterion("project_id =", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotEqualTo(Integer value) { | |||
| addCriterion("project_id <>", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThan(Integer value) { | |||
| addCriterion("project_id >", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id >=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThan(Integer value) { | |||
| addCriterion("project_id <", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("project_id <=", value, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdIn(List<Integer> values) { | |||
| addCriterion("project_id in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotIn(List<Integer> values) { | |||
| addCriterion("project_id not in", values, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("project_id not between", value1, value2, "projectId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNull() { | |||
| addCriterion("time is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNotNull() { | |||
| addCriterion("time is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeEqualTo(Date value) { | |||
| addCriterion("time =", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotEqualTo(Date value) { | |||
| addCriterion("time <>", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThan(Date value) { | |||
| addCriterion("time >", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("time >=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThan(Date value) { | |||
| addCriterion("time <", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("time <=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIn(List<Date> values) { | |||
| addCriterion("time in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotIn(List<Date> values) { | |||
| addCriterion("time not in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeBetween(Date value1, Date value2) { | |||
| addCriterion("time between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("time not between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumIsNull() { | |||
| addCriterion("num is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumIsNotNull() { | |||
| addCriterion("num is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumEqualTo(Long value) { | |||
| addCriterion("num =", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotEqualTo(Long value) { | |||
| addCriterion("num <>", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumGreaterThan(Long value) { | |||
| addCriterion("num >", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumGreaterThanOrEqualTo(Long value) { | |||
| addCriterion("num >=", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumLessThan(Long value) { | |||
| addCriterion("num <", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumLessThanOrEqualTo(Long value) { | |||
| addCriterion("num <=", value, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumIn(List<Long> values) { | |||
| addCriterion("num in", values, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotIn(List<Long> values) { | |||
| addCriterion("num not in", values, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumBetween(Long value1, Long value2) { | |||
| addCriterion("num between", value1, value2, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNumNotBetween(Long value1, Long value2) { | |||
| addCriterion("num not between", value1, value2, "num"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,291 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class Project { | |||
| private Integer id; | |||
| private String name; | |||
| private String platformtype; | |||
| private String descr; | |||
| private String ip; | |||
| private String port; | |||
| private String protocol; | |||
| private Integer orderId; | |||
| private Integer companyId; | |||
| private Date time; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public String getName() { | |||
| return name; | |||
| } | |||
| public void setName(String name) { | |||
| this.name = name == null ? null : name.trim(); | |||
| } | |||
| public String getPlatformtype() { | |||
| return platformtype; | |||
| } | |||
| public void setPlatformtype(String platformtype) { | |||
| this.platformtype = platformtype == null ? null : platformtype.trim(); | |||
| } | |||
| public String getDescr() { | |||
| return descr; | |||
| } | |||
| public void setDescr(String descr) { | |||
| this.descr = descr == null ? null : descr.trim(); | |||
| } | |||
| public String getIp() { | |||
| return ip; | |||
| } | |||
| public void setIp(String ip) { | |||
| this.ip = ip == null ? null : ip.trim(); | |||
| } | |||
| public String getPort() { | |||
| return port; | |||
| } | |||
| public void setPort(String port) { | |||
| this.port = port == null ? null : port.trim(); | |||
| } | |||
| public String getProtocol() { | |||
| return protocol; | |||
| } | |||
| public void setProtocol(String protocol) { | |||
| this.protocol = protocol == null ? null : protocol.trim(); | |||
| } | |||
| public Integer getOrderId() { | |||
| return orderId; | |||
| } | |||
| public void setOrderId(Integer orderId) { | |||
| this.orderId = orderId; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| name("name", "name", "VARCHAR", false), | |||
| platformtype("platformType", "platformtype", "VARCHAR", false), | |||
| descr("descr", "descr", "VARCHAR", false), | |||
| ip("ip", "ip", "VARCHAR", false), | |||
| port("port", "port", "VARCHAR", false), | |||
| protocol("protocol", "protocol", "VARCHAR", false), | |||
| orderId("order_id", "orderId", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false), | |||
| time("time", "time", "TIMESTAMP", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,861 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| public class ProjectExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public ProjectExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameIsNull() { | |||
| addCriterion("name is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameIsNotNull() { | |||
| addCriterion("name is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameEqualTo(String value) { | |||
| addCriterion("name =", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameNotEqualTo(String value) { | |||
| addCriterion("name <>", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameGreaterThan(String value) { | |||
| addCriterion("name >", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameGreaterThanOrEqualTo(String value) { | |||
| addCriterion("name >=", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameLessThan(String value) { | |||
| addCriterion("name <", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameLessThanOrEqualTo(String value) { | |||
| addCriterion("name <=", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameLike(String value) { | |||
| addCriterion("name like", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameNotLike(String value) { | |||
| addCriterion("name not like", value, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameIn(List<String> values) { | |||
| addCriterion("name in", values, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameNotIn(List<String> values) { | |||
| addCriterion("name not in", values, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameBetween(String value1, String value2) { | |||
| addCriterion("name between", value1, value2, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andNameNotBetween(String value1, String value2) { | |||
| addCriterion("name not between", value1, value2, "name"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIsNull() { | |||
| addCriterion("platformType is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIsNotNull() { | |||
| addCriterion("platformType is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeEqualTo(String value) { | |||
| addCriterion("platformType =", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotEqualTo(String value) { | |||
| addCriterion("platformType <>", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeGreaterThan(String value) { | |||
| addCriterion("platformType >", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { | |||
| addCriterion("platformType >=", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLessThan(String value) { | |||
| addCriterion("platformType <", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLessThanOrEqualTo(String value) { | |||
| addCriterion("platformType <=", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeLike(String value) { | |||
| addCriterion("platformType like", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotLike(String value) { | |||
| addCriterion("platformType not like", value, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeIn(List<String> values) { | |||
| addCriterion("platformType in", values, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotIn(List<String> values) { | |||
| addCriterion("platformType not in", values, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeBetween(String value1, String value2) { | |||
| addCriterion("platformType between", value1, value2, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPlatformtypeNotBetween(String value1, String value2) { | |||
| addCriterion("platformType not between", value1, value2, "platformtype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrIsNull() { | |||
| addCriterion("descr is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrIsNotNull() { | |||
| addCriterion("descr is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrEqualTo(String value) { | |||
| addCriterion("descr =", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrNotEqualTo(String value) { | |||
| addCriterion("descr <>", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrGreaterThan(String value) { | |||
| addCriterion("descr >", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrGreaterThanOrEqualTo(String value) { | |||
| addCriterion("descr >=", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrLessThan(String value) { | |||
| addCriterion("descr <", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrLessThanOrEqualTo(String value) { | |||
| addCriterion("descr <=", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrLike(String value) { | |||
| addCriterion("descr like", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrNotLike(String value) { | |||
| addCriterion("descr not like", value, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrIn(List<String> values) { | |||
| addCriterion("descr in", values, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrNotIn(List<String> values) { | |||
| addCriterion("descr not in", values, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrBetween(String value1, String value2) { | |||
| addCriterion("descr between", value1, value2, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDescrNotBetween(String value1, String value2) { | |||
| addCriterion("descr not between", value1, value2, "descr"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpIsNull() { | |||
| addCriterion("ip is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpIsNotNull() { | |||
| addCriterion("ip is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpEqualTo(String value) { | |||
| addCriterion("ip =", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpNotEqualTo(String value) { | |||
| addCriterion("ip <>", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpGreaterThan(String value) { | |||
| addCriterion("ip >", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpGreaterThanOrEqualTo(String value) { | |||
| addCriterion("ip >=", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpLessThan(String value) { | |||
| addCriterion("ip <", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpLessThanOrEqualTo(String value) { | |||
| addCriterion("ip <=", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpLike(String value) { | |||
| addCriterion("ip like", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpNotLike(String value) { | |||
| addCriterion("ip not like", value, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpIn(List<String> values) { | |||
| addCriterion("ip in", values, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpNotIn(List<String> values) { | |||
| addCriterion("ip not in", values, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpBetween(String value1, String value2) { | |||
| addCriterion("ip between", value1, value2, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIpNotBetween(String value1, String value2) { | |||
| addCriterion("ip not between", value1, value2, "ip"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortIsNull() { | |||
| addCriterion("port is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortIsNotNull() { | |||
| addCriterion("port is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortEqualTo(String value) { | |||
| addCriterion("port =", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortNotEqualTo(String value) { | |||
| addCriterion("port <>", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortGreaterThan(String value) { | |||
| addCriterion("port >", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortGreaterThanOrEqualTo(String value) { | |||
| addCriterion("port >=", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortLessThan(String value) { | |||
| addCriterion("port <", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortLessThanOrEqualTo(String value) { | |||
| addCriterion("port <=", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortLike(String value) { | |||
| addCriterion("port like", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortNotLike(String value) { | |||
| addCriterion("port not like", value, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortIn(List<String> values) { | |||
| addCriterion("port in", values, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortNotIn(List<String> values) { | |||
| addCriterion("port not in", values, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortBetween(String value1, String value2) { | |||
| addCriterion("port between", value1, value2, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPortNotBetween(String value1, String value2) { | |||
| addCriterion("port not between", value1, value2, "port"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolIsNull() { | |||
| addCriterion("protocol is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolIsNotNull() { | |||
| addCriterion("protocol is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolEqualTo(String value) { | |||
| addCriterion("protocol =", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolNotEqualTo(String value) { | |||
| addCriterion("protocol <>", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolGreaterThan(String value) { | |||
| addCriterion("protocol >", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolGreaterThanOrEqualTo(String value) { | |||
| addCriterion("protocol >=", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolLessThan(String value) { | |||
| addCriterion("protocol <", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolLessThanOrEqualTo(String value) { | |||
| addCriterion("protocol <=", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolLike(String value) { | |||
| addCriterion("protocol like", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolNotLike(String value) { | |||
| addCriterion("protocol not like", value, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolIn(List<String> values) { | |||
| addCriterion("protocol in", values, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolNotIn(List<String> values) { | |||
| addCriterion("protocol not in", values, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolBetween(String value1, String value2) { | |||
| addCriterion("protocol between", value1, value2, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andProtocolNotBetween(String value1, String value2) { | |||
| addCriterion("protocol not between", value1, value2, "protocol"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdIsNull() { | |||
| addCriterion("order_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdIsNotNull() { | |||
| addCriterion("order_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdEqualTo(Integer value) { | |||
| addCriterion("order_id =", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdNotEqualTo(Integer value) { | |||
| addCriterion("order_id <>", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdGreaterThan(Integer value) { | |||
| addCriterion("order_id >", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("order_id >=", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdLessThan(Integer value) { | |||
| addCriterion("order_id <", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("order_id <=", value, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdIn(List<Integer> values) { | |||
| addCriterion("order_id in", values, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdNotIn(List<Integer> values) { | |||
| addCriterion("order_id not in", values, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("order_id between", value1, value2, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("order_id not between", value1, value2, "orderId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNull() { | |||
| addCriterion("company_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIsNotNull() { | |||
| addCriterion("company_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdEqualTo(Integer value) { | |||
| addCriterion("company_id =", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotEqualTo(Integer value) { | |||
| addCriterion("company_id <>", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThan(Integer value) { | |||
| addCriterion("company_id >", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id >=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThan(Integer value) { | |||
| addCriterion("company_id <", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("company_id <=", value, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdIn(List<Integer> values) { | |||
| addCriterion("company_id in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotIn(List<Integer> values) { | |||
| addCriterion("company_id not in", values, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("company_id not between", value1, value2, "companyId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNull() { | |||
| addCriterion("time is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIsNotNull() { | |||
| addCriterion("time is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeEqualTo(Date value) { | |||
| addCriterion("time =", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotEqualTo(Date value) { | |||
| addCriterion("time <>", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThan(Date value) { | |||
| addCriterion("time >", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeGreaterThanOrEqualTo(Date value) { | |||
| addCriterion("time >=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThan(Date value) { | |||
| addCriterion("time <", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeLessThanOrEqualTo(Date value) { | |||
| addCriterion("time <=", value, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeIn(List<Date> values) { | |||
| addCriterion("time in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotIn(List<Date> values) { | |||
| addCriterion("time not in", values, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeBetween(Date value1, Date value2) { | |||
| addCriterion("time between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTimeNotBetween(Date value1, Date value2) { | |||
| addCriterion("time not between", value1, value2, "time"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,335 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| import java.util.Date; | |||
| public class ProjectTransmit { | |||
| private Integer id; | |||
| private Integer companyId; | |||
| private Integer projectId; | |||
| private String protocol; | |||
| private String ip; | |||
| private String port; | |||
| private Date time; | |||
| private String type; | |||
| private Integer status; | |||
| private Date updateTime; | |||
| private Integer total; | |||
| private Integer suc; | |||
| private Integer err; | |||
| private String params; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public Integer getCompanyId() { | |||
| return companyId; | |||
| } | |||
| public void setCompanyId(Integer companyId) { | |||
| this.companyId = companyId; | |||
| } | |||
| public Integer getProjectId() { | |||
| return projectId; | |||
| } | |||
| public void setProjectId(Integer projectId) { | |||
| this.projectId = projectId; | |||
| } | |||
| public String getProtocol() { | |||
| return protocol; | |||
| } | |||
| public void setProtocol(String protocol) { | |||
| this.protocol = protocol == null ? null : protocol.trim(); | |||
| } | |||
| public String getIp() { | |||
| return ip; | |||
| } | |||
| public void setIp(String ip) { | |||
| this.ip = ip == null ? null : ip.trim(); | |||
| } | |||
| public String getPort() { | |||
| return port; | |||
| } | |||
| public void setPort(String port) { | |||
| this.port = port == null ? null : port.trim(); | |||
| } | |||
| public Date getTime() { | |||
| return time; | |||
| } | |||
| public void setTime(Date time) { | |||
| this.time = time; | |||
| } | |||
| public String getType() { | |||
| return type; | |||
| } | |||
| public void setType(String type) { | |||
| this.type = type == null ? null : type.trim(); | |||
| } | |||
| public Integer getStatus() { | |||
| return status; | |||
| } | |||
| public void setStatus(Integer status) { | |||
| this.status = status; | |||
| } | |||
| public Date getUpdateTime() { | |||
| return updateTime; | |||
| } | |||
| public void setUpdateTime(Date updateTime) { | |||
| this.updateTime = updateTime; | |||
| } | |||
| public Integer getTotal() { | |||
| return total; | |||
| } | |||
| public void setTotal(Integer total) { | |||
| this.total = total; | |||
| } | |||
| public Integer getSuc() { | |||
| return suc; | |||
| } | |||
| public void setSuc(Integer suc) { | |||
| this.suc = suc; | |||
| } | |||
| public Integer getErr() { | |||
| return err; | |||
| } | |||
| public void setErr(Integer err) { | |||
| this.err = err; | |||
| } | |||
| public String getParams() { | |||
| return params; | |||
| } | |||
| public void setParams(String params) { | |||
| this.params = params == null ? null : params.trim(); | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| companyId("company_id", "companyId", "INTEGER", false), | |||
| projectId("project_id", "projectId", "INTEGER", false), | |||
| protocol("protocol", "protocol", "VARCHAR", false), | |||
| ip("ip", "ip", "VARCHAR", false), | |||
| port("port", "port", "VARCHAR", false), | |||
| time("time", "time", "TIMESTAMP", false), | |||
| type("type", "type", "VARCHAR", false), | |||
| status("status", "status", "INTEGER", false), | |||
| updateTime("update_time", "updateTime", "TIMESTAMP", false), | |||
| total("total", "total", "INTEGER", false), | |||
| suc("suc", "suc", "INTEGER", false), | |||
| err("err", "err", "INTEGER", false), | |||
| params("params", "params", "VARCHAR", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table project_transmit | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,213 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class TransmitType { | |||
| private Integer id; | |||
| private Integer transmitId; | |||
| private Integer datatype; | |||
| public Integer getId() { | |||
| return id; | |||
| } | |||
| public void setId(Integer id) { | |||
| this.id = id; | |||
| } | |||
| public Integer getTransmitId() { | |||
| return transmitId; | |||
| } | |||
| public void setTransmitId(Integer transmitId) { | |||
| this.transmitId = transmitId; | |||
| } | |||
| public Integer getDatatype() { | |||
| return datatype; | |||
| } | |||
| public void setDatatype(Integer datatype) { | |||
| this.datatype = datatype; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| id("id", "id", "INTEGER", false), | |||
| transmitId("transmit_id", "transmitId", "INTEGER", false), | |||
| datatype("datatype", "datatype", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table transmit_type | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,380 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class TransmitTypeExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public TransmitTypeExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andIdIsNull() { | |||
| addCriterion("id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIsNotNull() { | |||
| addCriterion("id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdEqualTo(Integer value) { | |||
| addCriterion("id =", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotEqualTo(Integer value) { | |||
| addCriterion("id <>", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThan(Integer value) { | |||
| addCriterion("id >", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("id >=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThan(Integer value) { | |||
| addCriterion("id <", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("id <=", value, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdIn(List<Integer> values) { | |||
| addCriterion("id in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotIn(List<Integer> values) { | |||
| addCriterion("id not in", values, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("id between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("id not between", value1, value2, "id"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdIsNull() { | |||
| addCriterion("transmit_id is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdIsNotNull() { | |||
| addCriterion("transmit_id is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdEqualTo(Integer value) { | |||
| addCriterion("transmit_id =", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdNotEqualTo(Integer value) { | |||
| addCriterion("transmit_id <>", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdGreaterThan(Integer value) { | |||
| addCriterion("transmit_id >", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("transmit_id >=", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdLessThan(Integer value) { | |||
| addCriterion("transmit_id <", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdLessThanOrEqualTo(Integer value) { | |||
| addCriterion("transmit_id <=", value, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdIn(List<Integer> values) { | |||
| addCriterion("transmit_id in", values, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdNotIn(List<Integer> values) { | |||
| addCriterion("transmit_id not in", values, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdBetween(Integer value1, Integer value2) { | |||
| addCriterion("transmit_id between", value1, value2, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andTransmitIdNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("transmit_id not between", value1, value2, "transmitId"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeIsNull() { | |||
| addCriterion("datatype is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeIsNotNull() { | |||
| addCriterion("datatype is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeEqualTo(Integer value) { | |||
| addCriterion("datatype =", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeNotEqualTo(Integer value) { | |||
| addCriterion("datatype <>", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeGreaterThan(Integer value) { | |||
| addCriterion("datatype >", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("datatype >=", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeLessThan(Integer value) { | |||
| addCriterion("datatype <", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeLessThanOrEqualTo(Integer value) { | |||
| addCriterion("datatype <=", value, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeIn(List<Integer> values) { | |||
| addCriterion("datatype in", values, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeNotIn(List<Integer> values) { | |||
| addCriterion("datatype not in", values, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeBetween(Integer value1, Integer value2) { | |||
| addCriterion("datatype between", value1, value2, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDatatypeNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("datatype not between", value1, value2, "datatype"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,213 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.Arrays; | |||
| public class UpdateMsgView { | |||
| private String imei; | |||
| private String period; | |||
| private Integer dperiod; | |||
| public String getImei() { | |||
| return imei; | |||
| } | |||
| public void setImei(String imei) { | |||
| this.imei = imei == null ? null : imei.trim(); | |||
| } | |||
| public String getPeriod() { | |||
| return period; | |||
| } | |||
| public void setPeriod(String period) { | |||
| this.period = period == null ? null : period.trim(); | |||
| } | |||
| public Integer getDperiod() { | |||
| return dperiod; | |||
| } | |||
| public void setDperiod(Integer dperiod) { | |||
| this.dperiod = dperiod; | |||
| } | |||
| /** | |||
| * This enum was generated by MyBatis Generator. | |||
| * This enum corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public enum Column { | |||
| imei("imei", "imei", "VARCHAR", false), | |||
| period("period", "period", "VARCHAR", false), | |||
| dperiod("dperiod", "dperiod", "INTEGER", false); | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String BEGINNING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private static final String ENDING_DELIMITER = "\""; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String column; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final boolean isColumnNameDelimited; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String javaProperty; | |||
| /** | |||
| * This field was generated by MyBatis Generator. | |||
| * This field corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| private final String jdbcType; | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String value() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getValue() { | |||
| return this.column; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJavaProperty() { | |||
| return this.javaProperty; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getJdbcType() { | |||
| return this.jdbcType; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { | |||
| this.column = column; | |||
| this.javaProperty = javaProperty; | |||
| this.jdbcType = jdbcType; | |||
| this.isColumnNameDelimited = isColumnNameDelimited; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String desc() { | |||
| return this.getEscapedColumnName() + " DESC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String asc() { | |||
| return this.getEscapedColumnName() + " ASC"; | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public static Column[] excludes(Column ... excludes) { | |||
| ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); | |||
| if (excludes != null && excludes.length > 0) { | |||
| columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); | |||
| } | |||
| return columns.toArray(new Column[]{}); | |||
| } | |||
| /** | |||
| * This method was generated by MyBatis Generator. | |||
| * This method corresponds to the database table update_msg_view | |||
| * | |||
| * @mbg.generated | |||
| * @project https://github.com/itfsw/mybatis-generator-plugin | |||
| */ | |||
| public String getEscapedColumnName() { | |||
| if (this.isColumnNameDelimited) { | |||
| return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); | |||
| } else { | |||
| return this.column; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,400 +0,0 @@ | |||
| package com.topsail.influxdb.pojo; | |||
| import java.util.ArrayList; | |||
| import java.util.List; | |||
| public class UpdateMsgViewExample { | |||
| protected String orderByClause; | |||
| protected boolean distinct; | |||
| protected List<Criteria> oredCriteria; | |||
| public UpdateMsgViewExample() { | |||
| oredCriteria = new ArrayList<Criteria>(); | |||
| } | |||
| public void setOrderByClause(String orderByClause) { | |||
| this.orderByClause = orderByClause; | |||
| } | |||
| public String getOrderByClause() { | |||
| return orderByClause; | |||
| } | |||
| public void setDistinct(boolean distinct) { | |||
| this.distinct = distinct; | |||
| } | |||
| public boolean isDistinct() { | |||
| return distinct; | |||
| } | |||
| public List<Criteria> getOredCriteria() { | |||
| return oredCriteria; | |||
| } | |||
| public void or(Criteria criteria) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| public Criteria or() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| oredCriteria.add(criteria); | |||
| return criteria; | |||
| } | |||
| public Criteria createCriteria() { | |||
| Criteria criteria = createCriteriaInternal(); | |||
| if (oredCriteria.size() == 0) { | |||
| oredCriteria.add(criteria); | |||
| } | |||
| return criteria; | |||
| } | |||
| protected Criteria createCriteriaInternal() { | |||
| Criteria criteria = new Criteria(); | |||
| return criteria; | |||
| } | |||
| public void clear() { | |||
| oredCriteria.clear(); | |||
| orderByClause = null; | |||
| distinct = false; | |||
| } | |||
| protected abstract static class GeneratedCriteria { | |||
| protected List<Criterion> criteria; | |||
| protected GeneratedCriteria() { | |||
| super(); | |||
| criteria = new ArrayList<Criterion>(); | |||
| } | |||
| public boolean isValid() { | |||
| return criteria.size() > 0; | |||
| } | |||
| public List<Criterion> getAllCriteria() { | |||
| return criteria; | |||
| } | |||
| public List<Criterion> getCriteria() { | |||
| return criteria; | |||
| } | |||
| protected void addCriterion(String condition) { | |||
| if (condition == null) { | |||
| throw new RuntimeException("Value for condition cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition)); | |||
| } | |||
| protected void addCriterion(String condition, Object value, String property) { | |||
| if (value == null) { | |||
| throw new RuntimeException("Value for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value)); | |||
| } | |||
| protected void addCriterion(String condition, Object value1, Object value2, String property) { | |||
| if (value1 == null || value2 == null) { | |||
| throw new RuntimeException("Between values for " + property + " cannot be null"); | |||
| } | |||
| criteria.add(new Criterion(condition, value1, value2)); | |||
| } | |||
| public Criteria andImeiIsNull() { | |||
| addCriterion("imei is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIsNotNull() { | |||
| addCriterion("imei is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiEqualTo(String value) { | |||
| addCriterion("imei =", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotEqualTo(String value) { | |||
| addCriterion("imei <>", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThan(String value) { | |||
| addCriterion("imei >", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiGreaterThanOrEqualTo(String value) { | |||
| addCriterion("imei >=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThan(String value) { | |||
| addCriterion("imei <", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLessThanOrEqualTo(String value) { | |||
| addCriterion("imei <=", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiLike(String value) { | |||
| addCriterion("imei like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotLike(String value) { | |||
| addCriterion("imei not like", value, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiIn(List<String> values) { | |||
| addCriterion("imei in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotIn(List<String> values) { | |||
| addCriterion("imei not in", values, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiBetween(String value1, String value2) { | |||
| addCriterion("imei between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andImeiNotBetween(String value1, String value2) { | |||
| addCriterion("imei not between", value1, value2, "imei"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNull() { | |||
| addCriterion("period is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIsNotNull() { | |||
| addCriterion("period is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodEqualTo(String value) { | |||
| addCriterion("period =", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotEqualTo(String value) { | |||
| addCriterion("period <>", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThan(String value) { | |||
| addCriterion("period >", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodGreaterThanOrEqualTo(String value) { | |||
| addCriterion("period >=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThan(String value) { | |||
| addCriterion("period <", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLessThanOrEqualTo(String value) { | |||
| addCriterion("period <=", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodLike(String value) { | |||
| addCriterion("period like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotLike(String value) { | |||
| addCriterion("period not like", value, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodIn(List<String> values) { | |||
| addCriterion("period in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotIn(List<String> values) { | |||
| addCriterion("period not in", values, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodBetween(String value1, String value2) { | |||
| addCriterion("period between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andPeriodNotBetween(String value1, String value2) { | |||
| addCriterion("period not between", value1, value2, "period"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIsNull() { | |||
| addCriterion("dperiod is null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIsNotNull() { | |||
| addCriterion("dperiod is not null"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodEqualTo(Integer value) { | |||
| addCriterion("dperiod =", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotEqualTo(Integer value) { | |||
| addCriterion("dperiod <>", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodGreaterThan(Integer value) { | |||
| addCriterion("dperiod >", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { | |||
| addCriterion("dperiod >=", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodLessThan(Integer value) { | |||
| addCriterion("dperiod <", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodLessThanOrEqualTo(Integer value) { | |||
| addCriterion("dperiod <=", value, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodIn(List<Integer> values) { | |||
| addCriterion("dperiod in", values, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotIn(List<Integer> values) { | |||
| addCriterion("dperiod not in", values, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodBetween(Integer value1, Integer value2) { | |||
| addCriterion("dperiod between", value1, value2, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| public Criteria andDperiodNotBetween(Integer value1, Integer value2) { | |||
| addCriterion("dperiod not between", value1, value2, "dperiod"); | |||
| return (Criteria) this; | |||
| } | |||
| } | |||
| public static class Criteria extends GeneratedCriteria { | |||
| protected Criteria() { | |||
| super(); | |||
| } | |||
| } | |||
| public static class Criterion { | |||
| private String condition; | |||
| private Object value; | |||
| private Object secondValue; | |||
| private boolean noValue; | |||
| private boolean singleValue; | |||
| private boolean betweenValue; | |||
| private boolean listValue; | |||
| private String typeHandler; | |||
| public String getCondition() { | |||
| return condition; | |||
| } | |||
| public Object getValue() { | |||
| return value; | |||
| } | |||
| public Object getSecondValue() { | |||
| return secondValue; | |||
| } | |||
| public boolean isNoValue() { | |||
| return noValue; | |||
| } | |||
| public boolean isSingleValue() { | |||
| return singleValue; | |||
| } | |||
| public boolean isBetweenValue() { | |||
| return betweenValue; | |||
| } | |||
| public boolean isListValue() { | |||
| return listValue; | |||
| } | |||
| public String getTypeHandler() { | |||
| return typeHandler; | |||
| } | |||
| protected Criterion(String condition) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.typeHandler = null; | |||
| this.noValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.typeHandler = typeHandler; | |||
| if (value instanceof List<?>) { | |||
| this.listValue = true; | |||
| } else { | |||
| this.singleValue = true; | |||
| } | |||
| } | |||
| protected Criterion(String condition, Object value) { | |||
| this(condition, value, null); | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | |||
| super(); | |||
| this.condition = condition; | |||
| this.value = value; | |||
| this.secondValue = secondValue; | |||
| this.typeHandler = typeHandler; | |||
| this.betweenValue = true; | |||
| } | |||
| protected Criterion(String condition, Object value, Object secondValue) { | |||
| this(condition, value, secondValue, null); | |||
| } | |||
| } | |||
| } | |||
| @ -1,258 +0,0 @@ | |||
| package com.topsail.influxdb.rabbitmq.service; | |||
| import com.alibaba.fastjson.JSON; | |||
| import com.influxdb.annotations.Column; | |||
| import com.influxdb.annotations.Measurement; | |||
| import com.influxdb.client.InfluxDBClient; | |||
| import com.influxdb.client.InfluxDBClientFactory; | |||
| import com.influxdb.client.WriteApi; | |||
| import com.influxdb.client.domain.WritePrecision; | |||
| import com.topsail.influxdb.mapper.*; | |||
| import com.topsail.influxdb.model.InfluxData; | |||
| import com.topsail.influxdb.pojo.DeviceLog; | |||
| import com.topsail.influxdb.pojo.History; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import java.time.Instant; | |||
| import java.util.Date; | |||
| @Service | |||
| public class IotService { | |||
| public static final Logger LOG = LoggerFactory.getLogger(IotService.class); | |||
| @Autowired | |||
| DeviceMapper deviceMapper; | |||
| @Autowired | |||
| HistoryMapper historyMapper; | |||
| @Autowired | |||
| HistoryAllMapper historyAllMapper; | |||
| @Autowired | |||
| ConfigMapper configMapper; | |||
| @Autowired | |||
| AlarmMapper alarmMapper; | |||
| @Autowired | |||
| OnlineRateMapper onlineRateMapper; | |||
| @Autowired | |||
| OnlineProjectMapper onlineProjectMapper; | |||
| @Autowired | |||
| AmqpService amqpService; | |||
| //@Autowired | |||
| //OnlineProjectMapper onlineProjectMapper; | |||
| @Autowired | |||
| ProjectMapper projectMapper; | |||
| @Autowired | |||
| DeviceDetailMapper deviceDetailMapper; | |||
| @Autowired | |||
| DeviceLogMapper deviceLogMapper; | |||
| @Autowired | |||
| DeviceInfoMapper deviceInfoMapper; | |||
| @Autowired | |||
| OcDeviceMapper ocDeviceMapper; | |||
| @Autowired | |||
| OnenetDeviceMapper onenetDeviceMapper; | |||
| @Autowired | |||
| OcConfigMapper ocConfigMapper; | |||
| @Autowired | |||
| OcCompanyMapper ocCompanyMapper; | |||
| @Autowired | |||
| OnenetCompanyMapper onenetCompanyMapper; | |||
| @Autowired | |||
| UpdateMsgViewMapper updateMsgViewMapper; | |||
| @Autowired | |||
| DataFilterMapper dataFilterMapper; | |||
| @Autowired | |||
| OnlineRateViewMapper onlineRateViewMapper; | |||
| @Autowired | |||
| ProjectTransmitMapper projectTransmitMapper; | |||
| @Autowired | |||
| TransmitTypeMapper transmitTypeMapper; | |||
| @Autowired | |||
| ImsiImeiMapper imsiImeiMapper; | |||
| @Autowired | |||
| GatewayDeviceMapper gatewayDeviceMapper; | |||
| @Autowired | |||
| DeviceProjectViewMapper deviceProjectViewMapper; | |||
| @Autowired | |||
| CompanyMapper companyMapper; | |||
| private static char[] token = "bNY4wG2fmWh5SC8NirfnRIn8zR7Cg8BIbkJztI7jhOeNhbteeGGGR0ysEKNA1pi1fEMaXNkqh06nmqnag6nedA==".toCharArray(); | |||
| //@Autowired | |||
| //@Qualifier("inInfluxdbMetricsRepository") | |||
| //private MetricsRepository<HistoryWithBLOBs> metricStore; | |||
| //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); | |||
| @Measurement(name = "iot") | |||
| private static class Temperature { | |||
| @Column(tag = true) | |||
| String imei; | |||
| @Column | |||
| String value; | |||
| @Column | |||
| Integer devicetype; | |||
| @Column | |||
| Integer batterylevel; | |||
| @Column | |||
| Integer singalstrength; | |||
| @Column | |||
| Integer passnum; | |||
| @Column | |||
| Integer batterystate; | |||
| @Column | |||
| String alarmtype; | |||
| @Column | |||
| String platformtype; | |||
| @Column | |||
| String username; | |||
| @Column | |||
| String unit; | |||
| @Column | |||
| String sendtime; | |||
| @Column | |||
| String sampledata; | |||
| @Column | |||
| String databody; | |||
| @Column(timestamp = true) | |||
| Instant time; | |||
| } | |||
| public void saveHistoryall(History history) { | |||
| //HistoryAll historyAll=JSON.parseObject(JSON.toJSONString(history),HistoryAll.class); | |||
| //historyAllMapper.insert(historyAll); | |||
| //historyMapper.insert(history); | |||
| //CheckHistory(history.getImei(),history.getTime()); | |||
| if (history.getSenddate() == null) { | |||
| return; | |||
| } | |||
| String influxvalue = "iot,imei=" + history.getImei() + " press=" + history.getSampledata() + " " + history.getTime().getTime(); | |||
| String token = "k7dtXN5boSf9gbnUC75ekSJqILCMIcJ_nxxHLgxAYKqEtFSqqIfnELc2xHxuimdRYZgtbReQFs7qq_XWh04Z2w=="; | |||
| String bucket = "iot"; | |||
| String org = "topsail"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://182.92.218.150:8086", token.toCharArray()); | |||
| InfluxData mem = new InfluxData(); | |||
| mem.imei = history.getImei(); | |||
| String value = history.getValue(); | |||
| if (value != null && !value.equals("")) { | |||
| String[] values = value.split(","); | |||
| mem.value1 = 0; | |||
| mem.value2 = 0; | |||
| mem.value3 = 0; | |||
| mem.value4 = 0; | |||
| try { | |||
| if (values.length > 0) { | |||
| mem.value1 = Double.parseDouble(values[0]); | |||
| } | |||
| if (values.length > 1) { | |||
| mem.value2 = Double.parseDouble(values[1]); | |||
| } | |||
| if (values.length > 2) { | |||
| mem.value3 = Double.parseDouble(values[2]); | |||
| } | |||
| if (values.length > 3) { | |||
| mem.value4 = Double.parseDouble(values[4]); | |||
| } | |||
| } catch (Exception e) { | |||
| LOG.info(e.getMessage()); | |||
| } | |||
| /* mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata=JSON.toJSONString(history); | |||
| mem.values=history.getValue(); | |||
| mem.unit=history.getUnit(); | |||
| mem.alarmtype=history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| //mem.time = Instant.now(); | |||
| mem.time = history.getSenddate().toInstant(); | |||
| System.out.println("写入中==========》"); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| System.out.println("写入成功==========》"); | |||
| }*/ | |||
| } | |||
| //从内部移动处出来,value有没有数值都进行插入 | |||
| mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata = JSON.toJSONString(history); | |||
| mem.values = history.getValue(); | |||
| mem.unit = history.getUnit(); | |||
| mem.alarmtype = history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| mem.time = Instant.now(); | |||
| // mem.time = history.getSenddate().toInstant(); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| } | |||
| //amqpService.SendMessage("telegraf",influxvalue); | |||
| // InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); | |||
| // Point point = Point | |||
| // .measurement("topsail4") | |||
| // .addTag("imei", history.getImei()) | |||
| // .addField("batterylevel", history.getBatterylevel()) | |||
| // .time(Instant.now().toEpochMilli(), WritePrecision.MS); | |||
| // WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); | |||
| // Gson gson=new Gson(); | |||
| // history.setTime(null); | |||
| // Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); | |||
| // temperature.time=Instant.now(); | |||
| // writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); | |||
| // influxDBClient.close(); | |||
| } | |||
| public void AddDeviceLog(String imei, String type, String params) { | |||
| DeviceLog deviceLog = new DeviceLog(); | |||
| deviceLog.setImei(imei); | |||
| deviceLog.setOperation(type); | |||
| deviceLog.setParams(params); | |||
| deviceLog.setUpdatetime(new Date()); | |||
| deviceLogMapper.insert(deviceLog); | |||
| } | |||
| } | |||
| @ -0,0 +1,58 @@ | |||
| package com.topsail.influxdb.result; | |||
| public class CodeMsg { | |||
| private int code; | |||
| private String msg; | |||
| //通用的错误码 | |||
| public static CodeMsg SUCCESS = new CodeMsg(0, "success"); | |||
| public static CodeMsg SERVER_ERROR = new CodeMsg(500, "服务端异常"); | |||
| public static CodeMsg MISSING_ERROR = new CodeMsg(500, "参数缺失"); | |||
| public static CodeMsg BIND_ERROR = new CodeMsg(501, "参数校验异常: %s"); | |||
| public static CodeMsg TIME_ERROR = new CodeMsg(502, "时间格式错误,应为 yyyy-MM-dd HH:mm:ss"); | |||
| public static CodeMsg TIMEMISS_ERROR = new CodeMsg(503, "查询时间缺失,应为 yyyy-MM-dd HH:mm:ss"); | |||
| public static CodeMsg CONTROL_ERROR = new CodeMsg(505, "命令下发失败,请检查设备相关信息是否存在或正确以及参数输入是否正确"); | |||
| private CodeMsg() { | |||
| } | |||
| public CodeMsg(int code, String msg) { | |||
| this.code = code; | |||
| this.msg = msg; | |||
| } | |||
| public int getCode() { | |||
| return code; | |||
| } | |||
| public void setCode(int code) { | |||
| this.code = code; | |||
| } | |||
| public String getMsg() { | |||
| return msg; | |||
| } | |||
| public void setMsg(String msg) { | |||
| this.msg = msg; | |||
| } | |||
| /** | |||
| * 返回带参数的错误码 | |||
| * @param args | |||
| * @return | |||
| */ | |||
| public CodeMsg fillArgs(Object... args) { | |||
| int code = this.code; | |||
| String message = String.format(this.msg, args); | |||
| return new CodeMsg(code, message); | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return "CodeMsg [code=" + code + ", msg=" + msg + "]"; | |||
| } | |||
| } | |||
| @ -0,0 +1,95 @@ | |||
| package com.topsail.influxdb.result; | |||
| import com.github.pagehelper.PageInfo; | |||
| import java.util.ArrayList; | |||
| import java.util.HashMap; | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| public class Result<T> { | |||
| private int code; | |||
| private String msg="success"; | |||
| private T data; | |||
| public static void main(String[] args) { | |||
| CodeMsg codeMsg = new CodeMsg(1, "this is a test"); | |||
| //Result<CodeMsg> result = Result.success(codeMsg);//输出Result [code=0, msg=null, data=CodeMsg [code=1, msg=this is a test]] | |||
| Result<CodeMsg> result1 = new Result(codeMsg);//输出Result [code=1, msg=this is a test, data=null] | |||
| System.out.println(result1.toString()); | |||
| } | |||
| /** | |||
| * 成功时候的调用 | |||
| * */ | |||
| public static<T> Result<T> success(T data){ | |||
| return new Result<T>(data); | |||
| } | |||
| /** | |||
| * 失败时候的调用 | |||
| * */ | |||
| public static <T> Result<T> error(CodeMsg codeMsg){ | |||
| return new Result<T>(codeMsg); | |||
| } | |||
| private Result(T data) { | |||
| this.data = data; | |||
| } | |||
| private Result(int code, String msg) { | |||
| this.code = code; | |||
| this.msg = msg; | |||
| } | |||
| private Result(CodeMsg codeMsg) { | |||
| if(codeMsg != null) { | |||
| this.code = codeMsg.getCode(); | |||
| this.msg = codeMsg.getMsg(); | |||
| } | |||
| } | |||
| /** | |||
| *分页之后的统一返回对象 | |||
| * @param t | |||
| * @param <T> | |||
| * @return | |||
| */ | |||
| public static<T> Map<String,Object> returnPageMap(List<T> t){ | |||
| PageInfo<T> pageInfo=new PageInfo(t); | |||
| int count=(int)pageInfo.getTotal(); | |||
| Map<String,Object> map=new HashMap<>(); | |||
| map.put("list", new ArrayList(pageInfo.getList())); | |||
| map.put("count",count); | |||
| return map; | |||
| } | |||
| public int getCode() { | |||
| return code; | |||
| } | |||
| public void setCode(int code) { | |||
| this.code = code; | |||
| } | |||
| public String getMsg() { | |||
| return msg; | |||
| } | |||
| public void setMsg(String msg) { | |||
| this.msg = msg; | |||
| } | |||
| public T getData() { | |||
| return data; | |||
| } | |||
| public void setData(T data) { | |||
| this.data = data; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return "Result [code=" + code + ", msg=" + msg + ", data=" + data + "]"; | |||
| } | |||
| } | |||
| @ -0,0 +1,238 @@ | |||
| package com.topsail.influxdb.service; | |||
| import com.alibaba.fastjson.JSON; | |||
| import com.alibaba.fastjson.JSONObject; | |||
| import com.influxdb.client.InfluxDBClient; | |||
| import com.influxdb.client.InfluxDBClientFactory; | |||
| import com.influxdb.client.WriteApi; | |||
| import com.influxdb.client.domain.WritePrecision; | |||
| import com.influxdb.query.FluxRecord; | |||
| import com.influxdb.query.FluxTable; | |||
| import com.topsail.influxdb.entity.DeviceBelongInfo; | |||
| import com.topsail.influxdb.entity.DeviceHistoryData; | |||
| import com.topsail.influxdb.mapper.DeviceInfoMapper; | |||
| import com.topsail.influxdb.model.DeviceDataInfluxData; | |||
| import com.topsail.influxdb.pojo.History; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import org.springframework.util.StringUtils; | |||
| import java.text.ParseException; | |||
| import java.text.SimpleDateFormat; | |||
| import java.time.Instant; | |||
| import java.util.ArrayList; | |||
| import java.util.Collections; | |||
| import java.util.List; | |||
| import java.util.TimeZone; | |||
| @Service | |||
| public class DeviceDataService { | |||
| public static final Logger LOG = LoggerFactory.getLogger(DeviceDataService.class); | |||
| @Autowired | |||
| DeviceInfoMapper deviceInfoMapper; | |||
| /** | |||
| * 根据设备号查询设备历史数据 | |||
| * | |||
| * @param uid | |||
| * @param pageNo | |||
| * @param pageSize | |||
| * @param startTime | |||
| * @param endTime | |||
| * @param imei | |||
| * @return | |||
| */ | |||
| public List<DeviceHistoryData> getDeviceHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, String imei) { | |||
| String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| String bucket = "iot"; | |||
| String org = "shengdilan"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| StringBuffer query = new StringBuffer(); | |||
| query.append("from(bucket: \"iot\") "); | |||
| if (startTime != null && endTime != null) { | |||
| SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); | |||
| newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 | |||
| String start = null; | |||
| try { | |||
| start = newFormat.format(oldFormat.parse(startTime)); | |||
| String stop = newFormat.format(oldFormat.parse(endTime)); | |||
| query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); | |||
| } catch (ParseException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| } else { | |||
| query.append("|> range(start: -36h)"); | |||
| } | |||
| query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"jsondata\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); | |||
| if (pageNo != null && pageSize != null) { | |||
| query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNo - 1)); | |||
| } | |||
| query.append(" |> yield(name: \"last\")"); | |||
| System.out.println("查询语句==========:" + query); | |||
| List<FluxTable> tables = client.getQueryApi().query(query.toString(), org); | |||
| List<DeviceHistoryData> rerurnList = new ArrayList<>(); | |||
| for (FluxTable fluxTable : tables) { | |||
| List<FluxRecord> records = fluxTable.getRecords(); | |||
| for (FluxRecord fluxRecord : records) { | |||
| String value = (String) fluxRecord.getValueByKey("_value"); | |||
| DeviceHistoryData data = JSONObject.parseObject(value, DeviceHistoryData.class); | |||
| Integer singalstrength = (Integer) JSONObject.parseObject(value).get("singalstrength"); | |||
| data.setSignalStrength(singalstrength); | |||
| data.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format((Double.parseDouble(data.getTime())))); | |||
| rerurnList.add(data); | |||
| } | |||
| } | |||
| client.close(); | |||
| Collections.reverse(rerurnList); | |||
| return rerurnList; | |||
| } | |||
| //@Autowired | |||
| //@Qualifier("inInfluxdbMetricsRepository") | |||
| //private MetricsRepository<HistoryWithBLOBs> metricStore; | |||
| //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); | |||
| /** | |||
| * 存储设备数据到influxdb | |||
| * | |||
| * @param history | |||
| */ | |||
| public void saveDeviceDataToInfluxdb(History history) { | |||
| if (history.getSenddate() == null) { | |||
| return; | |||
| } | |||
| if (history == null || (StringUtils.isEmpty(history.getImei()))) { | |||
| return; | |||
| } | |||
| //查询设备的所属信息 | |||
| DeviceBelongInfo deviceBelongInfo = getDeviceBelongInfo(history.getImei().trim()); | |||
| if (deviceBelongInfo == null) { | |||
| return; | |||
| } | |||
| history.setDeviceBelongInfo(deviceBelongInfo.getDeviceBelongInfo()); | |||
| history.setHouseId(deviceBelongInfo.getHouseId()); | |||
| System.out.println("设备所属信息111111111111==========:" + deviceBelongInfo); | |||
| String influxvalue = "iot,imei=" + history.getImei() + " press=" + history.getSampledata() + " " + history.getTime().getTime(); | |||
| String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| String bucket = "iot"; | |||
| String org = "shengdilan"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| DeviceDataInfluxData mem = new DeviceDataInfluxData(); | |||
| mem.imei = history.getImei(); | |||
| String value = history.getValue(); | |||
| if (value != null && !value.equals("")) { | |||
| String[] values = value.split(","); | |||
| mem.value1 = 0; | |||
| mem.value2 = 0; | |||
| mem.value3 = 0; | |||
| mem.value4 = 0; | |||
| try { | |||
| if (values.length > 0) { | |||
| mem.value1 = Double.parseDouble(values[0]); | |||
| } | |||
| if (values.length > 1) { | |||
| mem.value2 = Double.parseDouble(values[1]); | |||
| } | |||
| if (values.length > 2) { | |||
| mem.value3 = Double.parseDouble(values[2]); | |||
| } | |||
| if (values.length > 3) { | |||
| mem.value4 = Double.parseDouble(values[4]); | |||
| } | |||
| } catch (Exception e) { | |||
| LOG.info(e.getMessage()); | |||
| } | |||
| /* mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata=JSON.toJSONString(history); | |||
| mem.values=history.getValue(); | |||
| mem.unit=history.getUnit(); | |||
| mem.alarmtype=history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| //mem.time = Instant.now(); | |||
| mem.time = history.getSenddate().toInstant(); | |||
| System.out.println("写入中==========》"); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| System.out.println("写入成功==========》"); | |||
| }*/ | |||
| } | |||
| //从内部移动处出来,value有没有数值都进行插入 | |||
| mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata = JSON.toJSONString(history); | |||
| mem.values = history.getValue(); | |||
| mem.unit = history.getUnit(); | |||
| mem.alarmtype = history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| mem.time = Instant.now(); | |||
| // mem.houseId = deviceBelongInfo != null ? deviceBelongInfo.getHouseId() : null; | |||
| // mem.deviceBelongInfo = deviceBelongInfo != null ? deviceBelongInfo.getDeviceBelongInfo() : null; | |||
| //mem.time = history.getSenddate().toInstant(); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| } | |||
| System.out.println("写入成功==========》" + history.getImei()); | |||
| //amqpService.SendMessage("telegraf",influxvalue); | |||
| // InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); | |||
| // Point point = Point | |||
| // .measurement("topsail4") | |||
| // .addTag("imei", history.getImei()) | |||
| // .addField("batterylevel", history.getBatterylevel()) | |||
| // .time(Instant.now().toEpochMilli(), WritePrecision.MS); | |||
| // WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); | |||
| // Gson gson=new Gson(); | |||
| // history.setTime(null); | |||
| // Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); | |||
| // temperature.time=Instant.now(); | |||
| // writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); | |||
| // influxDBClient.close(); | |||
| } | |||
| // public void AddDeviceLog(String imei, String type, String params) { | |||
| // DeviceLog deviceLog = new DeviceLog(); | |||
| // deviceLog.setImei(imei); | |||
| // deviceLog.setOperation(type); | |||
| // deviceLog.setParams(params); | |||
| // deviceLog.setUpdatetime(new Date()); | |||
| // deviceLogMapper.insert(deviceLog); | |||
| // } | |||
| /** | |||
| * 查询设备的所属信息 | |||
| */ | |||
| public DeviceBelongInfo getDeviceBelongInfo(String imei) { | |||
| return deviceInfoMapper.queryDeviceBelongInfo(imei); | |||
| } | |||
| /** | |||
| * 删除掉所有的Influxdb数据 | |||
| */ | |||
| public void deleteDeviceData() { | |||
| // String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| // String bucket = "iot"; | |||
| // String org = "shengdilan"; | |||
| // InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| // StringBuffer query = new StringBuffer(); | |||
| // query.append("from(bucket: \"iot\") "); | |||
| // query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\")")); | |||
| // query.append("|> range(start: -36d)"); | |||
| // System.out.println("查询语句==========:" + query); | |||
| // DeleteApi deleteApi = client.getDeleteApi(); | |||
| // OffsetDateTime start = OffsetDateTime.of(2020, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); | |||
| // OffsetDateTime stop = OffsetDateTime.of(2026, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); | |||
| // try { | |||
| // // Delete data with specific time range | |||
| // deleteApi.delete(start, stop, "", bucket, org); | |||
| // System.out.println("Data deleted successfully"); | |||
| // } catch (Exception e) { | |||
| // e.printStackTrace(); | |||
| // } finally { | |||
| // client.close(); | |||
| // } | |||
| } | |||
| } | |||
| @ -0,0 +1,285 @@ | |||
| package com.topsail.influxdb.service; | |||
| import com.alibaba.fastjson.JSON; | |||
| import com.alibaba.fastjson.JSONObject; | |||
| import com.influxdb.client.InfluxDBClient; | |||
| import com.influxdb.client.InfluxDBClientFactory; | |||
| import com.influxdb.client.WriteApi; | |||
| import com.influxdb.client.domain.WritePrecision; | |||
| import com.influxdb.query.FluxRecord; | |||
| import com.influxdb.query.FluxTable; | |||
| import com.topsail.influxdb.entity.DeviceBelongInfo; | |||
| import com.topsail.influxdb.entity.DeviceHistoryData; | |||
| import com.topsail.influxdb.entity.DeviceLogData; | |||
| import com.topsail.influxdb.mapper.DeviceInfoMapper; | |||
| import com.topsail.influxdb.model.DeviceDataInfluxData; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import org.springframework.util.StringUtils; | |||
| import java.text.ParseException; | |||
| import java.text.SimpleDateFormat; | |||
| import java.time.Instant; | |||
| import java.util.ArrayList; | |||
| import java.util.Collections; | |||
| import java.util.List; | |||
| import java.util.TimeZone; | |||
| @Service | |||
| public class DeviceLogService { | |||
| public static final Logger LOG = LoggerFactory.getLogger(DeviceLogService.class); | |||
| @Autowired | |||
| DeviceInfoMapper deviceInfoMapper; | |||
| /** | |||
| * 根据设备号查询设备历史数据 | |||
| * | |||
| * @param uid | |||
| * @param pageNo | |||
| * @param pageSize | |||
| * @param startTime | |||
| * @param endTime | |||
| * @param imei | |||
| * @return | |||
| */ | |||
| public List<DeviceHistoryData> getDeviceHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, String imei) { | |||
| String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| String bucket = "iot"; | |||
| String org = "shengdilan"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| StringBuffer query = new StringBuffer(); | |||
| query.append("from(bucket: \"iot\") "); | |||
| if (startTime != null && endTime != null) { | |||
| SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); | |||
| newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 | |||
| String start = null; | |||
| try { | |||
| start = newFormat.format(oldFormat.parse(startTime)); | |||
| String stop = newFormat.format(oldFormat.parse(endTime)); | |||
| query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); | |||
| } catch (ParseException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| } else { | |||
| query.append("|> range(start: -36h)"); | |||
| } | |||
| query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"jsondata\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); | |||
| if (pageNo != null && pageSize != null) { | |||
| query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNo - 1)); | |||
| } | |||
| query.append(" |> yield(name: \"last\")"); | |||
| System.out.println("查询语句==========:" + query); | |||
| List<FluxTable> tables = client.getQueryApi().query(query.toString(), org); | |||
| List<DeviceHistoryData> rerurnList = new ArrayList<>(); | |||
| for (FluxTable fluxTable : tables) { | |||
| List<FluxRecord> records = fluxTable.getRecords(); | |||
| for (FluxRecord fluxRecord : records) { | |||
| String value = (String) fluxRecord.getValueByKey("_value"); | |||
| DeviceHistoryData data = JSONObject.parseObject(value, DeviceHistoryData.class); | |||
| Integer singalstrength = (Integer) JSONObject.parseObject(value).get("singalstrength"); | |||
| data.setSignalStrength(singalstrength); | |||
| data.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format((Double.parseDouble(data.getTime())))); | |||
| rerurnList.add(data); | |||
| } | |||
| } | |||
| client.close(); | |||
| Collections.reverse(rerurnList); | |||
| return rerurnList; | |||
| } | |||
| //@Autowired | |||
| //@Qualifier("inInfluxdbMetricsRepository") | |||
| //private MetricsRepository<HistoryWithBLOBs> metricStore; | |||
| //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); | |||
| /** | |||
| * 存储设备数据到influxdb | |||
| * | |||
| * @param deviceLogData | |||
| */ | |||
| public void saveDeviceLogToInfluxdb(DeviceLogData deviceLogData) { | |||
| if (deviceLogData == null || (StringUtils.isEmpty(deviceLogData.getImei()))) { | |||
| return; | |||
| } | |||
| String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| String bucket = "devicelog"; | |||
| String org = "shengdilan"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| DeviceDataInfluxData mem = new DeviceDataInfluxData(); | |||
| mem.imei = history.getImei(); | |||
| String value = history.getValue(); | |||
| if (value != null && !value.equals("")) { | |||
| String[] values = value.split(","); | |||
| mem.value1 = 0; | |||
| mem.value2 = 0; | |||
| mem.value3 = 0; | |||
| mem.value4 = 0; | |||
| try { | |||
| if (values.length > 0) { | |||
| mem.value1 = Double.parseDouble(values[0]); | |||
| } | |||
| if (values.length > 1) { | |||
| mem.value2 = Double.parseDouble(values[1]); | |||
| } | |||
| if (values.length > 2) { | |||
| mem.value3 = Double.parseDouble(values[2]); | |||
| } | |||
| if (values.length > 3) { | |||
| mem.value4 = Double.parseDouble(values[4]); | |||
| } | |||
| } catch (Exception e) { | |||
| LOG.info(e.getMessage()); | |||
| } | |||
| /* mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata=JSON.toJSONString(history); | |||
| mem.values=history.getValue(); | |||
| mem.unit=history.getUnit(); | |||
| mem.alarmtype=history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| //mem.time = Instant.now(); | |||
| mem.time = history.getSenddate().toInstant(); | |||
| System.out.println("写入中==========》"); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| System.out.println("写入成功==========》"); | |||
| }*/ | |||
| } | |||
| //从内部移动处出来,value有没有数值都进行插入 | |||
| mem.battery = history.getBatterylevel(); | |||
| mem.sigal = history.getSingalstrength(); | |||
| mem.jsondata = JSON.toJSONString(history); | |||
| mem.values = history.getValue(); | |||
| mem.unit = history.getUnit(); | |||
| mem.alarmtype = history.getAlarmtype(); | |||
| //mem.sampleData = history.getSampledata(); | |||
| mem.time = Instant.now(); | |||
| // mem.houseId = deviceBelongInfo != null ? deviceBelongInfo.getHouseId() : null; | |||
| // mem.deviceBelongInfo = deviceBelongInfo != null ? deviceBelongInfo.getDeviceBelongInfo() : null; | |||
| //mem.time = history.getSenddate().toInstant(); | |||
| try (WriteApi writeApi = client.getWriteApi()) { | |||
| writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); | |||
| } | |||
| System.out.println("写入成功==========》" + history.getImei()); | |||
| //amqpService.SendMessage("telegraf",influxvalue); | |||
| // InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); | |||
| // Point point = Point | |||
| // .measurement("topsail4") | |||
| // .addTag("imei", history.getImei()) | |||
| // .addField("batterylevel", history.getBatterylevel()) | |||
| // .time(Instant.now().toEpochMilli(), WritePrecision.MS); | |||
| // WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); | |||
| // Gson gson=new Gson(); | |||
| // history.setTime(null); | |||
| // Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); | |||
| // temperature.time=Instant.now(); | |||
| // writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); | |||
| // influxDBClient.close(); | |||
| } | |||
| // public void AddDeviceLog(String imei, String type, String params) { | |||
| // DeviceLog deviceLog = new DeviceLog(); | |||
| // deviceLog.setImei(imei); | |||
| // deviceLog.setOperation(type); | |||
| // deviceLog.setParams(params); | |||
| // deviceLog.setUpdatetime(new Date()); | |||
| // deviceLogMapper.insert(deviceLog); | |||
| // } | |||
| /** | |||
| * 查询设备的所属信息 | |||
| */ | |||
| public DeviceBelongInfo getDeviceBelongInfo(String imei) { | |||
| return deviceInfoMapper.queryDeviceBelongInfo(imei); | |||
| } | |||
| /** | |||
| * 删除掉所有的Influxdb数据 | |||
| */ | |||
| public void deleteDeviceLog() { | |||
| // String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| // String bucket = "devicelog"; | |||
| // String org = "shengdilan"; | |||
| // InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| // StringBuffer query = new StringBuffer(); | |||
| // query.append("from(bucket: \"devicelog\") "); | |||
| // query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"devicelog\")")); | |||
| // query.append("|> range(start: -36d)"); | |||
| // System.out.println("查询语句==========:" + query); | |||
| // DeleteApi deleteApi = client.getDeleteApi(); | |||
| // OffsetDateTime start = OffsetDateTime.of(2020, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); | |||
| // OffsetDateTime stop = OffsetDateTime.of(2026, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); | |||
| // try { | |||
| // // Delete data with specific time range | |||
| // deleteApi.delete(start, stop, "", bucket, org); | |||
| // System.out.println("Data deleted successfully"); | |||
| // } catch (Exception e) { | |||
| // e.printStackTrace(); | |||
| // } finally { | |||
| // client.close(); | |||
| // } | |||
| } | |||
| /** | |||
| * 查询设备下发命令日志信息 | |||
| * | |||
| * @param pageNode | |||
| * @param pageSize | |||
| * @param startTime | |||
| * @param endTime | |||
| * @param result 下发结果 | |||
| * @param imei 设备号 | |||
| * @param supplierId 供应商id | |||
| * @param companyId 公司id | |||
| * @param operator 操作人 | |||
| * @param houseId 房间id | |||
| * @return | |||
| */ | |||
| public List<DeviceLogData> getPageDeviceLog(Integer pageNode, Integer pageSize, String startTime, String endTime, String result, String imei, String supplierId, String companyId, String operator, Integer houseId) { | |||
| String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; | |||
| String bucket = "devicelog"; | |||
| String org = "shengdilan"; | |||
| InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); | |||
| StringBuffer query = new StringBuffer(); | |||
| query.append("from(bucket: \"devicelog\") "); | |||
| if (startTime != null && endTime != null) { | |||
| SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||
| SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); | |||
| newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 | |||
| String start = null; | |||
| try { | |||
| start = newFormat.format(oldFormat.parse(startTime)); | |||
| String stop = newFormat.format(oldFormat.parse(endTime)); | |||
| query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); | |||
| } catch (ParseException e) { | |||
| e.printStackTrace(); | |||
| } | |||
| } else { | |||
| query.append("|> range(start: -36h)"); | |||
| } | |||
| query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"devicelog\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"logjson\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); | |||
| if (pageNode != null && pageSize != null) { | |||
| query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNode - 1)); | |||
| } | |||
| query.append(" |> yield(name: \"last\")"); | |||
| System.out.println("查询语句==========:" + query); | |||
| List<FluxTable> tables = client.getQueryApi().query(query.toString(), org); | |||
| List<DeviceLogData> rerurnList = new ArrayList<>(); | |||
| for (FluxTable fluxTable : tables) { | |||
| List<FluxRecord> records = fluxTable.getRecords(); | |||
| for (FluxRecord fluxRecord : records) { | |||
| String value = (String) fluxRecord.getValueByKey("_value"); | |||
| DeviceLogData data = JSONObject.parseObject(value, DeviceLogData.class); | |||
| rerurnList.add(data); | |||
| } | |||
| } | |||
| client.close(); | |||
| Collections.reverse(rerurnList); | |||
| return rerurnList; | |||
| } | |||
| } | |||