New file |
| | |
| | | <?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.dy.pipIrrGlobal.daoBa.BaDictMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoBa.BaDict"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table ba_dict--> |
| | | <id column="id" jdbcType="INTEGER" property="id" /> |
| | | <result column="code" jdbcType="VARCHAR" property="code" /> |
| | | <result column="title" jdbcType="VARCHAR" property="title" /> |
| | | <result column="value_type" jdbcType="TINYINT" property="valueType" /> |
| | | <result column="hash_code" jdbcType="VARCHAR" property="hashCode" /> |
| | | <result column="remarks" jdbcType="VARCHAR" property="remarks" /> |
| | | <result column="deleted" jdbcType="BIGINT" property="deleted" /> |
| | | <result column="create_by" jdbcType="INTEGER" property="createBy" /> |
| | | <result column="update_by" jdbcType="INTEGER" property="updateBy" /> |
| | | <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
| | | <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, code, title, value_type, hash_code, remarks, deleted, create_by, update_by, create_time, |
| | | update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ba_dict |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
| | | <!--@mbg.generated--> |
| | | delete from ba_dict |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </delete> |
| | | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pipIrrGlobal.pojoBa.BaDict" useGeneratedKeys="true"> |
| | | <!--@mbg.generated--> |
| | | insert into ba_dict (code, title, value_type, |
| | | hash_code, remarks, deleted, |
| | | create_by, update_by, create_time, |
| | | update_time) |
| | | values (#{code,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{valueType,jdbcType=TINYINT}, |
| | | #{hashCode,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{deleted,jdbcType=BIGINT}, |
| | | #{createBy,jdbcType=INTEGER}, #{updateBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pipIrrGlobal.pojoBa.BaDict" useGeneratedKeys="true"> |
| | | <!--@mbg.generated--> |
| | | insert into ba_dict |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="code != null"> |
| | | code, |
| | | </if> |
| | | <if test="title != null"> |
| | | title, |
| | | </if> |
| | | <if test="valueType != null"> |
| | | value_type, |
| | | </if> |
| | | <if test="hashCode != null"> |
| | | hash_code, |
| | | </if> |
| | | <if test="remarks != null"> |
| | | remarks, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | create_by, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | update_by, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | create_time, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="code != null"> |
| | | #{code,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="title != null"> |
| | | #{title,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="valueType != null"> |
| | | #{valueType,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="hashCode != null"> |
| | | #{hashCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="remarks != null"> |
| | | #{remarks,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | #{deleted,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | #{createBy,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | #{updateBy,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoBa.BaDict"> |
| | | <!--@mbg.generated--> |
| | | update ba_dict |
| | | <set> |
| | | <if test="code != null"> |
| | | code = #{code,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="title != null"> |
| | | title = #{title,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="valueType != null"> |
| | | value_type = #{valueType,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="hashCode != null"> |
| | | hash_code = #{hashCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="remarks != null"> |
| | | remarks = #{remarks,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | deleted = #{deleted,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | create_by = #{createBy,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | update_by = #{updateBy,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoBa.BaDict"> |
| | | <!--@mbg.generated--> |
| | | update ba_dict |
| | | set code = #{code,jdbcType=VARCHAR}, |
| | | title = #{title,jdbcType=VARCHAR}, |
| | | value_type = #{valueType,jdbcType=TINYINT}, |
| | | hash_code = #{hashCode,jdbcType=VARCHAR}, |
| | | remarks = #{remarks,jdbcType=VARCHAR}, |
| | | deleted = #{deleted,jdbcType=BIGINT}, |
| | | create_by = #{createBy,jdbcType=INTEGER}, |
| | | update_by = #{updateBy,jdbcType=INTEGER}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | </mapper> |