123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?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.SkinPopMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SkinPop" >
- <id column="PS_ID" property="psId" jdbcType="INTEGER" />
- <result column="PSS_ID" property="pssId" jdbcType="INTEGER" />
- <result column="PO_ID" property="poId" 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="PS_AdviceCode" property="psAdvicecode" jdbcType="VARCHAR" />
- <result column="PS_BarCode" property="psBarcode" jdbcType="VARCHAR" />
- <result column="PS_Recorder" property="psRecorder" jdbcType="VARCHAR" />
- <result column="PS_Record_Time" property="psRecordTime" jdbcType="TIMESTAMP" />
- <result column="PS_IsDel" property="psIsdel" jdbcType="INTEGER" />
- <result column="PS_Operator" property="psOperator" jdbcType="VARCHAR" />
- <result column="PS_OperatTime" property="psOperattime" jdbcType="TIMESTAMP" />
- <result column="PS_Inject_Time" property="psInjectTime" jdbcType="TIMESTAMP" />
- <result column="PS_Inject_Part" property="psInjectPart" jdbcType="VARCHAR" />
- <result column="PS_Amount" property="psAmount" jdbcType="DOUBLE" />
- <result column="PS_Unit" property="psUnit" jdbcType="VARCHAR" />
- <result column="PS_DrugCode" property="psDrugcode" jdbcType="VARCHAR" />
- <result column="PS_IsInsulin" property="psIsinsulin" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- PS_ID, PSS_ID, PO_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PS_AdviceCode,
- PS_BarCode, PS_Recorder, PS_Record_Time, PS_IsDel, PS_Operator, PS_OperatTime, PS_Inject_Time,
- PS_Inject_Part, PS_Amount, PS_Unit, PS_DrugCode, PS_IsInsulin
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_skinpop
- where PS_ID = #{psId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_skinpop
- where PS_ID = #{psId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPop" >
- insert into pda_skinpop (PS_ID, PSS_ID, PO_ID,
- PatientNo, HI_ID, DD_DepDm,
- DW_WardDm, DB_BedNo, PS_AdviceCode,
- PS_BarCode, PS_Recorder, PS_Record_Time,
- PS_IsDel, PS_Operator, PS_OperatTime,
- PS_Inject_Time, PS_Inject_Part, PS_Amount,
- PS_Unit, PS_DrugCode, PS_IsInsulin
- )
- values (#{psId,jdbcType=INTEGER}, #{pssId,jdbcType=INTEGER}, #{poId,jdbcType=INTEGER},
- #{patientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{ddDepdm,jdbcType=VARCHAR},
- #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR}, #{psAdvicecode,jdbcType=VARCHAR},
- #{psBarcode,jdbcType=VARCHAR}, #{psRecorder,jdbcType=VARCHAR}, #{psRecordTime,jdbcType=TIMESTAMP},
- #{psIsdel,jdbcType=INTEGER}, #{psOperator,jdbcType=VARCHAR}, #{psOperattime,jdbcType=TIMESTAMP},
- #{psInjectTime,jdbcType=TIMESTAMP}, #{psInjectPart,jdbcType=VARCHAR}, #{psAmount,jdbcType=DOUBLE},
- #{psUnit,jdbcType=VARCHAR}, #{psDrugcode,jdbcType=VARCHAR}, #{psIsinsulin,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPop" >
- insert into pda_skinpop
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="psId != null" >
- PS_ID,
- </if>
- <if test="pssId != null" >
- PSS_ID,
- </if>
- <if test="poId != null" >
- PO_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="psAdvicecode != null" >
- PS_AdviceCode,
- </if>
- <if test="psBarcode != null" >
- PS_BarCode,
- </if>
- <if test="psRecorder != null" >
- PS_Recorder,
- </if>
- <if test="psRecordTime != null" >
- PS_Record_Time,
- </if>
- <if test="psIsdel != null" >
- PS_IsDel,
- </if>
- <if test="psOperator != null" >
- PS_Operator,
- </if>
- <if test="psOperattime != null" >
- PS_OperatTime,
- </if>
- <if test="psInjectTime != null" >
- PS_Inject_Time,
- </if>
- <if test="psInjectPart != null" >
- PS_Inject_Part,
- </if>
- <if test="psAmount != null" >
- PS_Amount,
- </if>
- <if test="psUnit != null" >
- PS_Unit,
- </if>
- <if test="psDrugcode != null" >
- PS_DrugCode,
- </if>
- <if test="psIsinsulin != null" >
- PS_IsInsulin,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="psId != null" >
- #{psId,jdbcType=INTEGER},
- </if>
- <if test="pssId != null" >
- #{pssId,jdbcType=INTEGER},
- </if>
- <if test="poId != null" >
- #{poId,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="psAdvicecode != null" >
- #{psAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="psBarcode != null" >
- #{psBarcode,jdbcType=VARCHAR},
- </if>
- <if test="psRecorder != null" >
- #{psRecorder,jdbcType=VARCHAR},
- </if>
- <if test="psRecordTime != null" >
- #{psRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="psIsdel != null" >
- #{psIsdel,jdbcType=INTEGER},
- </if>
- <if test="psOperator != null" >
- #{psOperator,jdbcType=VARCHAR},
- </if>
- <if test="psOperattime != null" >
- #{psOperattime,jdbcType=TIMESTAMP},
- </if>
- <if test="psInjectTime != null" >
- #{psInjectTime,jdbcType=TIMESTAMP},
- </if>
- <if test="psInjectPart != null" >
- #{psInjectPart,jdbcType=VARCHAR},
- </if>
- <if test="psAmount != null" >
- #{psAmount,jdbcType=DOUBLE},
- </if>
- <if test="psUnit != null" >
- #{psUnit,jdbcType=VARCHAR},
- </if>
- <if test="psDrugcode != null" >
- #{psDrugcode,jdbcType=VARCHAR},
- </if>
- <if test="psIsinsulin != null" >
- #{psIsinsulin,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPop" >
- update pda_skinpop
- <set >
- <if test="pssId != null" >
- PSS_ID = #{pssId,jdbcType=INTEGER},
- </if>
- <if test="poId != null" >
- PO_ID = #{poId,jdbcType=INTEGER},
- </if>
- <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="psAdvicecode != null" >
- PS_AdviceCode = #{psAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="psBarcode != null" >
- PS_BarCode = #{psBarcode,jdbcType=VARCHAR},
- </if>
- <if test="psRecorder != null" >
- PS_Recorder = #{psRecorder,jdbcType=VARCHAR},
- </if>
- <if test="psRecordTime != null" >
- PS_Record_Time = #{psRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="psIsdel != null" >
- PS_IsDel = #{psIsdel,jdbcType=INTEGER},
- </if>
- <if test="psOperator != null" >
- PS_Operator = #{psOperator,jdbcType=VARCHAR},
- </if>
- <if test="psOperattime != null" >
- PS_OperatTime = #{psOperattime,jdbcType=TIMESTAMP},
- </if>
- <if test="psInjectTime != null" >
- PS_Inject_Time = #{psInjectTime,jdbcType=TIMESTAMP},
- </if>
- <if test="psInjectPart != null" >
- PS_Inject_Part = #{psInjectPart,jdbcType=VARCHAR},
- </if>
- <if test="psAmount != null" >
- PS_Amount = #{psAmount,jdbcType=DOUBLE},
- </if>
- <if test="psUnit != null" >
- PS_Unit = #{psUnit,jdbcType=VARCHAR},
- </if>
- <if test="psDrugcode != null" >
- PS_DrugCode = #{psDrugcode,jdbcType=VARCHAR},
- </if>
- <if test="psIsinsulin != null" >
- PS_IsInsulin = #{psIsinsulin,jdbcType=INTEGER},
- </if>
- </set>
- where PS_ID = #{psId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPop" >
- update pda_skinpop
- set PSS_ID = #{pssId,jdbcType=INTEGER},
- PO_ID = #{poId,jdbcType=INTEGER},
- PatientNo = #{patientno,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- PS_AdviceCode = #{psAdvicecode,jdbcType=VARCHAR},
- PS_BarCode = #{psBarcode,jdbcType=VARCHAR},
- PS_Recorder = #{psRecorder,jdbcType=VARCHAR},
- PS_Record_Time = #{psRecordTime,jdbcType=TIMESTAMP},
- PS_IsDel = #{psIsdel,jdbcType=INTEGER},
- PS_Operator = #{psOperator,jdbcType=VARCHAR},
- PS_OperatTime = #{psOperattime,jdbcType=TIMESTAMP},
- PS_Inject_Time = #{psInjectTime,jdbcType=TIMESTAMP},
- PS_Inject_Part = #{psInjectPart,jdbcType=VARCHAR},
- PS_Amount = #{psAmount,jdbcType=DOUBLE},
- PS_Unit = #{psUnit,jdbcType=VARCHAR},
- PS_DrugCode = #{psDrugcode,jdbcType=VARCHAR},
- PS_IsInsulin = #{psIsinsulin,jdbcType=INTEGER}
- where PS_ID = #{psId,jdbcType=INTEGER}
- </update>
- </mapper>
|