123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?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.ExecRecordMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
- <id column="PO_ID" property="poId" jdbcType="INTEGER" />
- <result column="PO_PatientNo" property="poPatientno" 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="PO_AdviceGroupCode" property="poAdvicegroupcode" jdbcType="VARCHAR" />
- <result column="PO_AdviceType" property="poAdvicetype" jdbcType="VARCHAR" />
- <result column="PO_Operator" property="poOperator" jdbcType="VARCHAR" />
- <result column="PO_OperatTime" property="poOperattime" jdbcType="TIMESTAMP" />
- <result column="PO_CheckMan" property="poCheckman" jdbcType="VARCHAR" />
- <result column="PO_OperatType" property="poOperattype" jdbcType="INTEGER" />
- <result column="PO_OperatMode" property="poOperatmode" jdbcType="INTEGER" />
- <result column="PO_IsDel" property="poIsdel" jdbcType="INTEGER" />
- <result column="PO_AdviceCode" property="poAdvicecode" jdbcType="VARCHAR" />
- <result column="PO_BarCode" property="poBarcode" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- PO_ID, PO_PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PO_AdviceGroupCode, PO_AdviceType,
- PO_Operator, PO_OperatTime, PO_CheckMan, PO_OperatType, PO_OperatMode, PO_IsDel,
- PO_AdviceCode, PO_BarCode
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_order
- where PO_ID = #{poId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_order
- where PO_ID = #{poId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
- insert into pda_order (PO_ID, PO_PatientNo, HI_ID,
- DD_DepDm, DW_WardDm, DB_BedNo,
- PO_AdviceGroupCode, PO_AdviceType, PO_Operator,
- PO_OperatTime, PO_CheckMan, PO_OperatType,
- PO_OperatMode, PO_IsDel, PO_AdviceCode,
- PO_BarCode)
- values (#{poId,jdbcType=INTEGER}, #{poPatientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{poAdvicegroupcode,jdbcType=VARCHAR}, #{poAdvicetype,jdbcType=VARCHAR}, #{poOperator,jdbcType=VARCHAR},
- #{poOperattime,jdbcType=TIMESTAMP}, #{poCheckman,jdbcType=VARCHAR}, #{poOperattype,jdbcType=INTEGER},
- #{poOperatmode,jdbcType=INTEGER}, #{poIsdel,jdbcType=INTEGER}, #{poAdvicecode,jdbcType=VARCHAR},
- #{poBarcode,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
- insert into pda_order
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="poId != null" >
- PO_ID,
- </if>
- <if test="poPatientno != null" >
- PO_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="poAdvicegroupcode != null" >
- PO_AdviceGroupCode,
- </if>
- <if test="poAdvicetype != null" >
- PO_AdviceType,
- </if>
- <if test="poOperator != null" >
- PO_Operator,
- </if>
- <if test="poOperattime != null" >
- PO_OperatTime,
- </if>
- <if test="poCheckman != null" >
- PO_CheckMan,
- </if>
- <if test="poOperattype != null" >
- PO_OperatType,
- </if>
- <if test="poOperatmode != null" >
- PO_OperatMode,
- </if>
- <if test="poIsdel != null" >
- PO_IsDel,
- </if>
- <if test="poAdvicecode != null" >
- PO_AdviceCode,
- </if>
- <if test="poBarcode != null" >
- PO_BarCode,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="poId != null" >
- #{poId,jdbcType=INTEGER},
- </if>
- <if test="poPatientno != null" >
- #{poPatientno,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="poAdvicegroupcode != null" >
- #{poAdvicegroupcode,jdbcType=VARCHAR},
- </if>
- <if test="poAdvicetype != null" >
- #{poAdvicetype,jdbcType=VARCHAR},
- </if>
- <if test="poOperator != null" >
- #{poOperator,jdbcType=VARCHAR},
- </if>
- <if test="poOperattime != null" >
- #{poOperattime,jdbcType=TIMESTAMP},
- </if>
- <if test="poCheckman != null" >
- #{poCheckman,jdbcType=VARCHAR},
- </if>
- <if test="poOperattype != null" >
- #{poOperattype,jdbcType=INTEGER},
- </if>
- <if test="poOperatmode != null" >
- #{poOperatmode,jdbcType=INTEGER},
- </if>
- <if test="poIsdel != null" >
- #{poIsdel,jdbcType=INTEGER},
- </if>
- <if test="poAdvicecode != null" >
- #{poAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="poBarcode != null" >
- #{poBarcode,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
- update pda_order
- <set >
- <if test="poPatientno != null" >
- PO_PatientNo = #{poPatientno,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="poAdvicegroupcode != null" >
- PO_AdviceGroupCode = #{poAdvicegroupcode,jdbcType=VARCHAR},
- </if>
- <if test="poAdvicetype != null" >
- PO_AdviceType = #{poAdvicetype,jdbcType=VARCHAR},
- </if>
- <if test="poOperator != null" >
- PO_Operator = #{poOperator,jdbcType=VARCHAR},
- </if>
- <if test="poOperattime != null" >
- PO_OperatTime = #{poOperattime,jdbcType=TIMESTAMP},
- </if>
- <if test="poCheckman != null" >
- PO_CheckMan = #{poCheckman,jdbcType=VARCHAR},
- </if>
- <if test="poOperattype != null" >
- PO_OperatType = #{poOperattype,jdbcType=INTEGER},
- </if>
- <if test="poOperatmode != null" >
- PO_OperatMode = #{poOperatmode,jdbcType=INTEGER},
- </if>
- <if test="poIsdel != null" >
- PO_IsDel = #{poIsdel,jdbcType=INTEGER},
- </if>
- <if test="poAdvicecode != null" >
- PO_AdviceCode = #{poAdvicecode,jdbcType=VARCHAR},
- </if>
- <if test="poBarcode != null" >
- PO_BarCode = #{poBarcode,jdbcType=VARCHAR},
- </if>
- </set>
- where PO_ID = #{poId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
- update pda_order
- set PO_PatientNo = #{poPatientno,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- PO_AdviceGroupCode = #{poAdvicegroupcode,jdbcType=VARCHAR},
- PO_AdviceType = #{poAdvicetype,jdbcType=VARCHAR},
- PO_Operator = #{poOperator,jdbcType=VARCHAR},
- PO_OperatTime = #{poOperattime,jdbcType=TIMESTAMP},
- PO_CheckMan = #{poCheckman,jdbcType=VARCHAR},
- PO_OperatType = #{poOperattype,jdbcType=INTEGER},
- PO_OperatMode = #{poOperatmode,jdbcType=INTEGER},
- PO_IsDel = #{poIsdel,jdbcType=INTEGER},
- PO_AdviceCode = #{poAdvicecode,jdbcType=VARCHAR},
- PO_BarCode = #{poBarcode,jdbcType=VARCHAR}
- where PO_ID = #{poId,jdbcType=INTEGER}
- </update>
- <select id="selectByBarCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_order
- where PO_BarCode in <foreach item='item' index='index' collection='barCodes' open='(' separator=',' close=')'> #{item} </foreach>
- and PO_OperatType=#{operateType,jdbcType=VARCHAR}
- </select>
- </mapper>
|