12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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.operation.ChannelReviewMapper" >
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.operation.ChannelReview" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="channel" property="channel" jdbcType="VARCHAR" />
- <result column="audit_option" property="auditOption" jdbcType="VARCHAR" />
- <result column="left_level" property="leftLevel" jdbcType="INTEGER" />
- <result column="audit_version" property="auditVersion" jdbcType="VARCHAR" />
- <result column="begin_time" property="beginTime" jdbcType="TIMESTAMP" />
- <result column="end_time" property="endTime" jdbcType="TIMESTAMP" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, channel, audit_option, left_level, audit_version, begin_time, end_time, create_time
- </sql>
- <select id="getChannelReviewList" resultMap="BaseResultMap" parameterType="map">
- select
- <include refid="Base_Column_List" />
- from channel
- <where>
- <if test="channel !=null and channel !=''">
- and channel = #{channel,jdbcType=VARCHAR}
- </if>
- </where>
- </select>
- <select id="getChannelReviewById" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from channel
- where id = #{id,jdbcType=INTEGER}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.operation.ChannelReview" >
- insert into channel (id, channel, audit_option,
- left_level, audit_version, begin_time,
- end_time, create_time)
- values (#{id,jdbcType=INTEGER}, #{channel,jdbcType=VARCHAR}, #{auditOption,jdbcType=VARCHAR},
- #{leftLevel,jdbcType=INTEGER}, #{auditVersion,jdbcType=VARCHAR}, #{beginTime,jdbcType=TIMESTAMP},
- #{endTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP})
- </insert>
- <update id="updateById" parameterType="com.juxiao.xchat.module.xbd.domain.operation.ChannelReview" >
- update channel
- set
- channel = #{channel,jdbcType=VARCHAR},
- audit_option = #{auditOption,jdbcType=VARCHAR},
- left_level = #{leftLevel,jdbcType=INTEGER},
- audit_version = #{auditVersion,jdbcType=VARCHAR},
- begin_time = #{beginTime,jdbcType=TIMESTAMP},
- end_time = #{endTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <delete id="deleteById" parameterType="java.lang.Integer" >
- delete from channel
- where id = #{id,jdbcType=INTEGER}
- </delete>
- </mapper>
|