123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?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.InpDuctusExceptionMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpDuctusException" >
- <id column="IDE_ID" property="ideId" jdbcType="INTEGER" />
- <result column="IDR_ID" property="idrId" jdbcType="INTEGER" />
- <result column="IDR_Exception_Code" property="idrExceptionCode" jdbcType="VARCHAR" />
- <result column="IDR_Exception" property="idrException" jdbcType="VARCHAR" />
- <result column="IDR_Remark" property="idrRemark" jdbcType="VARCHAR" />
- <result column="IDR_IsDel" property="idrIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- IDE_ID, IDR_ID, IDR_Exception_Code, IDR_Exception, IDR_Remark, IDR_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_ductus_exception
- where IDE_ID = #{ideId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_ductus_exception
- where IDE_ID = #{ideId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpDuctusException" >
- insert into inp_ductus_exception (IDE_ID, IDR_ID, IDR_Exception_Code,
- IDR_Exception, IDR_Remark, IDR_IsDel
- )
- values (#{ideId,jdbcType=INTEGER}, #{idrId,jdbcType=INTEGER}, #{idrExceptionCode,jdbcType=VARCHAR},
- #{idrException,jdbcType=VARCHAR}, #{idrRemark,jdbcType=VARCHAR}, #{idrIsdel,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpDuctusException" >
- insert into inp_ductus_exception
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="ideId != null" >
- IDE_ID,
- </if>
- <if test="idrId != null" >
- IDR_ID,
- </if>
- <if test="idrExceptionCode != null" >
- IDR_Exception_Code,
- </if>
- <if test="idrException != null" >
- IDR_Exception,
- </if>
- <if test="idrRemark != null" >
- IDR_Remark,
- </if>
- <if test="idrIsdel != null" >
- IDR_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="ideId != null" >
- #{ideId,jdbcType=INTEGER},
- </if>
- <if test="idrId != null" >
- #{idrId,jdbcType=INTEGER},
- </if>
- <if test="idrExceptionCode != null" >
- #{idrExceptionCode,jdbcType=VARCHAR},
- </if>
- <if test="idrException != null" >
- #{idrException,jdbcType=VARCHAR},
- </if>
- <if test="idrRemark != null" >
- #{idrRemark,jdbcType=VARCHAR},
- </if>
- <if test="idrIsdel != null" >
- #{idrIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpDuctusException" >
- update inp_ductus_exception
- <set >
- <if test="idrId != null" >
- IDR_ID = #{idrId,jdbcType=INTEGER},
- </if>
- <if test="idrExceptionCode != null" >
- IDR_Exception_Code = #{idrExceptionCode,jdbcType=VARCHAR},
- </if>
- <if test="idrException != null" >
- IDR_Exception = #{idrException,jdbcType=VARCHAR},
- </if>
- <if test="idrRemark != null" >
- IDR_Remark = #{idrRemark,jdbcType=VARCHAR},
- </if>
- <if test="idrIsdel != null" >
- IDR_IsDel = #{idrIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where IDE_ID = #{ideId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpDuctusException" >
- update inp_ductus_exception
- set IDR_ID = #{idrId,jdbcType=INTEGER},
- IDR_Exception_Code = #{idrExceptionCode,jdbcType=VARCHAR},
- IDR_Exception = #{idrException,jdbcType=VARCHAR},
- IDR_Remark = #{idrRemark,jdbcType=VARCHAR},
- IDR_IsDel = #{idrIsdel,jdbcType=INTEGER}
- where IDE_ID = #{ideId,jdbcType=INTEGER}
- </update>
- <insert id="batchInsert">
- insert into inp_ductus_exception (IDR_ID, IDR_Exception_Code,
- IDR_Exception, IDR_Remark, IDR_IsDel
- )
- values
- <foreach collection="list" item="item" separator=",">
- (#{item.idrId,jdbcType=INTEGER}, #{item.idrExceptionCode,jdbcType=VARCHAR},
- #{item.idrException,jdbcType=VARCHAR}, #{item.idrRemark,jdbcType=VARCHAR}, 0
- )
- </foreach>
- </insert>
- <update id="delByIdrId">
- update inp_ductus_exception
- set IDR_IsDel = -1
- where IDR_ID = #{idrId,jdbcType=INTEGER}
- </update>
- </mapper>
|