123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <?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.DicInterventionDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
- <id column="DID_ID" property="didId" jdbcType="INTEGER" />
- <result column="DI_ID" property="diId" jdbcType="VARCHAR" />
- <result column="DID_Intervention_Name" property="didInterventionName" jdbcType="VARCHAR" />
- <result column="DID_PinyinCode" property="didPinyincode" jdbcType="VARCHAR" />
- <result column="DID_WubiCode" property="didWubicode" jdbcType="VARCHAR" />
- <result column="DID_OtherCode" property="didOthercode" jdbcType="VARCHAR" />
- <result column="DID_UserId" property="didUserid" jdbcType="VARCHAR" />
- <result column="DID_UpdateTime" property="didUpdatetime" jdbcType="TIMESTAMP" />
- <result column="DID_IsDel" property="didIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- DID_ID, DI_ID, DID_Intervention_Name, DID_PinyinCode, DID_WubiCode, DID_OtherCode,
- DID_UserId, DID_UpdateTime, DID_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_intervention_detail
- where DID_ID = #{didId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_intervention_detail
- where DID_ID = #{didId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
- insert into dic_intervention_detail (DID_ID, DI_ID, DID_Intervention_Name,
- DID_PinyinCode, DID_WubiCode, DID_OtherCode,
- DID_UserId, DID_UpdateTime, DID_IsDel
- )
- values (#{didId,jdbcType=INTEGER}, #{diId,jdbcType=VARCHAR}, #{didInterventionName,jdbcType=VARCHAR},
- #{didPinyincode,jdbcType=VARCHAR}, #{didWubicode,jdbcType=VARCHAR}, #{didOthercode,jdbcType=VARCHAR},
- #{didUserid,jdbcType=VARCHAR}, #{didUpdatetime,jdbcType=TIMESTAMP}, #{didIsdel,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
- insert into dic_intervention_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="didId != null" >
- DID_ID,
- </if>
- <if test="diId != null" >
- DI_ID,
- </if>
- <if test="didInterventionName != null" >
- DID_Intervention_Name,
- </if>
- <if test="didPinyincode != null" >
- DID_PinyinCode,
- </if>
- <if test="didWubicode != null" >
- DID_WubiCode,
- </if>
- <if test="didOthercode != null" >
- DID_OtherCode,
- </if>
- <if test="didUserid != null" >
- DID_UserId,
- </if>
- <if test="didUpdatetime != null" >
- DID_UpdateTime,
- </if>
- <if test="didIsdel != null" >
- DID_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="didId != null" >
- #{didId,jdbcType=INTEGER},
- </if>
- <if test="diId != null" >
- #{diId,jdbcType=VARCHAR},
- </if>
- <if test="didInterventionName != null" >
- #{didInterventionName,jdbcType=VARCHAR},
- </if>
- <if test="didPinyincode != null" >
- #{didPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="didWubicode != null" >
- #{didWubicode,jdbcType=VARCHAR},
- </if>
- <if test="didOthercode != null" >
- #{didOthercode,jdbcType=VARCHAR},
- </if>
- <if test="didUserid != null" >
- #{didUserid,jdbcType=VARCHAR},
- </if>
- <if test="didUpdatetime != null" >
- #{didUpdatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="didIsdel != null" >
- #{didIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
- update dic_intervention_detail
- <set >
- <if test="diId != null" >
- DI_ID = #{diId,jdbcType=VARCHAR},
- </if>
- <if test="didInterventionName != null" >
- DID_Intervention_Name = #{didInterventionName,jdbcType=VARCHAR},
- </if>
- <if test="didPinyincode != null" >
- DID_PinyinCode = #{didPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="didWubicode != null" >
- DID_WubiCode = #{didWubicode,jdbcType=VARCHAR},
- </if>
- <if test="didOthercode != null" >
- DID_OtherCode = #{didOthercode,jdbcType=VARCHAR},
- </if>
- <if test="didUserid != null" >
- DID_UserId = #{didUserid,jdbcType=VARCHAR},
- </if>
- <if test="didUpdatetime != null" >
- DID_UpdateTime = #{didUpdatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="didIsdel != null" >
- DID_IsDel = #{didIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where DID_ID = #{didId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
- update dic_intervention_detail
- set DI_ID = #{diId,jdbcType=VARCHAR},
- DID_Intervention_Name = #{didInterventionName,jdbcType=VARCHAR},
- DID_PinyinCode = #{didPinyincode,jdbcType=VARCHAR},
- DID_WubiCode = #{didWubicode,jdbcType=VARCHAR},
- DID_OtherCode = #{didOthercode,jdbcType=VARCHAR},
- DID_UserId = #{didUserid,jdbcType=VARCHAR},
- DID_UpdateTime = #{didUpdatetime,jdbcType=TIMESTAMP},
- DID_IsDel = #{didIsdel,jdbcType=INTEGER}
- where DID_ID = #{didId,jdbcType=INTEGER}
- </update>
- </mapper>
|