InpChildInfoMapper.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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.InpChildInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpChildInfo" >
  5. <id column="ICI_ID" property="iciId" jdbcType="INTEGER" />
  6. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  7. <result column="ICI_IsInfant" property="iciIsinfant" jdbcType="INTEGER" />
  8. <result column="ICI_PatientNO" property="iciPatientno" jdbcType="VARCHAR" />
  9. <result column="ICI_MotherNo" property="iciMotherno" jdbcType="VARCHAR" />
  10. <result column="ICI_Med_Rec" property="iciMedRec" jdbcType="VARCHAR" />
  11. <result column="ICI_Name" property="iciName" jdbcType="VARCHAR" />
  12. <result column="ICI_Gender" property="iciGender" jdbcType="INTEGER" />
  13. <result column="ICI_Birth" property="iciBirth" jdbcType="TIMESTAMP" />
  14. <result column="ICI_GravidaWeek" property="iciGravidaweek" jdbcType="INTEGER" />
  15. <result column="ICI_Gravida" property="iciGravida" jdbcType="INTEGER" />
  16. <result column="ICI_Para" property="iciPara" jdbcType="INTEGER" />
  17. <result column="ICI_BodyLength" property="iciBodylength" jdbcType="INTEGER" />
  18. <result column="ICI_Weight" property="iciWeight" jdbcType="INTEGER" />
  19. <result column="ICI_EDC" property="iciEdc" jdbcType="TIMESTAMP" />
  20. <result column="ICI_FatherName" property="iciFathername" jdbcType="VARCHAR" />
  21. <result column="ICI_Health" property="iciHealth" jdbcType="VARCHAR" />
  22. <result column="ICI_DeliveryMode" property="iciDeliverymode" jdbcType="VARCHAR" />
  23. <result column="ICI_DeliverDoctor" property="iciDeliverdoctor" jdbcType="VARCHAR" />
  24. <result column="ICI_DeliverNurse" property="iciDelivernurse" jdbcType="VARCHAR" />
  25. <result column="ICI_Placenta" property="iciPlacenta" jdbcType="VARCHAR" />
  26. <result column="ICI_Recorder" property="iciRecorder" jdbcType="VARCHAR" />
  27. <result column="ICI_RecorderTime" property="iciRecordertime" jdbcType="TIMESTAMP" />
  28. <result column="ICI_Alteror" property="iciAlteror" jdbcType="VARCHAR" />
  29. <result column="ICI_AlterorTime" property="iciAlterortime" jdbcType="TIMESTAMP" />
  30. <result column="ICI_isDel" property="iciIsdel" jdbcType="INTEGER" />
  31. <result column="ICI_Reamrk" property="iciReamrk" jdbcType="VARCHAR" />
  32. <result column="ICI_AdmitId" property="iciAdmitid" jdbcType="VARCHAR" />
  33. <result column="ICI_Admit_Time" property="iciAdmitTime" jdbcType="TIMESTAMP" />
  34. <result column="ICI_Admit_Dep" property="iciAdmitDep" jdbcType="VARCHAR" />
  35. <result column="ICI_Admit_Ward" property="iciAdmitWard" jdbcType="VARCHAR" />
  36. </resultMap>
  37. <sql id="Base_Column_List" >
  38. ICI_ID, HI_ID, ICI_IsInfant, ICI_PatientNO, ICI_MotherNo, ICI_Med_Rec, ICI_Name,
  39. ICI_Gender, ICI_Birth, ICI_GravidaWeek, ICI_Gravida, ICI_Para, ICI_BodyLength, ICI_Weight,
  40. ICI_EDC, ICI_FatherName, ICI_Health, ICI_DeliveryMode, ICI_DeliverDoctor, ICI_DeliverNurse,
  41. ICI_Placenta, ICI_Recorder, ICI_RecorderTime, ICI_Alteror, ICI_AlterorTime, ICI_isDel,
  42. ICI_Reamrk, ICI_AdmitId, ICI_Admit_Time, ICI_Admit_Dep, ICI_Admit_Ward
  43. </sql>
  44. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  45. select
  46. <include refid="Base_Column_List" />
  47. from inp_child_info
  48. where ICI_ID = #{iciId,jdbcType=INTEGER}
  49. </select>
  50. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  51. delete from inp_child_info
  52. where ICI_ID = #{iciId,jdbcType=INTEGER}
  53. </delete>
  54. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpChildInfo" >
  55. insert into inp_child_info (ICI_ID, HI_ID, ICI_IsInfant,
  56. ICI_PatientNO, ICI_MotherNo, ICI_Med_Rec,
  57. ICI_Name, ICI_Gender, ICI_Birth,
  58. ICI_GravidaWeek, ICI_Gravida, ICI_Para,
  59. ICI_BodyLength, ICI_Weight, ICI_EDC,
  60. ICI_FatherName, ICI_Health, ICI_DeliveryMode,
  61. ICI_DeliverDoctor, ICI_DeliverNurse, ICI_Placenta,
  62. ICI_Recorder, ICI_RecorderTime, ICI_Alteror,
  63. ICI_AlterorTime, ICI_isDel, ICI_Reamrk,
  64. ICI_AdmitId, ICI_Admit_Time, ICI_Admit_Dep,
  65. ICI_Admit_Ward)
  66. values (#{iciId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{iciIsinfant,jdbcType=INTEGER},
  67. #{iciPatientno,jdbcType=VARCHAR}, #{iciMotherno,jdbcType=VARCHAR}, #{iciMedRec,jdbcType=VARCHAR},
  68. #{iciName,jdbcType=VARCHAR}, #{iciGender,jdbcType=INTEGER}, #{iciBirth,jdbcType=TIMESTAMP},
  69. #{iciGravidaweek,jdbcType=INTEGER}, #{iciGravida,jdbcType=INTEGER}, #{iciPara,jdbcType=INTEGER},
  70. #{iciBodylength,jdbcType=INTEGER}, #{iciWeight,jdbcType=INTEGER}, #{iciEdc,jdbcType=TIMESTAMP},
  71. #{iciFathername,jdbcType=VARCHAR}, #{iciHealth,jdbcType=VARCHAR}, #{iciDeliverymode,jdbcType=VARCHAR},
  72. #{iciDeliverdoctor,jdbcType=VARCHAR}, #{iciDelivernurse,jdbcType=VARCHAR}, #{iciPlacenta,jdbcType=VARCHAR},
  73. #{iciRecorder,jdbcType=VARCHAR}, #{iciRecordertime,jdbcType=TIMESTAMP}, #{iciAlteror,jdbcType=VARCHAR},
  74. #{iciAlterortime,jdbcType=TIMESTAMP}, #{iciIsdel,jdbcType=INTEGER}, #{iciReamrk,jdbcType=VARCHAR},
  75. #{iciAdmitid,jdbcType=VARCHAR}, #{iciAdmitTime,jdbcType=TIMESTAMP}, #{iciAdmitDep,jdbcType=VARCHAR},
  76. #{iciAdmitWard,jdbcType=VARCHAR})
  77. </insert>
  78. <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpChildInfo" >
  79. insert into inp_child_info
  80. <trim prefix="(" suffix=")" suffixOverrides="," >
  81. <if test="iciId != null" >
  82. ICI_ID,
  83. </if>
  84. <if test="hiId != null" >
  85. HI_ID,
  86. </if>
  87. <if test="iciIsinfant != null" >
  88. ICI_IsInfant,
  89. </if>
  90. <if test="iciPatientno != null" >
  91. ICI_PatientNO,
  92. </if>
  93. <if test="iciMotherno != null" >
  94. ICI_MotherNo,
  95. </if>
  96. <if test="iciMedRec != null" >
  97. ICI_Med_Rec,
  98. </if>
  99. <if test="iciName != null" >
  100. ICI_Name,
  101. </if>
  102. <if test="iciGender != null" >
  103. ICI_Gender,
  104. </if>
  105. <if test="iciBirth != null" >
  106. ICI_Birth,
  107. </if>
  108. <if test="iciGravidaweek != null" >
  109. ICI_GravidaWeek,
  110. </if>
  111. <if test="iciGravida != null" >
  112. ICI_Gravida,
  113. </if>
  114. <if test="iciPara != null" >
  115. ICI_Para,
  116. </if>
  117. <if test="iciBodylength != null" >
  118. ICI_BodyLength,
  119. </if>
  120. <if test="iciWeight != null" >
  121. ICI_Weight,
  122. </if>
  123. <if test="iciEdc != null" >
  124. ICI_EDC,
  125. </if>
  126. <if test="iciFathername != null" >
  127. ICI_FatherName,
  128. </if>
  129. <if test="iciHealth != null" >
  130. ICI_Health,
  131. </if>
  132. <if test="iciDeliverymode != null" >
  133. ICI_DeliveryMode,
  134. </if>
  135. <if test="iciDeliverdoctor != null" >
  136. ICI_DeliverDoctor,
  137. </if>
  138. <if test="iciDelivernurse != null" >
  139. ICI_DeliverNurse,
  140. </if>
  141. <if test="iciPlacenta != null" >
  142. ICI_Placenta,
  143. </if>
  144. <if test="iciRecorder != null" >
  145. ICI_Recorder,
  146. </if>
  147. <if test="iciRecordertime != null" >
  148. ICI_RecorderTime,
  149. </if>
  150. <if test="iciAlteror != null" >
  151. ICI_Alteror,
  152. </if>
  153. <if test="iciAlterortime != null" >
  154. ICI_AlterorTime,
  155. </if>
  156. <if test="iciIsdel != null" >
  157. ICI_isDel,
  158. </if>
  159. <if test="iciReamrk != null" >
  160. ICI_Reamrk,
  161. </if>
  162. <if test="iciAdmitid != null" >
  163. ICI_AdmitId,
  164. </if>
  165. <if test="iciAdmitTime != null" >
  166. ICI_Admit_Time,
  167. </if>
  168. <if test="iciAdmitDep != null" >
  169. ICI_Admit_Dep,
  170. </if>
  171. <if test="iciAdmitWard != null" >
  172. ICI_Admit_Ward,
  173. </if>
  174. </trim>
  175. <trim prefix="values (" suffix=")" suffixOverrides="," >
  176. <if test="iciId != null" >
  177. #{iciId,jdbcType=INTEGER},
  178. </if>
  179. <if test="hiId != null" >
  180. #{hiId,jdbcType=INTEGER},
  181. </if>
  182. <if test="iciIsinfant != null" >
  183. #{iciIsinfant,jdbcType=INTEGER},
  184. </if>
  185. <if test="iciPatientno != null" >
  186. #{iciPatientno,jdbcType=VARCHAR},
  187. </if>
  188. <if test="iciMotherno != null" >
  189. #{iciMotherno,jdbcType=VARCHAR},
  190. </if>
  191. <if test="iciMedRec != null" >
  192. #{iciMedRec,jdbcType=VARCHAR},
  193. </if>
  194. <if test="iciName != null" >
  195. #{iciName,jdbcType=VARCHAR},
  196. </if>
  197. <if test="iciGender != null" >
  198. #{iciGender,jdbcType=INTEGER},
  199. </if>
  200. <if test="iciBirth != null" >
  201. #{iciBirth,jdbcType=TIMESTAMP},
  202. </if>
  203. <if test="iciGravidaweek != null" >
  204. #{iciGravidaweek,jdbcType=INTEGER},
  205. </if>
  206. <if test="iciGravida != null" >
  207. #{iciGravida,jdbcType=INTEGER},
  208. </if>
  209. <if test="iciPara != null" >
  210. #{iciPara,jdbcType=INTEGER},
  211. </if>
  212. <if test="iciBodylength != null" >
  213. #{iciBodylength,jdbcType=INTEGER},
  214. </if>
  215. <if test="iciWeight != null" >
  216. #{iciWeight,jdbcType=INTEGER},
  217. </if>
  218. <if test="iciEdc != null" >
  219. #{iciEdc,jdbcType=TIMESTAMP},
  220. </if>
  221. <if test="iciFathername != null" >
  222. #{iciFathername,jdbcType=VARCHAR},
  223. </if>
  224. <if test="iciHealth != null" >
  225. #{iciHealth,jdbcType=VARCHAR},
  226. </if>
  227. <if test="iciDeliverymode != null" >
  228. #{iciDeliverymode,jdbcType=VARCHAR},
  229. </if>
  230. <if test="iciDeliverdoctor != null" >
  231. #{iciDeliverdoctor,jdbcType=VARCHAR},
  232. </if>
  233. <if test="iciDelivernurse != null" >
  234. #{iciDelivernurse,jdbcType=VARCHAR},
  235. </if>
  236. <if test="iciPlacenta != null" >
  237. #{iciPlacenta,jdbcType=VARCHAR},
  238. </if>
  239. <if test="iciRecorder != null" >
  240. #{iciRecorder,jdbcType=VARCHAR},
  241. </if>
  242. <if test="iciRecordertime != null" >
  243. #{iciRecordertime,jdbcType=TIMESTAMP},
  244. </if>
  245. <if test="iciAlteror != null" >
  246. #{iciAlteror,jdbcType=VARCHAR},
  247. </if>
  248. <if test="iciAlterortime != null" >
  249. #{iciAlterortime,jdbcType=TIMESTAMP},
  250. </if>
  251. <if test="iciIsdel != null" >
  252. #{iciIsdel,jdbcType=INTEGER},
  253. </if>
  254. <if test="iciReamrk != null" >
  255. #{iciReamrk,jdbcType=VARCHAR},
  256. </if>
  257. <if test="iciAdmitid != null" >
  258. #{iciAdmitid,jdbcType=VARCHAR},
  259. </if>
  260. <if test="iciAdmitTime != null" >
  261. #{iciAdmitTime,jdbcType=TIMESTAMP},
  262. </if>
  263. <if test="iciAdmitDep != null" >
  264. #{iciAdmitDep,jdbcType=VARCHAR},
  265. </if>
  266. <if test="iciAdmitWard != null" >
  267. #{iciAdmitWard,jdbcType=VARCHAR},
  268. </if>
  269. </trim>
  270. </insert>
  271. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpChildInfo" >
  272. update inp_child_info
  273. <set >
  274. <if test="hiId != null" >
  275. HI_ID = #{hiId,jdbcType=INTEGER},
  276. </if>
  277. <if test="iciIsinfant != null" >
  278. ICI_IsInfant = #{iciIsinfant,jdbcType=INTEGER},
  279. </if>
  280. <if test="iciPatientno != null" >
  281. ICI_PatientNO = #{iciPatientno,jdbcType=VARCHAR},
  282. </if>
  283. <if test="iciMotherno != null" >
  284. ICI_MotherNo = #{iciMotherno,jdbcType=VARCHAR},
  285. </if>
  286. <if test="iciMedRec != null" >
  287. ICI_Med_Rec = #{iciMedRec,jdbcType=VARCHAR},
  288. </if>
  289. <if test="iciName != null" >
  290. ICI_Name = #{iciName,jdbcType=VARCHAR},
  291. </if>
  292. <if test="iciGender != null" >
  293. ICI_Gender = #{iciGender,jdbcType=INTEGER},
  294. </if>
  295. <if test="iciBirth != null" >
  296. ICI_Birth = #{iciBirth,jdbcType=TIMESTAMP},
  297. </if>
  298. <if test="iciGravidaweek != null" >
  299. ICI_GravidaWeek = #{iciGravidaweek,jdbcType=INTEGER},
  300. </if>
  301. <if test="iciGravida != null" >
  302. ICI_Gravida = #{iciGravida,jdbcType=INTEGER},
  303. </if>
  304. <if test="iciPara != null" >
  305. ICI_Para = #{iciPara,jdbcType=INTEGER},
  306. </if>
  307. <if test="iciBodylength != null" >
  308. ICI_BodyLength = #{iciBodylength,jdbcType=INTEGER},
  309. </if>
  310. <if test="iciWeight != null" >
  311. ICI_Weight = #{iciWeight,jdbcType=INTEGER},
  312. </if>
  313. <if test="iciEdc != null" >
  314. ICI_EDC = #{iciEdc,jdbcType=TIMESTAMP},
  315. </if>
  316. <if test="iciFathername != null" >
  317. ICI_FatherName = #{iciFathername,jdbcType=VARCHAR},
  318. </if>
  319. <if test="iciHealth != null" >
  320. ICI_Health = #{iciHealth,jdbcType=VARCHAR},
  321. </if>
  322. <if test="iciDeliverymode != null" >
  323. ICI_DeliveryMode = #{iciDeliverymode,jdbcType=VARCHAR},
  324. </if>
  325. <if test="iciDeliverdoctor != null" >
  326. ICI_DeliverDoctor = #{iciDeliverdoctor,jdbcType=VARCHAR},
  327. </if>
  328. <if test="iciDelivernurse != null" >
  329. ICI_DeliverNurse = #{iciDelivernurse,jdbcType=VARCHAR},
  330. </if>
  331. <if test="iciPlacenta != null" >
  332. ICI_Placenta = #{iciPlacenta,jdbcType=VARCHAR},
  333. </if>
  334. <if test="iciRecorder != null" >
  335. ICI_Recorder = #{iciRecorder,jdbcType=VARCHAR},
  336. </if>
  337. <if test="iciRecordertime != null" >
  338. ICI_RecorderTime = #{iciRecordertime,jdbcType=TIMESTAMP},
  339. </if>
  340. <if test="iciAlteror != null" >
  341. ICI_Alteror = #{iciAlteror,jdbcType=VARCHAR},
  342. </if>
  343. <if test="iciAlterortime != null" >
  344. ICI_AlterorTime = #{iciAlterortime,jdbcType=TIMESTAMP},
  345. </if>
  346. <if test="iciIsdel != null" >
  347. ICI_isDel = #{iciIsdel,jdbcType=INTEGER},
  348. </if>
  349. <if test="iciReamrk != null" >
  350. ICI_Reamrk = #{iciReamrk,jdbcType=VARCHAR},
  351. </if>
  352. <if test="iciAdmitid != null" >
  353. ICI_AdmitId = #{iciAdmitid,jdbcType=VARCHAR},
  354. </if>
  355. <if test="iciAdmitTime != null" >
  356. ICI_Admit_Time = #{iciAdmitTime,jdbcType=TIMESTAMP},
  357. </if>
  358. <if test="iciAdmitDep != null" >
  359. ICI_Admit_Dep = #{iciAdmitDep,jdbcType=VARCHAR},
  360. </if>
  361. <if test="iciAdmitWard != null" >
  362. ICI_Admit_Ward = #{iciAdmitWard,jdbcType=VARCHAR},
  363. </if>
  364. </set>
  365. where ICI_ID = #{iciId,jdbcType=INTEGER}
  366. </update>
  367. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpChildInfo" >
  368. update inp_child_info
  369. set HI_ID = #{hiId,jdbcType=INTEGER},
  370. ICI_IsInfant = #{iciIsinfant,jdbcType=INTEGER},
  371. ICI_PatientNO = #{iciPatientno,jdbcType=VARCHAR},
  372. ICI_MotherNo = #{iciMotherno,jdbcType=VARCHAR},
  373. ICI_Med_Rec = #{iciMedRec,jdbcType=VARCHAR},
  374. ICI_Name = #{iciName,jdbcType=VARCHAR},
  375. ICI_Gender = #{iciGender,jdbcType=INTEGER},
  376. ICI_Birth = #{iciBirth,jdbcType=TIMESTAMP},
  377. ICI_GravidaWeek = #{iciGravidaweek,jdbcType=INTEGER},
  378. ICI_Gravida = #{iciGravida,jdbcType=INTEGER},
  379. ICI_Para = #{iciPara,jdbcType=INTEGER},
  380. ICI_BodyLength = #{iciBodylength,jdbcType=INTEGER},
  381. ICI_Weight = #{iciWeight,jdbcType=INTEGER},
  382. ICI_EDC = #{iciEdc,jdbcType=TIMESTAMP},
  383. ICI_FatherName = #{iciFathername,jdbcType=VARCHAR},
  384. ICI_Health = #{iciHealth,jdbcType=VARCHAR},
  385. ICI_DeliveryMode = #{iciDeliverymode,jdbcType=VARCHAR},
  386. ICI_DeliverDoctor = #{iciDeliverdoctor,jdbcType=VARCHAR},
  387. ICI_DeliverNurse = #{iciDelivernurse,jdbcType=VARCHAR},
  388. ICI_Placenta = #{iciPlacenta,jdbcType=VARCHAR},
  389. ICI_Recorder = #{iciRecorder,jdbcType=VARCHAR},
  390. ICI_RecorderTime = #{iciRecordertime,jdbcType=TIMESTAMP},
  391. ICI_Alteror = #{iciAlteror,jdbcType=VARCHAR},
  392. ICI_AlterorTime = #{iciAlterortime,jdbcType=TIMESTAMP},
  393. ICI_isDel = #{iciIsdel,jdbcType=INTEGER},
  394. ICI_Reamrk = #{iciReamrk,jdbcType=VARCHAR},
  395. ICI_AdmitId = #{iciAdmitid,jdbcType=VARCHAR},
  396. ICI_Admit_Time = #{iciAdmitTime,jdbcType=TIMESTAMP},
  397. ICI_Admit_Dep = #{iciAdmitDep,jdbcType=VARCHAR},
  398. ICI_Admit_Ward = #{iciAdmitWard,jdbcType=VARCHAR}
  399. where ICI_ID = #{iciId,jdbcType=INTEGER}
  400. </update>
  401. <select id="getByPatientNo" resultMap="BaseResultMap">
  402. select <include refid="Base_Column_List"/>
  403. from inp_child_info
  404. where ICI_isDel = 0
  405. and ICI_PatientNO = #{patientNo,jdbcType=VARCHAR}
  406. and HI_ID = #{hiId,jdbcType=INTEGER}
  407. limit 1
  408. </select>
  409. <select id="getNewbornInfoList" resultType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpPatient">
  410. select
  411. b.IP_Name ipName,
  412. b.IP_Med_Rec ipMedRec,
  413. b.IP_PatientNo ipPatientno,
  414. b.DB_BedNo dbBedno,
  415. b.DD_DepDm ddDepdm
  416. from
  417. (select
  418. IP.IP_Name,
  419. IP.IP_PatientNo,
  420. IP.IP_Med_Rec,
  421. ip.DB_BedNo,
  422. ici.ICI_Birth,
  423. ip.DD_DepDm
  424. from inp_child_info ici,inp_patient ip
  425. where ici.ICI_PatientNO = ip.IP_PatientNo
  426. and ip.DW_WardDm = #{ddWardDm,jdbcType=VARCHAR}
  427. and ip.IP_Status != 2
  428. and ip.IP_IsDel = 0
  429. and ici.ICI_isDel = 0
  430. and ici.ICI_IsInfant = 1
  431. and ip.IP_IsInfant = 1
  432. and ici.HI_ID = #{hiId,jdbcType=INTEGER}
  433. and ip.HI_ID = #{hiId,jdbcType=INTEGER}
  434. having #{measureTime,jdbcType=TIMESTAMP} >= DATE_ADD(ici.ICI_Birth,INTERVAL 1 DAY)) b
  435. left join dic_bed db on db.HI_ID = #{hiId,jdbcType=INTEGER} and db.DW_WardDm = #{ddWardDm,jdbcType=VARCHAR}
  436. and db.DB_BedNo = b.DB_BedNo
  437. order by db.DB_Sort
  438. </select>
  439. <select id="getByPatientNoList" resultMap="BaseResultMap">
  440. select <include refid="Base_Column_List"/>
  441. from inp_child_info
  442. where ICI_isDel = 0
  443. and HI_ID = #{hiId,jdbcType=INTEGER}
  444. and ICI_PatientNO in
  445. <foreach collection="list" close=")" open="(" separator="," index="index" item="item">
  446. #{item,jdbcType=VARCHAR}
  447. </foreach>
  448. </select>
  449. </mapper>