InpConsulationMapper.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  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.InpConsulationMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulation" >
  5. <id column="ICO_ID" property="icoId" jdbcType="INTEGER" />
  6. <result column="PatientNo" property="patientno" jdbcType="VARCHAR" />
  7. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  8. <result column="DCT_ID" property="dctId" jdbcType="INTEGER" />
  9. <result column="DCO_Code" property="dcoCode" jdbcType="VARCHAR" />
  10. <result column="DCO_Name" property="dcoName" jdbcType="VARCHAR" />
  11. <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
  12. <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
  13. <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
  14. <result column="ICO_Apply_WardDm" property="icoApplyWarddm" jdbcType="VARCHAR" />
  15. <result column="ICO_Applicant" property="icoApplicant" jdbcType="VARCHAR" />
  16. <result column="ICO_Apply_Time" property="icoApplyTime" jdbcType="TIMESTAMP" />
  17. <result column="ICO_Request_Time" property="icoRequestTime" jdbcType="TIMESTAMP" />
  18. <result column="ICO_Consultation_Time" property="icoConsultationTime" jdbcType="TIMESTAMP" />
  19. <result column="ICO_Diagnose" property="icoDiagnose" jdbcType="VARCHAR" />
  20. <result column="ICO_Replier" property="icoReplier" jdbcType="VARCHAR" />
  21. <result column="ICO_Status" property="icoStatus" jdbcType="INTEGER" />
  22. <result column="ICO_Recordor" property="icoRecordor" jdbcType="VARCHAR" />
  23. <result column="ICO_Record_Time" property="icoRecordTime" jdbcType="TIMESTAMP" />
  24. <result column="ICO_FormerID" property="icoFormerid" jdbcType="INTEGER" />
  25. <result column="ICO_IsDel" property="icoIsdel" jdbcType="INTEGER" />
  26. <result column="DA_ID" property="daId" jdbcType="INTEGER" />
  27. <result column="UI_ID" property="uiId" jdbcType="INTEGER" />
  28. <result column="DCT_IDs" property="dctIds" jdbcType="VARCHAR" />
  29. </resultMap>
  30. <resultMap id="ResultMapWithBLOBs" type="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" extends="BaseResultMap" >
  31. <result column="ICO_Option" property="icoOption" jdbcType="LONGVARCHAR" />
  32. <result column="ICO_XML" property="icoXml" jdbcType="LONGVARCHAR" />
  33. <result column="ICO_List_Response" property="icoListResponse" jdbcType="LONGVARCHAR"/>
  34. </resultMap>
  35. <sql id="Base_Column_List" >
  36. ICO_ID, PatientNo, HI_ID, DCT_ID, DCO_Code, DCO_Name, DD_DepDm, DW_WardDm, DB_BedNo, ICO_Apply_WardDm,
  37. ICO_Applicant, ICO_Apply_Time, ICO_Request_Time, ICO_Consultation_Time, ICO_Diagnose,
  38. ICO_Replier, ICO_Status, ICO_Recordor, ICO_Record_Time, ICO_FormerID, ICO_IsDel, DA_ID, UI_ID, DCT_IDs
  39. </sql>
  40. <sql id="Blob_Column_List" >
  41. ICO_Option, ICO_XML,ICO_List_Response
  42. </sql>
  43. <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
  44. select
  45. <include refid="Base_Column_List" />
  46. ,
  47. <include refid="Blob_Column_List" />
  48. from inp_consulation
  49. where ICO_IsDel = 0 and ICO_ID = #{icoId,jdbcType=INTEGER}
  50. </select>
  51. <select id="getAllList" resultMap="ResultMapWithBLOBs" parameterType="com.xinxin.topro.inpnurseservice.vo.InpCatheterSearchVo" >
  52. select
  53. <include refid="Base_Column_List" />
  54. ,
  55. <include refid="Blob_Column_List" />
  56. from inp_consulation
  57. where ICO_IsDel = 0
  58. <if test="PatientNo != null">
  59. AND PatientNo = #{PatientNo,jdbcType=VARCHAR}
  60. </if>
  61. <if test="beginTime != null">
  62. AND ICO_Request_Time <![CDATA[>=]]> #{beginTime}
  63. </if>
  64. <if test="endTime != null">
  65. AND ICO_Request_Time <![CDATA[<=]]>#{endTime}
  66. </if>
  67. ORDER BY ICO_Request_Time DESC
  68. </select>
  69. <select id="getList" resultType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" parameterType="com.xinxin.topro.inpnurseservice.vo.InpCatheterSearchVo" >
  70. select
  71. ic.ICO_ID AS icoId,
  72. ic.PatientNo AS patientNo,
  73. ic.HI_ID AS hiId,
  74. ic.DCT_ID AS dctId,
  75. ic.DCO_Code AS dcoCode,
  76. ic.DCO_Name AS dcoName,
  77. ic.DD_DepDm AS ddDepDm,
  78. ic.DW_WardDm AS dwWardDm,
  79. ic.DB_BedNo AS dbBedno,
  80. ic.ICO_Apply_WardDm AS icoApplyWarddm,
  81. ic.ICO_Applicant AS icoApplicant,
  82. ic.ICO_Apply_Time AS icoApplyTime,
  83. ic.ICO_Request_Time AS icoRequestTime,
  84. ic.ICO_Consultation_Time AS icoConsultationTime,
  85. ic.ICO_Diagnose AS icoDiagnose,
  86. ic.ICO_Replier AS icoReplier,
  87. ic.ICO_Status AS icoStatus,
  88. ic.ICO_Recordor AS icoRecordor,
  89. ic.ICO_Record_Time AS icoRecordTime,
  90. ic.ICO_FormerID AS icoFormerid,
  91. ic.ICO_IsDel AS icoIsdel,
  92. ic.DA_ID AS daId,
  93. ic.ICO_Option AS icoOption,
  94. ic.ICO_XML AS icoXml,
  95. ic.DCT_IDs AS dctIds,
  96. ip.IP_Med_Rec AS chartNo,
  97. ip.IP_Name AS PtName,
  98. (
  99. CASE ip.IP_Sex
  100. WHEN 1 THEN
  101. '男'
  102. WHEN 2 THEN
  103. '女'
  104. ELSE
  105. '未知'
  106. END
  107. ) AS gender,
  108. f_getAge(ip.IP_Birth, ip.IP_Admit_Time) AS age
  109. from inp_consulation ic
  110. left join inp_patient ip on ic.PatientNo = ip.IP_PatientNo
  111. where ic.ICO_IsDel = 0
  112. <if test="beginTime != null">
  113. AND ICO_Request_Time <![CDATA[>=]]> #{beginTime}
  114. </if>
  115. <if test="endTime != null">
  116. AND ICO_Request_Time <![CDATA[<=]]>#{endTime}
  117. </if>
  118. ORDER BY ICO_Request_Time DESC
  119. </select>
  120. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  121. delete from inp_consulation
  122. where ICO_ID = #{icoId,jdbcType=INTEGER}
  123. </delete>
  124. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" >
  125. insert into inp_consulation (ICO_ID, PatientNo, HI_ID,
  126. DCT_ID, DCO_Code, DCO_Name, DD_DepDm,
  127. DW_WardDm, DB_BedNo, ICO_Apply_WardDm,
  128. ICO_Applicant, ICO_Apply_Time, ICO_Request_Time,
  129. ICO_Consultation_Time, ICO_Diagnose, ICO_Replier,
  130. ICO_Status, ICO_Recordor, ICO_Record_Time,
  131. ICO_FormerID, ICO_IsDel, ICO_Option,
  132. ICO_XML, DA_ID, DCT_IDs)
  133. values (#{icoId,jdbcType=INTEGER}, #{patientno,jdbcType=VARCHAR}, #{hiId,jdbcType=INTEGER},
  134. #{dctId,jdbcType=INTEGER}, #{dcoCode,jdbcType=VARCHAR}, #{dcoName,jdbcType=VARCHAR}, #{ddDepdm,jdbcType=VARCHAR},
  135. #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR}, #{icoApplyWarddm,jdbcType=VARCHAR},
  136. #{icoApplicant,jdbcType=VARCHAR}, #{icoApplyTime,jdbcType=TIMESTAMP}, #{icoRequestTime,jdbcType=TIMESTAMP},
  137. #{icoConsultationTime,jdbcType=TIMESTAMP}, #{icoDiagnose,jdbcType=VARCHAR}, #{icoReplier,jdbcType=VARCHAR},
  138. #{icoStatus,jdbcType=INTEGER}, #{icoRecordor,jdbcType=VARCHAR}, #{icoRecordTime,jdbcType=TIMESTAMP},
  139. #{icoFormerid,jdbcType=INTEGER}, #{icoIsdel,jdbcType=INTEGER}, #{icoOption,jdbcType=LONGVARCHAR},
  140. #{icoXml,jdbcType=LONGVARCHAR}, #{daId,jdbcType=LONGVARCHAR},#{dicIds,jdbcType=VARCHAR})
  141. </insert>
  142. <insert id="insertSelective" useGeneratedKeys="true" keyProperty="icoId" keyColumn="ICO_ID" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" >
  143. insert into inp_consulation
  144. <trim prefix="(" suffix=")" suffixOverrides="," >
  145. <if test="icoId != null" >
  146. ICO_ID,
  147. </if>
  148. <if test="patientno != null" >
  149. PatientNo,
  150. </if>
  151. <if test="hiId != null" >
  152. HI_ID,
  153. </if>
  154. <if test="dctId != null" >
  155. DCT_ID,
  156. </if>
  157. <if test="dcoCode != null" >
  158. DCO_Code,
  159. </if>
  160. <if test="dcoName != null" >
  161. DCO_Name,
  162. </if>
  163. <if test="ddDepdm != null" >
  164. DD_DepDm,
  165. </if>
  166. <if test="dwWarddm != null" >
  167. DW_WardDm,
  168. </if>
  169. <if test="dbBedno != null" >
  170. DB_BedNo,
  171. </if>
  172. <if test="icoApplyWarddm != null" >
  173. ICO_Apply_WardDm,
  174. </if>
  175. <if test="icoApplicant != null" >
  176. ICO_Applicant,
  177. </if>
  178. <if test="icoApplyTime != null" >
  179. ICO_Apply_Time,
  180. </if>
  181. <if test="icoRequestTime != null" >
  182. ICO_Request_Time,
  183. </if>
  184. <if test="icoConsultationTime != null" >
  185. ICO_Consultation_Time,
  186. </if>
  187. <if test="icoDiagnose != null" >
  188. ICO_Diagnose,
  189. </if>
  190. <if test="icoReplier != null" >
  191. ICO_Replier,
  192. </if>
  193. <if test="icoStatus != null" >
  194. ICO_Status,
  195. </if>
  196. <if test="icoRecordor != null" >
  197. ICO_Recordor,
  198. </if>
  199. <if test="icoRecordTime != null" >
  200. ICO_Record_Time,
  201. </if>
  202. <if test="icoFormerid != null" >
  203. ICO_FormerID,
  204. </if>
  205. <if test="icoIsdel != null" >
  206. ICO_IsDel,
  207. </if>
  208. <if test="icoOption != null" >
  209. ICO_Option,
  210. </if>
  211. <if test="icoXml != null" >
  212. ICO_XML,
  213. </if>
  214. <if test="daId != null" >
  215. DA_ID,
  216. </if>
  217. <if test="uiId != null" >
  218. UI_ID,
  219. </if>
  220. <if test="dctIds != null" >
  221. DCT_IDs,
  222. </if>
  223. <if test="icoListResponse != null">
  224. ICO_List_Response,
  225. </if>
  226. </trim>
  227. <trim prefix="values (" suffix=")" suffixOverrides="," >
  228. <if test="icoId != null" >
  229. #{icoId,jdbcType=INTEGER},
  230. </if>
  231. <if test="patientno != null" >
  232. #{patientno,jdbcType=VARCHAR},
  233. </if>
  234. <if test="hiId != null" >
  235. #{hiId,jdbcType=INTEGER},
  236. </if>
  237. <if test="dctId != null" >
  238. #{dctId,jdbcType=INTEGER},
  239. </if>
  240. <if test="dcoCode != null" >
  241. #{dcoCode,jdbcType=VARCHAR},
  242. </if>
  243. <if test="dcoName != null" >
  244. #{dcoName,jdbcType=VARCHAR},
  245. </if>
  246. <if test="ddDepdm != null" >
  247. #{ddDepdm,jdbcType=VARCHAR},
  248. </if>
  249. <if test="dwWarddm != null" >
  250. #{dwWarddm,jdbcType=VARCHAR},
  251. </if>
  252. <if test="dbBedno != null" >
  253. #{dbBedno,jdbcType=VARCHAR},
  254. </if>
  255. <if test="icoApplyWarddm != null" >
  256. #{icoApplyWarddm,jdbcType=VARCHAR},
  257. </if>
  258. <if test="icoApplicant != null" >
  259. #{icoApplicant,jdbcType=VARCHAR},
  260. </if>
  261. <if test="icoApplyTime != null" >
  262. #{icoApplyTime,jdbcType=TIMESTAMP},
  263. </if>
  264. <if test="icoRequestTime != null" >
  265. #{icoRequestTime,jdbcType=TIMESTAMP},
  266. </if>
  267. <if test="icoConsultationTime != null" >
  268. #{icoConsultationTime,jdbcType=TIMESTAMP},
  269. </if>
  270. <if test="icoDiagnose != null" >
  271. #{icoDiagnose,jdbcType=VARCHAR},
  272. </if>
  273. <if test="icoReplier != null" >
  274. #{icoReplier,jdbcType=VARCHAR},
  275. </if>
  276. <if test="icoStatus != null" >
  277. #{icoStatus,jdbcType=INTEGER},
  278. </if>
  279. <if test="icoRecordor != null" >
  280. #{icoRecordor,jdbcType=VARCHAR},
  281. </if>
  282. <if test="icoRecordTime != null" >
  283. #{icoRecordTime,jdbcType=TIMESTAMP},
  284. </if>
  285. <if test="icoFormerid != null" >
  286. #{icoFormerid,jdbcType=INTEGER},
  287. </if>
  288. <if test="icoIsdel != null" >
  289. #{icoIsdel,jdbcType=INTEGER},
  290. </if>
  291. <if test="icoOption != null" >
  292. #{icoOption,jdbcType=LONGVARCHAR},
  293. </if>
  294. <if test="icoXml != null" >
  295. #{icoXml,jdbcType=LONGVARCHAR},
  296. </if>
  297. <if test="daId != null" >
  298. #{daId,jdbcType=INTEGER},
  299. </if>
  300. <if test="uiId != null" >
  301. #{uiId,jdbcType=INTEGER},
  302. </if>
  303. <if test="dctIds != null" >
  304. #{dctIds,jdbcType=VARCHAR},
  305. </if>
  306. <if test="icoListResponse != null">
  307. #{icoListResponse,jdbcType=VARCHAR}
  308. </if>
  309. </trim>
  310. </insert>
  311. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" >
  312. update inp_consulation
  313. <set >
  314. <if test="patientno != null" >
  315. PatientNo = #{patientno,jdbcType=VARCHAR},
  316. </if>
  317. <if test="hiId != null" >
  318. HI_ID = #{hiId,jdbcType=INTEGER},
  319. </if>
  320. <if test="dctId != null" >
  321. DCT_ID = #{dctId,jdbcType=INTEGER},
  322. </if>
  323. <if test="dcoCode != null" >
  324. DCO_Code = #{dcoCode,jdbcType=VARCHAR},
  325. </if>
  326. <if test="dcoName != null" >
  327. DCO_Name = #{dcoName,jdbcType=VARCHAR},
  328. </if>
  329. <if test="ddDepdm != null" >
  330. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  331. </if>
  332. <if test="dwWarddm != null" >
  333. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  334. </if>
  335. <if test="dbBedno != null" >
  336. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  337. </if>
  338. <if test="icoApplyWarddm != null" >
  339. ICO_Apply_WardDm = #{icoApplyWarddm,jdbcType=VARCHAR},
  340. </if>
  341. <if test="icoApplicant != null" >
  342. ICO_Applicant = #{icoApplicant,jdbcType=VARCHAR},
  343. </if>
  344. <if test="icoApplyTime != null" >
  345. ICO_Apply_Time = #{icoApplyTime,jdbcType=TIMESTAMP},
  346. </if>
  347. <if test="icoRequestTime != null" >
  348. ICO_Request_Time = #{icoRequestTime,jdbcType=TIMESTAMP},
  349. </if>
  350. <if test="icoConsultationTime != null" >
  351. ICO_Consultation_Time = #{icoConsultationTime,jdbcType=TIMESTAMP},
  352. </if>
  353. <if test="icoDiagnose != null" >
  354. ICO_Diagnose = #{icoDiagnose,jdbcType=VARCHAR},
  355. </if>
  356. <if test="icoReplier != null" >
  357. ICO_Replier = #{icoReplier,jdbcType=VARCHAR},
  358. </if>
  359. <if test="icoStatus != null" >
  360. ICO_Status = #{icoStatus,jdbcType=INTEGER},
  361. </if>
  362. <if test="icoRecordor != null" >
  363. ICO_Recordor = #{icoRecordor,jdbcType=VARCHAR},
  364. </if>
  365. <if test="icoRecordTime != null" >
  366. ICO_Record_Time = #{icoRecordTime,jdbcType=TIMESTAMP},
  367. </if>
  368. <if test="icoFormerid != null" >
  369. ICO_FormerID = #{icoFormerid,jdbcType=INTEGER},
  370. </if>
  371. <if test="icoIsdel != null" >
  372. ICO_IsDel = #{icoIsdel,jdbcType=INTEGER},
  373. </if>
  374. <if test="daId != null" >
  375. DA_ID = #{daId,jdbcType=INTEGER},
  376. </if>
  377. <if test="icoOption != null" >
  378. ICO_Option = #{icoOption,jdbcType=LONGVARCHAR},
  379. </if>
  380. <if test="icoXml != null" >
  381. ICO_XML = #{icoXml,jdbcType=LONGVARCHAR},
  382. </if>
  383. <if test="DCT_IDs != null" >
  384. DCT_IDs = #{dctIds,jdbcType=VARCHAR},
  385. </if>
  386. </set>
  387. where ICO_ID = #{icoId,jdbcType=INTEGER}
  388. </update>
  389. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulationWithBLOBs" >
  390. update inp_consulation
  391. set PatientNo = #{patientno,jdbcType=VARCHAR},
  392. HI_ID = #{hiId,jdbcType=INTEGER},
  393. DCT_ID = #{dctId,jdbcType=INTEGER},
  394. DCO_Code = #{dcoCode,jdbcType=VARCHAR},
  395. DCO_Name = #{dcoName,jdbcType=VARCHAR},
  396. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  397. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  398. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  399. ICO_Apply_WardDm = #{icoApplyWarddm,jdbcType=VARCHAR},
  400. ICO_Applicant = #{icoApplicant,jdbcType=VARCHAR},
  401. ICO_Apply_Time = #{icoApplyTime,jdbcType=TIMESTAMP},
  402. ICO_Request_Time = #{icoRequestTime,jdbcType=TIMESTAMP},
  403. ICO_Consultation_Time = #{icoConsultationTime,jdbcType=TIMESTAMP},
  404. ICO_Diagnose = #{icoDiagnose,jdbcType=VARCHAR},
  405. ICO_Replier = #{icoReplier,jdbcType=VARCHAR},
  406. ICO_Status = #{icoStatus,jdbcType=INTEGER},
  407. ICO_Recordor = #{icoRecordor,jdbcType=VARCHAR},
  408. ICO_Record_Time = #{icoRecordTime,jdbcType=TIMESTAMP},
  409. ICO_FormerID = #{icoFormerid,jdbcType=INTEGER},
  410. ICO_IsDel = #{icoIsdel,jdbcType=INTEGER},
  411. DA_ID = #{daId,jdbcType=INTEGER},
  412. ICO_Option = #{icoOption,jdbcType=LONGVARCHAR},
  413. DCT_IDs = #{dctIds,jdbcType=VARCHAR},
  414. ICO_XML = #{icoXml,jdbcType=LONGVARCHAR}
  415. where ICO_ID = #{icoId,jdbcType=INTEGER}
  416. </update>
  417. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.InpConsulation" >
  418. update inp_consulation
  419. set PatientNo = #{patientno,jdbcType=VARCHAR},
  420. HI_ID = #{hiId,jdbcType=INTEGER},
  421. DCT_ID = #{dctId,jdbcType=INTEGER},
  422. DCO_Code = #{dcoCode,jdbcType=VARCHAR},
  423. DCO_Name = #{dcoName,jdbcType=VARCHAR},
  424. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  425. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  426. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  427. ICO_Apply_WardDm = #{icoApplyWarddm,jdbcType=VARCHAR},
  428. ICO_Applicant = #{icoApplicant,jdbcType=VARCHAR},
  429. ICO_Apply_Time = #{icoApplyTime,jdbcType=TIMESTAMP},
  430. ICO_Request_Time = #{icoRequestTime,jdbcType=TIMESTAMP},
  431. ICO_Consultation_Time = #{icoConsultationTime,jdbcType=TIMESTAMP},
  432. ICO_Diagnose = #{icoDiagnose,jdbcType=VARCHAR},
  433. ICO_Replier = #{icoReplier,jdbcType=VARCHAR},
  434. ICO_Status = #{icoStatus,jdbcType=INTEGER},
  435. ICO_Recordor = #{icoRecordor,jdbcType=VARCHAR},
  436. ICO_Record_Time = #{icoRecordTime,jdbcType=TIMESTAMP},
  437. ICO_FormerID = #{icoFormerid,jdbcType=INTEGER},
  438. DA_ID = #{daId,jdbcType=INTEGER},
  439. DCT_IDs = #{dctIds,jdbcType=VARCHAR},
  440. ICO_IsDel = #{icoIsdel,jdbcType=INTEGER}
  441. where ICO_ID = #{icoId,jdbcType=INTEGER}
  442. </update>
  443. <update id="updateStatus" parameterType="java.lang.Integer" >
  444. update inp_consulation
  445. set ICO_IsDel = -1
  446. where ICO_ID = #{icoId,jdbcType=INTEGER}
  447. </update>
  448. <update id="updateIcoState" parameterType="java.lang.Integer">
  449. update inp_consulation
  450. set ICO_Status=1
  451. where ICO_ID = #{icoId,jdbcType=INTEGER}
  452. </update>
  453. </mapper>