123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?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.PdaInspectionMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.PdaInspection" >
- <id column="PI_ID" property="piId" jdbcType="INTEGER" />
- <result column="PI_PatientNo" property="piPatientno" 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="PI_AdviceGroupCode" property="piAdvicegroupcode" jdbcType="VARCHAR" />
- <result column="PI_AdviceType" property="piAdvicetype" jdbcType="VARCHAR" />
- <result column="PI_Inspector" property="piInspector" jdbcType="VARCHAR" />
- <result column="PI_InspectTime" property="piInspecttime" jdbcType="TIMESTAMP" />
- <result column="PI_AdviceCode" property="piAdvicecode" jdbcType="VARCHAR" />
- <result column="PI_BarCode" property="piBarcode" jdbcType="VARCHAR" />
- <result column="PI_Type" property="piType" jdbcType="INTEGER" />
- <result column="PI_ExceptionFlag" property="piExceptionflag" jdbcType="INTEGER" />
- <result column="PI_Exception_Cause" property="piExceptionCause" jdbcType="VARCHAR" />
- <result column="PI_Measure" property="piMeasure" jdbcType="VARCHAR" />
- <result column="PI_IsDel" property="piIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- PI_ID, PI_PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PI_AdviceGroupCode, PI_AdviceType,
- PI_Inspector, PI_InspectTime, PI_AdviceCode, PI_BarCode, PI_Type, PI_ExceptionFlag,
- PI_Exception_Cause, PI_Measure, PI_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_inspection
- where PI_ID = #{piId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_inspection
- where PI_ID = #{piId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.PdaInspection" >
- insert into pda_inspection (PI_ID, PI_PatientNo, HI_ID,
- DD_DepDm, DW_WardDm, DB_BedNo,
- PI_AdviceGroupCode, PI_AdviceType, PI_Inspector,
- PI_InspectTime, PI_AdviceCode, PI_BarCode,
- PI_Type, PI_ExceptionFlag, PI_Exception_Cause,
- PI_Measure, PI_IsDel)
- values (#{piId,jdbcType=INTEGER}, #{piPatientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{piAdvicegroupcode,jdbcType=VARCHAR}, #{piAdvicetype,jdbcType=VARCHAR}, #{piInspector,jdbcType=VARCHAR},
- #{piInspecttime,jdbcType=TIMESTAMP}, #{piAdvicecode,jdbcType=VARCHAR}, #{piBarcode,jdbcType=VARCHAR},
- #{piType,jdbcType=INTEGER}, #{piExceptionflag,jdbcType=INTEGER}, #{piExceptionCause,jdbcType=VARCHAR},
- #{piMeasure,jdbcType=VARCHAR}, #{piIsdel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.PdaInspection" >
- insert into pda_inspection
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="piId != null" >
- PI_ID,
- </if>
- <if test="piPatientno != null" >
- PI_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="piAdvicegroupcode != null" >
- PI_AdviceGroupCode,
- </if>
- <if test="piAdvicetype != null" >
- PI_AdviceType,
- </if>
- <if test="piInspector != null" >
- PI_Inspector,
- </if>
- <if test="piInspecttime != null" >
- PI_InspectTime,
- </if>
- <if test="piAdvicecode != null" >
- PI_AdviceCode,
- </if>
- <if test="piBarcode != null" >
- PI_BarCode,
- </if>
- <if test="piType != null" >
- PI_Type,
- </if>
- <if test="piExceptionflag != null" >
- PI_ExceptionFlag,
- </if>
- <if test="piExceptionCause != null" >
- PI_Exception_Cause,
- </if>
- <if test="piMeasure != null" >
- PI_Measure,
- </if>
- <if test="piIsdel != null" >
- PI_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="piId != null" >
- #{piId,jdbcType=INTEGER},
- </if>
- <if test="piPatientno != null" >
- #{piPatientno,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="piAdvicegroupcode != null" >
- #{piAdvicegroupcode,jdbcType=VARCHAR},
- </if>
- <if test="piAdvicetype != null" >
- #{piAdvicetype,jdbcType=VARCHAR},
- </if>
- <if test="piInspector != null" >
- #{piInspector,jdbcType=VARCHAR},
- </if>
- <if test="piInspecttime != null" >
- #{piInspecttime,jdbcType=TIMESTAMP},
- </if>
- <if test="piAdvicecode != null" >
- #{piAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="piBarcode != null" >
- #{piBarcode,jdbcType=VARCHAR},
- </if>
- <if test="piType != null" >
- #{piType,jdbcType=INTEGER},
- </if>
- <if test="piExceptionflag != null" >
- #{piExceptionflag,jdbcType=INTEGER},
- </if>
- <if test="piExceptionCause != null" >
- #{piExceptionCause,jdbcType=VARCHAR},
- </if>
- <if test="piMeasure != null" >
- #{piMeasure,jdbcType=VARCHAR},
- </if>
- <if test="piIsdel != null" >
- #{piIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.PdaInspection" >
- update pda_inspection
- <set >
- <if test="piPatientno != null" >
- PI_PatientNo = #{piPatientno,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="piAdvicegroupcode != null" >
- PI_AdviceGroupCode = #{piAdvicegroupcode,jdbcType=VARCHAR},
- </if>
- <if test="piAdvicetype != null" >
- PI_AdviceType = #{piAdvicetype,jdbcType=VARCHAR},
- </if>
- <if test="piInspector != null" >
- PI_Inspector = #{piInspector,jdbcType=VARCHAR},
- </if>
- <if test="piInspecttime != null" >
- PI_InspectTime = #{piInspecttime,jdbcType=TIMESTAMP},
- </if>
- <if test="piAdvicecode != null" >
- PI_AdviceCode = #{piAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="piBarcode != null" >
- PI_BarCode = #{piBarcode,jdbcType=VARCHAR},
- </if>
- <if test="piType != null" >
- PI_Type = #{piType,jdbcType=INTEGER},
- </if>
- <if test="piExceptionflag != null" >
- PI_ExceptionFlag = #{piExceptionflag,jdbcType=INTEGER},
- </if>
- <if test="piExceptionCause != null" >
- PI_Exception_Cause = #{piExceptionCause,jdbcType=VARCHAR},
- </if>
- <if test="piMeasure != null" >
- PI_Measure = #{piMeasure,jdbcType=VARCHAR},
- </if>
- <if test="piIsdel != null" >
- PI_IsDel = #{piIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where PI_ID = #{piId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.PdaInspection" >
- update pda_inspection
- set PI_PatientNo = #{piPatientno,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- PI_AdviceGroupCode = #{piAdvicegroupcode,jdbcType=VARCHAR},
- PI_AdviceType = #{piAdvicetype,jdbcType=VARCHAR},
- PI_Inspector = #{piInspector,jdbcType=VARCHAR},
- PI_InspectTime = #{piInspecttime,jdbcType=TIMESTAMP},
- PI_AdviceCode = #{piAdvicecode,jdbcType=VARCHAR},
- PI_BarCode = #{piBarcode,jdbcType=VARCHAR},
- PI_Type = #{piType,jdbcType=INTEGER},
- PI_ExceptionFlag = #{piExceptionflag,jdbcType=INTEGER},
- PI_Exception_Cause = #{piExceptionCause,jdbcType=VARCHAR},
- PI_Measure = #{piMeasure,jdbcType=VARCHAR},
- PI_IsDel = #{piIsdel,jdbcType=INTEGER}
- where PI_ID = #{piId,jdbcType=INTEGER}
- </update>
- </mapper>
|