OrderInfoMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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.base.sqlservermapper.OrderInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
  5. <result column="RecordId" property="recordid" jdbcType="INTEGER" />
  6. <result column="VisitNo" property="visitno" jdbcType="VARCHAR" />
  7. <result column="InfantID" property="infantid" jdbcType="VARCHAR" />
  8. <result column="ChartNo" property="chartno" jdbcType="VARCHAR" />
  9. <result column="DepartNo" property="departno" jdbcType="VARCHAR" />
  10. <result column="DepartName" property="departname" jdbcType="VARCHAR" />
  11. <result column="Gender" property="gender" jdbcType="VARCHAR" />
  12. <result column="Age" property="age" jdbcType="INTEGER" />
  13. <result column="BirthDay" property="birthday" jdbcType="TIMESTAMP" />
  14. <result column="DivNo" property="divno" jdbcType="VARCHAR" />
  15. <result column="DivName" property="divname" jdbcType="NVARCHAR" />
  16. <result column="BedNo" property="bedno" jdbcType="VARCHAR" />
  17. <result column="AdmitTime" property="admittime" jdbcType="TIMESTAMP" />
  18. <result column="IdNo" property="idno" jdbcType="VARCHAR" />
  19. <result column="PhyDoctor" property="phydoctor" jdbcType="VARCHAR" />
  20. <result column="OrderNo" property="orderno" jdbcType="VARCHAR" />
  21. <result column="OrderUser" property="orderuser" jdbcType="VARCHAR" />
  22. <result column="OrderTime" property="ordertime" jdbcType="TIMESTAMP" />
  23. <result column="PreExecTime" property="preexectime" jdbcType="TIMESTAMP" />
  24. <result column="PreExecLocName" property="preexeclocname" jdbcType="VARCHAR" />
  25. <result column="PreExecBed" property="preexecbed" jdbcType="VARCHAR" />
  26. <result column="ExecTime" property="exectime" jdbcType="TIMESTAMP" />
  27. <result column="ExecLocName" property="execlocname" jdbcType="VARCHAR" />
  28. <result column="ItemNo" property="itemno" jdbcType="VARCHAR" />
  29. <result column="Dose" property="dose" jdbcType="DECIMAL" />
  30. <result column="DoseUnit" property="doseunit" jdbcType="VARCHAR" />
  31. <result column="WayType" property="waytype" jdbcType="VARCHAR" />
  32. <result column="WayName" property="wayname" jdbcType="VARCHAR" />
  33. <result column="ItemCode" property="itemcode" jdbcType="VARCHAR" />
  34. <result column="ItemName" property="itemname" jdbcType="VARCHAR" />
  35. <result column="OrderType" property="ordertype" jdbcType="INTEGER" />
  36. <result column="BigType" property="bigtype" jdbcType="VARCHAR" />
  37. <result column="PairItemNo" property="pairitemno" jdbcType="VARCHAR" />
  38. <result column="Rate" property="rate" jdbcType="VARCHAR" />
  39. <result column="RateUnit" property="rateunit" jdbcType="VARCHAR" />
  40. <result column="TakeMedWay" property="takemedway" jdbcType="VARCHAR" />
  41. <result column="Usage" property="usage" jdbcType="VARCHAR" />
  42. <result column="LongOrTempFlag" property="longortempflag" jdbcType="INTEGER" />
  43. <result column="ExecStatus" property="execstatus" jdbcType="INTEGER" />
  44. <result column="BloodStatus" property="bloodstatus" jdbcType="INTEGER" />
  45. <result column="DrugBarCode" property="drugbarcode" jdbcType="VARCHAR" />
  46. </resultMap>
  47. <insert id="insert" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
  48. insert into V_OrderInfo (RecordId, VisitNo, InfantID,
  49. ChartNo, DepartNo, DepartName,
  50. Gender, Age, BirthDay,
  51. DivNo, DivName, BedNo,
  52. AdmitTime, IdNo, PhyDoctor,
  53. OrderNo, OrderUser, OrderTime,
  54. PreExecTime, PreExecLocName, PreExecBed,
  55. ExecTime, ExecLocName, ItemNo,
  56. Dose, DoseUnit, WayType,
  57. WayName, ItemCode, ItemName,
  58. OrderType, BigType, PairItemNo,
  59. Rate, RateUnit, TakeMedWay,
  60. Usage, LongOrTempFlag, ExecStatus,
  61. BloodStatus, DrugBarCode)
  62. values (#{recordid,jdbcType=INTEGER}, #{visitno,jdbcType=VARCHAR}, #{infantid,jdbcType=VARCHAR},
  63. #{chartno,jdbcType=VARCHAR}, #{departno,jdbcType=VARCHAR}, #{departname,jdbcType=VARCHAR},
  64. #{gender,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{birthday,jdbcType=TIMESTAMP},
  65. #{divno,jdbcType=VARCHAR}, #{divname,jdbcType=NVARCHAR}, #{bedno,jdbcType=VARCHAR},
  66. #{admittime,jdbcType=TIMESTAMP}, #{idno,jdbcType=VARCHAR}, #{phydoctor,jdbcType=VARCHAR},
  67. #{orderno,jdbcType=VARCHAR}, #{orderuser,jdbcType=VARCHAR}, #{ordertime,jdbcType=TIMESTAMP},
  68. #{preexectime,jdbcType=TIMESTAMP}, #{preexeclocname,jdbcType=VARCHAR}, #{preexecbed,jdbcType=VARCHAR},
  69. #{exectime,jdbcType=TIMESTAMP}, #{execlocname,jdbcType=VARCHAR}, #{itemno,jdbcType=VARCHAR},
  70. #{dose,jdbcType=DECIMAL}, #{doseunit,jdbcType=VARCHAR}, #{waytype,jdbcType=VARCHAR},
  71. #{wayname,jdbcType=VARCHAR}, #{itemcode,jdbcType=VARCHAR}, #{itemname,jdbcType=VARCHAR},
  72. #{ordertype,jdbcType=INTEGER}, #{bigtype,jdbcType=VARCHAR}, #{pairitemno,jdbcType=VARCHAR},
  73. #{rate,jdbcType=VARCHAR}, #{rateunit,jdbcType=VARCHAR}, #{takemedway,jdbcType=VARCHAR},
  74. #{usage,jdbcType=VARCHAR}, #{longortempflag,jdbcType=INTEGER}, #{execstatus,jdbcType=INTEGER},
  75. #{bloodstatus,jdbcType=INTEGER}, #{drugbarcode,jdbcType=VARCHAR})
  76. </insert>
  77. <insert id="insertSelective" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
  78. insert into V_OrderInfo
  79. <trim prefix="(" suffix=")" suffixOverrides="," >
  80. <if test="recordid != null" >
  81. RecordId,
  82. </if>
  83. <if test="visitno != null" >
  84. VisitNo,
  85. </if>
  86. <if test="infantid != null" >
  87. InfantID,
  88. </if>
  89. <if test="chartno != null" >
  90. ChartNo,
  91. </if>
  92. <if test="departno != null" >
  93. DepartNo,
  94. </if>
  95. <if test="departname != null" >
  96. DepartName,
  97. </if>
  98. <if test="gender != null" >
  99. Gender,
  100. </if>
  101. <if test="age != null" >
  102. Age,
  103. </if>
  104. <if test="birthday != null" >
  105. BirthDay,
  106. </if>
  107. <if test="divno != null" >
  108. DivNo,
  109. </if>
  110. <if test="divname != null" >
  111. DivName,
  112. </if>
  113. <if test="bedno != null" >
  114. BedNo,
  115. </if>
  116. <if test="admittime != null" >
  117. AdmitTime,
  118. </if>
  119. <if test="idno != null" >
  120. IdNo,
  121. </if>
  122. <if test="phydoctor != null" >
  123. PhyDoctor,
  124. </if>
  125. <if test="orderno != null" >
  126. OrderNo,
  127. </if>
  128. <if test="orderuser != null" >
  129. OrderUser,
  130. </if>
  131. <if test="ordertime != null" >
  132. OrderTime,
  133. </if>
  134. <if test="preexectime != null" >
  135. PreExecTime,
  136. </if>
  137. <if test="preexeclocname != null" >
  138. PreExecLocName,
  139. </if>
  140. <if test="preexecbed != null" >
  141. PreExecBed,
  142. </if>
  143. <if test="exectime != null" >
  144. ExecTime,
  145. </if>
  146. <if test="execlocname != null" >
  147. ExecLocName,
  148. </if>
  149. <if test="itemno != null" >
  150. ItemNo,
  151. </if>
  152. <if test="dose != null" >
  153. Dose,
  154. </if>
  155. <if test="doseunit != null" >
  156. DoseUnit,
  157. </if>
  158. <if test="waytype != null" >
  159. WayType,
  160. </if>
  161. <if test="wayname != null" >
  162. WayName,
  163. </if>
  164. <if test="itemcode != null" >
  165. ItemCode,
  166. </if>
  167. <if test="itemname != null" >
  168. ItemName,
  169. </if>
  170. <if test="ordertype != null" >
  171. OrderType,
  172. </if>
  173. <if test="bigtype != null" >
  174. BigType,
  175. </if>
  176. <if test="pairitemno != null" >
  177. PairItemNo,
  178. </if>
  179. <if test="rate != null" >
  180. Rate,
  181. </if>
  182. <if test="rateunit != null" >
  183. RateUnit,
  184. </if>
  185. <if test="takemedway != null" >
  186. TakeMedWay,
  187. </if>
  188. <if test="usage != null" >
  189. Usage,
  190. </if>
  191. <if test="longortempflag != null" >
  192. LongOrTempFlag,
  193. </if>
  194. <if test="execstatus != null" >
  195. ExecStatus,
  196. </if>
  197. <if test="bloodstatus != null" >
  198. BloodStatus,
  199. </if>
  200. <if test="drugbarcode != null" >
  201. DrugBarCode,
  202. </if>
  203. </trim>
  204. <trim prefix="values (" suffix=")" suffixOverrides="," >
  205. <if test="recordid != null" >
  206. #{recordid,jdbcType=INTEGER},
  207. </if>
  208. <if test="visitno != null" >
  209. #{visitno,jdbcType=VARCHAR},
  210. </if>
  211. <if test="infantid != null" >
  212. #{infantid,jdbcType=VARCHAR},
  213. </if>
  214. <if test="chartno != null" >
  215. #{chartno,jdbcType=VARCHAR},
  216. </if>
  217. <if test="departno != null" >
  218. #{departno,jdbcType=VARCHAR},
  219. </if>
  220. <if test="departname != null" >
  221. #{departname,jdbcType=VARCHAR},
  222. </if>
  223. <if test="gender != null" >
  224. #{gender,jdbcType=VARCHAR},
  225. </if>
  226. <if test="age != null" >
  227. #{age,jdbcType=INTEGER},
  228. </if>
  229. <if test="birthday != null" >
  230. #{birthday,jdbcType=TIMESTAMP},
  231. </if>
  232. <if test="divno != null" >
  233. #{divno,jdbcType=VARCHAR},
  234. </if>
  235. <if test="divname != null" >
  236. #{divname,jdbcType=NVARCHAR},
  237. </if>
  238. <if test="bedno != null" >
  239. #{bedno,jdbcType=VARCHAR},
  240. </if>
  241. <if test="admittime != null" >
  242. #{admittime,jdbcType=TIMESTAMP},
  243. </if>
  244. <if test="idno != null" >
  245. #{idno,jdbcType=VARCHAR},
  246. </if>
  247. <if test="phydoctor != null" >
  248. #{phydoctor,jdbcType=VARCHAR},
  249. </if>
  250. <if test="orderno != null" >
  251. #{orderno,jdbcType=VARCHAR},
  252. </if>
  253. <if test="orderuser != null" >
  254. #{orderuser,jdbcType=VARCHAR},
  255. </if>
  256. <if test="ordertime != null" >
  257. #{ordertime,jdbcType=TIMESTAMP},
  258. </if>
  259. <if test="preexectime != null" >
  260. #{preexectime,jdbcType=TIMESTAMP},
  261. </if>
  262. <if test="preexeclocname != null" >
  263. #{preexeclocname,jdbcType=VARCHAR},
  264. </if>
  265. <if test="preexecbed != null" >
  266. #{preexecbed,jdbcType=VARCHAR},
  267. </if>
  268. <if test="exectime != null" >
  269. #{exectime,jdbcType=TIMESTAMP},
  270. </if>
  271. <if test="execlocname != null" >
  272. #{execlocname,jdbcType=VARCHAR},
  273. </if>
  274. <if test="itemno != null" >
  275. #{itemno,jdbcType=VARCHAR},
  276. </if>
  277. <if test="dose != null" >
  278. #{dose,jdbcType=DECIMAL},
  279. </if>
  280. <if test="doseunit != null" >
  281. #{doseunit,jdbcType=VARCHAR},
  282. </if>
  283. <if test="waytype != null" >
  284. #{waytype,jdbcType=VARCHAR},
  285. </if>
  286. <if test="wayname != null" >
  287. #{wayname,jdbcType=VARCHAR},
  288. </if>
  289. <if test="itemcode != null" >
  290. #{itemcode,jdbcType=VARCHAR},
  291. </if>
  292. <if test="itemname != null" >
  293. #{itemname,jdbcType=VARCHAR},
  294. </if>
  295. <if test="ordertype != null" >
  296. #{ordertype,jdbcType=INTEGER},
  297. </if>
  298. <if test="bigtype != null" >
  299. #{bigtype,jdbcType=VARCHAR},
  300. </if>
  301. <if test="pairitemno != null" >
  302. #{pairitemno,jdbcType=VARCHAR},
  303. </if>
  304. <if test="rate != null" >
  305. #{rate,jdbcType=VARCHAR},
  306. </if>
  307. <if test="rateunit != null" >
  308. #{rateunit,jdbcType=VARCHAR},
  309. </if>
  310. <if test="takemedway != null" >
  311. #{takemedway,jdbcType=VARCHAR},
  312. </if>
  313. <if test="usage != null" >
  314. #{usage,jdbcType=VARCHAR},
  315. </if>
  316. <if test="longortempflag != null" >
  317. #{longortempflag,jdbcType=INTEGER},
  318. </if>
  319. <if test="execstatus != null" >
  320. #{execstatus,jdbcType=INTEGER},
  321. </if>
  322. <if test="bloodstatus != null" >
  323. #{bloodstatus,jdbcType=INTEGER},
  324. </if>
  325. <if test="drugbarcode != null" >
  326. #{drugbarcode,jdbcType=VARCHAR},
  327. </if>
  328. </trim>
  329. </insert>
  330. </mapper>