ExpandOrderMapper.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.xinxin.topro.inpnurseservice.mysqlmapper.ExpandOrderMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpExpandOrder" >
  5. <id column="IEO_ID" property="ieoId" jdbcType="INTEGER" />
  6. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  7. <result column="PatientNo" property="patientno" jdbcType="VARCHAR" />
  8. <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
  9. <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
  10. <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
  11. <result column="IEO_Order_ID" property="ieoOrderId" jdbcType="VARCHAR" />
  12. <result column="IEO_Order_Name" property="ieoOrderName" jdbcType="VARCHAR" />
  13. <result column="IEO_Opener" property="ieoOpener" jdbcType="VARCHAR" />
  14. <result column="IEO_Open_Time" property="ieoOpenTime" jdbcType="TIMESTAMP" />
  15. <result column="IEO_Pre_ExecTime" property="ieoPreExectime" jdbcType="TIMESTAMP" />
  16. <result column="IEO_Item_Explain" property="ieoItemExplain" jdbcType="VARCHAR" />
  17. <result column="IEO_Order_DepDm" property="ieoOrderDepdm" jdbcType="VARCHAR" />
  18. <result column="IEO_Order_WardDm" property="ieoOrderWarddm" jdbcType="VARCHAR" />
  19. <result column="IEO_Item_Code" property="ieoItemCode" jdbcType="VARCHAR" />
  20. <result column="IEO_Item_Name" property="ieoItemName" jdbcType="VARCHAR" />
  21. <result column="IEO_Dose" property="ieoDose" jdbcType="DOUBLE" />
  22. <result column="IEO_DoseUnit" property="ieoDoseunit" jdbcType="VARCHAR" />
  23. <result column="IEO_Med_Way" property="ieoMedWay" jdbcType="VARCHAR" />
  24. <result column="IEO_Order_Type" property="ieoOrderType" jdbcType="INTEGER" />
  25. <result column="IEO_Rate" property="ieoRate" jdbcType="VARCHAR" />
  26. <result column="IEO_Rate_Unit" property="ieoRateUnit" jdbcType="VARCHAR" />
  27. <result column="IEO_TakeMed_Way" property="ieoTakemedWay" jdbcType="INTEGER" />
  28. <result column="IEO_IsLucifugal" property="ieoIslucifugal" jdbcType="INTEGER" />
  29. <result column="IEO_IsLong" property="ieoIslong" jdbcType="INTEGER" />
  30. <result column="IEO_Item_OrderID" property="ieoItemOrderid" jdbcType="VARCHAR" />
  31. <result column="IEO_Bar_Code" property="ieoBarCode" jdbcType="VARCHAR" />
  32. <result column="IEO_Status" property="ieoStatus" jdbcType="INTEGER" />
  33. <result column="IMO_Med_Usage" property="imoMedUsage" jdbcType="VARCHAR" />
  34. <result column="IEO_Dosage_Form" property="ieoDosageForm" jdbcType="VARCHAR" />
  35. <result column="IEO_AdviceNo" property="ieoAdviceno" jdbcType="VARCHAR" />
  36. <result column="IEO_IsSkinTest" property="ieoIsskintest" jdbcType="INTEGER" />
  37. <result column="IEO_Expand_ID" property="ieoExpandId" jdbcType="VARCHAR" />
  38. <result column="IEO_PageID" property="ieoPageid" jdbcType="VARCHAR" />
  39. <result column="IEO_DrugValidity" property="ieoDrugvalidity" jdbcType="VARCHAR" />
  40. <result column="IEO_IsDoubleCheck" property="ieoIsdoublecheck" jdbcType="INTEGER" />
  41. <result column="IEO_DispensedStatus" property="ieoDispensedstatus" jdbcType="INTEGER" />
  42. <result column="IEO_DispensedTime" property="ieoDispensedtime" jdbcType="TIMESTAMP" />
  43. <result column="IEO_Entrust" property="ieoEntrust" jdbcType="VARCHAR" />
  44. <result column="IP_Name" property="ptName" jdbcType="VARCHAR" />
  45. <result column="DMW_Name" property="wayName" jdbcType="VARCHAR" />
  46. </resultMap>
  47. <sql id="Base_Column_List" >
  48. IEO_ID, HI_ID, PatientNo, DD_DepDm, DW_WardDm, DB_BedNo, IEO_Order_ID, IEO_Order_Name,
  49. IEO_Opener, IEO_Open_Time, IEO_Pre_ExecTime, IEO_Item_Explain, IEO_Order_DepDm, IEO_Order_WardDm,
  50. IEO_Item_Code, IEO_Item_Name, IEO_Dose, IEO_DoseUnit, IEO_Med_Way, IEO_Order_Type,
  51. IEO_Rate, IEO_Rate_Unit, IEO_TakeMed_Way, IEO_IsLucifugal, IEO_IsLong, IEO_Item_OrderID,
  52. IEO_Bar_Code, IEO_Status, IMO_Med_Usage, IEO_Dosage_Form, IEO_AdviceNo, IEO_IsSkinTest,
  53. IEO_Expand_ID, IEO_PageID, IEO_DrugValidity, IEO_IsDoubleCheck, IEO_DispensedStatus,
  54. IEO_DispensedTime, IEO_Entrust
  55. </sql>
  56. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  57. select
  58. <include refid="Base_Column_List" />
  59. from inp_expand_order
  60. where IEO_ID = #{ieoId,jdbcType=INTEGER}
  61. </select>
  62. <select id="selectOrderSignInfo" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  63. select a.* ,b.IP_Name,d.DMW_Name
  64. from inp_expand_order a INNER JOIN inp_patient b on a.PatientNo = b.IP_PatientNo
  65. LEFT JOIN dic_med_way d on a.IEO_AdviceNo = d.DMW_Code
  66. where a.DW_WardDm = #{departNo}
  67. and a.IEO_Pre_ExecTime &gt;= #{execSTime} and a.IEO_Pre_ExecTime &lt;= #{execETime}
  68. AND (a.IEO_Order_Type = 2 OR a.IEO_Order_Type = 99) and a.HI_ID = #{visitZone}
  69. and a.IEO_Status = 3
  70. <if test='longOrTemp!=null'>
  71. and a.IEO_IsLong = #{longOrTemp}
  72. </if>
  73. <if test='beds!=null'>
  74. and a.DB_BedNo in <foreach item='item' index='index' collection='beds' open='(' separator=',' close=')'> #{item} </foreach>
  75. </if>
  76. and b.IP_Status = #{inHospitalStatus}
  77. </select>
  78. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  79. delete from inp_expand_order
  80. where IEO_ID = #{ieoId,jdbcType=INTEGER}
  81. </delete>
  82. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpExpandOrder" >
  83. insert into inp_expand_order (IEO_ID, HI_ID, PatientNo,
  84. DD_DepDm, DW_WardDm, DB_BedNo,
  85. IEO_Order_ID, IEO_Order_Name, IEO_Opener,
  86. IEO_Open_Time, IEO_Pre_ExecTime, IEO_Item_Explain,
  87. IEO_Order_DepDm, IEO_Order_WardDm, IEO_Item_Code,
  88. IEO_Item_Name, IEO_Dose, IEO_DoseUnit,
  89. IEO_Med_Way, IEO_Order_Type, IEO_Rate,
  90. IEO_Rate_Unit, IEO_TakeMed_Way, IEO_IsLucifugal,
  91. IEO_IsLong, IEO_Item_OrderID, IEO_Bar_Code,
  92. IEO_Status, IMO_Med_Usage, IEO_Dosage_Form,
  93. IEO_AdviceNo, IEO_IsSkinTest, IEO_Expand_ID,
  94. IEO_PageID, IEO_DrugValidity, IEO_IsDoubleCheck,
  95. IEO_DispensedStatus, IEO_DispensedTime,
  96. IEO_Entrust)
  97. values (#{ieoId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{patientno,jdbcType=VARCHAR},
  98. #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
  99. #{ieoOrderId,jdbcType=VARCHAR}, #{ieoOrderName,jdbcType=VARCHAR}, #{ieoOpener,jdbcType=VARCHAR},
  100. #{ieoOpenTime,jdbcType=TIMESTAMP}, #{ieoPreExectime,jdbcType=TIMESTAMP}, #{ieoItemExplain,jdbcType=VARCHAR},
  101. #{ieoOrderDepdm,jdbcType=VARCHAR}, #{ieoOrderWarddm,jdbcType=VARCHAR}, #{ieoItemCode,jdbcType=VARCHAR},
  102. #{ieoItemName,jdbcType=VARCHAR}, #{ieoDose,jdbcType=DOUBLE}, #{ieoDoseunit,jdbcType=VARCHAR},
  103. #{ieoMedWay,jdbcType=VARCHAR}, #{ieoOrderType,jdbcType=INTEGER}, #{ieoRate,jdbcType=VARCHAR},
  104. #{ieoRateUnit,jdbcType=VARCHAR}, #{ieoTakemedWay,jdbcType=INTEGER}, #{ieoIslucifugal,jdbcType=INTEGER},
  105. #{ieoIslong,jdbcType=INTEGER}, #{ieoItemOrderid,jdbcType=VARCHAR}, #{ieoBarCode,jdbcType=VARCHAR},
  106. #{ieoStatus,jdbcType=INTEGER}, #{imoMedUsage,jdbcType=VARCHAR}, #{ieoDosageForm,jdbcType=VARCHAR},
  107. #{ieoAdviceno,jdbcType=VARCHAR}, #{ieoIsskintest,jdbcType=INTEGER}, #{ieoExpandId,jdbcType=VARCHAR},
  108. #{ieoPageid,jdbcType=VARCHAR}, #{ieoDrugvalidity,jdbcType=VARCHAR}, #{ieoIsdoublecheck,jdbcType=INTEGER},
  109. #{ieoDispensedstatus,jdbcType=INTEGER}, #{ieoDispensedtime,jdbcType=TIMESTAMP},
  110. #{ieoEntrust,jdbcType=VARCHAR})
  111. </insert>
  112. <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpExpandOrder" >
  113. insert into inp_expand_order
  114. <trim prefix="(" suffix=")" suffixOverrides="," >
  115. <if test="ieoId != null" >
  116. IEO_ID,
  117. </if>
  118. <if test="hiId != null" >
  119. HI_ID,
  120. </if>
  121. <if test="patientno != null" >
  122. PatientNo,
  123. </if>
  124. <if test="ddDepdm != null" >
  125. DD_DepDm,
  126. </if>
  127. <if test="dwWarddm != null" >
  128. DW_WardDm,
  129. </if>
  130. <if test="dbBedno != null" >
  131. DB_BedNo,
  132. </if>
  133. <if test="ieoOrderId != null" >
  134. IEO_Order_ID,
  135. </if>
  136. <if test="ieoOrderName != null" >
  137. IEO_Order_Name,
  138. </if>
  139. <if test="ieoOpener != null" >
  140. IEO_Opener,
  141. </if>
  142. <if test="ieoOpenTime != null" >
  143. IEO_Open_Time,
  144. </if>
  145. <if test="ieoPreExectime != null" >
  146. IEO_Pre_ExecTime,
  147. </if>
  148. <if test="ieoItemExplain != null" >
  149. IEO_Item_Explain,
  150. </if>
  151. <if test="ieoOrderDepdm != null" >
  152. IEO_Order_DepDm,
  153. </if>
  154. <if test="ieoOrderWarddm != null" >
  155. IEO_Order_WardDm,
  156. </if>
  157. <if test="ieoItemCode != null" >
  158. IEO_Item_Code,
  159. </if>
  160. <if test="ieoItemName != null" >
  161. IEO_Item_Name,
  162. </if>
  163. <if test="ieoDose != null" >
  164. IEO_Dose,
  165. </if>
  166. <if test="ieoDoseunit != null" >
  167. IEO_DoseUnit,
  168. </if>
  169. <if test="ieoMedWay != null" >
  170. IEO_Med_Way,
  171. </if>
  172. <if test="ieoOrderType != null" >
  173. IEO_Order_Type,
  174. </if>
  175. <if test="ieoRate != null" >
  176. IEO_Rate,
  177. </if>
  178. <if test="ieoRateUnit != null" >
  179. IEO_Rate_Unit,
  180. </if>
  181. <if test="ieoTakemedWay != null" >
  182. IEO_TakeMed_Way,
  183. </if>
  184. <if test="ieoIslucifugal != null" >
  185. IEO_IsLucifugal,
  186. </if>
  187. <if test="ieoIslong != null" >
  188. IEO_IsLong,
  189. </if>
  190. <if test="ieoItemOrderid != null" >
  191. IEO_Item_OrderID,
  192. </if>
  193. <if test="ieoBarCode != null" >
  194. IEO_Bar_Code,
  195. </if>
  196. <if test="ieoStatus != null" >
  197. IEO_Status,
  198. </if>
  199. <if test="imoMedUsage != null" >
  200. IMO_Med_Usage,
  201. </if>
  202. <if test="ieoDosageForm != null" >
  203. IEO_Dosage_Form,
  204. </if>
  205. <if test="ieoAdviceno != null" >
  206. IEO_AdviceNo,
  207. </if>
  208. <if test="ieoIsskintest != null" >
  209. IEO_IsSkinTest,
  210. </if>
  211. <if test="ieoExpandId != null" >
  212. IEO_Expand_ID,
  213. </if>
  214. <if test="ieoPageid != null" >
  215. IEO_PageID,
  216. </if>
  217. <if test="ieoDrugvalidity != null" >
  218. IEO_DrugValidity,
  219. </if>
  220. <if test="ieoIsdoublecheck != null" >
  221. IEO_IsDoubleCheck,
  222. </if>
  223. <if test="ieoDispensedstatus != null" >
  224. IEO_DispensedStatus,
  225. </if>
  226. <if test="ieoDispensedtime != null" >
  227. IEO_DispensedTime,
  228. </if>
  229. <if test="ieoEntrust != null" >
  230. IEO_Entrust,
  231. </if>
  232. </trim>
  233. <trim prefix="values (" suffix=")" suffixOverrides="," >
  234. <if test="ieoId != null" >
  235. #{ieoId,jdbcType=INTEGER},
  236. </if>
  237. <if test="hiId != null" >
  238. #{hiId,jdbcType=INTEGER},
  239. </if>
  240. <if test="patientno != null" >
  241. #{patientno,jdbcType=VARCHAR},
  242. </if>
  243. <if test="ddDepdm != null" >
  244. #{ddDepdm,jdbcType=VARCHAR},
  245. </if>
  246. <if test="dwWarddm != null" >
  247. #{dwWarddm,jdbcType=VARCHAR},
  248. </if>
  249. <if test="dbBedno != null" >
  250. #{dbBedno,jdbcType=VARCHAR},
  251. </if>
  252. <if test="ieoOrderId != null" >
  253. #{ieoOrderId,jdbcType=VARCHAR},
  254. </if>
  255. <if test="ieoOrderName != null" >
  256. #{ieoOrderName,jdbcType=VARCHAR},
  257. </if>
  258. <if test="ieoOpener != null" >
  259. #{ieoOpener,jdbcType=VARCHAR},
  260. </if>
  261. <if test="ieoOpenTime != null" >
  262. #{ieoOpenTime,jdbcType=TIMESTAMP},
  263. </if>
  264. <if test="ieoPreExectime != null" >
  265. #{ieoPreExectime,jdbcType=TIMESTAMP},
  266. </if>
  267. <if test="ieoItemExplain != null" >
  268. #{ieoItemExplain,jdbcType=VARCHAR},
  269. </if>
  270. <if test="ieoOrderDepdm != null" >
  271. #{ieoOrderDepdm,jdbcType=VARCHAR},
  272. </if>
  273. <if test="ieoOrderWarddm != null" >
  274. #{ieoOrderWarddm,jdbcType=VARCHAR},
  275. </if>
  276. <if test="ieoItemCode != null" >
  277. #{ieoItemCode,jdbcType=VARCHAR},
  278. </if>
  279. <if test="ieoItemName != null" >
  280. #{ieoItemName,jdbcType=VARCHAR},
  281. </if>
  282. <if test="ieoDose != null" >
  283. #{ieoDose,jdbcType=DOUBLE},
  284. </if>
  285. <if test="ieoDoseunit != null" >
  286. #{ieoDoseunit,jdbcType=VARCHAR},
  287. </if>
  288. <if test="ieoMedWay != null" >
  289. #{ieoMedWay,jdbcType=VARCHAR},
  290. </if>
  291. <if test="ieoOrderType != null" >
  292. #{ieoOrderType,jdbcType=INTEGER},
  293. </if>
  294. <if test="ieoRate != null" >
  295. #{ieoRate,jdbcType=VARCHAR},
  296. </if>
  297. <if test="ieoRateUnit != null" >
  298. #{ieoRateUnit,jdbcType=VARCHAR},
  299. </if>
  300. <if test="ieoTakemedWay != null" >
  301. #{ieoTakemedWay,jdbcType=INTEGER},
  302. </if>
  303. <if test="ieoIslucifugal != null" >
  304. #{ieoIslucifugal,jdbcType=INTEGER},
  305. </if>
  306. <if test="ieoIslong != null" >
  307. #{ieoIslong,jdbcType=INTEGER},
  308. </if>
  309. <if test="ieoItemOrderid != null" >
  310. #{ieoItemOrderid,jdbcType=VARCHAR},
  311. </if>
  312. <if test="ieoBarCode != null" >
  313. #{ieoBarCode,jdbcType=VARCHAR},
  314. </if>
  315. <if test="ieoStatus != null" >
  316. #{ieoStatus,jdbcType=INTEGER},
  317. </if>
  318. <if test="imoMedUsage != null" >
  319. #{imoMedUsage,jdbcType=VARCHAR},
  320. </if>
  321. <if test="ieoDosageForm != null" >
  322. #{ieoDosageForm,jdbcType=VARCHAR},
  323. </if>
  324. <if test="ieoAdviceno != null" >
  325. #{ieoAdviceno,jdbcType=VARCHAR},
  326. </if>
  327. <if test="ieoIsskintest != null" >
  328. #{ieoIsskintest,jdbcType=INTEGER},
  329. </if>
  330. <if test="ieoExpandId != null" >
  331. #{ieoExpandId,jdbcType=VARCHAR},
  332. </if>
  333. <if test="ieoPageid != null" >
  334. #{ieoPageid,jdbcType=VARCHAR},
  335. </if>
  336. <if test="ieoDrugvalidity != null" >
  337. #{ieoDrugvalidity,jdbcType=VARCHAR},
  338. </if>
  339. <if test="ieoIsdoublecheck != null" >
  340. #{ieoIsdoublecheck,jdbcType=INTEGER},
  341. </if>
  342. <if test="ieoDispensedstatus != null" >
  343. #{ieoDispensedstatus,jdbcType=INTEGER},
  344. </if>
  345. <if test="ieoDispensedtime != null" >
  346. #{ieoDispensedtime,jdbcType=TIMESTAMP},
  347. </if>
  348. <if test="ieoEntrust != null" >
  349. #{ieoEntrust,jdbcType=VARCHAR},
  350. </if>
  351. </trim>
  352. </insert>
  353. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpExpandOrder" >
  354. update inp_expand_order
  355. <set >
  356. <if test="hiId != null" >
  357. HI_ID = #{hiId,jdbcType=INTEGER},
  358. </if>
  359. <if test="patientno != null" >
  360. PatientNo = #{patientno,jdbcType=VARCHAR},
  361. </if>
  362. <if test="ddDepdm != null" >
  363. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  364. </if>
  365. <if test="dwWarddm != null" >
  366. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  367. </if>
  368. <if test="dbBedno != null" >
  369. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  370. </if>
  371. <if test="ieoOrderId != null" >
  372. IEO_Order_ID = #{ieoOrderId,jdbcType=VARCHAR},
  373. </if>
  374. <if test="ieoOrderName != null" >
  375. IEO_Order_Name = #{ieoOrderName,jdbcType=VARCHAR},
  376. </if>
  377. <if test="ieoOpener != null" >
  378. IEO_Opener = #{ieoOpener,jdbcType=VARCHAR},
  379. </if>
  380. <if test="ieoOpenTime != null" >
  381. IEO_Open_Time = #{ieoOpenTime,jdbcType=TIMESTAMP},
  382. </if>
  383. <if test="ieoPreExectime != null" >
  384. IEO_Pre_ExecTime = #{ieoPreExectime,jdbcType=TIMESTAMP},
  385. </if>
  386. <if test="ieoItemExplain != null" >
  387. IEO_Item_Explain = #{ieoItemExplain,jdbcType=VARCHAR},
  388. </if>
  389. <if test="ieoOrderDepdm != null" >
  390. IEO_Order_DepDm = #{ieoOrderDepdm,jdbcType=VARCHAR},
  391. </if>
  392. <if test="ieoOrderWarddm != null" >
  393. IEO_Order_WardDm = #{ieoOrderWarddm,jdbcType=VARCHAR},
  394. </if>
  395. <if test="ieoItemCode != null" >
  396. IEO_Item_Code = #{ieoItemCode,jdbcType=VARCHAR},
  397. </if>
  398. <if test="ieoItemName != null" >
  399. IEO_Item_Name = #{ieoItemName,jdbcType=VARCHAR},
  400. </if>
  401. <if test="ieoDose != null" >
  402. IEO_Dose = #{ieoDose,jdbcType=DOUBLE},
  403. </if>
  404. <if test="ieoDoseunit != null" >
  405. IEO_DoseUnit = #{ieoDoseunit,jdbcType=VARCHAR},
  406. </if>
  407. <if test="ieoMedWay != null" >
  408. IEO_Med_Way = #{ieoMedWay,jdbcType=VARCHAR},
  409. </if>
  410. <if test="ieoOrderType != null" >
  411. IEO_Order_Type = #{ieoOrderType,jdbcType=INTEGER},
  412. </if>
  413. <if test="ieoRate != null" >
  414. IEO_Rate = #{ieoRate,jdbcType=VARCHAR},
  415. </if>
  416. <if test="ieoRateUnit != null" >
  417. IEO_Rate_Unit = #{ieoRateUnit,jdbcType=VARCHAR},
  418. </if>
  419. <if test="ieoTakemedWay != null" >
  420. IEO_TakeMed_Way = #{ieoTakemedWay,jdbcType=INTEGER},
  421. </if>
  422. <if test="ieoIslucifugal != null" >
  423. IEO_IsLucifugal = #{ieoIslucifugal,jdbcType=INTEGER},
  424. </if>
  425. <if test="ieoIslong != null" >
  426. IEO_IsLong = #{ieoIslong,jdbcType=INTEGER},
  427. </if>
  428. <if test="ieoItemOrderid != null" >
  429. IEO_Item_OrderID = #{ieoItemOrderid,jdbcType=VARCHAR},
  430. </if>
  431. <if test="ieoBarCode != null" >
  432. IEO_Bar_Code = #{ieoBarCode,jdbcType=VARCHAR},
  433. </if>
  434. <if test="ieoStatus != null" >
  435. IEO_Status = #{ieoStatus,jdbcType=INTEGER},
  436. </if>
  437. <if test="imoMedUsage != null" >
  438. IMO_Med_Usage = #{imoMedUsage,jdbcType=VARCHAR},
  439. </if>
  440. <if test="ieoDosageForm != null" >
  441. IEO_Dosage_Form = #{ieoDosageForm,jdbcType=VARCHAR},
  442. </if>
  443. <if test="ieoAdviceno != null" >
  444. IEO_AdviceNo = #{ieoAdviceno,jdbcType=VARCHAR},
  445. </if>
  446. <if test="ieoIsskintest != null" >
  447. IEO_IsSkinTest = #{ieoIsskintest,jdbcType=INTEGER},
  448. </if>
  449. <if test="ieoExpandId != null" >
  450. IEO_Expand_ID = #{ieoExpandId,jdbcType=VARCHAR},
  451. </if>
  452. <if test="ieoPageid != null" >
  453. IEO_PageID = #{ieoPageid,jdbcType=VARCHAR},
  454. </if>
  455. <if test="ieoDrugvalidity != null" >
  456. IEO_DrugValidity = #{ieoDrugvalidity,jdbcType=VARCHAR},
  457. </if>
  458. <if test="ieoIsdoublecheck != null" >
  459. IEO_IsDoubleCheck = #{ieoIsdoublecheck,jdbcType=INTEGER},
  460. </if>
  461. <if test="ieoDispensedstatus != null" >
  462. IEO_DispensedStatus = #{ieoDispensedstatus,jdbcType=INTEGER},
  463. </if>
  464. <if test="ieoDispensedtime != null" >
  465. IEO_DispensedTime = #{ieoDispensedtime,jdbcType=TIMESTAMP},
  466. </if>
  467. <if test="ieoEntrust != null" >
  468. IEO_Entrust = #{ieoEntrust,jdbcType=VARCHAR},
  469. </if>
  470. </set>
  471. where IEO_ID = #{ieoId,jdbcType=INTEGER}
  472. </update>
  473. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpExpandOrder" >
  474. update inp_expand_order
  475. set HI_ID = #{hiId,jdbcType=INTEGER},
  476. PatientNo = #{patientno,jdbcType=VARCHAR},
  477. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  478. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  479. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  480. IEO_Order_ID = #{ieoOrderId,jdbcType=VARCHAR},
  481. IEO_Order_Name = #{ieoOrderName,jdbcType=VARCHAR},
  482. IEO_Opener = #{ieoOpener,jdbcType=VARCHAR},
  483. IEO_Open_Time = #{ieoOpenTime,jdbcType=TIMESTAMP},
  484. IEO_Pre_ExecTime = #{ieoPreExectime,jdbcType=TIMESTAMP},
  485. IEO_Item_Explain = #{ieoItemExplain,jdbcType=VARCHAR},
  486. IEO_Order_DepDm = #{ieoOrderDepdm,jdbcType=VARCHAR},
  487. IEO_Order_WardDm = #{ieoOrderWarddm,jdbcType=VARCHAR},
  488. IEO_Item_Code = #{ieoItemCode,jdbcType=VARCHAR},
  489. IEO_Item_Name = #{ieoItemName,jdbcType=VARCHAR},
  490. IEO_Dose = #{ieoDose,jdbcType=DOUBLE},
  491. IEO_DoseUnit = #{ieoDoseunit,jdbcType=VARCHAR},
  492. IEO_Med_Way = #{ieoMedWay,jdbcType=VARCHAR},
  493. IEO_Order_Type = #{ieoOrderType,jdbcType=INTEGER},
  494. IEO_Rate = #{ieoRate,jdbcType=VARCHAR},
  495. IEO_Rate_Unit = #{ieoRateUnit,jdbcType=VARCHAR},
  496. IEO_TakeMed_Way = #{ieoTakemedWay,jdbcType=INTEGER},
  497. IEO_IsLucifugal = #{ieoIslucifugal,jdbcType=INTEGER},
  498. IEO_IsLong = #{ieoIslong,jdbcType=INTEGER},
  499. IEO_Item_OrderID = #{ieoItemOrderid,jdbcType=VARCHAR},
  500. IEO_Bar_Code = #{ieoBarCode,jdbcType=VARCHAR},
  501. IEO_Status = #{ieoStatus,jdbcType=INTEGER},
  502. IMO_Med_Usage = #{imoMedUsage,jdbcType=VARCHAR},
  503. IEO_Dosage_Form = #{ieoDosageForm,jdbcType=VARCHAR},
  504. IEO_AdviceNo = #{ieoAdviceno,jdbcType=VARCHAR},
  505. IEO_IsSkinTest = #{ieoIsskintest,jdbcType=INTEGER},
  506. IEO_Expand_ID = #{ieoExpandId,jdbcType=VARCHAR},
  507. IEO_PageID = #{ieoPageid,jdbcType=VARCHAR},
  508. IEO_DrugValidity = #{ieoDrugvalidity,jdbcType=VARCHAR},
  509. IEO_IsDoubleCheck = #{ieoIsdoublecheck,jdbcType=INTEGER},
  510. IEO_DispensedStatus = #{ieoDispensedstatus,jdbcType=INTEGER},
  511. IEO_DispensedTime = #{ieoDispensedtime,jdbcType=TIMESTAMP},
  512. IEO_Entrust = #{ieoEntrust,jdbcType=VARCHAR}
  513. where IEO_ID = #{ieoId,jdbcType=INTEGER}
  514. </update>
  515. </mapper>