123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?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.huaxu.zoniot.dao.DeviceInfoPushConfigMapper">
- <resultMap id="BaseResultMap" type="com.huaxu.zoniot.entity.DeviceInfoPushConfig">
- <!--@mbg.generated-->
- <!--@Table sc_device_info_push_config-->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="receiver_name" jdbcType="VARCHAR" property="receiverName" />
- <result column="push_method" jdbcType="VARCHAR" property="pushMethod" />
- <result column="push_customers" jdbcType="VARCHAR" property="pushCustomers" />
- <result column="push_communitys" jdbcType="VARCHAR" property="pushCommunitys" />
- <result column="push_buildings" jdbcType="VARCHAR" property="pushBuildings" />
- <result column="push_channels" jdbcType="VARCHAR" property="pushChannels" />
- <result column="push_device_types" jdbcType="VARCHAR" property="pushDeviceTypes" />
- <result column="push_url" jdbcType="VARCHAR" property="pushUrl" />
- <result column="period" jdbcType="VARCHAR" property="period" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_by" jdbcType="VARCHAR" property="createBy" />
- <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
- <result column="date_create" jdbcType="TIMESTAMP" property="dateCreate" />
- <result column="date_update" jdbcType="TIMESTAMP" property="dateUpdate" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id, receiver_name, push_method, push_customers, push_communitys, push_buildings,
- push_channels, push_device_types, push_url, period, `status`, create_by, update_by,
- date_create, date_update
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--@mbg.generated-->
- select
- <include refid="Base_Column_List" />
- from sc_device_info_push_config
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--@mbg.generated-->
- delete from sc_device_info_push_config
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.huaxu.zoniot.entity.DeviceInfoPushConfig" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_device_info_push_config (receiver_name, push_method, push_customers,
- push_communitys, push_buildings, push_channels,
- push_device_types, push_url, period,
- `status`, create_by, update_by,
- date_create, date_update)
- values (#{receiverName,jdbcType=VARCHAR}, #{pushMethod,jdbcType=VARCHAR}, #{pushCustomers,jdbcType=VARCHAR},
- #{pushCommunitys,jdbcType=VARCHAR}, #{pushBuildings,jdbcType=VARCHAR}, #{pushChannels,jdbcType=VARCHAR},
- #{pushDeviceTypes,jdbcType=VARCHAR}, #{pushUrl,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR},
- #{status,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
- #{dateCreate,jdbcType=TIMESTAMP}, #{dateUpdate,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.huaxu.zoniot.entity.DeviceInfoPushConfig" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_device_info_push_config
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="receiverName != null">
- receiver_name,
- </if>
- <if test="pushMethod != null">
- push_method,
- </if>
- <if test="pushCustomers != null">
- push_customers,
- </if>
- <if test="pushCommunitys != null">
- push_communitys,
- </if>
- <if test="pushBuildings != null">
- push_buildings,
- </if>
- <if test="pushChannels != null">
- push_channels,
- </if>
- <if test="pushDeviceTypes != null">
- push_device_types,
- </if>
- <if test="pushUrl != null">
- push_url,
- </if>
- <if test="period != null">
- period,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="dateCreate != null">
- date_create,
- </if>
- <if test="dateUpdate != null">
- date_update,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="receiverName != null">
- #{receiverName,jdbcType=VARCHAR},
- </if>
- <if test="pushMethod != null">
- #{pushMethod,jdbcType=VARCHAR},
- </if>
- <if test="pushCustomers != null">
- #{pushCustomers,jdbcType=VARCHAR},
- </if>
- <if test="pushCommunitys != null">
- #{pushCommunitys,jdbcType=VARCHAR},
- </if>
- <if test="pushBuildings != null">
- #{pushBuildings,jdbcType=VARCHAR},
- </if>
- <if test="pushChannels != null">
- #{pushChannels,jdbcType=VARCHAR},
- </if>
- <if test="pushDeviceTypes != null">
- #{pushDeviceTypes,jdbcType=VARCHAR},
- </if>
- <if test="pushUrl != null">
- #{pushUrl,jdbcType=VARCHAR},
- </if>
- <if test="period != null">
- #{period,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=VARCHAR},
- </if>
- <if test="updateBy != null">
- #{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="dateCreate != null">
- #{dateCreate,jdbcType=TIMESTAMP},
- </if>
- <if test="dateUpdate != null">
- #{dateUpdate,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.huaxu.zoniot.entity.DeviceInfoPushConfig">
- <!--@mbg.generated-->
- update sc_device_info_push_config
- <set>
- <if test="receiverName != null">
- receiver_name = #{receiverName,jdbcType=VARCHAR},
- </if>
- <if test="pushMethod != null">
- push_method = #{pushMethod,jdbcType=VARCHAR},
- </if>
- <if test="pushCustomers != null">
- push_customers = #{pushCustomers,jdbcType=VARCHAR},
- </if>
- <if test="pushCommunitys != null">
- push_communitys = #{pushCommunitys,jdbcType=VARCHAR},
- </if>
- <if test="pushBuildings != null">
- push_buildings = #{pushBuildings,jdbcType=VARCHAR},
- </if>
- <if test="pushChannels != null">
- push_channels = #{pushChannels,jdbcType=VARCHAR},
- </if>
- <if test="pushDeviceTypes != null">
- push_device_types = #{pushDeviceTypes,jdbcType=VARCHAR},
- </if>
- <if test="pushUrl != null">
- push_url = #{pushUrl,jdbcType=VARCHAR},
- </if>
- <if test="period != null">
- period = #{period,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- `status` = #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- create_by = #{createBy,jdbcType=VARCHAR},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="dateCreate != null">
- date_create = #{dateCreate,jdbcType=TIMESTAMP},
- </if>
- <if test="dateUpdate != null">
- date_update = #{dateUpdate,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.huaxu.zoniot.entity.DeviceInfoPushConfig">
- <!--@mbg.generated-->
- update sc_device_info_push_config
- set receiver_name = #{receiverName,jdbcType=VARCHAR},
- push_method = #{pushMethod,jdbcType=VARCHAR},
- push_customers = #{pushCustomers,jdbcType=VARCHAR},
- push_communitys = #{pushCommunitys,jdbcType=VARCHAR},
- push_buildings = #{pushBuildings,jdbcType=VARCHAR},
- push_channels = #{pushChannels,jdbcType=VARCHAR},
- push_device_types = #{pushDeviceTypes,jdbcType=VARCHAR},
- push_url = #{pushUrl,jdbcType=VARCHAR},
- period = #{period,jdbcType=VARCHAR},
- `status` = #{status,jdbcType=INTEGER},
- create_by = #{createBy,jdbcType=VARCHAR},
- update_by = #{updateBy,jdbcType=VARCHAR},
- date_create = #{dateCreate,jdbcType=TIMESTAMP},
- date_update = #{dateUpdate,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="findConfigById" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from
- sc_device_info_push_config
- where status = 1
- and id = #{configId}
- </select>
- </mapper>
|