123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?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.xinxin.topro.inpnurseservice.mysqlmapper.DicInterventionMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIntervention" >
- <id column="DI_ID" property="diId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DI_NIC_Code" property="diNicCode" jdbcType="VARCHAR" />
- <result column="DI_NIC_Name" property="diNicName" jdbcType="VARCHAR" />
- <result column="DI_PinyinCode" property="diPinyincode" jdbcType="VARCHAR" />
- <result column="DI_WubiCode" property="diWubicode" jdbcType="VARCHAR" />
- <result column="DI_OtherCode" property="diOthercode" jdbcType="VARCHAR" />
- <result column="DI_UserId" property="diUserid" jdbcType="VARCHAR" />
- <result column="DI_UpdateTime" property="diUpdatetime" jdbcType="TIMESTAMP" />
- <result column="DI_IsDel" property="diIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- DI_ID, HI_ID, DI_NIC_Code, DI_NIC_Name, DI_PinyinCode, DI_WubiCode, DI_OtherCode,
- DI_UserId, DI_UpdateTime, DI_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_intervention
- where DI_ID = #{diId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_intervention
- where DI_ID = #{diId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIntervention" >
- insert into dic_intervention (DI_ID, HI_ID, DI_NIC_Code,
- DI_NIC_Name, DI_PinyinCode, DI_WubiCode,
- DI_OtherCode, DI_UserId, DI_UpdateTime,
- DI_IsDel)
- values (#{diId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{diNicCode,jdbcType=VARCHAR},
- #{diNicName,jdbcType=VARCHAR}, #{diPinyincode,jdbcType=VARCHAR}, #{diWubicode,jdbcType=VARCHAR},
- #{diOthercode,jdbcType=VARCHAR}, #{diUserid,jdbcType=VARCHAR}, #{diUpdatetime,jdbcType=TIMESTAMP},
- #{diIsdel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIntervention" >
- insert into dic_intervention
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="diId != null" >
- DI_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="diNicCode != null" >
- DI_NIC_Code,
- </if>
- <if test="diNicName != null" >
- DI_NIC_Name,
- </if>
- <if test="diPinyincode != null" >
- DI_PinyinCode,
- </if>
- <if test="diWubicode != null" >
- DI_WubiCode,
- </if>
- <if test="diOthercode != null" >
- DI_OtherCode,
- </if>
- <if test="diUserid != null" >
- DI_UserId,
- </if>
- <if test="diUpdatetime != null" >
- DI_UpdateTime,
- </if>
- <if test="diIsdel != null" >
- DI_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="diId != null" >
- #{diId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="diNicCode != null" >
- #{diNicCode,jdbcType=VARCHAR},
- </if>
- <if test="diNicName != null" >
- #{diNicName,jdbcType=VARCHAR},
- </if>
- <if test="diPinyincode != null" >
- #{diPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="diWubicode != null" >
- #{diWubicode,jdbcType=VARCHAR},
- </if>
- <if test="diOthercode != null" >
- #{diOthercode,jdbcType=VARCHAR},
- </if>
- <if test="diUserid != null" >
- #{diUserid,jdbcType=VARCHAR},
- </if>
- <if test="diUpdatetime != null" >
- #{diUpdatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="diIsdel != null" >
- #{diIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIntervention" >
- update dic_intervention
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="diNicCode != null" >
- DI_NIC_Code = #{diNicCode,jdbcType=VARCHAR},
- </if>
- <if test="diNicName != null" >
- DI_NIC_Name = #{diNicName,jdbcType=VARCHAR},
- </if>
- <if test="diPinyincode != null" >
- DI_PinyinCode = #{diPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="diWubicode != null" >
- DI_WubiCode = #{diWubicode,jdbcType=VARCHAR},
- </if>
- <if test="diOthercode != null" >
- DI_OtherCode = #{diOthercode,jdbcType=VARCHAR},
- </if>
- <if test="diUserid != null" >
- DI_UserId = #{diUserid,jdbcType=VARCHAR},
- </if>
- <if test="diUpdatetime != null" >
- DI_UpdateTime = #{diUpdatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="diIsdel != null" >
- DI_IsDel = #{diIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where DI_ID = #{diId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIntervention" >
- update dic_intervention
- set HI_ID = #{hiId,jdbcType=INTEGER},
- DI_NIC_Code = #{diNicCode,jdbcType=VARCHAR},
- DI_NIC_Name = #{diNicName,jdbcType=VARCHAR},
- DI_PinyinCode = #{diPinyincode,jdbcType=VARCHAR},
- DI_WubiCode = #{diWubicode,jdbcType=VARCHAR},
- DI_OtherCode = #{diOthercode,jdbcType=VARCHAR},
- DI_UserId = #{diUserid,jdbcType=VARCHAR},
- DI_UpdateTime = #{diUpdatetime,jdbcType=TIMESTAMP},
- DI_IsDel = #{diIsdel,jdbcType=INTEGER}
- where DI_ID = #{diId,jdbcType=INTEGER}
- </update>
- </mapper>
|