123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?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.juxiao.xchat.module.xbd.mapper.room.RoomOpenHistMapper">
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.room.RoomOpenHist" >
- <id column="hist_id" property="histId" jdbcType="VARCHAR" />
- <result column="uid" property="uid" jdbcType="BIGINT" />
- <result column="room_id" property="roomId" jdbcType="BIGINT" />
- <result column="meeting_name" property="meetingName" jdbcType="VARCHAR" />
- <result column="type" property="type" jdbcType="TINYINT" />
- <result column="reward_money" property="rewardMoney" jdbcType="BIGINT" />
- <result column="serv_dura" property="servDura" jdbcType="INTEGER" />
- <result column="close_type" property="closeType" jdbcType="TINYINT" />
- <result column="open_time" property="openTime" jdbcType="TIMESTAMP" />
- <result column="close_time" property="closeTime" jdbcType="TIMESTAMP" />
- <result column="dura" property="dura" jdbcType="DOUBLE" />
- </resultMap>
- <sql id="Base_Column_List" >
- hist_id, uid, room_id, meeting_name, type, reward_money, serv_dura, close_type, open_time,
- close_time, dura
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from room_open_hist
- where hist_id = #{histId,jdbcType=VARCHAR}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.room.RoomOpenHist" >
- insert into room_open_hist (hist_id, uid, room_id,
- meeting_name, type, reward_money,
- serv_dura, close_type, open_time,
- close_time, dura)
- values (#{histId,jdbcType=VARCHAR}, #{uid,jdbcType=BIGINT}, #{roomId,jdbcType=BIGINT},
- #{meetingName,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{rewardMoney,jdbcType=BIGINT},
- #{servDura,jdbcType=INTEGER}, #{closeType,jdbcType=TINYINT}, #{openTime,jdbcType=TIMESTAMP},
- #{closeTime,jdbcType=TIMESTAMP}, #{dura,jdbcType=DOUBLE})
- </insert>
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.room.RoomOpenHist" >
- insert into room_open_hist
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="histId != null" >
- hist_id,
- </if>
- <if test="uid != null" >
- uid,
- </if>
- <if test="roomId != null" >
- room_id,
- </if>
- <if test="meetingName != null" >
- meeting_name,
- </if>
- <if test="type != null" >
- type,
- </if>
- <if test="rewardMoney != null" >
- reward_money,
- </if>
- <if test="servDura != null" >
- serv_dura,
- </if>
- <if test="closeType != null" >
- close_type,
- </if>
- <if test="openTime != null" >
- open_time,
- </if>
- <if test="closeTime != null" >
- close_time,
- </if>
- <if test="dura != null" >
- dura,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="histId != null" >
- #{histId,jdbcType=VARCHAR},
- </if>
- <if test="uid != null" >
- #{uid,jdbcType=BIGINT},
- </if>
- <if test="roomId != null" >
- #{roomId,jdbcType=BIGINT},
- </if>
- <if test="meetingName != null" >
- #{meetingName,jdbcType=VARCHAR},
- </if>
- <if test="type != null" >
- #{type,jdbcType=TINYINT},
- </if>
- <if test="rewardMoney != null" >
- #{rewardMoney,jdbcType=BIGINT},
- </if>
- <if test="servDura != null" >
- #{servDura,jdbcType=INTEGER},
- </if>
- <if test="closeType != null" >
- #{closeType,jdbcType=TINYINT},
- </if>
- <if test="openTime != null" >
- #{openTime,jdbcType=TIMESTAMP},
- </if>
- <if test="closeTime != null" >
- #{closeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dura != null" >
- #{dura,jdbcType=DOUBLE},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.juxiao.xchat.module.xbd.domain.room.RoomOpenHist" >
- update room_open_hist
- <set >
- <if test="uid != null" >
- uid = #{uid,jdbcType=BIGINT},
- </if>
- <if test="roomId != null" >
- room_id = #{roomId,jdbcType=BIGINT},
- </if>
- <if test="meetingName != null" >
- meeting_name = #{meetingName,jdbcType=VARCHAR},
- </if>
- <if test="type != null" >
- type = #{type,jdbcType=TINYINT},
- </if>
- <if test="rewardMoney != null" >
- reward_money = #{rewardMoney,jdbcType=BIGINT},
- </if>
- <if test="servDura != null" >
- serv_dura = #{servDura,jdbcType=INTEGER},
- </if>
- <if test="closeType != null" >
- close_type = #{closeType,jdbcType=TINYINT},
- </if>
- <if test="openTime != null" >
- open_time = #{openTime,jdbcType=TIMESTAMP},
- </if>
- <if test="closeTime != null" >
- close_time = #{closeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dura != null" >
- dura = #{dura,jdbcType=DOUBLE},
- </if>
- </set>
- where hist_id = #{histId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.juxiao.xchat.module.xbd.domain.room.RoomOpenHist" >
- update room_open_hist
- set uid = #{uid,jdbcType=BIGINT},
- room_id = #{roomId,jdbcType=BIGINT},
- meeting_name = #{meetingName,jdbcType=VARCHAR},
- type = #{type,jdbcType=TINYINT},
- reward_money = #{rewardMoney,jdbcType=BIGINT},
- serv_dura = #{servDura,jdbcType=INTEGER},
- close_type = #{closeType,jdbcType=TINYINT},
- open_time = #{openTime,jdbcType=TIMESTAMP},
- close_time = #{closeTime,jdbcType=TIMESTAMP},
- dura = #{dura,jdbcType=DOUBLE}
- where hist_id = #{histId,jdbcType=VARCHAR}
- </update>
- </mapper>
|