12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?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.bz.smart_city.dao.DeviceInfoPushConfigMapper">
- <resultMap id="BaseResultMap"
- type="com.bz.smart_city.entity.DeviceInfoPushConfig">
- <result 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="BaseColumnSQL">
- 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="findConfigById" resultMap="BaseResultMap">
- select
- <include refid="BaseColumnSQL" />
- from
- sc_device_info_push_config
- where status = 1
- and id = #{configId}
- </select>
- <select id="findAll" resultMap="BaseResultMap">
- select
- <include refid="BaseColumnSQL" />
- from
- sc_device_info_push_config
- where status = 1
- </select>
- </mapper>
|