123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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.InpConsulationDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationDetail" >
- <id column="ICD_ID" property="icdId" jdbcType="INTEGER" />
- <result column="ICO_ID" property="icoId" jdbcType="INTEGER" />
- <result column="ICD_Code" property="icdCode" jdbcType="VARCHAR" />
- <result column="ICD_Name" property="icdName" jdbcType="VARCHAR" />
- <result column="ICD_Value" property="icdValue" jdbcType="VARCHAR" />
- <result column="ICD_Category_Name" property="icdCategoryName" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- ICD_ID, ICO_ID, ICD_Code, ICD_Name, ICD_Value, ICD_Category_Name
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_consulation_detail
- where ICD_ID = #{icdId,jdbcType=INTEGER}
- </select>
- <select id="selectByIcoId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_consulation_detail
- where ICO_ID = #{icoId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_consulation_detail
- where ICD_ID = #{icdId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationDetail" >
- insert into inp_consulation_detail (ICD_ID, ICO_ID, ICD_Code,
- ICD_Name, ICD_Value, ICD_Category_Name
- )
- values (#{icdId,jdbcType=INTEGER}, #{icoId,jdbcType=INTEGER}, #{icdCode,jdbcType=VARCHAR},
- #{icdName,jdbcType=VARCHAR}, #{icdValue,jdbcType=VARCHAR}, #{icdCategoryName,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="batchInsert" parameterType="java.util.List" >
- insert into inp_consulation_detail (ICO_ID, ICD_Code,
- ICD_Name, ICD_Value, ICD_Category_Name)
- values
- <foreach collection="list" item="item" separator="," index="index">
- (#{item.icoId,jdbcType=INTEGER}, #{item.icdCode,jdbcType=VARCHAR},
- #{item.icdName,jdbcType=VARCHAR}, #{item.icdValue,jdbcType=VARCHAR}, #{item.icdCategoryName,jdbcType=VARCHAR})
- </foreach>
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationDetail" >
- insert into inp_consulation_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="icdId != null" >
- ICD_ID,
- </if>
- <if test="icoId != null" >
- ICO_ID,
- </if>
- <if test="icdCode != null" >
- ICD_Code,
- </if>
- <if test="icdName != null" >
- ICD_Name,
- </if>
- <if test="icdValue != null" >
- ICD_Value,
- </if>
- <if test="icdCategoryName != null" >
- ICD_Category_Name,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="icdId != null" >
- #{icdId,jdbcType=INTEGER},
- </if>
- <if test="icoId != null" >
- #{icoId,jdbcType=INTEGER},
- </if>
- <if test="icdCode != null" >
- #{icdCode,jdbcType=VARCHAR},
- </if>
- <if test="icdName != null" >
- #{icdName,jdbcType=VARCHAR},
- </if>
- <if test="icdValue != null" >
- #{icdValue,jdbcType=VARCHAR},
- </if>
- <if test="icdCategoryName != null" >
- #{icdCategoryName,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationDetail" >
- update inp_consulation_detail
- <set >
- <if test="icoId != null" >
- ICO_ID = #{icoId,jdbcType=INTEGER},
- </if>
- <if test="icdCode != null" >
- ICD_Code = #{icdCode,jdbcType=VARCHAR},
- </if>
- <if test="icdName != null" >
- ICD_Name = #{icdName,jdbcType=VARCHAR},
- </if>
- <if test="icdValue != null" >
- ICD_Value = #{icdValue,jdbcType=VARCHAR},
- </if>
- <if test="icdCategoryName != null" >
- ICD_Category_Name = #{icdCategoryName,jdbcType=VARCHAR},
- </if>
- </set>
- where ICD_ID = #{icdId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationDetail" >
- update inp_consulation_detail
- set ICO_ID = #{icoId,jdbcType=INTEGER},
- ICD_Code = #{icdCode,jdbcType=VARCHAR},
- ICD_Name = #{icdName,jdbcType=VARCHAR},
- ICD_Value = #{icdValue,jdbcType=VARCHAR},
- ICD_Category_Name = #{icdCategoryName,jdbcType=VARCHAR}
- where ICD_ID = #{icdId,jdbcType=INTEGER}
- </update>
- </mapper>
|