123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?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.base.mysqlmapper.SkinPopPartMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
- <id column="PSP_ID" property="pspId" jdbcType="INTEGER" />
- <result column="PatientNo" property="patientno" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
- <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
- <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
- <result column="PSP_Inject_Part" property="pspInjectPart" jdbcType="VARCHAR" />
- <result column="PSP_Model" property="pspModel" jdbcType="INTEGER" />
- <result column="PSP_Recorder" property="pspRecorder" jdbcType="VARCHAR" />
- <result column="PSP_Record_Time" property="pspRecordTime" jdbcType="TIMESTAMP" />
- <result column="PSP_IsDel" property="pspIsdel" jdbcType="INTEGER" />
- <result column="PSP_Operator" property="pspOperator" jdbcType="VARCHAR" />
- <result column="PSP_OperatTime" property="pspOperattime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- PSP_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PSP_Inject_Part, PSP_Model,
- PSP_Recorder, PSP_Record_Time, PSP_IsDel, PSP_Operator, PSP_OperatTime
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_skinpop_part
- where PSP_ID = #{pspId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_skinpop_part
- where PSP_ID = #{pspId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
- insert into pda_skinpop_part (PSP_ID, PatientNo, HI_ID,
- DD_DepDm, DW_WardDm, DB_BedNo,
- PSP_Inject_Part, PSP_Model, PSP_Recorder,
- PSP_Record_Time, PSP_IsDel, PSP_Operator,
- PSP_OperatTime)
- values (#{pspId,jdbcType=INTEGER}, #{patientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{pspInjectPart,jdbcType=VARCHAR}, #{pspModel,jdbcType=INTEGER}, #{pspRecorder,jdbcType=VARCHAR},
- #{pspRecordTime,jdbcType=TIMESTAMP}, #{pspIsdel,jdbcType=INTEGER}, #{pspOperator,jdbcType=VARCHAR},
- #{pspOperattime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
- insert into pda_skinpop_part
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="pspId != null" >
- PSP_ID,
- </if>
- <if test="patientno != null" >
- PatientNo,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm,
- </if>
- <if test="dwWarddm != null" >
- DW_WardDm,
- </if>
- <if test="dbBedno != null" >
- DB_BedNo,
- </if>
- <if test="pspInjectPart != null" >
- PSP_Inject_Part,
- </if>
- <if test="pspModel != null" >
- PSP_Model,
- </if>
- <if test="pspRecorder != null" >
- PSP_Recorder,
- </if>
- <if test="pspRecordTime != null" >
- PSP_Record_Time,
- </if>
- <if test="pspIsdel != null" >
- PSP_IsDel,
- </if>
- <if test="pspOperator != null" >
- PSP_Operator,
- </if>
- <if test="pspOperattime != null" >
- PSP_OperatTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="pspId != null" >
- #{pspId,jdbcType=INTEGER},
- </if>
- <if test="patientno != null" >
- #{patientno,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dwWarddm != null" >
- #{dwWarddm,jdbcType=VARCHAR},
- </if>
- <if test="dbBedno != null" >
- #{dbBedno,jdbcType=VARCHAR},
- </if>
- <if test="pspInjectPart != null" >
- #{pspInjectPart,jdbcType=VARCHAR},
- </if>
- <if test="pspModel != null" >
- #{pspModel,jdbcType=INTEGER},
- </if>
- <if test="pspRecorder != null" >
- #{pspRecorder,jdbcType=VARCHAR},
- </if>
- <if test="pspRecordTime != null" >
- #{pspRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="pspIsdel != null" >
- #{pspIsdel,jdbcType=INTEGER},
- </if>
- <if test="pspOperator != null" >
- #{pspOperator,jdbcType=VARCHAR},
- </if>
- <if test="pspOperattime != null" >
- #{pspOperattime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
- update pda_skinpop_part
- <set >
- <if test="patientno != null" >
- PatientNo = #{patientno,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dwWarddm != null" >
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- </if>
- <if test="dbBedno != null" >
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- </if>
- <if test="pspInjectPart != null" >
- PSP_Inject_Part = #{pspInjectPart,jdbcType=VARCHAR},
- </if>
- <if test="pspModel != null" >
- PSP_Model = #{pspModel,jdbcType=INTEGER},
- </if>
- <if test="pspRecorder != null" >
- PSP_Recorder = #{pspRecorder,jdbcType=VARCHAR},
- </if>
- <if test="pspRecordTime != null" >
- PSP_Record_Time = #{pspRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="pspIsdel != null" >
- PSP_IsDel = #{pspIsdel,jdbcType=INTEGER},
- </if>
- <if test="pspOperator != null" >
- PSP_Operator = #{pspOperator,jdbcType=VARCHAR},
- </if>
- <if test="pspOperattime != null" >
- PSP_OperatTime = #{pspOperattime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where PSP_ID = #{pspId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
- update pda_skinpop_part
- set PatientNo = #{patientno,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- PSP_Inject_Part = #{pspInjectPart,jdbcType=VARCHAR},
- PSP_Model = #{pspModel,jdbcType=INTEGER},
- PSP_Recorder = #{pspRecorder,jdbcType=VARCHAR},
- PSP_Record_Time = #{pspRecordTime,jdbcType=TIMESTAMP},
- PSP_IsDel = #{pspIsdel,jdbcType=INTEGER},
- PSP_Operator = #{pspOperator,jdbcType=VARCHAR},
- PSP_OperatTime = #{pspOperattime,jdbcType=TIMESTAMP}
- where PSP_ID = #{pspId,jdbcType=INTEGER}
- </update>
- </mapper>
|