123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- <?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.pubservice.mysqlmapper.InpMedOrderMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.InpMedOrder" >
- <id column="IMO_ID" property="imoId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="PatientNo" property="patientno" jdbcType="VARCHAR" />
- <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="IMO_Order_ID" property="imoOrderId" jdbcType="VARCHAR" />
- <result column="IMO_Item_Code" property="imoItemCode" jdbcType="VARCHAR" />
- <result column="IMO_Order_Name" property="imoOrderName" jdbcType="VARCHAR" />
- <result column="IMO_Item_Explain" property="imoItemExplain" jdbcType="VARCHAR" />
- <result column="IMO_Item_SupID" property="imoItemSupid" jdbcType="VARCHAR" />
- <result column="IMO_Item_OrderID" property="imoItemOrderid" jdbcType="VARCHAR" />
- <result column="IMO_FirstDay_Times" property="imoFirstdayTimes" jdbcType="DOUBLE" />
- <result column="IMO_Entrust" property="imoEntrust" jdbcType="VARCHAR" />
- <result column="IMO_Med_Usage" property="imoMedUsage" jdbcType="VARCHAR" />
- <result column="IMO_IsLong" property="imoIslong" jdbcType="INTEGER" />
- <result column="IMO_Status" property="imoStatus" jdbcType="INTEGER" />
- <result column="IMO_Order_Type" property="imoOrderType" jdbcType="INTEGER" />
- <result column="IMO_Med_Type" property="imoMedType" jdbcType="INTEGER" />
- <result column="IMO_Med_Way" property="imoMedWay" jdbcType="VARCHAR" />
- <result column="IMO_Item_Name" property="imoItemName" jdbcType="VARCHAR" />
- <result column="IMO_Item_Spec" property="imoItemSpec" jdbcType="VARCHAR" />
- <result column="IMO_Item_Dose" property="imoItemDose" jdbcType="DOUBLE" />
- <result column="IMO_Item_DoseUnit" property="imoItemDoseunit" jdbcType="VARCHAR" />
- <result column="IMO_Once_Dose" property="imoOnceDose" jdbcType="DOUBLE" />
- <result column="IMO_Once_DoseUnit" property="imoOnceDoseunit" jdbcType="VARCHAR" />
- <result column="IMO_IsEmer" property="imoIsemer" jdbcType="INTEGER" />
- <result column="IMO_PIVA" property="imoPiva" jdbcType="INTEGER" />
- <result column="IMO_IsSkinTest" property="imoIsskintest" jdbcType="INTEGER" />
- <result column="IMO_SkinTest_Result" property="imoSkintestResult" jdbcType="VARCHAR" />
- <result column="IMO_Opener" property="imoOpener" jdbcType="VARCHAR" />
- <result column="IMO_Open_Time" property="imoOpenTime" jdbcType="TIMESTAMP" />
- <result column="IMO_Stoper" property="imoStoper" jdbcType="VARCHAR" />
- <result column="IMO_Stop_Time" property="imoStopTime" jdbcType="TIMESTAMP" />
- <result column="IMO_StopChecker" property="imoStopchecker" jdbcType="VARCHAR" />
- <result column="IMO_StopCheck_Time" property="imoStopcheckTime" jdbcType="TIMESTAMP" />
- <result column="IMO_Revoker" property="imoRevoker" jdbcType="VARCHAR" />
- <result column="IMO_Revoke_Time" property="imoRevokeTime" jdbcType="TIMESTAMP" />
- <result column="IMO_Revoke_Reason" property="imoRevokeReason" jdbcType="VARCHAR" />
- <result column="IMO_Checker" property="imoChecker" jdbcType="VARCHAR" />
- <result column="IMO_Check_Time" property="imoCheckTime" jdbcType="TIMESTAMP" />
- <result column="IMO_Excutor" property="imoExcutor" jdbcType="VARCHAR" />
- <result column="IMO_Excute_Time" property="imoExcuteTime" jdbcType="TIMESTAMP" />
- <result column="IMO_Drug_Days" property="imoDrugDays" jdbcType="INTEGER" />
- <result column="IMO_Rate" property="imoRate" jdbcType="VARCHAR" />
- <result column="IMO_Rate_Unit" property="imoRateUnit" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- IMO_ID, HI_ID, PatientNo, DD_DepDm, DW_WardDm, DB_BedNo, IMO_Order_ID, IMO_Item_Code,
- IMO_Order_Name, IMO_Item_Explain, IMO_Item_SupID, IMO_Item_OrderID, IMO_FirstDay_Times,
- IMO_Entrust, IMO_Med_Usage, IMO_IsLong, IMO_Status, IMO_Order_Type, IMO_Med_Type,
- IMO_Med_Way, IMO_Item_Name, IMO_Item_Spec, IMO_Item_Dose, IMO_Item_DoseUnit, IMO_Once_Dose,
- IMO_Once_DoseUnit, IMO_IsEmer, IMO_PIVA, IMO_IsSkinTest, IMO_SkinTest_Result, IMO_Opener,
- IMO_Open_Time, IMO_Stoper, IMO_Stop_Time, IMO_StopChecker, IMO_StopCheck_Time, IMO_Revoker,
- IMO_Revoke_Time, IMO_Revoke_Reason, IMO_Checker, IMO_Check_Time, IMO_Excutor, IMO_Excute_Time,
- IMO_Drug_Days, IMO_Rate, IMO_Rate_Unit
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_med_order
- where IMO_ID = #{imoId,jdbcType=INTEGER}
- </select>
- <!-- <select id="selectPatientNo" resultType="com.xinxin.topro.pubservice.mysqlModel.InpOriginalOrderInfo"
- parameterType="com.xinxin.topro.pubservice.VO.MedOrderSearchVO" >
- select
- a.IMO_ID as ItemNo,
- a.PatientNo as VisitNo,/*病人ID */
- a.DW_WardDm as DepartNo,/*病区代码*/
- a.DD_DepDm as DivNo,/*科室代码*/
- a.DB_BedNo as BedNo,/*床位*/
- a.IMO_Order_ID as OrderNo,/*医嘱ID*/
- a.IMO_Opener as OrderUser,/*开立医生*/
- a.IMO_Open_Time as OrderTime,/*开立时间*/
- a.IMO_Stop_Time as TreatTime,/*停嘱时间*/
- a.IMO_Stoper as TreatUser,/*停嘱人*/
- a.IMO_Status as TreatStatus,/*停嘱状态 -1=作废 1=新增 2=核对 3=展开 4=执行 5=停止 6=撤销 7=删除 8=教学*/
- a.IMO_Excute_Time as ExecTime,/*执行时间*/
- a.IMO_Item_Dose as Dose,/*每次剂量*/
- a.IMO_Item_DoseUnit as DoseUnit,/*剂量单位*/
- a.IMO_Med_Way as WayType,/*给药方式类型*/
- d.DMW_Name WayName,/*给药方式名称*/
- a.IMO_Item_Code as ItemCode,/*医嘱项目代码*/
- a.IMO_Order_Name as ItemName,/*医嘱名称*/
- a.IMO_Order_Type as OrderType,/*医嘱类型 1=诊疗 2=药品 3=检验 4=检查 5=输血 6=会诊 7=文本 8=手术*/
- a.IMO_Med_Type as BigType,/*医嘱分类 1=西药 2=成药 3=草药 4=颗粒剂 5=膏方*/
- a.IMO_Item_OrderID as PairItemNo,/*成组医嘱*/
- a.IMO_Rate as Rate,/*滴速*/
- a.IMO_Rate_Unit as RateUnit,/*滴速单位*/
- a.IMO_Med_Usage `Usage`,/*频率*/
- a.IMO_IsLong as LongOrTempFlag,/*长期临时 1=长期 2=临时*/
- a.IMO_Item_Explain as Advise /*医嘱说明*/
- from inp_med_order a
- INNER JOIN dic_med_way d on a.IMO_Med_Way = d.DMW_Code
- where a.PatientNo = #{patientNo,jdbcType=VARCHAR}
- <if test="beginTime != null" >
- and a.IMO_Open_Time <![CDATA[>=]]> #{beginTime}
- </if>
- <if test="endTime != null" >
- and a.IMO_Open_Time <![CDATA[<=]]>#{endTime}
- </if>
- </select>-->
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_med_order
- where IMO_ID = #{imoId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpMedOrder" >
- insert into inp_med_order (IMO_ID, HI_ID, PatientNo,
- DD_DepDm, DW_WardDm, DB_BedNo,
- IMO_Order_ID, IMO_Item_Code, IMO_Order_Name,
- IMO_Item_Explain, IMO_Item_SupID, IMO_Item_OrderID,
- IMO_FirstDay_Times, IMO_Entrust, IMO_Med_Usage,
- IMO_IsLong, IMO_Status, IMO_Order_Type,
- IMO_Med_Type, IMO_Med_Way, IMO_Item_Name,
- IMO_Item_Spec, IMO_Item_Dose, IMO_Item_DoseUnit,
- IMO_Once_Dose, IMO_Once_DoseUnit, IMO_IsEmer,
- IMO_PIVA, IMO_IsSkinTest, IMO_SkinTest_Result,
- IMO_Opener, IMO_Open_Time, IMO_Stoper,
- IMO_Stop_Time, IMO_StopChecker, IMO_StopCheck_Time,
- IMO_Revoker, IMO_Revoke_Time, IMO_Revoke_Reason,
- IMO_Checker, IMO_Check_Time, IMO_Excutor,
- IMO_Excute_Time, IMO_Drug_Days, IMO_Rate,
- IMO_Rate_Unit)
- values (#{imoId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{patientno,jdbcType=VARCHAR},
- #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
- #{imoOrderId,jdbcType=VARCHAR}, #{imoItemCode,jdbcType=VARCHAR}, #{imoOrderName,jdbcType=VARCHAR},
- #{imoItemExplain,jdbcType=VARCHAR}, #{imoItemSupid,jdbcType=VARCHAR}, #{imoItemOrderid,jdbcType=VARCHAR},
- #{imoFirstdayTimes,jdbcType=DOUBLE}, #{imoEntrust,jdbcType=VARCHAR}, #{imoMedUsage,jdbcType=VARCHAR},
- #{imoIslong,jdbcType=INTEGER}, #{imoStatus,jdbcType=INTEGER}, #{imoOrderType,jdbcType=INTEGER},
- #{imoMedType,jdbcType=INTEGER}, #{imoMedWay,jdbcType=VARCHAR}, #{imoItemName,jdbcType=VARCHAR},
- #{imoItemSpec,jdbcType=VARCHAR}, #{imoItemDose,jdbcType=DOUBLE}, #{imoItemDoseunit,jdbcType=VARCHAR},
- #{imoOnceDose,jdbcType=DOUBLE}, #{imoOnceDoseunit,jdbcType=VARCHAR}, #{imoIsemer,jdbcType=INTEGER},
- #{imoPiva,jdbcType=INTEGER}, #{imoIsskintest,jdbcType=INTEGER}, #{imoSkintestResult,jdbcType=VARCHAR},
- #{imoOpener,jdbcType=VARCHAR}, #{imoOpenTime,jdbcType=TIMESTAMP}, #{imoStoper,jdbcType=VARCHAR},
- #{imoStopTime,jdbcType=TIMESTAMP}, #{imoStopchecker,jdbcType=VARCHAR}, #{imoStopcheckTime,jdbcType=TIMESTAMP},
- #{imoRevoker,jdbcType=VARCHAR}, #{imoRevokeTime,jdbcType=TIMESTAMP}, #{imoRevokeReason,jdbcType=VARCHAR},
- #{imoChecker,jdbcType=VARCHAR}, #{imoCheckTime,jdbcType=TIMESTAMP}, #{imoExcutor,jdbcType=VARCHAR},
- #{imoExcuteTime,jdbcType=TIMESTAMP}, #{imoDrugDays,jdbcType=INTEGER}, #{imoRate,jdbcType=VARCHAR},
- #{imoRateUnit,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpMedOrder" >
- insert into inp_med_order
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="imoId != null" >
- IMO_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="patientno != null" >
- PatientNo,
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm,
- </if>
- <if test="dwWarddm != null" >
- DW_WardDm,
- </if>
- <if test="dbBedno != null" >
- DB_BedNo,
- </if>
- <if test="imoOrderId != null" >
- IMO_Order_ID,
- </if>
- <if test="imoItemCode != null" >
- IMO_Item_Code,
- </if>
- <if test="imoOrderName != null" >
- IMO_Order_Name,
- </if>
- <if test="imoItemExplain != null" >
- IMO_Item_Explain,
- </if>
- <if test="imoItemSupid != null" >
- IMO_Item_SupID,
- </if>
- <if test="imoItemOrderid != null" >
- IMO_Item_OrderID,
- </if>
- <if test="imoFirstdayTimes != null" >
- IMO_FirstDay_Times,
- </if>
- <if test="imoEntrust != null" >
- IMO_Entrust,
- </if>
- <if test="imoMedUsage != null" >
- IMO_Med_Usage,
- </if>
- <if test="imoIslong != null" >
- IMO_IsLong,
- </if>
- <if test="imoStatus != null" >
- IMO_Status,
- </if>
- <if test="imoOrderType != null" >
- IMO_Order_Type,
- </if>
- <if test="imoMedType != null" >
- IMO_Med_Type,
- </if>
- <if test="imoMedWay != null" >
- IMO_Med_Way,
- </if>
- <if test="imoItemName != null" >
- IMO_Item_Name,
- </if>
- <if test="imoItemSpec != null" >
- IMO_Item_Spec,
- </if>
- <if test="imoItemDose != null" >
- IMO_Item_Dose,
- </if>
- <if test="imoItemDoseunit != null" >
- IMO_Item_DoseUnit,
- </if>
- <if test="imoOnceDose != null" >
- IMO_Once_Dose,
- </if>
- <if test="imoOnceDoseunit != null" >
- IMO_Once_DoseUnit,
- </if>
- <if test="imoIsemer != null" >
- IMO_IsEmer,
- </if>
- <if test="imoPiva != null" >
- IMO_PIVA,
- </if>
- <if test="imoIsskintest != null" >
- IMO_IsSkinTest,
- </if>
- <if test="imoSkintestResult != null" >
- IMO_SkinTest_Result,
- </if>
- <if test="imoOpener != null" >
- IMO_Opener,
- </if>
- <if test="imoOpenTime != null" >
- IMO_Open_Time,
- </if>
- <if test="imoStoper != null" >
- IMO_Stoper,
- </if>
- <if test="imoStopTime != null" >
- IMO_Stop_Time,
- </if>
- <if test="imoStopchecker != null" >
- IMO_StopChecker,
- </if>
- <if test="imoStopcheckTime != null" >
- IMO_StopCheck_Time,
- </if>
- <if test="imoRevoker != null" >
- IMO_Revoker,
- </if>
- <if test="imoRevokeTime != null" >
- IMO_Revoke_Time,
- </if>
- <if test="imoRevokeReason != null" >
- IMO_Revoke_Reason,
- </if>
- <if test="imoChecker != null" >
- IMO_Checker,
- </if>
- <if test="imoCheckTime != null" >
- IMO_Check_Time,
- </if>
- <if test="imoExcutor != null" >
- IMO_Excutor,
- </if>
- <if test="imoExcuteTime != null" >
- IMO_Excute_Time,
- </if>
- <if test="imoDrugDays != null" >
- IMO_Drug_Days,
- </if>
- <if test="imoRate != null" >
- IMO_Rate,
- </if>
- <if test="imoRateUnit != null" >
- IMO_Rate_Unit,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="imoId != null" >
- #{imoId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="patientno != null" >
- #{patientno,jdbcType=VARCHAR},
- </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="imoOrderId != null" >
- #{imoOrderId,jdbcType=VARCHAR},
- </if>
- <if test="imoItemCode != null" >
- #{imoItemCode,jdbcType=VARCHAR},
- </if>
- <if test="imoOrderName != null" >
- #{imoOrderName,jdbcType=VARCHAR},
- </if>
- <if test="imoItemExplain != null" >
- #{imoItemExplain,jdbcType=VARCHAR},
- </if>
- <if test="imoItemSupid != null" >
- #{imoItemSupid,jdbcType=VARCHAR},
- </if>
- <if test="imoItemOrderid != null" >
- #{imoItemOrderid,jdbcType=VARCHAR},
- </if>
- <if test="imoFirstdayTimes != null" >
- #{imoFirstdayTimes,jdbcType=DOUBLE},
- </if>
- <if test="imoEntrust != null" >
- #{imoEntrust,jdbcType=VARCHAR},
- </if>
- <if test="imoMedUsage != null" >
- #{imoMedUsage,jdbcType=VARCHAR},
- </if>
- <if test="imoIslong != null" >
- #{imoIslong,jdbcType=INTEGER},
- </if>
- <if test="imoStatus != null" >
- #{imoStatus,jdbcType=INTEGER},
- </if>
- <if test="imoOrderType != null" >
- #{imoOrderType,jdbcType=INTEGER},
- </if>
- <if test="imoMedType != null" >
- #{imoMedType,jdbcType=INTEGER},
- </if>
- <if test="imoMedWay != null" >
- #{imoMedWay,jdbcType=VARCHAR},
- </if>
- <if test="imoItemName != null" >
- #{imoItemName,jdbcType=VARCHAR},
- </if>
- <if test="imoItemSpec != null" >
- #{imoItemSpec,jdbcType=VARCHAR},
- </if>
- <if test="imoItemDose != null" >
- #{imoItemDose,jdbcType=DOUBLE},
- </if>
- <if test="imoItemDoseunit != null" >
- #{imoItemDoseunit,jdbcType=VARCHAR},
- </if>
- <if test="imoOnceDose != null" >
- #{imoOnceDose,jdbcType=DOUBLE},
- </if>
- <if test="imoOnceDoseunit != null" >
- #{imoOnceDoseunit,jdbcType=VARCHAR},
- </if>
- <if test="imoIsemer != null" >
- #{imoIsemer,jdbcType=INTEGER},
- </if>
- <if test="imoPiva != null" >
- #{imoPiva,jdbcType=INTEGER},
- </if>
- <if test="imoIsskintest != null" >
- #{imoIsskintest,jdbcType=INTEGER},
- </if>
- <if test="imoSkintestResult != null" >
- #{imoSkintestResult,jdbcType=VARCHAR},
- </if>
- <if test="imoOpener != null" >
- #{imoOpener,jdbcType=VARCHAR},
- </if>
- <if test="imoOpenTime != null" >
- #{imoOpenTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoStoper != null" >
- #{imoStoper,jdbcType=VARCHAR},
- </if>
- <if test="imoStopTime != null" >
- #{imoStopTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoStopchecker != null" >
- #{imoStopchecker,jdbcType=VARCHAR},
- </if>
- <if test="imoStopcheckTime != null" >
- #{imoStopcheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoRevoker != null" >
- #{imoRevoker,jdbcType=VARCHAR},
- </if>
- <if test="imoRevokeTime != null" >
- #{imoRevokeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoRevokeReason != null" >
- #{imoRevokeReason,jdbcType=VARCHAR},
- </if>
- <if test="imoChecker != null" >
- #{imoChecker,jdbcType=VARCHAR},
- </if>
- <if test="imoCheckTime != null" >
- #{imoCheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoExcutor != null" >
- #{imoExcutor,jdbcType=VARCHAR},
- </if>
- <if test="imoExcuteTime != null" >
- #{imoExcuteTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoDrugDays != null" >
- #{imoDrugDays,jdbcType=INTEGER},
- </if>
- <if test="imoRate != null" >
- #{imoRate,jdbcType=VARCHAR},
- </if>
- <if test="imoRateUnit != null" >
- #{imoRateUnit,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpMedOrder" >
- update inp_med_order
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="patientno != null" >
- PatientNo = #{patientno,jdbcType=VARCHAR},
- </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="imoOrderId != null" >
- IMO_Order_ID = #{imoOrderId,jdbcType=VARCHAR},
- </if>
- <if test="imoItemCode != null" >
- IMO_Item_Code = #{imoItemCode,jdbcType=VARCHAR},
- </if>
- <if test="imoOrderName != null" >
- IMO_Order_Name = #{imoOrderName,jdbcType=VARCHAR},
- </if>
- <if test="imoItemExplain != null" >
- IMO_Item_Explain = #{imoItemExplain,jdbcType=VARCHAR},
- </if>
- <if test="imoItemSupid != null" >
- IMO_Item_SupID = #{imoItemSupid,jdbcType=VARCHAR},
- </if>
- <if test="imoItemOrderid != null" >
- IMO_Item_OrderID = #{imoItemOrderid,jdbcType=VARCHAR},
- </if>
- <if test="imoFirstdayTimes != null" >
- IMO_FirstDay_Times = #{imoFirstdayTimes,jdbcType=DOUBLE},
- </if>
- <if test="imoEntrust != null" >
- IMO_Entrust = #{imoEntrust,jdbcType=VARCHAR},
- </if>
- <if test="imoMedUsage != null" >
- IMO_Med_Usage = #{imoMedUsage,jdbcType=VARCHAR},
- </if>
- <if test="imoIslong != null" >
- IMO_IsLong = #{imoIslong,jdbcType=INTEGER},
- </if>
- <if test="imoStatus != null" >
- IMO_Status = #{imoStatus,jdbcType=INTEGER},
- </if>
- <if test="imoOrderType != null" >
- IMO_Order_Type = #{imoOrderType,jdbcType=INTEGER},
- </if>
- <if test="imoMedType != null" >
- IMO_Med_Type = #{imoMedType,jdbcType=INTEGER},
- </if>
- <if test="imoMedWay != null" >
- IMO_Med_Way = #{imoMedWay,jdbcType=VARCHAR},
- </if>
- <if test="imoItemName != null" >
- IMO_Item_Name = #{imoItemName,jdbcType=VARCHAR},
- </if>
- <if test="imoItemSpec != null" >
- IMO_Item_Spec = #{imoItemSpec,jdbcType=VARCHAR},
- </if>
- <if test="imoItemDose != null" >
- IMO_Item_Dose = #{imoItemDose,jdbcType=DOUBLE},
- </if>
- <if test="imoItemDoseunit != null" >
- IMO_Item_DoseUnit = #{imoItemDoseunit,jdbcType=VARCHAR},
- </if>
- <if test="imoOnceDose != null" >
- IMO_Once_Dose = #{imoOnceDose,jdbcType=DOUBLE},
- </if>
- <if test="imoOnceDoseunit != null" >
- IMO_Once_DoseUnit = #{imoOnceDoseunit,jdbcType=VARCHAR},
- </if>
- <if test="imoIsemer != null" >
- IMO_IsEmer = #{imoIsemer,jdbcType=INTEGER},
- </if>
- <if test="imoPiva != null" >
- IMO_PIVA = #{imoPiva,jdbcType=INTEGER},
- </if>
- <if test="imoIsskintest != null" >
- IMO_IsSkinTest = #{imoIsskintest,jdbcType=INTEGER},
- </if>
- <if test="imoSkintestResult != null" >
- IMO_SkinTest_Result = #{imoSkintestResult,jdbcType=VARCHAR},
- </if>
- <if test="imoOpener != null" >
- IMO_Opener = #{imoOpener,jdbcType=VARCHAR},
- </if>
- <if test="imoOpenTime != null" >
- IMO_Open_Time = #{imoOpenTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoStoper != null" >
- IMO_Stoper = #{imoStoper,jdbcType=VARCHAR},
- </if>
- <if test="imoStopTime != null" >
- IMO_Stop_Time = #{imoStopTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoStopchecker != null" >
- IMO_StopChecker = #{imoStopchecker,jdbcType=VARCHAR},
- </if>
- <if test="imoStopcheckTime != null" >
- IMO_StopCheck_Time = #{imoStopcheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoRevoker != null" >
- IMO_Revoker = #{imoRevoker,jdbcType=VARCHAR},
- </if>
- <if test="imoRevokeTime != null" >
- IMO_Revoke_Time = #{imoRevokeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoRevokeReason != null" >
- IMO_Revoke_Reason = #{imoRevokeReason,jdbcType=VARCHAR},
- </if>
- <if test="imoChecker != null" >
- IMO_Checker = #{imoChecker,jdbcType=VARCHAR},
- </if>
- <if test="imoCheckTime != null" >
- IMO_Check_Time = #{imoCheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoExcutor != null" >
- IMO_Excutor = #{imoExcutor,jdbcType=VARCHAR},
- </if>
- <if test="imoExcuteTime != null" >
- IMO_Excute_Time = #{imoExcuteTime,jdbcType=TIMESTAMP},
- </if>
- <if test="imoDrugDays != null" >
- IMO_Drug_Days = #{imoDrugDays,jdbcType=INTEGER},
- </if>
- <if test="imoRate != null" >
- IMO_Rate = #{imoRate,jdbcType=VARCHAR},
- </if>
- <if test="imoRateUnit != null" >
- IMO_Rate_Unit = #{imoRateUnit,jdbcType=VARCHAR},
- </if>
- </set>
- where IMO_ID = #{imoId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpMedOrder" >
- update inp_med_order
- set HI_ID = #{hiId,jdbcType=INTEGER},
- PatientNo = #{patientno,jdbcType=VARCHAR},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
- DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
- IMO_Order_ID = #{imoOrderId,jdbcType=VARCHAR},
- IMO_Item_Code = #{imoItemCode,jdbcType=VARCHAR},
- IMO_Order_Name = #{imoOrderName,jdbcType=VARCHAR},
- IMO_Item_Explain = #{imoItemExplain,jdbcType=VARCHAR},
- IMO_Item_SupID = #{imoItemSupid,jdbcType=VARCHAR},
- IMO_Item_OrderID = #{imoItemOrderid,jdbcType=VARCHAR},
- IMO_FirstDay_Times = #{imoFirstdayTimes,jdbcType=DOUBLE},
- IMO_Entrust = #{imoEntrust,jdbcType=VARCHAR},
- IMO_Med_Usage = #{imoMedUsage,jdbcType=VARCHAR},
- IMO_IsLong = #{imoIslong,jdbcType=INTEGER},
- IMO_Status = #{imoStatus,jdbcType=INTEGER},
- IMO_Order_Type = #{imoOrderType,jdbcType=INTEGER},
- IMO_Med_Type = #{imoMedType,jdbcType=INTEGER},
- IMO_Med_Way = #{imoMedWay,jdbcType=VARCHAR},
- IMO_Item_Name = #{imoItemName,jdbcType=VARCHAR},
- IMO_Item_Spec = #{imoItemSpec,jdbcType=VARCHAR},
- IMO_Item_Dose = #{imoItemDose,jdbcType=DOUBLE},
- IMO_Item_DoseUnit = #{imoItemDoseunit,jdbcType=VARCHAR},
- IMO_Once_Dose = #{imoOnceDose,jdbcType=DOUBLE},
- IMO_Once_DoseUnit = #{imoOnceDoseunit,jdbcType=VARCHAR},
- IMO_IsEmer = #{imoIsemer,jdbcType=INTEGER},
- IMO_PIVA = #{imoPiva,jdbcType=INTEGER},
- IMO_IsSkinTest = #{imoIsskintest,jdbcType=INTEGER},
- IMO_SkinTest_Result = #{imoSkintestResult,jdbcType=VARCHAR},
- IMO_Opener = #{imoOpener,jdbcType=VARCHAR},
- IMO_Open_Time = #{imoOpenTime,jdbcType=TIMESTAMP},
- IMO_Stoper = #{imoStoper,jdbcType=VARCHAR},
- IMO_Stop_Time = #{imoStopTime,jdbcType=TIMESTAMP},
- IMO_StopChecker = #{imoStopchecker,jdbcType=VARCHAR},
- IMO_StopCheck_Time = #{imoStopcheckTime,jdbcType=TIMESTAMP},
- IMO_Revoker = #{imoRevoker,jdbcType=VARCHAR},
- IMO_Revoke_Time = #{imoRevokeTime,jdbcType=TIMESTAMP},
- IMO_Revoke_Reason = #{imoRevokeReason,jdbcType=VARCHAR},
- IMO_Checker = #{imoChecker,jdbcType=VARCHAR},
- IMO_Check_Time = #{imoCheckTime,jdbcType=TIMESTAMP},
- IMO_Excutor = #{imoExcutor,jdbcType=VARCHAR},
- IMO_Excute_Time = #{imoExcuteTime,jdbcType=TIMESTAMP},
- IMO_Drug_Days = #{imoDrugDays,jdbcType=INTEGER},
- IMO_Rate = #{imoRate,jdbcType=VARCHAR},
- IMO_Rate_Unit = #{imoRateUnit,jdbcType=VARCHAR}
- where IMO_ID = #{imoId,jdbcType=INTEGER}
- </update>
- <select id="getMedInformation2" resultMap="BaseResultMap">
- select <include refid="Base_Column_List"/>
- from inp_med_order
- where PatientNo =#{patientNo,jdbcType=VARCHAR}
- and HI_ID = #{hiId,jdbcType=INTEGER}
- and IMO_Status in (1,2,3,4,5)
- <if test="startDate != null">
- and IMO_Open_Time >= #{startDate,jdbcType=TIMESTAMP}
- </if>
- <if test="endDate != null">
- and #{endDate,jdbcType=TIMESTAMP} >= IMO_Open_Time
- </if>
- <if test="classifyList != null" >
- and IMO_Order_Type in
- <foreach collection="classifyList" item="item" separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="typeList != null" >
- and IMO_IsLong in
- <foreach collection="typeList" item="item" separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="searchKey != null and searchKey != ''" >
- and IMO_Order_Name like concat('%',#{searchKey,jdbcType=VARCHAR},'%')
- </if>
- </select>
- </mapper>
|