123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?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.ym.mec.biz.dal.dao.CloudRoomFlowConfigDao">
- <resultMap id="BaseResultMap" type="com.ym.mec.biz.dal.entity.CloudRoomFlowConfig">
- <id column="id_" jdbcType="INTEGER" property="id"/>
- <result column="minute_up_limit_" jdbcType="INTEGER" property="minuteUpLimit"/>
- <result column="price_" jdbcType="DECIMAL" property="price"/>
- <result column="remark_" jdbcType="VARCHAR" property="remark"/>
- <result column="deleted_" jdbcType="INTEGER" property="deleted"/>
- <result column="created_by_" jdbcType="INTEGER" property="createdBy"/>
- <result column="created_time_" jdbcType="TIMESTAMP" property="createdTime"/>
- <result column="updated_by_" jdbcType="INTEGER" property="updatedBy"/>
- <result column="updated_time_" jdbcType="TIMESTAMP" property="updatedTime"/>
- </resultMap>
- <sql id="Base_Column_List">
- id_
- , minute_up_limit_, price_, remark_, deleted_, created_by_, created_time_, updated_by_,
- updated_time_
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from cloud_room_flow_config
- where id_ = #{id,jdbcType=INTEGER}
- </select>
- <select id="queryPage" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from cloud_room_flow_config
- <where>
- deleted_ = 0
- <if test="minuteUp != null">
- and minute_up_limit_ = #{minuteUp}
- </if>
- </where>
- </select>
- <select id="getGroupMinuteUp" resultType="integer">
- select
- minute_up_limit_
- from cloud_room_flow_config
- where deleted_ = 0
- group by minute_up_limit_
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete
- from cloud_room_flow_config
- where id_ = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id_" keyProperty="id" parameterType="com.ym.mec.biz.dal.entity.CloudRoomFlowConfig"
- useGeneratedKeys="true">
- insert into cloud_room_flow_config (minute_up_limit_, price_, remark_,
- deleted_, created_by_, created_time_,
- updated_by_, updated_time_)
- values (#{minuteUpLimit,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR},
- #{deleted,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
- #{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" keyColumn="id_" keyProperty="id"
- parameterType="com.ym.mec.biz.dal.entity.CloudRoomFlowConfig" useGeneratedKeys="true">
- insert into cloud_room_flow_config
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="minuteUpLimit != null">
- minute_up_limit_,
- </if>
- <if test="price != null">
- price_,
- </if>
- <if test="remark != null">
- remark_,
- </if>
- <if test="deleted != null">
- deleted_,
- </if>
- <if test="createdBy != null">
- created_by_,
- </if>
- <if test="createdTime != null">
- created_time_,
- </if>
- <if test="updatedBy != null">
- updated_by_,
- </if>
- <if test="updatedTime != null">
- updated_time_,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="minuteUpLimit != null">
- #{minuteUpLimit,jdbcType=INTEGER},
- </if>
- <if test="price != null">
- #{price,jdbcType=DECIMAL},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- #{deleted,jdbcType=INTEGER},
- </if>
- <if test="createdBy != null">
- #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdTime != null">
- #{createdTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedTime != null">
- #{updatedTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.ym.mec.biz.dal.entity.CloudRoomFlowConfig">
- update cloud_room_flow_config
- <set>
- <if test="minuteUpLimit != null">
- minute_up_limit_ = #{minuteUpLimit,jdbcType=INTEGER},
- </if>
- <if test="price != null">
- price_ = #{price,jdbcType=DECIMAL},
- </if>
- <if test="remark != null">
- remark_ = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- deleted_ = #{deleted,jdbcType=INTEGER},
- </if>
- <if test="createdBy != null">
- created_by_ = #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdTime != null">
- created_time_ = #{createdTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- updated_by_ = #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedTime != null">
- updated_time_ = #{updatedTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id_ = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ym.mec.biz.dal.entity.CloudRoomFlowConfig">
- update cloud_room_flow_config
- set minute_up_limit_ = #{minuteUpLimit,jdbcType=INTEGER},
- price_ = #{price,jdbcType=DECIMAL},
- remark_ = #{remark,jdbcType=VARCHAR},
- deleted_ = #{deleted,jdbcType=INTEGER},
- created_by_ = #{createdBy,jdbcType=VARCHAR},
- created_time_ = #{createdTime,jdbcType=TIMESTAMP},
- updated_by_ = #{updatedBy,jdbcType=VARCHAR},
- updated_time_ = #{updatedTime,jdbcType=TIMESTAMP}
- where id_ = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|