123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?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.DicCatheterModelMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheterModel" >
- <id column="DCM_ID" property="dcmId" jdbcType="INTEGER" />
- <result column="DC_ID" property="dcId" jdbcType="INTEGER" />
- <result column="DCM_Model" property="dcmModel" jdbcType="VARCHAR" />
- <result column="DCM_Operation_Time" property="dcmOperationTime" jdbcType="TIMESTAMP" />
- <result column="DCM_Operator" property="dcmOperator" jdbcType="VARCHAR" />
- <result column="DCM_IsDel" property="dcmIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- DCM_ID, DC_ID, DCM_Model, DCM_Operation_Time, DCM_Operator, DCM_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_catheter_model
- where DCM_IsDel = 0 and DCM_ID = #{dcmId,jdbcType=INTEGER}
- </select>
- <select id="selectAllDcId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_catheter_model
- where DCM_IsDel = 0 and DC_ID = #{dcId,jdbcType=INTEGER}
- </select>
- <select id="selectAll" resultMap="BaseResultMap" parameterType="List" >
- select
- <include refid="Base_Column_List" />
- from dic_catheter_model
- where DCM_IsDel = 0
- and DC_ID in
- <foreach collection="list" item="item" separator="," index="index" open="(" close=")">
- #{item}
- </foreach>
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_catheter_model
- where DCM_ID = #{dcmId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheterModel" >
- insert into dic_catheter_model (DCM_ID, DC_ID, DCM_Model,
- DCM_Operation_Time, DCM_Operator, DCM_IsDel
- )
- values (#{dcmId,jdbcType=INTEGER}, #{dcId,jdbcType=INTEGER}, #{dcmModel,jdbcType=VARCHAR},
- #{dcmOperationTime,jdbcType=TIMESTAMP}, #{dcmOperator,jdbcType=VARCHAR}, #{dcmIsdel,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheterModel" >
- insert into dic_catheter_model
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="dcmId != null" >
- DCM_ID,
- </if>
- <if test="dcId != null" >
- DC_ID,
- </if>
- <if test="dcmModel != null" >
- DCM_Model,
- </if>
- <if test="dcmOperationTime != null" >
- DCM_Operation_Time,
- </if>
- <if test="dcmOperator != null" >
- DCM_Operator,
- </if>
- <if test="dcmIsdel != null" >
- DCM_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="dcmId != null" >
- #{dcmId,jdbcType=INTEGER},
- </if>
- <if test="dcId != null" >
- #{dcId,jdbcType=INTEGER},
- </if>
- <if test="dcmModel != null" >
- #{dcmModel,jdbcType=VARCHAR},
- </if>
- <if test="dcmOperationTime != null" >
- #{dcmOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dcmOperator != null" >
- #{dcmOperator,jdbcType=VARCHAR},
- </if>
- <if test="dcmIsdel != null" >
- #{dcmIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheterModel" >
- update dic_catheter_model
- <set >
- <if test="dcId != null" >
- DC_ID = #{dcId,jdbcType=INTEGER},
- </if>
- <if test="dcmModel != null" >
- DCM_Model = #{dcmModel,jdbcType=VARCHAR},
- </if>
- <if test="dcmOperationTime != null" >
- DCM_Operation_Time = #{dcmOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dcmOperator != null" >
- DCM_Operator = #{dcmOperator,jdbcType=VARCHAR},
- </if>
- <if test="dcmIsdel != null" >
- DCM_IsDel = #{dcmIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where DCM_ID = #{dcmId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicCatheterModel" >
- update dic_catheter_model
- set DC_ID = #{dcId,jdbcType=INTEGER},
- DCM_Model = #{dcmModel,jdbcType=VARCHAR},
- DCM_Operation_Time = #{dcmOperationTime,jdbcType=TIMESTAMP},
- DCM_Operator = #{dcmOperator,jdbcType=VARCHAR},
- DCM_IsDel = #{dcmIsdel,jdbcType=INTEGER}
- where DCM_ID = #{dcmId,jdbcType=INTEGER}
- </update>
- </mapper>
|