123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?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.InpHandOverDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- <id column="IHD_ID" property="ihdId" jdbcType="INTEGER" />
- <result column="IH_ID" property="ihId" jdbcType="INTEGER" />
- <result column="IHD_Code" property="ihdCode" jdbcType="VARCHAR" />
- <result column="IHD_Name" property="ihdName" jdbcType="VARCHAR" />
- <result column="IHD_Value" property="ihdValue" jdbcType="VARCHAR" />
- <result column="IHD_Type" property="ihdType" jdbcType="INTEGER" />
- <result column="IHD_Remark" property="ihdRemark" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- IHD_ID, IH_ID, IHD_Code, IHD_Name, IHD_Value, IHD_Type, IHD_Remark
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_handover_detail
- where IHD_ID = #{ihdId,jdbcType=INTEGER}
- </select>
- <select id="selectByHandoverID" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_handover_detail
- where IH_ID = #{ihId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_handover_detail
- where IHD_ID = #{ihdId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- insert into inp_handover_detail (IHD_ID, IH_ID, IHD_Code,
- IHD_Name, IHD_Value, IHD_Type,
- IHD_Remark)
- values (#{ihdId,jdbcType=INTEGER}, #{ihId,jdbcType=INTEGER}, #{ihdCode,jdbcType=VARCHAR},
- #{ihdName,jdbcType=VARCHAR}, #{ihdValue,jdbcType=VARCHAR}, #{ihdType,jdbcType=INTEGER},
- #{ihdRemark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertList" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- insert into inp_handover_detail (IHD_ID, IH_ID, IHD_Code,
- IHD_Name, IHD_Value, IHD_Type,
- IHD_Remark)
- values
- <foreach collection ="list" item="reddemCode" index= "index" separator =",">
- (#{reddemCode.ihdId,jdbcType=INTEGER}, #{reddemCode.ihId,jdbcType=INTEGER}, #{reddemCode.ihdCode,jdbcType=VARCHAR},
- #{reddemCode.ihdName,jdbcType=VARCHAR}, #{reddemCode.ihdValue,jdbcType=VARCHAR},
- #{reddemCode.ihdType,jdbcType=INTEGER}, #{reddemCode.ihdRemark,jdbcType=VARCHAR}
- )
- </foreach>
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- insert into inp_handover_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="ihdId != null" >
- IHD_ID,
- </if>
- <if test="ihId != null" >
- IH_ID,
- </if>
- <if test="ihdCode != null" >
- IHD_Code,
- </if>
- <if test="ihdName != null" >
- IHD_Name,
- </if>
- <if test="ihdValue != null" >
- IHD_Value,
- </if>
- <if test="ihdType != null" >
- IHD_Type,
- </if>
- <if test="ihdRemark != null" >
- IHD_Remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="ihdId != null" >
- #{ihdId,jdbcType=INTEGER},
- </if>
- <if test="ihId != null" >
- #{ihId,jdbcType=INTEGER},
- </if>
- <if test="ihdCode != null" >
- #{ihdCode,jdbcType=VARCHAR},
- </if>
- <if test="ihdName != null" >
- #{ihdName,jdbcType=VARCHAR},
- </if>
- <if test="ihdValue != null" >
- #{ihdValue,jdbcType=VARCHAR},
- </if>
- <if test="ihdType != null" >
- #{ihdType,jdbcType=INTEGER},
- </if>
- <if test="ihdRemark != null" >
- #{ihdRemark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- update inp_handover_detail
- <set >
- <if test="ihId != null" >
- IH_ID = #{ihId,jdbcType=INTEGER},
- </if>
- <if test="ihdCode != null" >
- IHD_Code = #{ihdCode,jdbcType=VARCHAR},
- </if>
- <if test="ihdName != null" >
- IHD_Name = #{ihdName,jdbcType=VARCHAR},
- </if>
- <if test="ihdValue != null" >
- IHD_Value = #{ihdValue,jdbcType=VARCHAR},
- </if>
- <if test="ihdType != null" >
- IHD_Type = #{ihdType,jdbcType=INTEGER},
- </if>
- <if test="ihdRemark != null" >
- IHD_Remark = #{ihdRemark,jdbcType=VARCHAR},
- </if>
- </set>
- where IHD_ID = #{ihdId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpHandOverDetail" >
- update inp_handover_detail
- set IH_ID = #{ihId,jdbcType=INTEGER},
- IHD_Code = #{ihdCode,jdbcType=VARCHAR},
- IHD_Name = #{ihdName,jdbcType=VARCHAR},
- IHD_Value = #{ihdValue,jdbcType=VARCHAR},
- IHD_Type = #{ihdType,jdbcType=INTEGER},
- IHD_Remark = #{ihdRemark,jdbcType=VARCHAR}
- where IHD_ID = #{ihdId,jdbcType=INTEGER}
- </update>
- </mapper>
|