xt_czyh_SqlMap.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
  3. <sqlMap namespace="xt_czyh" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtCzyh" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Thu May 22 09:59:54 CST 2014.
  8. -->
  9. <result column="ID" property="id" jdbcType="INTEGER" />
  10. <result column="QYID" property="qyid" jdbcType="INTEGER" />
  11. <result column="QYMC" property="qymc" jdbcType="VARCHAR" />
  12. <result column="MCID" property="mcid" jdbcType="INTEGER" />
  13. <result column="MCMC" property="mcmc" jdbcType="VARCHAR" />
  14. <result column="GH" property="gh" jdbcType="VARCHAR" />
  15. <result column="YHM" property="yhm" jdbcType="VARCHAR" />
  16. <result column="YHXM" property="yhxm" jdbcType="VARCHAR" />
  17. <result column="YHNC" property="yhnc" jdbcType="VARCHAR" />
  18. <result column="ZW" property="zw" jdbcType="VARCHAR" />
  19. <result column="YHMM" property="yhmm" jdbcType="VARCHAR" />
  20. <result column="LXDH" property="lxdh" jdbcType="VARCHAR" />
  21. <result column="EMAIL" property="email" jdbcType="VARCHAR" />
  22. <result column="SRFS" property="srfs" jdbcType="VARCHAR" />
  23. <result column="PYM" property="pym" jdbcType="VARCHAR" />
  24. <result column="WBM" property="wbm" jdbcType="VARCHAR" />
  25. <result column="XGR" property="xgr" jdbcType="VARCHAR" />
  26. <result column="XGSJ" property="xgsj" jdbcType="TIMESTAMP" />
  27. <result column="LRR" property="lrr" jdbcType="VARCHAR" />
  28. <result column="ZFBZ" property="zfbz" jdbcType="INTEGER" />
  29. <result column="QHBM" property="qhbm" jdbcType="VARCHAR" />
  30. <result column="QHMC" property="qhmc" jdbcType="VARCHAR" />
  31. <result column="XXW" property="xxw" jdbcType="VARCHAR" />
  32. </resultMap>
  33. <sql id="ibatorgenerated_Example_Where_Clause" >
  34. <!--
  35. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  36. This element was generated on Thu May 22 09:59:54 CST 2014.
  37. -->
  38. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  39. <isEqual property="oredCriteria[].valid" compareValue="true" >
  40. (
  41. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  42. $oredCriteria[].criteriaWithoutValue[]$
  43. </iterate>
  44. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  45. $oredCriteria[].criteriaWithSingleValue[].condition$
  46. #oredCriteria[].criteriaWithSingleValue[].value#
  47. </iterate>
  48. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  49. $oredCriteria[].criteriaWithListValue[].condition$
  50. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  51. #oredCriteria[].criteriaWithListValue[].values[]#
  52. </iterate>
  53. </iterate>
  54. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  55. $oredCriteria[].criteriaWithBetweenValue[].condition$
  56. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  57. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  58. </iterate>
  59. )
  60. </isEqual>
  61. </iterate>
  62. </sql>
  63. <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtCzyhExample" >
  64. <!--
  65. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  66. This element was generated on Thu May 22 09:59:54 CST 2014.
  67. -->
  68. select ID, QYID, QYMC, MCID, MCMC, GH, YHM, YHXM, YHNC, ZW, YHMM, LXDH, EMAIL, SRFS, PYM, WBM,
  69. XGR, XGSJ, LRR, ZFBZ, QHBM, QHMC, XXW
  70. from xt_czyh
  71. <isParameterPresent >
  72. <include refid="xt_czyh.ibatorgenerated_Example_Where_Clause" />
  73. <isNotNull property="orderByClause" >
  74. order by $orderByClause$
  75. </isNotNull>
  76. <isGreaterEqual property="start" compareValue="0" >
  77. limit $start$ , $limit$
  78. </isGreaterEqual>
  79. </isParameterPresent>
  80. </select>
  81. <select id="ibatorgenerated_selectByPrimaryKey" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  82. <!--
  83. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  84. This element was generated on Thu May 22 09:59:54 CST 2014.
  85. -->
  86. select ID, QYID, QYMC, MCID, MCMC, GH, YHM, YHXM, YHNC, ZW, YHMM, LXDH, EMAIL, SRFS, PYM, WBM,
  87. XGR, XGSJ, LRR, ZFBZ, QHBM, QHMC, XXW
  88. from xt_czyh
  89. where ID = #id:INTEGER#
  90. </select>
  91. <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  92. <!--
  93. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  94. This element was generated on Thu May 22 09:59:54 CST 2014.
  95. -->
  96. delete from xt_czyh
  97. where ID = #id:INTEGER#
  98. </delete>
  99. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtCzyhExample" >
  100. <!--
  101. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  102. This element was generated on Thu May 22 09:59:54 CST 2014.
  103. -->
  104. delete from xt_czyh
  105. <include refid="xt_czyh.ibatorgenerated_Example_Where_Clause" />
  106. </delete>
  107. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  108. <!--
  109. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  110. This element was generated on Thu May 22 09:59:54 CST 2014.
  111. -->
  112. insert into xt_czyh (ID, QYID, QYMC, MCID, MCMC, GH, YHM, YHXM, YHNC, ZW, YHMM, LXDH, EMAIL,
  113. SRFS, PYM, WBM, XGR, XGSJ, LRR, ZFBZ, QHBM, QHMC, XXW)
  114. values (#id:INTEGER#, #qyid:INTEGER#, #qymc:VARCHAR#, #mcid:INTEGER#, #mcmc:VARCHAR#,
  115. #gh:VARCHAR#, #yhm:VARCHAR#, #yhxm:VARCHAR#, #yhnc:VARCHAR#, #zw:VARCHAR#, #yhmm:VARCHAR#,
  116. #lxdh:VARCHAR#, #email:VARCHAR#, #srfs:VARCHAR#, #pym:VARCHAR#, #wbm:VARCHAR#, #xgr:VARCHAR#,
  117. #xgsj:TIMESTAMP#, #lrr:VARCHAR#, #zfbz:INTEGER#, #qhbm:VARCHAR#, #qhmc:VARCHAR#,
  118. #xxw:VARCHAR#)
  119. </insert>
  120. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  121. <!--
  122. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  123. This element was generated on Thu May 22 09:59:54 CST 2014.
  124. -->
  125. insert into xt_czyh
  126. <dynamic prepend="(" >
  127. <isNotNull prepend="," property="id" >
  128. ID
  129. </isNotNull>
  130. <isNotNull prepend="," property="qyid" >
  131. QYID
  132. </isNotNull>
  133. <isNotNull prepend="," property="qymc" >
  134. QYMC
  135. </isNotNull>
  136. <isNotNull prepend="," property="mcid" >
  137. MCID
  138. </isNotNull>
  139. <isNotNull prepend="," property="mcmc" >
  140. MCMC
  141. </isNotNull>
  142. <isNotNull prepend="," property="gh" >
  143. GH
  144. </isNotNull>
  145. <isNotNull prepend="," property="yhm" >
  146. YHM
  147. </isNotNull>
  148. <isNotNull prepend="," property="yhxm" >
  149. YHXM
  150. </isNotNull>
  151. <isNotNull prepend="," property="yhnc" >
  152. YHNC
  153. </isNotNull>
  154. <isNotNull prepend="," property="zw" >
  155. ZW
  156. </isNotNull>
  157. <isNotNull prepend="," property="yhmm" >
  158. YHMM
  159. </isNotNull>
  160. <isNotNull prepend="," property="lxdh" >
  161. LXDH
  162. </isNotNull>
  163. <isNotNull prepend="," property="email" >
  164. EMAIL
  165. </isNotNull>
  166. <isNotNull prepend="," property="srfs" >
  167. SRFS
  168. </isNotNull>
  169. <isNotNull prepend="," property="pym" >
  170. PYM
  171. </isNotNull>
  172. <isNotNull prepend="," property="wbm" >
  173. WBM
  174. </isNotNull>
  175. <isNotNull prepend="," property="xgr" >
  176. XGR
  177. </isNotNull>
  178. <isNotNull prepend="," property="xgsj" >
  179. XGSJ
  180. </isNotNull>
  181. <isNotNull prepend="," property="lrr" >
  182. LRR
  183. </isNotNull>
  184. <isNotNull prepend="," property="zfbz" >
  185. ZFBZ
  186. </isNotNull>
  187. <isNotNull prepend="," property="qhbm" >
  188. QHBM
  189. </isNotNull>
  190. <isNotNull prepend="," property="qhmc" >
  191. QHMC
  192. </isNotNull>
  193. <isNotNull prepend="," property="xxw" >
  194. XXW
  195. </isNotNull>
  196. )
  197. </dynamic>
  198. values
  199. <dynamic prepend="(" >
  200. <isNotNull prepend="," property="id" >
  201. #id:INTEGER#
  202. </isNotNull>
  203. <isNotNull prepend="," property="qyid" >
  204. #qyid:INTEGER#
  205. </isNotNull>
  206. <isNotNull prepend="," property="qymc" >
  207. #qymc:VARCHAR#
  208. </isNotNull>
  209. <isNotNull prepend="," property="mcid" >
  210. #mcid:INTEGER#
  211. </isNotNull>
  212. <isNotNull prepend="," property="mcmc" >
  213. #mcmc:VARCHAR#
  214. </isNotNull>
  215. <isNotNull prepend="," property="gh" >
  216. #gh:VARCHAR#
  217. </isNotNull>
  218. <isNotNull prepend="," property="yhm" >
  219. #yhm:VARCHAR#
  220. </isNotNull>
  221. <isNotNull prepend="," property="yhxm" >
  222. #yhxm:VARCHAR#
  223. </isNotNull>
  224. <isNotNull prepend="," property="yhnc" >
  225. #yhnc:VARCHAR#
  226. </isNotNull>
  227. <isNotNull prepend="," property="zw" >
  228. #zw:VARCHAR#
  229. </isNotNull>
  230. <isNotNull prepend="," property="yhmm" >
  231. #yhmm:VARCHAR#
  232. </isNotNull>
  233. <isNotNull prepend="," property="lxdh" >
  234. #lxdh:VARCHAR#
  235. </isNotNull>
  236. <isNotNull prepend="," property="email" >
  237. #email:VARCHAR#
  238. </isNotNull>
  239. <isNotNull prepend="," property="srfs" >
  240. #srfs:VARCHAR#
  241. </isNotNull>
  242. <isNotNull prepend="," property="pym" >
  243. #pym:VARCHAR#
  244. </isNotNull>
  245. <isNotNull prepend="," property="wbm" >
  246. #wbm:VARCHAR#
  247. </isNotNull>
  248. <isNotNull prepend="," property="xgr" >
  249. #xgr:VARCHAR#
  250. </isNotNull>
  251. <isNotNull prepend="," property="xgsj" >
  252. #xgsj:TIMESTAMP#
  253. </isNotNull>
  254. <isNotNull prepend="," property="lrr" >
  255. #lrr:VARCHAR#
  256. </isNotNull>
  257. <isNotNull prepend="," property="zfbz" >
  258. #zfbz:INTEGER#
  259. </isNotNull>
  260. <isNotNull prepend="," property="qhbm" >
  261. #qhbm:VARCHAR#
  262. </isNotNull>
  263. <isNotNull prepend="," property="qhmc" >
  264. #qhmc:VARCHAR#
  265. </isNotNull>
  266. <isNotNull prepend="," property="xxw" >
  267. #xxw:VARCHAR#
  268. </isNotNull>
  269. )
  270. </dynamic>
  271. </insert>
  272. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtCzyhExample" resultClass="java.lang.Integer" >
  273. <!--
  274. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  275. This element was generated on Thu May 22 09:59:54 CST 2014.
  276. -->
  277. select count(*) from xt_czyh
  278. <include refid="xt_czyh.ibatorgenerated_Example_Where_Clause" />
  279. </select>
  280. <update id="ibatorgenerated_updateByExampleSelective" >
  281. <!--
  282. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  283. This element was generated on Thu May 22 09:59:54 CST 2014.
  284. -->
  285. update xt_czyh
  286. <dynamic prepend="set" >
  287. <isNotNull prepend="," property="record.id" >
  288. ID = #record.id:INTEGER#
  289. </isNotNull>
  290. <isNotNull prepend="," property="record.qyid" >
  291. QYID = #record.qyid:INTEGER#
  292. </isNotNull>
  293. <isNotNull prepend="," property="record.qymc" >
  294. QYMC = #record.qymc:VARCHAR#
  295. </isNotNull>
  296. <isNotNull prepend="," property="record.mcid" >
  297. MCID = #record.mcid:INTEGER#
  298. </isNotNull>
  299. <isNotNull prepend="," property="record.mcmc" >
  300. MCMC = #record.mcmc:VARCHAR#
  301. </isNotNull>
  302. <isNotNull prepend="," property="record.gh" >
  303. GH = #record.gh:VARCHAR#
  304. </isNotNull>
  305. <isNotNull prepend="," property="record.yhm" >
  306. YHM = #record.yhm:VARCHAR#
  307. </isNotNull>
  308. <isNotNull prepend="," property="record.yhxm" >
  309. YHXM = #record.yhxm:VARCHAR#
  310. </isNotNull>
  311. <isNotNull prepend="," property="record.yhnc" >
  312. YHNC = #record.yhnc:VARCHAR#
  313. </isNotNull>
  314. <isNotNull prepend="," property="record.zw" >
  315. ZW = #record.zw:VARCHAR#
  316. </isNotNull>
  317. <isNotNull prepend="," property="record.yhmm" >
  318. YHMM = #record.yhmm:VARCHAR#
  319. </isNotNull>
  320. <isNotNull prepend="," property="record.lxdh" >
  321. LXDH = #record.lxdh:VARCHAR#
  322. </isNotNull>
  323. <isNotNull prepend="," property="record.email" >
  324. EMAIL = #record.email:VARCHAR#
  325. </isNotNull>
  326. <isNotNull prepend="," property="record.srfs" >
  327. SRFS = #record.srfs:VARCHAR#
  328. </isNotNull>
  329. <isNotNull prepend="," property="record.pym" >
  330. PYM = #record.pym:VARCHAR#
  331. </isNotNull>
  332. <isNotNull prepend="," property="record.wbm" >
  333. WBM = #record.wbm:VARCHAR#
  334. </isNotNull>
  335. <isNotNull prepend="," property="record.xgr" >
  336. XGR = #record.xgr:VARCHAR#
  337. </isNotNull>
  338. <isNotNull prepend="," property="record.xgsj" >
  339. XGSJ = #record.xgsj:TIMESTAMP#
  340. </isNotNull>
  341. <isNotNull prepend="," property="record.lrr" >
  342. LRR = #record.lrr:VARCHAR#
  343. </isNotNull>
  344. <isNotNull prepend="," property="record.zfbz" >
  345. ZFBZ = #record.zfbz:INTEGER#
  346. </isNotNull>
  347. <isNotNull prepend="," property="record.qhbm" >
  348. QHBM = #record.qhbm:VARCHAR#
  349. </isNotNull>
  350. <isNotNull prepend="," property="record.qhmc" >
  351. QHMC = #record.qhmc:VARCHAR#
  352. </isNotNull>
  353. <isNotNull prepend="," property="record.xxw" >
  354. XXW = #record.xxw:VARCHAR#
  355. </isNotNull>
  356. </dynamic>
  357. <isParameterPresent >
  358. <include refid="xt_czyh.ibatorgenerated_Example_Where_Clause" />
  359. </isParameterPresent>
  360. </update>
  361. <update id="ibatorgenerated_updateByExample" >
  362. <!--
  363. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  364. This element was generated on Thu May 22 09:59:54 CST 2014.
  365. -->
  366. update xt_czyh
  367. set ID = #record.id:INTEGER#,
  368. QYID = #record.qyid:INTEGER#,
  369. QYMC = #record.qymc:VARCHAR#,
  370. MCID = #record.mcid:INTEGER#,
  371. MCMC = #record.mcmc:VARCHAR#,
  372. GH = #record.gh:VARCHAR#,
  373. YHM = #record.yhm:VARCHAR#,
  374. YHXM = #record.yhxm:VARCHAR#,
  375. YHNC = #record.yhnc:VARCHAR#,
  376. ZW = #record.zw:VARCHAR#,
  377. YHMM = #record.yhmm:VARCHAR#,
  378. LXDH = #record.lxdh:VARCHAR#,
  379. EMAIL = #record.email:VARCHAR#,
  380. SRFS = #record.srfs:VARCHAR#,
  381. PYM = #record.pym:VARCHAR#,
  382. WBM = #record.wbm:VARCHAR#,
  383. XGR = #record.xgr:VARCHAR#,
  384. XGSJ = #record.xgsj:TIMESTAMP#,
  385. LRR = #record.lrr:VARCHAR#,
  386. ZFBZ = #record.zfbz:INTEGER#,
  387. QHBM = #record.qhbm:VARCHAR#,
  388. QHMC = #record.qhmc:VARCHAR#,
  389. XXW = #record.xxw:VARCHAR#
  390. <isParameterPresent >
  391. <include refid="xt_czyh.ibatorgenerated_Example_Where_Clause" />
  392. </isParameterPresent>
  393. </update>
  394. <update id="ibatorgenerated_updateByPrimaryKeySelective" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  395. <!--
  396. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  397. This element was generated on Thu May 22 09:59:54 CST 2014.
  398. -->
  399. update xt_czyh
  400. <dynamic prepend="set" >
  401. <isNotNull prepend="," property="qyid" >
  402. QYID = #qyid:INTEGER#
  403. </isNotNull>
  404. <isNotNull prepend="," property="qymc" >
  405. QYMC = #qymc:VARCHAR#
  406. </isNotNull>
  407. <isNotNull prepend="," property="mcid" >
  408. MCID = #mcid:INTEGER#
  409. </isNotNull>
  410. <isNotNull prepend="," property="mcmc" >
  411. MCMC = #mcmc:VARCHAR#
  412. </isNotNull>
  413. <isNotNull prepend="," property="gh" >
  414. GH = #gh:VARCHAR#
  415. </isNotNull>
  416. <isNotNull prepend="," property="yhm" >
  417. YHM = #yhm:VARCHAR#
  418. </isNotNull>
  419. <isNotNull prepend="," property="yhxm" >
  420. YHXM = #yhxm:VARCHAR#
  421. </isNotNull>
  422. <isNotNull prepend="," property="yhnc" >
  423. YHNC = #yhnc:VARCHAR#
  424. </isNotNull>
  425. <isNotNull prepend="," property="zw" >
  426. ZW = #zw:VARCHAR#
  427. </isNotNull>
  428. <isNotNull prepend="," property="yhmm" >
  429. YHMM = #yhmm:VARCHAR#
  430. </isNotNull>
  431. <isNotNull prepend="," property="lxdh" >
  432. LXDH = #lxdh:VARCHAR#
  433. </isNotNull>
  434. <isNotNull prepend="," property="email" >
  435. EMAIL = #email:VARCHAR#
  436. </isNotNull>
  437. <isNotNull prepend="," property="srfs" >
  438. SRFS = #srfs:VARCHAR#
  439. </isNotNull>
  440. <isNotNull prepend="," property="pym" >
  441. PYM = #pym:VARCHAR#
  442. </isNotNull>
  443. <isNotNull prepend="," property="wbm" >
  444. WBM = #wbm:VARCHAR#
  445. </isNotNull>
  446. <isNotNull prepend="," property="xgr" >
  447. XGR = #xgr:VARCHAR#
  448. </isNotNull>
  449. <isNotNull prepend="," property="xgsj" >
  450. XGSJ = #xgsj:TIMESTAMP#
  451. </isNotNull>
  452. <isNotNull prepend="," property="lrr" >
  453. LRR = #lrr:VARCHAR#
  454. </isNotNull>
  455. <isNotNull prepend="," property="zfbz" >
  456. ZFBZ = #zfbz:INTEGER#
  457. </isNotNull>
  458. <isNotNull prepend="," property="qhbm" >
  459. QHBM = #qhbm:VARCHAR#
  460. </isNotNull>
  461. <isNotNull prepend="," property="qhmc" >
  462. QHMC = #qhmc:VARCHAR#
  463. </isNotNull>
  464. <isNotNull prepend="," property="xxw" >
  465. XXW = #xxw:VARCHAR#
  466. </isNotNull>
  467. </dynamic>
  468. where ID = #id:INTEGER#
  469. </update>
  470. <update id="ibatorgenerated_updateByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtCzyh" >
  471. <!--
  472. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  473. This element was generated on Thu May 22 09:59:54 CST 2014.
  474. -->
  475. update xt_czyh
  476. set QYID = #qyid:INTEGER#,
  477. QYMC = #qymc:VARCHAR#,
  478. MCID = #mcid:INTEGER#,
  479. MCMC = #mcmc:VARCHAR#,
  480. GH = #gh:VARCHAR#,
  481. YHM = #yhm:VARCHAR#,
  482. YHXM = #yhxm:VARCHAR#,
  483. YHNC = #yhnc:VARCHAR#,
  484. ZW = #zw:VARCHAR#,
  485. YHMM = #yhmm:VARCHAR#,
  486. LXDH = #lxdh:VARCHAR#,
  487. EMAIL = #email:VARCHAR#,
  488. SRFS = #srfs:VARCHAR#,
  489. PYM = #pym:VARCHAR#,
  490. WBM = #wbm:VARCHAR#,
  491. XGR = #xgr:VARCHAR#,
  492. XGSJ = #xgsj:TIMESTAMP#,
  493. LRR = #lrr:VARCHAR#,
  494. ZFBZ = #zfbz:INTEGER#,
  495. QHBM = #qhbm:VARCHAR#,
  496. QHMC = #qhmc:VARCHAR#,
  497. XXW = #xxw:VARCHAR#
  498. where ID = #id:INTEGER#
  499. </update>
  500. <!-- 获取数据库当前时间 -->
  501. <select id="get.database.date" resultClass="java.util.Date">
  502. select now() from dual
  503. </select>
  504. <!-- 操作用户输入器 -->
  505. <select id="srq.select.czyh.by.param" parameterClass="java.util.Map" resultClass="com.huimv.xt.dataobject.XtCzyh">
  506. select * from xt_czyh
  507. where zfbz = 0
  508. <isNotEmpty prepend="and" property="searchValue">
  509. ($srfsName$ like concat(#searchValue#, '%') or yhxm like concat('%', #searchValue#, '%'))
  510. </isNotEmpty>
  511. <isNotEqual prepend="and" property="qyid" compareValue="0">
  512. qyid = #qyid#
  513. </isNotEqual>
  514. <isNotEqual prepend="and" property="mcid" compareValue="0">
  515. mcid = #mcid#
  516. </isNotEqual>
  517. order by yhxm asc
  518. </select>
  519. <!-- 用户按性别统计 -->
  520. <select id="tjt.czyh.by.xb" resultClass="com.huimv.busi.tjt.dto.TjtDTO">
  521. select (select dmmc from xt_gydm where dmid = t.xb and lbid = '1') tjzl, count(*) tjjg
  522. from xt_czyh t
  523. where zfbz = 0 group by xb
  524. </select>
  525. <!-- 更新操作用户消息位 -->
  526. <update id="update.czyh.xxw.by.id" parameterClass="com.huimv.xt.dataobject.XtCzyh">
  527. update xt_czyh set XXW = #xxw:VARCHAR# where ID = #id:INTEGER#
  528. </update>
  529. </sqlMap>