123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- <?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.sqlservermapper.OrderInfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
- <result column="RecordId" property="recordid" jdbcType="INTEGER" />
- <result column="VisitNo" property="visitno" jdbcType="VARCHAR" />
- <result column="InfantID" property="infantid" jdbcType="VARCHAR" />
- <result column="ChartNo" property="chartno" jdbcType="VARCHAR" />
- <result column="DepartNo" property="departno" jdbcType="VARCHAR" />
- <result column="DepartName" property="departname" jdbcType="VARCHAR" />
- <result column="Gender" property="gender" jdbcType="VARCHAR" />
- <result column="Age" property="age" jdbcType="INTEGER" />
- <result column="BirthDay" property="birthday" jdbcType="TIMESTAMP" />
- <result column="DivNo" property="divno" jdbcType="VARCHAR" />
- <result column="DivName" property="divname" jdbcType="NVARCHAR" />
- <result column="BedNo" property="bedno" jdbcType="VARCHAR" />
- <result column="AdmitTime" property="admittime" jdbcType="TIMESTAMP" />
- <result column="IdNo" property="idno" jdbcType="VARCHAR" />
- <result column="PhyDoctor" property="phydoctor" jdbcType="VARCHAR" />
- <result column="OrderNo" property="orderno" jdbcType="VARCHAR" />
- <result column="OrderUser" property="orderuser" jdbcType="VARCHAR" />
- <result column="OrderTime" property="ordertime" jdbcType="TIMESTAMP" />
- <result column="PreExecTime" property="preexectime" jdbcType="TIMESTAMP" />
- <result column="PreExecLocName" property="preexeclocname" jdbcType="VARCHAR" />
- <result column="PreExecBed" property="preexecbed" jdbcType="VARCHAR" />
- <result column="ExecTime" property="exectime" jdbcType="TIMESTAMP" />
- <result column="ExecLocName" property="execlocname" jdbcType="VARCHAR" />
- <result column="ItemNo" property="itemno" jdbcType="VARCHAR" />
- <result column="Dose" property="dose" jdbcType="DECIMAL" />
- <result column="DoseUnit" property="doseunit" jdbcType="VARCHAR" />
- <result column="WayType" property="waytype" jdbcType="VARCHAR" />
- <result column="WayName" property="wayname" jdbcType="VARCHAR" />
- <result column="ItemCode" property="itemcode" jdbcType="VARCHAR" />
- <result column="ItemName" property="itemname" jdbcType="VARCHAR" />
- <result column="OrderType" property="ordertype" jdbcType="INTEGER" />
- <result column="BigType" property="bigtype" jdbcType="VARCHAR" />
- <result column="PairItemNo" property="pairitemno" jdbcType="VARCHAR" />
- <result column="Rate" property="rate" jdbcType="VARCHAR" />
- <result column="RateUnit" property="rateunit" jdbcType="VARCHAR" />
- <result column="TakeMedWay" property="takemedway" jdbcType="VARCHAR" />
- <result column="Usage" property="usage" jdbcType="VARCHAR" />
- <result column="LongOrTempFlag" property="longortempflag" jdbcType="INTEGER" />
- <result column="ExecStatus" property="execstatus" jdbcType="INTEGER" />
- <result column="BloodStatus" property="bloodstatus" jdbcType="INTEGER" />
- <result column="DrugBarCode" property="drugbarcode" jdbcType="VARCHAR" />
- </resultMap>
- <insert id="insert" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
- insert into V_OrderInfo (RecordId, VisitNo, InfantID,
- ChartNo, DepartNo, DepartName,
- Gender, Age, BirthDay,
- DivNo, DivName, BedNo,
- AdmitTime, IdNo, PhyDoctor,
- OrderNo, OrderUser, OrderTime,
- PreExecTime, PreExecLocName, PreExecBed,
- ExecTime, ExecLocName, ItemNo,
- Dose, DoseUnit, WayType,
- WayName, ItemCode, ItemName,
- OrderType, BigType, PairItemNo,
- Rate, RateUnit, TakeMedWay,
- Usage, LongOrTempFlag, ExecStatus,
- BloodStatus, DrugBarCode)
- values (#{recordid,jdbcType=INTEGER}, #{visitno,jdbcType=VARCHAR}, #{infantid,jdbcType=VARCHAR},
- #{chartno,jdbcType=VARCHAR}, #{departno,jdbcType=VARCHAR}, #{departname,jdbcType=VARCHAR},
- #{gender,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{birthday,jdbcType=TIMESTAMP},
- #{divno,jdbcType=VARCHAR}, #{divname,jdbcType=NVARCHAR}, #{bedno,jdbcType=VARCHAR},
- #{admittime,jdbcType=TIMESTAMP}, #{idno,jdbcType=VARCHAR}, #{phydoctor,jdbcType=VARCHAR},
- #{orderno,jdbcType=VARCHAR}, #{orderuser,jdbcType=VARCHAR}, #{ordertime,jdbcType=TIMESTAMP},
- #{preexectime,jdbcType=TIMESTAMP}, #{preexeclocname,jdbcType=VARCHAR}, #{preexecbed,jdbcType=VARCHAR},
- #{exectime,jdbcType=TIMESTAMP}, #{execlocname,jdbcType=VARCHAR}, #{itemno,jdbcType=VARCHAR},
- #{dose,jdbcType=DECIMAL}, #{doseunit,jdbcType=VARCHAR}, #{waytype,jdbcType=VARCHAR},
- #{wayname,jdbcType=VARCHAR}, #{itemcode,jdbcType=VARCHAR}, #{itemname,jdbcType=VARCHAR},
- #{ordertype,jdbcType=INTEGER}, #{bigtype,jdbcType=VARCHAR}, #{pairitemno,jdbcType=VARCHAR},
- #{rate,jdbcType=VARCHAR}, #{rateunit,jdbcType=VARCHAR}, #{takemedway,jdbcType=VARCHAR},
- #{usage,jdbcType=VARCHAR}, #{longortempflag,jdbcType=INTEGER}, #{execstatus,jdbcType=INTEGER},
- #{bloodstatus,jdbcType=INTEGER}, #{drugbarcode,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
- insert into V_OrderInfo
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="recordid != null" >
- RecordId,
- </if>
- <if test="visitno != null" >
- VisitNo,
- </if>
- <if test="infantid != null" >
- InfantID,
- </if>
- <if test="chartno != null" >
- ChartNo,
- </if>
- <if test="departno != null" >
- DepartNo,
- </if>
- <if test="departname != null" >
- DepartName,
- </if>
- <if test="gender != null" >
- Gender,
- </if>
- <if test="age != null" >
- Age,
- </if>
- <if test="birthday != null" >
- BirthDay,
- </if>
- <if test="divno != null" >
- DivNo,
- </if>
- <if test="divname != null" >
- DivName,
- </if>
- <if test="bedno != null" >
- BedNo,
- </if>
- <if test="admittime != null" >
- AdmitTime,
- </if>
- <if test="idno != null" >
- IdNo,
- </if>
- <if test="phydoctor != null" >
- PhyDoctor,
- </if>
- <if test="orderno != null" >
- OrderNo,
- </if>
- <if test="orderuser != null" >
- OrderUser,
- </if>
- <if test="ordertime != null" >
- OrderTime,
- </if>
- <if test="preexectime != null" >
- PreExecTime,
- </if>
- <if test="preexeclocname != null" >
- PreExecLocName,
- </if>
- <if test="preexecbed != null" >
- PreExecBed,
- </if>
- <if test="exectime != null" >
- ExecTime,
- </if>
- <if test="execlocname != null" >
- ExecLocName,
- </if>
- <if test="itemno != null" >
- ItemNo,
- </if>
- <if test="dose != null" >
- Dose,
- </if>
- <if test="doseunit != null" >
- DoseUnit,
- </if>
- <if test="waytype != null" >
- WayType,
- </if>
- <if test="wayname != null" >
- WayName,
- </if>
- <if test="itemcode != null" >
- ItemCode,
- </if>
- <if test="itemname != null" >
- ItemName,
- </if>
- <if test="ordertype != null" >
- OrderType,
- </if>
- <if test="bigtype != null" >
- BigType,
- </if>
- <if test="pairitemno != null" >
- PairItemNo,
- </if>
- <if test="rate != null" >
- Rate,
- </if>
- <if test="rateunit != null" >
- RateUnit,
- </if>
- <if test="takemedway != null" >
- TakeMedWay,
- </if>
- <if test="usage != null" >
- Usage,
- </if>
- <if test="longortempflag != null" >
- LongOrTempFlag,
- </if>
- <if test="execstatus != null" >
- ExecStatus,
- </if>
- <if test="bloodstatus != null" >
- BloodStatus,
- </if>
- <if test="drugbarcode != null" >
- DrugBarCode,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="recordid != null" >
- #{recordid,jdbcType=INTEGER},
- </if>
- <if test="visitno != null" >
- #{visitno,jdbcType=VARCHAR},
- </if>
- <if test="infantid != null" >
- #{infantid,jdbcType=VARCHAR},
- </if>
- <if test="chartno != null" >
- #{chartno,jdbcType=VARCHAR},
- </if>
- <if test="departno != null" >
- #{departno,jdbcType=VARCHAR},
- </if>
- <if test="departname != null" >
- #{departname,jdbcType=VARCHAR},
- </if>
- <if test="gender != null" >
- #{gender,jdbcType=VARCHAR},
- </if>
- <if test="age != null" >
- #{age,jdbcType=INTEGER},
- </if>
- <if test="birthday != null" >
- #{birthday,jdbcType=TIMESTAMP},
- </if>
- <if test="divno != null" >
- #{divno,jdbcType=VARCHAR},
- </if>
- <if test="divname != null" >
- #{divname,jdbcType=NVARCHAR},
- </if>
- <if test="bedno != null" >
- #{bedno,jdbcType=VARCHAR},
- </if>
- <if test="admittime != null" >
- #{admittime,jdbcType=TIMESTAMP},
- </if>
- <if test="idno != null" >
- #{idno,jdbcType=VARCHAR},
- </if>
- <if test="phydoctor != null" >
- #{phydoctor,jdbcType=VARCHAR},
- </if>
- <if test="orderno != null" >
- #{orderno,jdbcType=VARCHAR},
- </if>
- <if test="orderuser != null" >
- #{orderuser,jdbcType=VARCHAR},
- </if>
- <if test="ordertime != null" >
- #{ordertime,jdbcType=TIMESTAMP},
- </if>
- <if test="preexectime != null" >
- #{preexectime,jdbcType=TIMESTAMP},
- </if>
- <if test="preexeclocname != null" >
- #{preexeclocname,jdbcType=VARCHAR},
- </if>
- <if test="preexecbed != null" >
- #{preexecbed,jdbcType=VARCHAR},
- </if>
- <if test="exectime != null" >
- #{exectime,jdbcType=TIMESTAMP},
- </if>
- <if test="execlocname != null" >
- #{execlocname,jdbcType=VARCHAR},
- </if>
- <if test="itemno != null" >
- #{itemno,jdbcType=VARCHAR},
- </if>
- <if test="dose != null" >
- #{dose,jdbcType=DECIMAL},
- </if>
- <if test="doseunit != null" >
- #{doseunit,jdbcType=VARCHAR},
- </if>
- <if test="waytype != null" >
- #{waytype,jdbcType=VARCHAR},
- </if>
- <if test="wayname != null" >
- #{wayname,jdbcType=VARCHAR},
- </if>
- <if test="itemcode != null" >
- #{itemcode,jdbcType=VARCHAR},
- </if>
- <if test="itemname != null" >
- #{itemname,jdbcType=VARCHAR},
- </if>
- <if test="ordertype != null" >
- #{ordertype,jdbcType=INTEGER},
- </if>
- <if test="bigtype != null" >
- #{bigtype,jdbcType=VARCHAR},
- </if>
- <if test="pairitemno != null" >
- #{pairitemno,jdbcType=VARCHAR},
- </if>
- <if test="rate != null" >
- #{rate,jdbcType=VARCHAR},
- </if>
- <if test="rateunit != null" >
- #{rateunit,jdbcType=VARCHAR},
- </if>
- <if test="takemedway != null" >
- #{takemedway,jdbcType=VARCHAR},
- </if>
- <if test="usage != null" >
- #{usage,jdbcType=VARCHAR},
- </if>
- <if test="longortempflag != null" >
- #{longortempflag,jdbcType=INTEGER},
- </if>
- <if test="execstatus != null" >
- #{execstatus,jdbcType=INTEGER},
- </if>
- <if test="bloodstatus != null" >
- #{bloodstatus,jdbcType=INTEGER},
- </if>
- <if test="drugbarcode != null" >
- #{drugbarcode,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- </mapper>
|