Guiji_naturalresources_Mapper2.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  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.sooka.mapper.Guiji_naturalresources_Mapper2">
  4. <sql id="global_name">
  5. id,create_time,cd_time,cd_batch,cd_operation,cd_source,
  6. </sql>
  7. <sql id="global_value">
  8. #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
  9. </sql>
  10. <sql id="update_sql">
  11. create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
  12. </sql>
  13. <parameterMap id="pm_qlrjbxx" type="com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean"></parameterMap>
  14. <insert id="add_guiji_naturalresources_qlrjbxx" parameterMap="pm_qlrjbxx">
  15. insert into t_guiji_naturalresources_qlrjbxx (
  16. <include refid="global_name"></include>
  17. DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
  18. QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ,TSDW,TQ)
  19. values (
  20. <include refid="global_value"></include>
  21. #{DJBH},#{QLRLX},#{QLBH},#{QLRBH},#{QLLB},#{QLRMC},#{SXH},#{ZJLB},#{ZJHM},#{FZJG},
  22. #{SSHY},#{GJDQ},#{HJSZSS},#{XB},#{DH},#{DZ},#{YB},#{GZDW},#{DZYJ},#{QDFS},#{QLRXZ},
  23. #{QLMJ},#{QLBL},#{GYFS},#{QSZT},#{QZH},#{ZSBH},#{FRLX},#{FRDB},#{CSRQ},#{SFZTP}
  24. ,#{BZ},#{TSDW},#{TQ}
  25. )
  26. </insert>
  27. <update id="update_guiji_naturalresources_qlrjbxx" parameterMap="pm_qlrjbxx">
  28. update t_guiji_naturalresources_qlrjbxx
  29. <trim prefix="SET" suffixOverrides=",">
  30. <include refid="update_sql"></include>
  31. <if test="DJBH != null and DJBH != ''">
  32. DJBH = #{DJBH},
  33. </if>
  34. <if test="QLRLX != null and QLRLX != ''">
  35. QLRLX = #{QLRLX},
  36. </if>
  37. <if test="QLBH != null and QLBH != ''">
  38. QLBH = #{QLBH},
  39. </if>
  40. <if test="QLRBH != null and QLRBH != ''">
  41. QLRBH = #{QLRBH},
  42. </if>
  43. <if test="QLLB != null and QLLB != ''">
  44. QLLB = #{QLLB},
  45. </if>
  46. <if test="QLRMC != null and QLRMC != ''">
  47. QLRMC = #{QLRMC},
  48. </if>
  49. <if test="SXH != null and SXH != ''">
  50. SXH = #{SXH},
  51. </if>
  52. <if test="ZJLB != null and ZJLB != ''">
  53. ZJLB = #{ZJLB},
  54. </if>
  55. <if test="ZJHM != null and ZJHM != ''">
  56. ZJHM = #{ZJHM},
  57. </if>
  58. <if test="FZJG != null and FZJG != ''">
  59. FZJG = #{FZJG},
  60. </if>
  61. <if test="SSHY != null and SSHY != ''">
  62. SSHY = #{SSHY},
  63. </if>
  64. <if test="GJDQ != null and GJDQ != ''">
  65. GJDQ = #{GJDQ},
  66. </if>
  67. <if test="HJSZSS != null and HJSZSS != ''">
  68. HJSZSS = #{HJSZSS},
  69. </if>
  70. <if test="XB != null and XB != ''">
  71. XB = #{XB},
  72. </if>
  73. <if test="DH != null and DH != ''">
  74. DH = #{DH},
  75. </if>
  76. <if test="DZ != null and DZ != ''">
  77. DZ = #{DZ},
  78. </if>
  79. <if test="YB != null and YB != ''">
  80. YB = #{YB},
  81. </if>
  82. <if test="GZDW != null and GZDW != ''">
  83. GZDW = #{GZDW},
  84. </if>
  85. <if test="DZYJ != null and DZYJ != ''">
  86. DZYJ = #{DZYJ},
  87. </if>
  88. <if test="QDFS != null and QDFS != ''">
  89. QDFS = #{QDFS},
  90. </if>
  91. <if test="QLRXZ != null and QLRXZ != ''">
  92. QLRXZ = #{QLRXZ},
  93. </if>
  94. <if test="QLMJ != null and QLMJ != ''">
  95. QLMJ = #{QLMJ},
  96. </if>
  97. <if test="QLBL != null and QLBL != ''">
  98. QLBL = #{QLBL},
  99. </if>
  100. <if test="GYFS != null and GYFS != ''">
  101. GYFS = #{GYFS},
  102. </if>
  103. <if test="QSZT != null and QSZT != ''">
  104. QSZT = #{QSZT},
  105. </if>
  106. <if test="QZH != null and QZH != ''">
  107. QZH = #{QZH},
  108. </if>
  109. <if test="ZSBH != null and ZSBH != ''">
  110. ZSBH = #{ZSBH},
  111. </if>
  112. <if test="FRLX != null and FRLX != ''">
  113. FRLX = #{FRLX},
  114. </if>
  115. <if test="FRDB != null and FRDB != ''">
  116. FRDB = #{FRDB},
  117. </if>
  118. <if test="CSRQ != null and CSRQ != ''">
  119. CSRQ = #{CSRQ},
  120. </if>
  121. <if test="SFZTP != null and SFZTP != ''">
  122. cardno = #{cardno},
  123. </if>
  124. <if test="BZ != null and BZ != ''">
  125. BZ = #{BZ},
  126. </if>
  127. <if test="TSDW != null and TSDW != ''">
  128. TSDW = #{TSDW},
  129. </if>
  130. <if test="TQ != null and TQ != ''">
  131. TQ = #{TQ},
  132. </if>
  133. </trim>
  134. where id =#{id}
  135. </update>
  136. <parameterMap id="pm_bdcdjzxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjzxx_Bean"></parameterMap>
  137. <insert id="add_guiji_naturalresources_bdcdjzxx" parameterMap="pm_bdcdjzxx">
  138. insert into t_guiji_naturalresources_bdcdjzxx (
  139. <include refid="global_name"></include>
  140. DJBH,QLRMC,GYFS,FWZL,BDCDYH,ZSBH,YT,MJ,QZH,BZ,TSDW,FWXZ,DBSJ,DYQR,DYR,DYZTS,CQJE,ZWLXQS,ZWLXQZ,
  141. TXQZH,DYYGQLR,DYYGYWR,DYYGZMH,DYYGDJLX,YGQLR,YGYWR,YGZMH,YGDJLX,CS,FWJG,HH,ZCS,SZC,SCJZMJ,SCZYJZMJ,
  142. SCFTJZMJ,XZ,LX,TDYT,TDSYQXKS,TDSYQXJS,YWMS,ZSMC
  143. )
  144. values (
  145. <include refid="global_value"></include>
  146. #{DJBH},#{QLRMC},#{GYFS},#{FWZL},#{BDCDYH},#{ZSBH},#{YT},#{MJ},#{QZH},#{BZ},#{TSDW},#{FWXZ},
  147. #{DBSJ},#{DYQR},#{DYR},#{DYZTS},#{CQJE},#{ZWLXQS},#{ZWLXQZ},#{TXQZH},#{DYYGQLR},#{DYYGYWR},
  148. #{DYYGZMH},#{DYYGDJLX},#{YGQLR},#{YGYWR},#{YGZMH},#{YGDJLX},#{CS},#{FWJG},#{HH},#{ZCS},#{SZC},
  149. #{SCJZMJ},#{SCZYJZMJ},#{SCFTJZMJ},#{XZ},#{LX},
  150. #{TDYT},#{TDSYQXKS},#{TDSYQXJS},#{YWMS},#{ZSMC}
  151. )
  152. </insert>
  153. <update id="update_guiji_naturalresources_bdcdjzxx" parameterMap="pm_bdcdjzxx">
  154. update t_guiji_naturalresources_bdcdjzxx
  155. <trim prefix="SET" suffixOverrides=",">
  156. <include refid="update_sql"></include>
  157. <if test="DJBH != null and DJBH != ''">
  158. DJBH = #{DJBH},
  159. </if>
  160. <if test="QLRMC != null and QLRMC != ''">
  161. QLRMC = #{QLRMC},
  162. </if>
  163. <if test="GYFS != null and GYFS != ''">
  164. GYFS = #{GYFS},
  165. </if>
  166. <if test="FWZL != null and FWZL != ''">
  167. FWZL = #{FWZL},
  168. </if>
  169. <if test="BDCDYH != null and BDCDYH != ''">
  170. BDCDYH = #{BDCDYH},
  171. </if>
  172. <if test="ZSBH != null and ZSBH != ''">
  173. ZSBH = #{ZSBH},
  174. </if>
  175. <if test="YT != null and YT != ''">
  176. YT = #{YT},
  177. </if>
  178. <if test="MJ != null and MJ != ''">
  179. MJ = #{MJ},
  180. </if>
  181. <if test="QZH != null and QZH != ''">
  182. QZH = #{QZH},
  183. </if>
  184. <if test="BZ != null and BZ != ''">
  185. BZ = #{BZ},
  186. </if>
  187. <if test="TSDW != null and TSDW != ''">
  188. TSDW = #{TSDW},
  189. </if>
  190. <if test="FWXZ != null and FWXZ != ''">
  191. FWXZ = #{FWXZ},
  192. </if>
  193. <if test="DBSJ != null and DBSJ != ''">
  194. DBSJ = #{DBSJ},
  195. </if>
  196. <if test="DYQR != null and DYQR != ''">
  197. DYQR = #{DYQR},
  198. </if>
  199. <if test="DYZTS != null and DYZTS != ''">
  200. DYZTS = #{DYZTS},
  201. </if>
  202. <if test="DYR != null and DYR != ''">
  203. DYR = #{DYR},
  204. </if>
  205. <if test="CQJE != null and CQJE != ''">
  206. CQJE = #{CQJE},
  207. </if>
  208. <if test="ZWLXQS != null and ZWLXQS != ''">
  209. ZWLXQS = #{ZWLXQS},
  210. </if>
  211. <if test="ZWLXQZ != null and ZWLXQZ != ''">
  212. ZWLXQZ = #{ZWLXQZ},
  213. </if>
  214. <if test="TXQZH != null and TXQZH != ''">
  215. TXQZH = #{TXQZH},
  216. </if>
  217. <if test="DYYGQLR != null and DYYGQLR != ''">
  218. DYYGQLR = #{DYYGQLR},
  219. </if>
  220. <if test="DYYGYWR != null and DYYGYWR != ''">
  221. DYYGYWR = #{DYYGYWR},
  222. </if>
  223. <if test="DYYGZMH != null and DYYGZMH != ''">
  224. DYYGZMH = #{DYYGZMH},
  225. </if>
  226. <if test="DYYGDJLX != null and DYYGDJLX != ''">
  227. DYYGDJLX = #{DYYGDJLX},
  228. </if>
  229. <if test="YGQLR != null and YGQLR != ''">
  230. YGQLR = #{YGQLR},
  231. </if>
  232. <if test="YGYWR != null and YGYWR != ''">
  233. YGYWR = #{YGYWR},
  234. </if>
  235. <if test="YGZMH != null and YGZMH != ''">
  236. YGZMH = #{YGZMH},
  237. </if>
  238. <if test="YGDJLX != null and YGDJLX != ''">
  239. YGDJLX = #{YGDJLX},
  240. </if>
  241. <if test="CS != null and CS != ''">
  242. CS = #{CS},
  243. </if>
  244. <if test="FWJG != null and FWJG != ''">
  245. FWJG = #{FWJG},
  246. </if>
  247. <if test="HH != null and HH != ''">
  248. HH = #{HH},
  249. </if>
  250. <if test="ZCS != null and ZCS != ''">
  251. ZCS = #{ZCS},
  252. </if>
  253. <if test="SZC != null and SZC != ''">
  254. SZC = #{SZC},
  255. </if>
  256. <if test="SCJZMJ != null and SCJZMJ != ''">
  257. SCJZMJ = #{SCJZMJ},
  258. </if>
  259. <if test="SCZYJZMJ != null and SCZYJZMJ != ''">
  260. SCZYJZMJ = #{SCZYJZMJ},
  261. </if>
  262. <if test="SCFTJZMJ != null and SCFTJZMJ != ''">
  263. SCFTJZMJ = #{SCFTJZMJ},
  264. </if>
  265. <if test="XZ != null and XZ != ''">
  266. XZ = #{XZ},
  267. </if>
  268. <if test="LX != null and LX != ''">
  269. LX = #{LX},
  270. </if>
  271. <if test="TDYT != null and TDYT != ''">
  272. TDYT = #{TDYT},
  273. </if>
  274. <if test="TDSYQXKS != null and TDSYQXKS != ''">
  275. TDSYQXKS = #{TDSYQXKS},
  276. </if>
  277. <if test="TDSYQXJS != null and TDSYQXJS != ''">
  278. TDSYQXJS = #{TDSYQXJS},
  279. </if>
  280. <if test="YWMS != null and YWMS != ''">
  281. YWMS = #{YWMS},
  282. </if>
  283. <if test="ZSMC != null and ZSMC != ''">
  284. ZSMC = #{ZSMC},
  285. </if>
  286. </trim>
  287. where id =#{id}
  288. </update>
  289. <parameterMap id="pm_bdcdjxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjxx_Bean"></parameterMap>
  290. <insert id="add_guiji_naturalresources_bdcdjxx" parameterMap="pm_bdcdjxx">
  291. insert into t_guiji_naturalresources_bdcdjxx (
  292. <include refid="global_name"></include>
  293. DJBH,FDZL,GYFS,QLLX,CQXZ,CZFS,ZPGJ,QSJE,ZCJJ,QSJS,WXZJ,YYS,WSRQ,CQAZHTRQ,DJYY,FJ,HH,ZCS,SZC,GHYT,
  294. FWJG,FWXZ,SCJZMJ,SCZYJZMJ,SCFTJZMJ,JGSJ,FWZL,TDQLXZ,TDQLLX,TDYT,TDSYQXKS,TDSYQXJS,SYNX,DYTDMJ,
  295. FTTDMJ,GYTDMJ,ZDDM,BDCDYH,BDCID,TSDW
  296. )
  297. values (
  298. <include refid="global_value"></include>
  299. #{DJBH},#{FDZL},#{GYFS},#{QLLX},#{CQXZ},#{CZFS},#{ZPGJ},#{QSJE},#{ZCJJ},#{QSJS},#{WXZJ},#{YYS},#{WSRQ},
  300. #{CQAZHTRQ},#{DJYY},#{FJ},#{HH},#{ZCS},#{SZC},#{GHYT},#{FWJG},#{FWXZ},
  301. #{SCJZMJ},#{SCZYJZMJ},#{SCFTJZMJ},#{JGSJ},#{FWZL},#{TDQLXZ},#{TDQLLX},#{TDYT},#{TDSYQXKS},
  302. #{TDSYQXJS},#{SYNX},#{DYTDMJ},#{FTTDMJ},#{GYTDMJ},#{ZDDM},#{BDCDYH},#{BDCID},#{TSDW}
  303. )
  304. </insert>
  305. <update id="update_guiji_naturalresources_bdcdjxx" parameterMap="pm_bdcdjxx">
  306. update t_guiji_naturalresources_bdcdjxx
  307. <trim prefix="SET" suffixOverrides=",">
  308. <include refid="update_sql"></include>
  309. <if test="DJBH != null and DJBH != ''">
  310. DJBH = #{DJBH},
  311. </if>
  312. <if test="FDZL != null and FDZL != ''">
  313. FDZL = #{FDZL},
  314. </if>
  315. <if test="GYFS != null and GYFS != ''">
  316. GYFS = #{GYFS},
  317. </if>
  318. <if test="QLLX != null and QLLX != ''">
  319. QLLX = #{QLLX},
  320. </if>
  321. <if test="CQXZ != null and CQXZ != ''">
  322. CQXZ = #{CQXZ},
  323. </if>
  324. <if test="CZFS != null and CZFS != ''">
  325. CZFS = #{CZFS},
  326. </if>
  327. <if test="ZPGJ != null and ZPGJ != ''">
  328. ZPGJ = #{ZPGJ},
  329. </if>
  330. <if test="QSJE != null and QSJE != ''">
  331. QSJE = #{QSJE},
  332. </if>
  333. <if test="ZCJJ != null and ZCJJ != ''">
  334. ZCJJ = #{ZCJJ},
  335. </if>
  336. <if test="QSJS != null and QSJS != ''">
  337. QSJS = #{QSJS},
  338. </if>
  339. <if test="WXZJ != null and WXZJ != ''">
  340. WXZJ = #{WXZJ},
  341. </if>
  342. <if test="YYS != null and YYS != ''">
  343. YYS = #{YYS},
  344. </if>
  345. <if test="WSRQ != null and WSRQ != ''">
  346. WSRQ = #{WSRQ},
  347. </if>
  348. <if test="CQAZHTRQ != null and CQAZHTRQ != ''">
  349. CQAZHTRQ = #{CQAZHTRQ},
  350. </if>
  351. <if test="DJYY != null and DJYY != ''">
  352. DJYY = #{DJYY},
  353. </if>
  354. <if test="FJ != null and FJ != ''">
  355. FJ = #{FJ},
  356. </if>
  357. <if test="HH != null and HH != ''">
  358. HH = #{HH},
  359. </if>
  360. <if test="ZCS != null and ZCS != ''">
  361. ZCS = #{ZCS},
  362. </if>
  363. <if test="SZC != null and SZC != ''">
  364. SZC = #{SZC},
  365. </if>
  366. <if test="GHYT != null and GHYT != ''">
  367. GHYT = #{GHYT},
  368. </if>
  369. <if test="FWJG != null and FWJG != ''">
  370. FWJG = #{FWJG},
  371. </if>
  372. <if test="FWXZ != null and FWXZ != ''">
  373. FWXZ = #{FWXZ},
  374. </if>
  375. <if test="SCJZMJ != null and SCJZMJ != ''">
  376. SCJZMJ = #{SCJZMJ},
  377. </if>
  378. <if test="SCZYJZMJ != null and SCZYJZMJ != ''">
  379. SCZYJZMJ = #{SCZYJZMJ},
  380. </if>
  381. <if test="SCFTJZMJ != null and SCFTJZMJ != ''">
  382. SCFTJZMJ = #{SCFTJZMJ},
  383. </if>
  384. <if test="JGSJ != null and JGSJ != ''">
  385. JGSJ = #{JGSJ},
  386. </if>
  387. <if test="FWZL != null and FWZL != ''">
  388. FWZL = #{FWZL},
  389. </if>
  390. <if test="TDQLXZ != null and TDQLXZ != ''">
  391. TDQLXZ = #{TDQLXZ},
  392. </if>
  393. <if test="TDQLLX != null and TDQLLX != ''">
  394. TDQLLX = #{TDQLLX},
  395. </if>
  396. <if test="TDYT != null and TDYT != ''">
  397. TDYT = #{TDYT},
  398. </if>
  399. <if test="TDSYQXKS != null and TDSYQXKS != ''">
  400. TDSYQXKS = #{TDSYQXKS},
  401. </if>
  402. <if test="TDSYQXJS != null and TDSYQXJS != ''">
  403. TDSYQXJS = #{TDSYQXJS},
  404. </if>
  405. <if test="SYNX != null and SYNX != ''">
  406. SYNX = #{SYNX},
  407. </if>
  408. <if test="DYTDMJ != null and DYTDMJ != ''">
  409. DYTDMJ = #{DYTDMJ},
  410. </if>
  411. <if test="FTTDMJ != null and FTTDMJ != ''">
  412. FTTDMJ = #{FTTDMJ},
  413. </if>
  414. <if test="GYTDMJ != null and GYTDMJ != ''">
  415. GYTDMJ = #{GYTDMJ},
  416. </if>
  417. <if test="ZDDM != null and ZDDM != ''">
  418. ZDDM = #{ZDDM},
  419. </if>
  420. <if test="BDCDYH != null and BDCDYH != ''">
  421. BDCDYH = #{BDCDYH},
  422. </if>
  423. <if test="BDCID != null and BDCID != ''">
  424. BDCID = #{BDCID},
  425. </if>
  426. <if test="TSDW != null and TSDW != ''">
  427. TSDW = #{TSDW},
  428. </if>
  429. </trim>
  430. where id =#{id}
  431. </update>
  432. <resultMap id="rm_qlrjbxx" type="com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean"></resultMap>
  433. <select id="qlrjbxx_select" parameterMap="pm_qlrjbxx" resultMap="rm_qlrjbxx">
  434. select DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
  435. QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ,TSDW,TQ
  436. from t_guiji_naturalresources_qlrjbxx
  437. where
  438. <if test="QLRXZ == '个人' or QLRXZ == '企业'">
  439. QLRXZ=#{QLRXZ}
  440. </if>
  441. <if test="QLRXZ == '其他'">
  442. (QLRXZ is null OR QLRXZ = '' or (QLRXZ != '个人' and QLRXZ != '企业'))
  443. </if>
  444. <if test="QLRMC != null and QLRMC != ''">
  445. and QLRMC = #{QLRMC}
  446. </if>
  447. <if test="ZJHM != null and ZJHM != ''">
  448. and ZJHM =#{ZJHM}
  449. </if>
  450. </select>
  451. <resultMap id="rm_bdcdjxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjxx_Bean"></resultMap>
  452. <select id="bdcdjxx_select" parameterMap="pm_bdcdjxx" resultMap="rm_bdcdjxx">
  453. select DJBH,FDZL,GYFS,QLLX,CQXZ,CZFS,ZPGJ,QSJE,ZCJJ,QSJS,WXZJ,YYS,WSRQ,CQAZHTRQ,DJYY,FJ,HH,ZCS,SZC,GHYT,
  454. FWJG,FWXZ,SCJZMJ,SCZYJZMJ,SCFTJZMJ,JGSJ,FWZL,TDQLXZ,TDQLLX,TDYT,TDSYQXKS,TDSYQXJS,SYNX,DYTDMJ,
  455. FTTDMJ,GYTDMJ,ZDDM,BDCDYH,BDCID,TSDW from t_guiji_naturalresources_bdcdjxx
  456. where
  457. <if test="GHYT == '住宅' or GHYT == '办公' or GHYT == '商业服务'">
  458. GHYT = #{GHYT}
  459. </if>
  460. <if test="GHYT == '其他'">
  461. (GHYT is null OR GHYT = '' or (GHYT != '住宅' and GHYT != '办公' and GHYT != '商业服务'))
  462. </if>
  463. <if test="DJBH != null and DJBH != ''">
  464. and DJBH=#{DJBH}
  465. </if>
  466. <if test="FDZL != null and FDZL != ''">
  467. and FDZL= #{FDZL}
  468. </if>
  469. </select>
  470. <resultMap id="rm_bdcdjzxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjzxx_Bean"></resultMap>
  471. <select id="bdcdjzxx_select" resultMap="rm_bdcdjzxx" parameterMap="pm_bdcdjzxx">
  472. select
  473. DJBH,QLRMC,GYFS,FWZL,BDCDYH,ZSBH,YT,MJ,QZH,BZ,TSDW,FWXZ,DBSJ,DYQR,DYR,DYZTS,CQJE,ZWLXQS,ZWLXQZ,
  474. TXQZH,DYYGQLR,DYYGYWR,DYYGZMH,DYYGDJLX,YGQLR,YGYWR,YGZMH,YGDJLX,CS,FWJG,HH,ZCS,SZC,SCJZMJ,SCZYJZMJ,
  475. SCFTJZMJ,XZ,LX,TDYT,TDSYQXKS,TDSYQXJS,YWMS,ZSMC
  476. from t_guiji_naturalresources_bdcdjzxx
  477. where
  478. <if test="YT == '住宅' or YT == '办公' or YT == '商业服务'">
  479. YT = #{YT}
  480. </if>
  481. <if test="YT == '其他'">
  482. (YT is null OR YT = '' or (YT != '住宅' and YT != '办公' and YT != '商业服务'))
  483. </if>
  484. <if test="DJBH != null and DJBH != ''">
  485. and DJBH = #{DJBH}
  486. </if>
  487. <if test="QLRMC != null and QLRMC != ''">
  488. and QLRMC = #{QLRMC}
  489. </if>
  490. </select>
  491. </mapper>