123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?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.DicIoCatheterMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoCatheter" >
- <id column="IOC_ID" property="iocId" jdbcType="INTEGER" />
- <result column="DIO_ID" property="dioId" jdbcType="INTEGER" />
- <result column="DC_ID" property="dcId" jdbcType="INTEGER" />
- <result column="DIU_Operation_Time" property="diuOperationTime" jdbcType="TIMESTAMP" />
- <result column="DIU_Operator" property="diuOperator" jdbcType="VARCHAR" />
- <result column="DIU_IsDel" property="diuIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- IOC_ID, DIO_ID, DC_ID, DIU_Operation_Time, DIU_Operator, DIU_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_io_catheter
- where DIU_IsDel = 0 and IOC_ID = #{iocId,jdbcType=INTEGER}
- </select>
- <select id="selectByDioId" resultType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheter" parameterType="java.lang.Integer" >
- select
- dc.DC_ID as dcId,
- dc.HI_ID as hiId,
- dc.DC_Catheter_Name as dcCatheterName
- from dic_catheter dc
- LEFT JOIN dic_io_catheter dic
- on dc.DC_ID = dic.DC_ID
- where dc.DC_IsDel = 0 and dic.DIU_IsDel = 0
- and dic.DIO_ID = #{dioId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_io_catheter
- where IOC_ID = #{iocId,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoCatheter" >
- insert into dic_io_catheter
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="iocId != null" >
- IOC_ID,
- </if>
- <if test="dioId != null" >
- DIO_ID,
- </if>
- <if test="dcId != null" >
- DC_ID,
- </if>
- <if test="diuOperationTime != null" >
- DIU_Operation_Time,
- </if>
- <if test="diuOperator != null" >
- DIU_Operator,
- </if>
- <if test="diuIsdel != null" >
- DIU_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="iocId != null" >
- #{iocId,jdbcType=INTEGER},
- </if>
- <if test="dioId != null" >
- #{dioId,jdbcType=INTEGER},
- </if>
- <if test="dcId != null" >
- #{dcId,jdbcType=INTEGER},
- </if>
- <if test="diuOperationTime != null" >
- #{diuOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="diuOperator != null" >
- #{diuOperator,jdbcType=VARCHAR},
- </if>
- <if test="diuIsdel != null" >
- #{diuIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoCatheter" >
- update dic_io_catheter
- <set >
- <if test="dioId != null" >
- DIO_ID = #{dioId,jdbcType=INTEGER},
- </if>
- <if test="dcId != null" >
- DC_ID = #{dcId,jdbcType=INTEGER},
- </if>
- <if test="diuOperationTime != null" >
- DIU_Operation_Time = #{diuOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="diuOperator != null" >
- DIU_Operator = #{diuOperator,jdbcType=VARCHAR},
- </if>
- <if test="diuIsdel != null" >
- DIU_IsDel = #{diuIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where IOC_ID = #{iocId,jdbcType=INTEGER}
- </update>
- </mapper>
|