123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <?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.SkinPopSetMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
- <id column="PSS_ID" property="pssId" 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="PSS_AdviceCode" property="pssAdvicecode" jdbcType="VARCHAR" />
- <result column="PSS_BarCode" property="pssBarcode" jdbcType="VARCHAR" />
- <result column="PSS_DrugCode" property="pssDrugcode" jdbcType="VARCHAR" />
- <result column="PSS_DrugName" property="pssDrugname" jdbcType="VARCHAR" />
- <result column="PSS_StartTime" property="pssStarttime" jdbcType="TIMESTAMP" />
- <result column="PSS_EndTime" property="pssEndtime" jdbcType="TIMESTAMP" />
- <result column="PSS_Amount" property="pssAmount" jdbcType="DOUBLE" />
- <result column="PSS_Unit" property="pssUnit" jdbcType="VARCHAR" />
- <result column="PSS_Recorder" property="pssRecorder" jdbcType="VARCHAR" />
- <result column="PSS_Record_Time" property="pssRecordTime" jdbcType="TIMESTAMP" />
- <result column="PSS_IsDel" property="pssIsdel" jdbcType="INTEGER" />
- <result column="PSS_Operator" property="pssOperator" jdbcType="VARCHAR" />
- <result column="PSS_OperatTime" property="pssOperattime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- PSS_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PSS_AdviceCode, PSS_BarCode,
- PSS_DrugCode, PSS_DrugName, PSS_StartTime, PSS_EndTime, PSS_Amount, PSS_Unit, PSS_Recorder,
- PSS_Record_Time, PSS_IsDel, PSS_Operator, PSS_OperatTime
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_skinpop_set
- where PSS_ID = #{pssId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_skinpop_set
- where PSS_ID = #{pssId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
- insert into pda_skinpop_set (PSS_ID, PatientNo, HI_ID,
- DD_DepDm, DW_WardDm, DB_BedNo,
- PSS_AdviceCode, PSS_BarCode, PSS_DrugCode,
- PSS_DrugName, PSS_StartTime, PSS_EndTime,
- PSS_Amount, PSS_Unit, PSS_Recorder,
- PSS_Record_Time, PSS_IsDel, PSS_Operator,
- PSS_OperatTime)
- values (#{pssId,jdbcType=INTEGER}, #{patientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{pssAdvicecode,jdbcType=VARCHAR}, #{pssBarcode,jdbcType=VARCHAR}, #{pssDrugcode,jdbcType=VARCHAR},
- #{pssDrugname,jdbcType=VARCHAR}, #{pssStarttime,jdbcType=TIMESTAMP}, #{pssEndtime,jdbcType=TIMESTAMP},
- #{pssAmount,jdbcType=DOUBLE}, #{pssUnit,jdbcType=VARCHAR}, #{pssRecorder,jdbcType=VARCHAR},
- #{pssRecordTime,jdbcType=TIMESTAMP}, #{pssIsdel,jdbcType=INTEGER}, #{pssOperator,jdbcType=VARCHAR},
- #{pssOperattime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
- insert into pda_skinpop_set
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="pssId != null" >
- PSS_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="pssAdvicecode != null" >
- PSS_AdviceCode,
- </if>
- <if test="pssBarcode != null" >
- PSS_BarCode,
- </if>
- <if test="pssDrugcode != null" >
- PSS_DrugCode,
- </if>
- <if test="pssDrugname != null" >
- PSS_DrugName,
- </if>
- <if test="pssStarttime != null" >
- PSS_StartTime,
- </if>
- <if test="pssEndtime != null" >
- PSS_EndTime,
- </if>
- <if test="pssAmount != null" >
- PSS_Amount,
- </if>
- <if test="pssUnit != null" >
- PSS_Unit,
- </if>
- <if test="pssRecorder != null" >
- PSS_Recorder,
- </if>
- <if test="pssRecordTime != null" >
- PSS_Record_Time,
- </if>
- <if test="pssIsdel != null" >
- PSS_IsDel,
- </if>
- <if test="pssOperator != null" >
- PSS_Operator,
- </if>
- <if test="pssOperattime != null" >
- PSS_OperatTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="pssId != null" >
- #{pssId,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="pssAdvicecode != null" >
- #{pssAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="pssBarcode != null" >
- #{pssBarcode,jdbcType=VARCHAR},
- </if>
- <if test="pssDrugcode != null" >
- #{pssDrugcode,jdbcType=VARCHAR},
- </if>
- <if test="pssDrugname != null" >
- #{pssDrugname,jdbcType=VARCHAR},
- </if>
- <if test="pssStarttime != null" >
- #{pssStarttime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssEndtime != null" >
- #{pssEndtime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssAmount != null" >
- #{pssAmount,jdbcType=DOUBLE},
- </if>
- <if test="pssUnit != null" >
- #{pssUnit,jdbcType=VARCHAR},
- </if>
- <if test="pssRecorder != null" >
- #{pssRecorder,jdbcType=VARCHAR},
- </if>
- <if test="pssRecordTime != null" >
- #{pssRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssIsdel != null" >
- #{pssIsdel,jdbcType=INTEGER},
- </if>
- <if test="pssOperator != null" >
- #{pssOperator,jdbcType=VARCHAR},
- </if>
- <if test="pssOperattime != null" >
- #{pssOperattime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
- update pda_skinpop_set
- <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="pssAdvicecode != null" >
- PSS_AdviceCode = #{pssAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="pssBarcode != null" >
- PSS_BarCode = #{pssBarcode,jdbcType=VARCHAR},
- </if>
- <if test="pssDrugcode != null" >
- PSS_DrugCode = #{pssDrugcode,jdbcType=VARCHAR},
- </if>
- <if test="pssDrugname != null" >
- PSS_DrugName = #{pssDrugname,jdbcType=VARCHAR},
- </if>
- <if test="pssStarttime != null" >
- PSS_StartTime = #{pssStarttime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssEndtime != null" >
- PSS_EndTime = #{pssEndtime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssAmount != null" >
- PSS_Amount = #{pssAmount,jdbcType=DOUBLE},
- </if>
- <if test="pssUnit != null" >
- PSS_Unit = #{pssUnit,jdbcType=VARCHAR},
- </if>
- <if test="pssRecorder != null" >
- PSS_Recorder = #{pssRecorder,jdbcType=VARCHAR},
- </if>
- <if test="pssRecordTime != null" >
- PSS_Record_Time = #{pssRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="pssIsdel != null" >
- PSS_IsDel = #{pssIsdel,jdbcType=INTEGER},
- </if>
- <if test="pssOperator != null" >
- PSS_Operator = #{pssOperator,jdbcType=VARCHAR},
- </if>
- <if test="pssOperattime != null" >
- PSS_OperatTime = #{pssOperattime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where PSS_ID = #{pssId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
- update pda_skinpop_set
- 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},
- PSS_AdviceCode = #{pssAdvicecode,jdbcType=VARCHAR},
- PSS_BarCode = #{pssBarcode,jdbcType=VARCHAR},
- PSS_DrugCode = #{pssDrugcode,jdbcType=VARCHAR},
- PSS_DrugName = #{pssDrugname,jdbcType=VARCHAR},
- PSS_StartTime = #{pssStarttime,jdbcType=TIMESTAMP},
- PSS_EndTime = #{pssEndtime,jdbcType=TIMESTAMP},
- PSS_Amount = #{pssAmount,jdbcType=DOUBLE},
- PSS_Unit = #{pssUnit,jdbcType=VARCHAR},
- PSS_Recorder = #{pssRecorder,jdbcType=VARCHAR},
- PSS_Record_Time = #{pssRecordTime,jdbcType=TIMESTAMP},
- PSS_IsDel = #{pssIsdel,jdbcType=INTEGER},
- PSS_Operator = #{pssOperator,jdbcType=VARCHAR},
- PSS_OperatTime = #{pssOperattime,jdbcType=TIMESTAMP}
- where PSS_ID = #{pssId,jdbcType=INTEGER}
- </update>
- </mapper>
|