BisInspQymtenEffcDao.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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="cn.com.goldenwater.dcproj.dao.BisInspQymtenEffcDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspQymtenEffc" id="bisInspQymtenEffcResultMap">
  5. <result property="design" column="DESIGN"/>
  6. <result property="supervisor" column="SUPERVISOR"/>
  7. <result property="build" column="BUILD"/>
  8. <result property="prjcPers" column="PRJC_PERS"/>
  9. <result property="prjcPresTel" column="PRJC_PRES_TEL"/>
  10. <result property="qyBuldNum" column="QY_BULD_NUM"/>
  11. <result property="qySendNum" column="QY_SEND_NUM"/>
  12. <result property="qyDutyNum" column="QY_DUTY_NUM"/>
  13. <result property="qyChkNum" column="QY_CHK_NUM"/>
  14. <result property="chkMendNum" column="CHK_MEND_NUM"/>
  15. <result property="qyDsgnNum" column="QY_DSGN_NUM"/>
  16. <result property="dsgnIdeaNum" column="DSGN_IDEA_NUM"/>
  17. <result property="siteBuldNum" column="SITE_BULD_NUM"/>
  18. <result property="siteDsgnNum" column="SITE_DSGN_NUM"/>
  19. <result property="qyCbuldNum" column="QY_CBULD_NUM"/>
  20. <result property="sendNum" column="SEND_NUM"/>
  21. <result property="sprDutyNum" column="SPR_DUTY_NUM"/>
  22. <result property="sprQyNum" column="SPR_QY_NUM"/>
  23. <result property="ensrSysNum" column="ENSR_SYS_NUM"/>
  24. <result property="buldQyNum" column="BULD_QY_NUM"/>
  25. <result property="invsNum" column="INVS_NUM"/>
  26. <result property="accpNum" column="ACCP_NUM"/>
  27. <result property="qySprNum" column="QY_SPR_NUM"/>
  28. <result property="buldChkNum" column="BULD_CHK_NUM"/>
  29. <result property="prjtQyNum" column="PRJT_QY_NUM"/>
  30. <result property="siteMgrNum" column="SITE_MGR_NUM"/>
  31. <result property="entyQyNum" column="ENTY_QY_NUM"/>
  32. <result property="otherNum" column="OTHER_NUM"/>
  33. <result property="note" column="NOTE"/>
  34. <result property="persId" column="PERS_ID"/>
  35. <result property="intm" column="INTM"/>
  36. <result property="uptm" column="UPTM"/>
  37. <result property="dataStat" column="DATA_STAT"/>
  38. <result property="state" column="STATE"/>
  39. <result property="score" column="SCORE"/>
  40. <result property="utId" column="UT_ID"/>
  41. <result property="id" column="ID"/>
  42. <result property="rgstrId" column="RGSTR_ID"/>
  43. <result property="nm" column="NM"/>
  44. <result property="adCode" column="AD_CODE"/>
  45. <result property="adName" column="AD_NAME"/>
  46. <result property="loc" column="LOC"/>
  47. <result property="prjcType" column="PRJC_TYPE"/>
  48. <result property="cost" column="COST"/>
  49. <result property="costYear" column="COST_YEAR"/>
  50. <result property="mgr" column="MGR"/>
  51. <result property="owner" column="OWNER"/>
  52. <result property="quality" column="QUALITY"/>
  53. <result property="qyDivideNum" column="QY_DIVIDE_NUM"/>
  54. </resultMap>
  55. <sql id="table_columns">
  56. DESIGN,
  57. SUPERVISOR,
  58. BUILD,
  59. PRJC_PERS,
  60. PRJC_PRES_TEL,
  61. QY_BULD_NUM,
  62. QY_SEND_NUM,
  63. QY_DUTY_NUM,
  64. QY_CHK_NUM,
  65. CHK_MEND_NUM,
  66. QY_DSGN_NUM,
  67. DSGN_IDEA_NUM,
  68. SITE_BULD_NUM,
  69. SITE_DSGN_NUM,
  70. QY_CBULD_NUM,
  71. SEND_NUM,
  72. SPR_DUTY_NUM,
  73. SPR_QY_NUM,
  74. ENSR_SYS_NUM,
  75. BULD_QY_NUM,
  76. INVS_NUM,
  77. ACCP_NUM,
  78. QY_SPR_NUM,
  79. BULD_CHK_NUM,
  80. PRJT_QY_NUM,
  81. SITE_MGR_NUM,
  82. ENTY_QY_NUM,
  83. OTHER_NUM,
  84. NOTE,
  85. PERS_ID,
  86. INTM,
  87. UPTM,
  88. DATA_STAT,
  89. STATE,
  90. SCORE,
  91. UT_ID,
  92. ID,
  93. RGSTR_ID,
  94. NM,
  95. AD_CODE,
  96. AD_NAME,
  97. LOC,
  98. PRJC_TYPE,
  99. COST,
  100. COST_YEAR,
  101. MGR,
  102. OWNER,
  103. QUALITY,
  104. QY_DIVIDE_NUM
  105. </sql>
  106. <sql id="entity_properties">
  107. #{design},
  108. #{supervisor},
  109. #{build},
  110. #{prjcPers},
  111. #{prjcPresTel},
  112. #{qyBuldNum},
  113. #{qySendNum},
  114. #{qyDutyNum},
  115. #{qyChkNum},
  116. #{chkMendNum},
  117. #{qyDsgnNum},
  118. #{dsgnIdeaNum},
  119. #{siteBuldNum},
  120. #{siteDsgnNum},
  121. #{qyCbuldNum},
  122. #{sendNum},
  123. #{sprDutyNum},
  124. #{sprQyNum},
  125. #{ensrSysNum},
  126. #{buldQyNum},
  127. #{invsNum},
  128. #{accpNum},
  129. #{qySprNum},
  130. #{buldChkNum},
  131. #{prjtQyNum},
  132. #{siteMgrNum},
  133. #{entyQyNum},
  134. #{otherNum},
  135. #{note},
  136. #{persId},
  137. #{intm},
  138. #{uptm},
  139. #{dataStat},
  140. #{state},
  141. #{score},
  142. #{utId},
  143. #{id},
  144. #{rgstrId},
  145. #{nm},
  146. #{adCode},
  147. #{adName},
  148. #{loc},
  149. #{prjcType},
  150. #{cost},
  151. #{costYear},
  152. #{mgr},
  153. #{owner},
  154. #{quality},
  155. #{qyDivideNum}
  156. </sql>
  157. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  158. <sql id="page_where">
  159. <trim prefix="where" prefixOverrides="and | or ">
  160. <if test="design != null and design != ''">
  161. and DESIGN = #{design}
  162. </if>
  163. <if test="supervisor != null and supervisor != ''">
  164. and SUPERVISOR = #{supervisor}
  165. </if>
  166. <if test="build != null and build != ''">
  167. and BUILD = #{build}
  168. </if>
  169. <if test="prjcPers != null and prjcPers != ''">
  170. and PRJC_PERS = #{prjcPers}
  171. </if>
  172. <if test="prjcPresTel != null and prjcPresTel != ''">
  173. and PRJC_PRES_TEL = #{prjcPresTel}
  174. </if>
  175. <if test="qyBuldNum != null">
  176. and QY_BULD_NUM = #{qyBuldNum}
  177. </if>
  178. <if test="qySendNum != null">
  179. and QY_SEND_NUM = #{qySendNum}
  180. </if>
  181. <if test="qyDutyNum != null">
  182. and QY_DUTY_NUM = #{qyDutyNum}
  183. </if>
  184. <if test="qyChkNum != null">
  185. and QY_CHK_NUM = #{qyChkNum}
  186. </if>
  187. <if test="chkMendNum != null">
  188. and CHK_MEND_NUM = #{chkMendNum}
  189. </if>
  190. <if test="qyDsgnNum != null">
  191. and QY_DSGN_NUM = #{qyDsgnNum}
  192. </if>
  193. <if test="dsgnIdeaNum != null">
  194. and DSGN_IDEA_NUM = #{dsgnIdeaNum}
  195. </if>
  196. <if test="siteBuldNum != null">
  197. and SITE_BULD_NUM = #{siteBuldNum}
  198. </if>
  199. <if test="siteDsgnNum != null">
  200. and SITE_DSGN_NUM = #{siteDsgnNum}
  201. </if>
  202. <if test="qyCbuldNum != null">
  203. and QY_CBULD_NUM = #{qyCbuldNum}
  204. </if>
  205. <if test="sendNum != null">
  206. and SEND_NUM = #{sendNum}
  207. </if>
  208. <if test="sprDutyNum != null">
  209. and SPR_DUTY_NUM = #{sprDutyNum}
  210. </if>
  211. <if test="sprQyNum != null ">
  212. and SPR_QY_NUM = #{sprQyNum}
  213. </if>
  214. <if test="ensrSysNum != null">
  215. and ENSR_SYS_NUM = #{ensrSysNum}
  216. </if>
  217. <if test="buldQyNum != null">
  218. and BULD_QY_NUM = #{buldQyNum}
  219. </if>
  220. <if test="invsNum != null">
  221. and INVS_NUM = #{invsNum}
  222. </if>
  223. <if test="accpNum != null">
  224. and ACCP_NUM = #{accpNum}
  225. </if>
  226. <if test="qySprNum != null">
  227. and QY_SPR_NUM = #{qySprNum}
  228. </if>
  229. <if test="buldChkNum != null">
  230. and BULD_CHK_NUM = #{buldChkNum}
  231. </if>
  232. <if test="prjtQyNum != null">
  233. and PRJT_QY_NUM = #{prjtQyNum}
  234. </if>
  235. <if test="siteMgrNum != null">
  236. and SITE_MGR_NUM = #{siteMgrNum}
  237. </if>
  238. <if test="entyQyNum != null">
  239. and ENTY_QY_NUM = #{entyQyNum}
  240. </if>
  241. <if test="otherNum != null">
  242. and OTHER_NUM = #{otherNum}
  243. </if>
  244. <if test="note != null and note != ''">
  245. and NOTE = #{note}
  246. </if>
  247. <if test="persId != null and persId != ''">
  248. and PERS_ID = #{persId}
  249. </if>
  250. <if test="intm != null">
  251. and INTM = #{intm}
  252. </if>
  253. <if test="uptm != null">
  254. and UPTM = #{uptm}
  255. </if>
  256. <if test="dataStat != null and dataStat != ''">
  257. and DATA_STAT = #{dataStat}
  258. </if>
  259. <if test="state != null and state != ''">
  260. and STATE = #{state}
  261. </if>
  262. <if test="score != null">
  263. and SCORE = #{score}
  264. </if>
  265. <if test="utId != null and utId != ''">
  266. and UT_ID = #{utId}
  267. </if>
  268. <if test="rgstrId != null and rgstrId != ''">
  269. and RGSTR_ID = #{rgstrId}
  270. </if>
  271. <if test="nm != null and nm != ''">
  272. and NM = #{nm}
  273. </if>
  274. <if test="adCode != null and adCode != ''">
  275. and AD_CODE = #{adCode}
  276. </if>
  277. <if test="adName != null and adName != ''">
  278. and AD_NAME = #{adName}
  279. </if>
  280. <if test="loc != null and loc != ''">
  281. and LOC = #{loc}
  282. </if>
  283. <if test="prjcType != null and prjcType != ''">
  284. and PRJC_TYPE = #{prjcType}
  285. </if>
  286. <if test="cost != null and cost != ''">
  287. and COST = #{cost}
  288. </if>
  289. <if test="costYear != null and costYear != ''">
  290. and COST_YEAR = #{costYear}
  291. </if>
  292. <if test="mgr != null and mgr != ''">
  293. and MGR = #{mgr}
  294. </if>
  295. <if test="owner != null and owner != ''">
  296. and OWNER = #{owner}
  297. </if>
  298. <if test="quality != null and quality != ''">
  299. and QUALITY = #{quality}
  300. </if>
  301. <if test="qyDivideNum != null">
  302. and QY_DIVIDE_NUM = #{qyDivideNum}
  303. </if>
  304. and DATA_STAT='0'
  305. </trim>
  306. </sql>
  307. <select id="get" resultMap="bisInspQymtenEffcResultMap" parameterType="String">
  308. select
  309. <include refid="table_columns"/>
  310. from BIS_INSP_QYMTEN_EFFC where ID = #{id}
  311. </select>
  312. <select id="getBy" resultMap="bisInspQymtenEffcResultMap">
  313. select
  314. <include refid="table_columns"/>
  315. from BIS_INSP_QYMTEN_EFFC
  316. <include refid="page_where"/>
  317. </select>
  318. <select id="findAll" resultMap="bisInspQymtenEffcResultMap">
  319. select
  320. <include refid="table_columns"/>
  321. from BIS_INSP_QYMTEN_EFFC
  322. </select>
  323. <select id="findList" resultMap="bisInspQymtenEffcResultMap">
  324. select
  325. <include refid="table_columns"/>
  326. from BIS_INSP_QYMTEN_EFFC
  327. <include refid="page_where"/>
  328. </select>
  329. <select id="selectCount" resultType="int">
  330. select count(ID) from BIS_INSP_QYMTEN_EFFC
  331. <include refid="page_where"/>
  332. </select>
  333. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspQymtenEffc">
  334. insert into BIS_INSP_QYMTEN_EFFC(
  335. <include refid="table_columns"/>
  336. )
  337. values (
  338. <include refid="entity_properties"/>
  339. )
  340. </insert>
  341. <delete id="delete" parameterType="java.lang.String">
  342. update BIS_INSP_QYMTEN_EFFC set DATA_STAT='9' where ID = #{id}
  343. </delete>
  344. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQymtenEffc">
  345. update BIS_INSP_QYMTEN_EFFC set DATA_STAT='9'
  346. <include refid="page_where"/>
  347. </delete>
  348. <update id="deleteInFlag" parameterType="java.lang.String">
  349. update BIS_INSP_QYMTEN_EFFC set DATA_STAT = '9' where ID = #{id}
  350. </update>
  351. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspQymtenEffc">
  352. update BIS_INSP_QYMTEN_EFFC
  353. <trim prefix="set" suffixOverrides=",">
  354. <if test="design != null and design != ''">DESIGN
  355. = #{design},
  356. </if>
  357. <if test="supervisor != null and supervisor != ''">SUPERVISOR
  358. = #{supervisor},
  359. </if>
  360. <if test="build != null and build != ''">BUILD
  361. = #{build},
  362. </if>
  363. <if test="prjcPers != null and prjcPers != ''">PRJC_PERS
  364. = #{prjcPers},
  365. </if>
  366. <if test="prjcPresTel != null and prjcPresTel != ''">PRJC_PRES_TEL
  367. = #{prjcPresTel},
  368. </if>
  369. <if test="qyBuldNum != null">QY_BULD_NUM
  370. = #{qyBuldNum},
  371. </if>
  372. <if test="qySendNum != null">QY_SEND_NUM
  373. = #{qySendNum},
  374. </if>
  375. <if test="qyDutyNum != null">QY_DUTY_NUM
  376. = #{qyDutyNum},
  377. </if>
  378. <if test="qyChkNum != null">QY_CHK_NUM
  379. = #{qyChkNum},
  380. </if>
  381. <if test="chkMendNum != null">CHK_MEND_NUM
  382. = #{chkMendNum},
  383. </if>
  384. <if test="qyDsgnNum != null">QY_DSGN_NUM
  385. = #{qyDsgnNum},
  386. </if>
  387. <if test="dsgnIdeaNum != null">DSGN_IDEA_NUM
  388. = #{dsgnIdeaNum},
  389. </if>
  390. <if test="siteBuldNum != null">SITE_BULD_NUM
  391. = #{siteBuldNum},
  392. </if>
  393. <if test="siteDsgnNum != null">SITE_DSGN_NUM
  394. = #{siteDsgnNum},
  395. </if>
  396. <if test="qyCbuldNum != null">QY_CBULD_NUM
  397. = #{qyCbuldNum},
  398. </if>
  399. <if test="sendNum != null">SEND_NUM
  400. = #{sendNum},
  401. </if>
  402. <if test="sprDutyNum != null">SPR_DUTY_NUM
  403. = #{sprDutyNum},
  404. </if>
  405. <if test="sprQyNum != null ">SPR_QY_NUM
  406. = #{sprQyNum},
  407. </if>
  408. <if test="ensrSysNum != null">ENSR_SYS_NUM
  409. = #{ensrSysNum},
  410. </if>
  411. <if test="buldQyNum != null">BULD_QY_NUM
  412. = #{buldQyNum},
  413. </if>
  414. <if test="invsNum != null">INVS_NUM
  415. = #{invsNum},
  416. </if>
  417. <if test="accpNum != null">ACCP_NUM
  418. = #{accpNum},
  419. </if>
  420. <if test="qySprNum != null">QY_SPR_NUM
  421. = #{qySprNum},
  422. </if>
  423. <if test="buldChkNum != null">BULD_CHK_NUM
  424. = #{buldChkNum},
  425. </if>
  426. <if test="prjtQyNum != null">PRJT_QY_NUM
  427. = #{prjtQyNum},
  428. </if>
  429. <if test="siteMgrNum != null">SITE_MGR_NUM
  430. = #{siteMgrNum},
  431. </if>
  432. <if test="entyQyNum != null">ENTY_QY_NUM
  433. = #{entyQyNum},
  434. </if>
  435. <if test="otherNum != null">OTHER_NUM
  436. = #{otherNum},
  437. </if>
  438. <if test="note != null and note != ''">NOTE
  439. = #{note},
  440. </if>
  441. <if test="persId != null and persId != ''">PERS_ID
  442. = #{persId},
  443. </if>
  444. <if test="intm != null">INTM
  445. = #{intm},
  446. </if>
  447. <if test="uptm != null">UPTM
  448. = #{uptm},
  449. </if>
  450. <if test="dataStat != null and dataStat != ''">DATA_STAT
  451. = #{dataStat},
  452. </if>
  453. <if test="state != null and state != ''">STATE
  454. = #{state},
  455. </if>
  456. <if test="score != null">SCORE
  457. = #{score},
  458. </if>
  459. <if test="utId != null and utId != ''">UT_ID
  460. = #{utId},
  461. </if>
  462. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  463. = #{rgstrId},
  464. </if>
  465. <if test="nm != null and nm != ''">NM
  466. = #{nm},
  467. </if>
  468. <if test="adCode != null and adCode != ''">AD_CODE
  469. = #{adCode},
  470. </if>
  471. <if test="adName != null and adName != ''">AD_NAME
  472. = #{adName},
  473. </if>
  474. <if test="loc != null and loc != ''">LOC
  475. = #{loc},
  476. </if>
  477. <if test="prjcType != null and prjcType != ''">PRJC_TYPE
  478. = #{prjcType},
  479. </if>
  480. <if test="cost != null">COST
  481. = #{cost},
  482. </if>
  483. <if test="costYear != null">COST_YEAR
  484. = #{costYear},
  485. </if>
  486. <if test="mgr != null and mgr != ''">MGR
  487. = #{mgr},
  488. </if>
  489. <if test="owner != null and owner != ''">OWNER
  490. = #{owner},
  491. </if>
  492. <if test="quality != null and quality != ''">QUALITY
  493. = #{quality},
  494. </if>
  495. <if test="qyDivideNum != null">QY_DIVIDE_NUM
  496. = #{qyDivideNum},
  497. </if>
  498. </trim>
  499. <where>ID = #{id}</where>
  500. </update>
  501. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQymtenEffc">
  502. update BIS_INSP_QYMTEN_EFFC
  503. <trim prefix="set" suffixOverrides=",">
  504. <if test="design != null and design != ''">DESIGN
  505. = #{design},
  506. </if>
  507. <if test="supervisor != null and supervisor != ''">SUPERVISOR
  508. = #{supervisor},
  509. </if>
  510. <if test="build != null and build != ''">BUILD
  511. = #{build},
  512. </if>
  513. <if test="prjcPers != null and prjcPers != ''">PRJC_PERS
  514. = #{prjcPers},
  515. </if>
  516. <if test="prjcPresTel != null and prjcPresTel != ''">PRJC_PRES_TEL
  517. = #{prjcPresTel},
  518. </if>
  519. <if test="qyBuldNum != null">QY_BULD_NUM
  520. = #{qyBuldNum},
  521. </if>
  522. <if test="qySendNum != null">QY_SEND_NUM
  523. = #{qySendNum},
  524. </if>
  525. <if test="qyDutyNum != null">QY_DUTY_NUM
  526. = #{qyDutyNum},
  527. </if>
  528. <if test="qyChkNum != null">QY_CHK_NUM
  529. = #{qyChkNum},
  530. </if>
  531. <if test="chkMendNum != null">CHK_MEND_NUM
  532. = #{chkMendNum},
  533. </if>
  534. <if test="qyDsgnNum != null">QY_DSGN_NUM
  535. = #{qyDsgnNum},
  536. </if>
  537. <if test="dsgnIdeaNum != null">DSGN_IDEA_NUM
  538. = #{dsgnIdeaNum},
  539. </if>
  540. <if test="siteBuldNum != null">SITE_BULD_NUM
  541. = #{siteBuldNum},
  542. </if>
  543. <if test="siteDsgnNum != null">SITE_DSGN_NUM
  544. = #{siteDsgnNum},
  545. </if>
  546. <if test="qyCbuldNum != null">QY_CBULD_NUM
  547. = #{qyCbuldNum},
  548. </if>
  549. <if test="sendNum != null">SEND_NUM
  550. = #{sendNum},
  551. </if>
  552. <if test="sprDutyNum != null">SPR_DUTY_NUM
  553. = #{sprDutyNum},
  554. </if>
  555. <if test="sprQyNum != null ">SPR_QY_NUM
  556. = #{sprQyNum},
  557. </if>
  558. <if test="ensrSysNum != null">ENSR_SYS_NUM
  559. = #{ensrSysNum},
  560. </if>
  561. <if test="buldQyNum != null">BULD_QY_NUM
  562. = #{buldQyNum},
  563. </if>
  564. <if test="invsNum != null">INVS_NUM
  565. = #{invsNum},
  566. </if>
  567. <if test="accpNum != null">ACCP_NUM
  568. = #{accpNum},
  569. </if>
  570. <if test="qySprNum != null">QY_SPR_NUM
  571. = #{qySprNum},
  572. </if>
  573. <if test="buldChkNum != null">BULD_CHK_NUM
  574. = #{buldChkNum},
  575. </if>
  576. <if test="prjtQyNum != null">PRJT_QY_NUM
  577. = #{prjtQyNum},
  578. </if>
  579. <if test="siteMgrNum != null">SITE_MGR_NUM
  580. = #{siteMgrNum},
  581. </if>
  582. <if test="entyQyNum != null">ENTY_QY_NUM
  583. = #{entyQyNum},
  584. </if>
  585. <if test="otherNum != null">OTHER_NUM
  586. = #{otherNum},
  587. </if>
  588. <if test="note != null and note != ''">NOTE
  589. = #{note},
  590. </if>
  591. <if test="persId != null and persId != ''">PERS_ID
  592. = #{persId},
  593. </if>
  594. <if test="intm != null">INTM
  595. = #{intm},
  596. </if>
  597. <if test="uptm != null">UPTM
  598. = #{uptm},
  599. </if>
  600. <if test="dataStat != null and dataStat != ''">DATA_STAT
  601. = #{dataStat},
  602. </if>
  603. <if test="state != null and state != ''">STATE
  604. = #{state},
  605. </if>
  606. <if test="score != null">SCORE
  607. = #{score},
  608. </if>
  609. <if test="utId != null and utId != ''">UT_ID
  610. = #{utId},
  611. </if>
  612. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  613. = #{rgstrId},
  614. </if>
  615. <if test="nm != null and nm != ''">NM
  616. = #{nm},
  617. </if>
  618. <if test="adCode != null and adCode != ''">AD_CODE
  619. = #{adCode},
  620. </if>
  621. <if test="adName != null and adName != ''">AD_NAME
  622. = #{adName},
  623. </if>
  624. <if test="loc != null and loc != ''">LOC
  625. = #{loc},
  626. </if>
  627. <if test="prjcType != null and prjcType != ''">PRJC_TYPE
  628. = #{prjcType},
  629. </if>
  630. <if test="cost != null and cost != ''">COST
  631. = #{cost},
  632. </if>
  633. <if test="costYear != null and costYear != ''">COST_YEAR
  634. = #{costYear},
  635. </if>
  636. <if test="mgr != null and mgr != ''">MGR
  637. = #{mgr},
  638. </if>
  639. <if test="owner != null and owner != ''">OWNER
  640. = #{owner},
  641. </if>
  642. <if test="quality != null and quality != ''">QUALITY
  643. = #{quality},
  644. </if>
  645. <if test="qyDivideNum != null">QY_DIVIDE_NUM
  646. = #{qyDivideNum},
  647. </if>
  648. </trim>
  649. <include refid="page_where"/>
  650. </update>
  651. <!-- 其他自定义SQL -->
  652. <select id="notInsertList" resultType="cn.com.goldenwater.dcproj.model.AttStstnBase">
  653. SELECT *
  654. FROM ATT_STSTN_BASE
  655. WHERE ID NOT IN (SELECT UT_ID FROM BIS_INSP_QYMTEN_EFFC WHERE RGSTR_ID = #{rgstrId})
  656. <if test="nm != null and nm != ''">
  657. AND NM like '%${nm}%'
  658. </if>
  659. <if test="adCode != null and adCode != ''">
  660. AND AD_CODE like '${adCode}%'
  661. </if>
  662. </select>
  663. </mapper>