b322b4e5f2f42924bff0475085e30ba1ca8d7b95.svn-base 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  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.BisInspStstnTmprDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspStstnTmpr" id="bisInspStstnTmprResultMap">
  5. <result property="iibKillNum" column="IIB_KILL_NUM"/>
  6. <result property="iibDistNum" column="IIB_DIST_NUM"/>
  7. <result property="akDistNum" column="AK_DIST_NUM"/>
  8. <result property="iibNroomNum" column="IIB_NROOM_NUM"/>
  9. <result property="cablePrctNum" column="CABLE_PRCT_NUM"/>
  10. <result property="isLineFix" column="IS_LINE_FIX"/>
  11. <result property="fixLineNum" column="FIX_LINE_NUM"/>
  12. <result property="isFixSame" column="IS_FIX_SAME"/>
  13. <result property="fixSameFix" column="FIX_SAME_FIX"/>
  14. <result property="isPowerSame" column="IS_POWER_SAME"/>
  15. <result property="powerSameNum" column="POWER_SAME_NUM"/>
  16. <result property="ledRghtNum" column="LED_RGHT_NUM"/>
  17. <result property="siteSysNum" column="SITE_SYS_NUM"/>
  18. <result property="isFrpCnfr" column="IS_FRP_CNFR"/>
  19. <result property="frpCnfrNum" column="FRP_CNFR_NUM"/>
  20. <result property="isFrpRqr" column="IS_FRP_RQR"/>
  21. <result property="frpRqrNum" column="FRP_RQR_NUM"/>
  22. <result property="isFrpGap" column="IS_FRP_GAP"/>
  23. <result property="frpGapNum" column="FRP_GAP_NUM"/>
  24. <result property="isBttmGap" column="IS_BTTM_GAP"/>
  25. <result property="bttmGapNum" column="BTTM_GAP_NUM"/>
  26. <result property="isTopGap" column="IS_TOP_GAP"/>
  27. <result property="topGapNum" column="TOP_GAP_NUM"/>
  28. <result property="isLngtGap" column="IS_LNGT_GAP"/>
  29. <result property="lngtGapNum" column="LNGT_GAP_NUM"/>
  30. <result property="isNaerRqr" column="IS_NAER_RQR"/>
  31. <result property="naerRqrNum" column="NAER_RQR_NUM"/>
  32. <result property="isSplcRqr" column="IS_SPLC_RQR"/>
  33. <result property="splcRqrNum" column="SPLC_RQR_NUM"/>
  34. <result property="isFrpFix" column="IS_FRP_FIX"/>
  35. <result property="frpFixNum" column="FRP_FIX_NUM"/>
  36. <result property="isTfrpFix" column="IS_TFRP_FIX"/>
  37. <result property="tfrpFixNum" column="TFRP_FIX_NUM"/>
  38. <result property="isTfrpBuld" column="IS_TFRP_BULD"/>
  39. <result property="tfrpBuldNum" column="TFRP_BULD_NUM"/>
  40. <result property="isFloorRqr" column="IS_FLOOR_RQR"/>
  41. <result property="floorRqrNum" column="FLOOR_RQR_NUM"/>
  42. <result property="isLfrpFix" column="IS_LFRP_FIX"/>
  43. <result property="lfrpFixNum" column="LFRP_FIX_NUM"/>
  44. <result property="isFrpChnn" column="IS_FRP_CHNN"/>
  45. <result property="frpChnnNum" column="FRP_CHNN_NUM"/>
  46. <result property="isFrpPass" column="IS_FRP_PASS"/>
  47. <result property="frpPassNum" column="FRP_PASS_NUM"/>
  48. <result property="isSiteC30" column="IS_SITE_C30"/>
  49. <result property="siteC30Num" column="SITE_C30_NUM"/>
  50. <result property="isSiteLoc" column="IS_SITE_LOC"/>
  51. <result property="siteLocNum" column="SITE_LOC_NUM"/>
  52. <result property="isSiteLmt" column="IS_SITE_LMT"/>
  53. <result property="siteLmtNum" column="SITE_LMT_NUM"/>
  54. <result property="isRiskPub" column="IS_RISK_PUB"/>
  55. <result property="riskPubNum" column="RISK_PUB_NUM"/>
  56. <result property="isSiteRqr" column="IS_SITE_RQR"/>
  57. <result property="siteRqrNum" column="SITE_RQR_NUM"/>
  58. <result property="note" column="NOTE"/>
  59. <result property="persId" column="PERS_ID"/>
  60. <result property="intm" column="INTM"/>
  61. <result property="uptm" column="UPTM"/>
  62. <result property="dataStat" column="DATA_STAT"/>
  63. <result property="total" column="TOTAL"/>
  64. <result property="actualScore" column="ACTUAL_SCORE"/>
  65. <result property="id" column="ID"/>
  66. <result property="rgstrId" column="RGSTR_ID"/>
  67. <result property="iibPrctNum" column="IIB_PRCT_NUM"/>
  68. </resultMap>
  69. <sql id="table_columns">
  70. IIB_KILL_NUM,
  71. IIB_DIST_NUM,
  72. AK_DIST_NUM,
  73. IIB_NROOM_NUM,
  74. CABLE_PRCT_NUM,
  75. IS_LINE_FIX,
  76. FIX_LINE_NUM,
  77. IS_FIX_SAME,
  78. FIX_SAME_FIX,
  79. IS_POWER_SAME,
  80. POWER_SAME_NUM,
  81. LED_RGHT_NUM,
  82. SITE_SYS_NUM,
  83. IS_FRP_CNFR,
  84. FRP_CNFR_NUM,
  85. IS_FRP_RQR,
  86. FRP_RQR_NUM,
  87. IS_FRP_GAP,
  88. FRP_GAP_NUM,
  89. IS_BTTM_GAP,
  90. BTTM_GAP_NUM,
  91. IS_TOP_GAP,
  92. TOP_GAP_NUM,
  93. IS_LNGT_GAP,
  94. LNGT_GAP_NUM,
  95. IS_NAER_RQR,
  96. NAER_RQR_NUM,
  97. IS_SPLC_RQR,
  98. SPLC_RQR_NUM,
  99. IS_FRP_FIX,
  100. FRP_FIX_NUM,
  101. IS_TFRP_FIX,
  102. TFRP_FIX_NUM,
  103. IS_TFRP_BULD,
  104. TFRP_BULD_NUM,
  105. IS_FLOOR_RQR,
  106. FLOOR_RQR_NUM,
  107. IS_LFRP_FIX,
  108. LFRP_FIX_NUM,
  109. IS_FRP_CHNN,
  110. FRP_CHNN_NUM,
  111. IS_FRP_PASS,
  112. FRP_PASS_NUM,
  113. IS_SITE_C30,
  114. SITE_C30_NUM,
  115. IS_SITE_LOC,
  116. SITE_LOC_NUM,
  117. IS_SITE_LMT,
  118. SITE_LMT_NUM,
  119. IS_RISK_PUB,
  120. RISK_PUB_NUM,
  121. IS_SITE_RQR,
  122. SITE_RQR_NUM,
  123. NOTE,
  124. PERS_ID,
  125. INTM,
  126. UPTM,
  127. DATA_STAT,
  128. TOTAL,
  129. ACTUAL_SCORE,
  130. ID,
  131. RGSTR_ID,
  132. IIB_PRCT_NUM
  133. </sql>
  134. <sql id="entity_properties">
  135. #{iibKillNum},
  136. #{iibDistNum},
  137. #{akDistNum},
  138. #{iibNroomNum},
  139. #{cablePrctNum},
  140. #{isLineFix},
  141. #{fixLineNum},
  142. #{isFixSame},
  143. #{fixSameFix},
  144. #{isPowerSame},
  145. #{powerSameNum},
  146. #{ledRghtNum},
  147. #{siteSysNum},
  148. #{isFrpCnfr},
  149. #{frpCnfrNum},
  150. #{isFrpRqr},
  151. #{frpRqrNum},
  152. #{isFrpGap},
  153. #{frpGapNum},
  154. #{isBttmGap},
  155. #{bttmGapNum},
  156. #{isTopGap},
  157. #{topGapNum},
  158. #{isLngtGap},
  159. #{lngtGapNum},
  160. #{isNaerRqr},
  161. #{naerRqrNum},
  162. #{isSplcRqr},
  163. #{splcRqrNum},
  164. #{isFrpFix},
  165. #{frpFixNum},
  166. #{isTfrpFix},
  167. #{tfrpFixNum},
  168. #{isTfrpBuld},
  169. #{tfrpBuldNum},
  170. #{isFloorRqr},
  171. #{floorRqrNum},
  172. #{isLfrpFix},
  173. #{lfrpFixNum},
  174. #{isFrpChnn},
  175. #{frpChnnNum},
  176. #{isFrpPass},
  177. #{frpPassNum},
  178. #{isSiteC30},
  179. #{siteC30Num},
  180. #{isSiteLoc},
  181. #{siteLocNum},
  182. #{isSiteLmt},
  183. #{siteLmtNum},
  184. #{isRiskPub},
  185. #{riskPubNum},
  186. #{isSiteRqr},
  187. #{siteRqrNum},
  188. #{note},
  189. #{persId},
  190. #{intm},
  191. #{uptm},
  192. #{dataStat},
  193. #{total},
  194. #{actualScore},
  195. #{id},
  196. #{rgstrId},
  197. #{iibPrctNum}
  198. </sql>
  199. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  200. <sql id="page_where">
  201. <trim prefix="where" prefixOverrides="and | or ">
  202. <if test="iibKillNum != null ">
  203. and IIB_KILL_NUM = #{iibKillNum}
  204. </if>
  205. <if test="iibDistNum != null ">
  206. and IIB_DIST_NUM = #{iibDistNum}
  207. </if>
  208. <if test="akDistNum != null ">
  209. and AK_DIST_NUM = #{akDistNum}
  210. </if>
  211. <if test="iibNroomNum != null ">
  212. and IIB_NROOM_NUM = #{iibNroomNum}
  213. </if>
  214. <if test="cablePrctNum != null ">
  215. and CABLE_PRCT_NUM = #{cablePrctNum}
  216. </if>
  217. <if test="isLineFix != null and isLineFix != ''">
  218. and IS_LINE_FIX = #{isLineFix}
  219. </if>
  220. <if test="fixLineNum != null ">
  221. and FIX_LINE_NUM = #{fixLineNum}
  222. </if>
  223. <if test="isFixSame != null and isFixSame != ''">
  224. and IS_FIX_SAME = #{isFixSame}
  225. </if>
  226. <if test="fixSameFix != null and fixSameFix != ''">
  227. and FIX_SAME_FIX = #{fixSameFix}
  228. </if>
  229. <if test="isPowerSame != null and isPowerSame != ''">
  230. and IS_POWER_SAME = #{isPowerSame}
  231. </if>
  232. <if test="powerSameNum != null ">
  233. and POWER_SAME_NUM = #{powerSameNum}
  234. </if>
  235. <if test="ledRghtNum != null ">
  236. and LED_RGHT_NUM = #{ledRghtNum}
  237. </if>
  238. <if test="siteSysNum != null ">
  239. and SITE_SYS_NUM = #{siteSysNum}
  240. </if>
  241. <if test="isFrpCnfr != null and isFrpCnfr != ''">
  242. and IS_FRP_CNFR = #{isFrpCnfr}
  243. </if>
  244. <if test="frpCnfrNum != null ">
  245. and FRP_CNFR_NUM = #{frpCnfrNum}
  246. </if>
  247. <if test="isFrpRqr != null and isFrpRqr != ''">
  248. and IS_FRP_RQR = #{isFrpRqr}
  249. </if>
  250. <if test="frpRqrNum != null ">
  251. and FRP_RQR_NUM = #{frpRqrNum}
  252. </if>
  253. <if test="isFrpGap != null and isFrpGap != ''">
  254. and IS_FRP_GAP = #{isFrpGap}
  255. </if>
  256. <if test="frpGapNum != null ">
  257. and FRP_GAP_NUM = #{frpGapNum}
  258. </if>
  259. <if test="isBttmGap != null and isBttmGap != ''">
  260. and IS_BTTM_GAP = #{isBttmGap}
  261. </if>
  262. <if test="bttmGapNum != null ">
  263. and BTTM_GAP_NUM = #{bttmGapNum}
  264. </if>
  265. <if test="isTopGap != null and isTopGap != ''">
  266. and IS_TOP_GAP = #{isTopGap}
  267. </if>
  268. <if test="topGapNum != null ">
  269. and TOP_GAP_NUM = #{topGapNum}
  270. </if>
  271. <if test="isLngtGap != null and isLngtGap != ''">
  272. and IS_LNGT_GAP = #{isLngtGap}
  273. </if>
  274. <if test="lngtGapNum != null ">
  275. and LNGT_GAP_NUM = #{lngtGapNum}
  276. </if>
  277. <if test="isNaerRqr != null and isNaerRqr != ''">
  278. and IS_NAER_RQR = #{isNaerRqr}
  279. </if>
  280. <if test="naerRqrNum != null ">
  281. and NAER_RQR_NUM = #{naerRqrNum}
  282. </if>
  283. <if test="isSplcRqr != null and isSplcRqr != ''">
  284. and IS_SPLC_RQR = #{isSplcRqr}
  285. </if>
  286. <if test="splcRqrNum != null ">
  287. and SPLC_RQR_NUM = #{splcRqrNum}
  288. </if>
  289. <if test="isFrpFix != null and isFrpFix != ''">
  290. and IS_FRP_FIX = #{isFrpFix}
  291. </if>
  292. <if test="frpFixNum != null ">
  293. and FRP_FIX_NUM = #{frpFixNum}
  294. </if>
  295. <if test="isTfrpFix != null and isTfrpFix != ''">
  296. and IS_TFRP_FIX = #{isTfrpFix}
  297. </if>
  298. <if test="tfrpFixNum != null ">
  299. and TFRP_FIX_NUM = #{tfrpFixNum}
  300. </if>
  301. <if test="isTfrpBuld != null and isTfrpBuld != ''">
  302. and IS_TFRP_BULD = #{isTfrpBuld}
  303. </if>
  304. <if test="tfrpBuldNum != null ">
  305. and TFRP_BULD_NUM = #{tfrpBuldNum}
  306. </if>
  307. <if test="isFloorRqr != null and isFloorRqr != ''">
  308. and IS_FLOOR_RQR = #{isFloorRqr}
  309. </if>
  310. <if test="floorRqrNum != null ">
  311. and FLOOR_RQR_NUM = #{floorRqrNum}
  312. </if>
  313. <if test="isLfrpFix != null and isLfrpFix != ''">
  314. and IS_LFRP_FIX = #{isLfrpFix}
  315. </if>
  316. <if test="lfrpFixNum != null ">
  317. and LFRP_FIX_NUM = #{lfrpFixNum}
  318. </if>
  319. <if test="isFrpChnn != null and isFrpChnn != ''">
  320. and IS_FRP_CHNN = #{isFrpChnn}
  321. </if>
  322. <if test="frpChnnNum != null ">
  323. and FRP_CHNN_NUM = #{frpChnnNum}
  324. </if>
  325. <if test="isFrpPass != null and isFrpPass != ''">
  326. and IS_FRP_PASS = #{isFrpPass}
  327. </if>
  328. <if test="frpPassNum != null ">
  329. and FRP_PASS_NUM = #{frpPassNum}
  330. </if>
  331. <if test="isSiteC30 != null and isSiteC30 != ''">
  332. and IS_SITE_C30 = #{isSiteC30}
  333. </if>
  334. <if test="siteC30Num != null ">
  335. and SITE_C30_NUM = #{siteC30Num}
  336. </if>
  337. <if test="isSiteLoc != null and isSiteLoc != ''">
  338. and IS_SITE_LOC = #{isSiteLoc}
  339. </if>
  340. <if test="siteLocNum != null ">
  341. and SITE_LOC_NUM = #{siteLocNum}
  342. </if>
  343. <if test="isSiteLmt != null and isSiteLmt != ''">
  344. and IS_SITE_LMT = #{isSiteLmt}
  345. </if>
  346. <if test="siteLmtNum != null ">
  347. and SITE_LMT_NUM = #{siteLmtNum}
  348. </if>
  349. <if test="isRiskPub != null and isRiskPub != ''">
  350. and IS_RISK_PUB = #{isRiskPub}
  351. </if>
  352. <if test="riskPubNum != null ">
  353. and RISK_PUB_NUM = #{riskPubNum}
  354. </if>
  355. <if test="isSiteRqr != null and isSiteRqr != ''">
  356. and IS_SITE_RQR = #{isSiteRqr}
  357. </if>
  358. <if test="siteRqrNum != null ">
  359. and SITE_RQR_NUM = #{siteRqrNum}
  360. </if>
  361. <if test="note != null and note != ''">
  362. and NOTE = #{note}
  363. </if>
  364. <if test="persId != null and persId != ''">
  365. and PERS_ID = #{persId}
  366. </if>
  367. <if test="intm != null">
  368. and INTM = #{intm}
  369. </if>
  370. <if test="uptm != null">
  371. and UPTM = #{uptm}
  372. </if>
  373. <if test="dataStat != null and dataStat != ''">
  374. and DATA_STAT = #{dataStat}
  375. </if>
  376. <if test="total != null and total != ''">
  377. and TOTAL = #{total}
  378. </if>
  379. <if test="actualScore != null and actualScore != ''">
  380. and ACTUAL_SCORE = #{actualScore}
  381. </if>
  382. <if test="rgstrId != null and rgstrId != ''">
  383. and RGSTR_ID = #{rgstrId}
  384. </if>
  385. <if test="iibPrctNum != null ">
  386. and IIB_PRCT_NUM = #{iibPrctNum}
  387. </if>
  388. and DATA_STAT='0'
  389. </trim>
  390. </sql>
  391. <select id="get" resultMap="bisInspStstnTmprResultMap" parameterType="String">
  392. select
  393. <include refid="table_columns"/>
  394. from BIS_INSP_STSTN_TMPR where RGSTR_ID = #{rgstrId}
  395. </select>
  396. <select id="getBy" resultMap="bisInspStstnTmprResultMap">
  397. select
  398. <include refid="table_columns"/>
  399. from BIS_INSP_STSTN_TMPR
  400. <include refid="page_where"/>
  401. </select>
  402. <select id="findAll" resultMap="bisInspStstnTmprResultMap">
  403. select
  404. <include refid="table_columns"/>
  405. from BIS_INSP_STSTN_TMPR
  406. </select>
  407. <select id="findList" resultMap="bisInspStstnTmprResultMap">
  408. select
  409. <include refid="table_columns"/>
  410. from BIS_INSP_STSTN_TMPR
  411. <include refid="page_where"/>
  412. </select>
  413. <select id="selectCount" resultType="int">
  414. select count(ID) from BIS_INSP_STSTN_TMPR
  415. <include refid="page_where"/>
  416. </select>
  417. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnTmpr">
  418. insert into BIS_INSP_STSTN_TMPR(
  419. <include refid="table_columns"/>
  420. )
  421. values (
  422. <include refid="entity_properties"/>
  423. )
  424. </insert>
  425. <delete id="delete" parameterType="java.lang.String">
  426. update BIS_INSP_STSTN_TMPR set DATA_STAT='9' where ID = #{id}
  427. </delete>
  428. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnTmpr">
  429. update BIS_INSP_STSTN_TMPR set DATA_STAT='9'
  430. <include refid="page_where"/>
  431. </delete>
  432. <update id="deleteInFlag" parameterType="java.lang.String">
  433. update BIS_INSP_STSTN_TMPR set DATA_STAT = '9' where ID = #{id}
  434. </update>
  435. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnTmpr">
  436. update BIS_INSP_STSTN_TMPR
  437. <trim prefix="set" suffixOverrides=",">
  438. <if test="iibKillNum != null">IIB_KILL_NUM
  439. = #{iibKillNum},
  440. </if>
  441. <if test="iibDistNum != null">IIB_DIST_NUM
  442. = #{iibDistNum},
  443. </if>
  444. <if test="akDistNum != null">AK_DIST_NUM
  445. = #{akDistNum},
  446. </if>
  447. <if test="iibNroomNum != null">IIB_NROOM_NUM
  448. = #{iibNroomNum},
  449. </if>
  450. <if test="cablePrctNum != null ">CABLE_PRCT_NUM
  451. = #{cablePrctNum},
  452. </if>
  453. <if test="isLineFix != null and isLineFix != ''">IS_LINE_FIX
  454. = #{isLineFix},
  455. </if>
  456. <if test="fixLineNum != null">FIX_LINE_NUM
  457. = #{fixLineNum},
  458. </if>
  459. <if test="isFixSame != null and isFixSame != ''">IS_FIX_SAME
  460. = #{isFixSame},
  461. </if>
  462. <if test="fixSameFix != null">FIX_SAME_FIX
  463. = #{fixSameFix},
  464. </if>
  465. <if test="isPowerSame != null and isPowerSame != ''">IS_POWER_SAME
  466. = #{isPowerSame},
  467. </if>
  468. <if test="powerSameNum != null">POWER_SAME_NUM
  469. = #{powerSameNum},
  470. </if>
  471. <if test="ledRghtNum != null">LED_RGHT_NUM
  472. = #{ledRghtNum},
  473. </if>
  474. <if test="siteSysNum != null">SITE_SYS_NUM
  475. = #{siteSysNum},
  476. </if>
  477. <if test="isFrpCnfr != null and isFrpCnfr != ''">IS_FRP_CNFR
  478. = #{isFrpCnfr},
  479. </if>
  480. <if test="frpCnfrNum != null">FRP_CNFR_NUM
  481. = #{frpCnfrNum},
  482. </if>
  483. <if test="isFrpRqr != null and isFrpRqr != ''">IS_FRP_RQR
  484. = #{isFrpRqr},
  485. </if>
  486. <if test="frpRqrNum != null">FRP_RQR_NUM
  487. = #{frpRqrNum},
  488. </if>
  489. <if test="isFrpGap != null and isFrpGap != ''">IS_FRP_GAP
  490. = #{isFrpGap},
  491. </if>
  492. <if test="frpGapNum != null">FRP_GAP_NUM
  493. = #{frpGapNum},
  494. </if>
  495. <if test="isBttmGap != null and isBttmGap != ''">IS_BTTM_GAP
  496. = #{isBttmGap},
  497. </if>
  498. <if test="bttmGapNum != null">BTTM_GAP_NUM
  499. = #{bttmGapNum},
  500. </if>
  501. <if test="isTopGap != null and isTopGap != ''">IS_TOP_GAP
  502. = #{isTopGap},
  503. </if>
  504. <if test="topGapNum != null">TOP_GAP_NUM
  505. = #{topGapNum},
  506. </if>
  507. <if test="isLngtGap != null and isLngtGap != ''">IS_LNGT_GAP
  508. = #{isLngtGap},
  509. </if>
  510. <if test="lngtGapNum != null">LNGT_GAP_NUM
  511. = #{lngtGapNum},
  512. </if>
  513. <if test="isNaerRqr != null and isNaerRqr != ''">IS_NAER_RQR
  514. = #{isNaerRqr},
  515. </if>
  516. <if test="naerRqrNum != null">NAER_RQR_NUM
  517. = #{naerRqrNum},
  518. </if>
  519. <if test="isSplcRqr != null and isSplcRqr != ''">IS_SPLC_RQR
  520. = #{isSplcRqr},
  521. </if>
  522. <if test="splcRqrNum != null">SPLC_RQR_NUM
  523. = #{splcRqrNum},
  524. </if>
  525. <if test="isFrpFix != null and isFrpFix != ''">IS_FRP_FIX
  526. = #{isFrpFix},
  527. </if>
  528. <if test="frpFixNum != null">FRP_FIX_NUM
  529. = #{frpFixNum},
  530. </if>
  531. <if test="isTfrpFix != null and isTfrpFix != ''">IS_TFRP_FIX
  532. = #{isTfrpFix},
  533. </if>
  534. <if test="tfrpFixNum != null">TFRP_FIX_NUM
  535. = #{tfrpFixNum},
  536. </if>
  537. <if test="isTfrpBuld != null and isTfrpBuld != ''">IS_TFRP_BULD
  538. = #{isTfrpBuld},
  539. </if>
  540. <if test="tfrpBuldNum != null">TFRP_BULD_NUM
  541. = #{tfrpBuldNum},
  542. </if>
  543. <if test="isFloorRqr != null and isFloorRqr != ''">IS_FLOOR_RQR
  544. = #{isFloorRqr},
  545. </if>
  546. <if test="floorRqrNum != null">FLOOR_RQR_NUM
  547. = #{floorRqrNum},
  548. </if>
  549. <if test="isLfrpFix != null and isLfrpFix != ''">IS_LFRP_FIX
  550. = #{isLfrpFix},
  551. </if>
  552. <if test="lfrpFixNum != null">LFRP_FIX_NUM
  553. = #{lfrpFixNum},
  554. </if>
  555. <if test="isFrpChnn != null and isFrpChnn != ''">IS_FRP_CHNN
  556. = #{isFrpChnn},
  557. </if>
  558. <if test="frpChnnNum != null">FRP_CHNN_NUM
  559. = #{frpChnnNum},
  560. </if>
  561. <if test="isFrpPass != null and isFrpPass != ''">IS_FRP_PASS
  562. = #{isFrpPass},
  563. </if>
  564. <if test="frpPassNum != null">FRP_PASS_NUM
  565. = #{frpPassNum},
  566. </if>
  567. <if test="isSiteC30 != null and isSiteC30 != ''">IS_SITE_C30
  568. = #{isSiteC30},
  569. </if>
  570. <if test="siteC30Num != null">SITE_C30_NUM
  571. = #{siteC30Num},
  572. </if>
  573. <if test="isSiteLoc != null and isSiteLoc != ''">IS_SITE_LOC
  574. = #{isSiteLoc},
  575. </if>
  576. <if test="siteLocNum != null">SITE_LOC_NUM
  577. = #{siteLocNum},
  578. </if>
  579. <if test="isSiteLmt != null and isSiteLmt != ''">IS_SITE_LMT
  580. = #{isSiteLmt},
  581. </if>
  582. <if test="siteLmtNum != null">SITE_LMT_NUM
  583. = #{siteLmtNum},
  584. </if>
  585. <if test="isRiskPub != null and isRiskPub != ''">IS_RISK_PUB
  586. = #{isRiskPub},
  587. </if>
  588. <if test="riskPubNum != null">RISK_PUB_NUM
  589. = #{riskPubNum},
  590. </if>
  591. <if test="isSiteRqr != null and isSiteRqr != ''">IS_SITE_RQR
  592. = #{isSiteRqr},
  593. </if>
  594. <if test="siteRqrNum != null">SITE_RQR_NUM
  595. = #{siteRqrNum},
  596. </if>
  597. <if test="note != null and note != ''">NOTE
  598. = #{note},
  599. </if>
  600. <if test="persId != null and persId != ''">PERS_ID
  601. = #{persId},
  602. </if>
  603. <if test="intm != null">INTM
  604. = #{intm},
  605. </if>
  606. <if test="uptm != null">UPTM
  607. = #{uptm},
  608. </if>
  609. <if test="dataStat != null and dataStat != ''">DATA_STAT
  610. = #{dataStat},
  611. </if>
  612. <if test="total != null">TOTAL
  613. = #{total},
  614. </if>
  615. <if test="actualScore != null">ACTUAL_SCORE
  616. = #{actualScore},
  617. </if>
  618. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  619. = #{rgstrId},
  620. </if>
  621. <if test="iibPrctNum != null">IIB_PRCT_NUM
  622. = #{iibPrctNum},
  623. </if>
  624. </trim>
  625. <where>ID = #{id}</where>
  626. </update>
  627. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnTmpr">
  628. update BIS_INSP_STSTN_TMPR
  629. <trim prefix="set" suffixOverrides=",">
  630. <if test="iibKillNum != null ">IIB_KILL_NUM
  631. = #{iibKillNum},
  632. </if>
  633. <if test="iibDistNum != null ">IIB_DIST_NUM
  634. = #{iibDistNum},
  635. </if>
  636. <if test="akDistNum != null ">AK_DIST_NUM
  637. = #{akDistNum},
  638. </if>
  639. <if test="iibNroomNum != null ">IIB_NROOM_NUM
  640. = #{iibNroomNum},
  641. </if>
  642. <if test="cablePrctNum != null ">CABLE_PRCT_NUM
  643. = #{cablePrctNum},
  644. </if>
  645. <if test="isLineFix != null and isLineFix != ''">IS_LINE_FIX
  646. = #{isLineFix},
  647. </if>
  648. <if test="fixLineNum != null ">FIX_LINE_NUM
  649. = #{fixLineNum},
  650. </if>
  651. <if test="isFixSame != null and isFixSame != ''">IS_FIX_SAME
  652. = #{isFixSame},
  653. </if>
  654. <if test="fixSameFix != null and fixSameFix != ''">FIX_SAME_FIX
  655. = #{fixSameFix},
  656. </if>
  657. <if test="isPowerSame != null and isPowerSame != ''">IS_POWER_SAME
  658. = #{isPowerSame},
  659. </if>
  660. <if test="powerSameNum != null ">POWER_SAME_NUM
  661. = #{powerSameNum},
  662. </if>
  663. <if test="ledRghtNum != null ">LED_RGHT_NUM
  664. = #{ledRghtNum},
  665. </if>
  666. <if test="siteSysNum != null ">SITE_SYS_NUM
  667. = #{siteSysNum},
  668. </if>
  669. <if test="isFrpCnfr != null and isFrpCnfr != ''">IS_FRP_CNFR
  670. = #{isFrpCnfr},
  671. </if>
  672. <if test="frpCnfrNum != null ">FRP_CNFR_NUM
  673. = #{frpCnfrNum},
  674. </if>
  675. <if test="isFrpRqr != null and isFrpRqr != ''">IS_FRP_RQR
  676. = #{isFrpRqr},
  677. </if>
  678. <if test="frpRqrNum != null ">FRP_RQR_NUM
  679. = #{frpRqrNum},
  680. </if>
  681. <if test="isFrpGap != null and isFrpGap != ''">IS_FRP_GAP
  682. = #{isFrpGap},
  683. </if>
  684. <if test="frpGapNum != null ">FRP_GAP_NUM
  685. = #{frpGapNum},
  686. </if>
  687. <if test="isBttmGap != null and isBttmGap != ''">IS_BTTM_GAP
  688. = #{isBttmGap},
  689. </if>
  690. <if test="bttmGapNum != null ">BTTM_GAP_NUM
  691. = #{bttmGapNum},
  692. </if>
  693. <if test="isTopGap != null and isTopGap != ''">IS_TOP_GAP
  694. = #{isTopGap},
  695. </if>
  696. <if test="topGapNum != null ">TOP_GAP_NUM
  697. = #{topGapNum},
  698. </if>
  699. <if test="isLngtGap != null and isLngtGap != ''">IS_LNGT_GAP
  700. = #{isLngtGap},
  701. </if>
  702. <if test="lngtGapNum != null ">LNGT_GAP_NUM
  703. = #{lngtGapNum},
  704. </if>
  705. <if test="isNaerRqr != null and isNaerRqr != ''">IS_NAER_RQR
  706. = #{isNaerRqr},
  707. </if>
  708. <if test="naerRqrNum != null ">NAER_RQR_NUM
  709. = #{naerRqrNum},
  710. </if>
  711. <if test="isSplcRqr != null and isSplcRqr != ''">IS_SPLC_RQR
  712. = #{isSplcRqr},
  713. </if>
  714. <if test="splcRqrNum != null ">SPLC_RQR_NUM
  715. = #{splcRqrNum},
  716. </if>
  717. <if test="isFrpFix != null and isFrpFix != ''">IS_FRP_FIX
  718. = #{isFrpFix},
  719. </if>
  720. <if test="frpFixNum != null ">FRP_FIX_NUM
  721. = #{frpFixNum},
  722. </if>
  723. <if test="isTfrpFix != null and isTfrpFix != ''">IS_TFRP_FIX
  724. = #{isTfrpFix},
  725. </if>
  726. <if test="tfrpFixNum != null ">TFRP_FIX_NUM
  727. = #{tfrpFixNum},
  728. </if>
  729. <if test="isTfrpBuld != null and isTfrpBuld != ''">IS_TFRP_BULD
  730. = #{isTfrpBuld},
  731. </if>
  732. <if test="tfrpBuldNum != null ">TFRP_BULD_NUM
  733. = #{tfrpBuldNum},
  734. </if>
  735. <if test="isFloorRqr != null and isFloorRqr != ''">IS_FLOOR_RQR
  736. = #{isFloorRqr},
  737. </if>
  738. <if test="floorRqrNum != null ">FLOOR_RQR_NUM
  739. = #{floorRqrNum},
  740. </if>
  741. <if test="isLfrpFix != null and isLfrpFix != ''">IS_LFRP_FIX
  742. = #{isLfrpFix},
  743. </if>
  744. <if test="lfrpFixNum != null ">LFRP_FIX_NUM
  745. = #{lfrpFixNum},
  746. </if>
  747. <if test="isFrpChnn != null and isFrpChnn != ''">IS_FRP_CHNN
  748. = #{isFrpChnn},
  749. </if>
  750. <if test="frpChnnNum != null ">FRP_CHNN_NUM
  751. = #{frpChnnNum},
  752. </if>
  753. <if test="isFrpPass != null and isFrpPass != ''">IS_FRP_PASS
  754. = #{isFrpPass},
  755. </if>
  756. <if test="frpPassNum != null ">FRP_PASS_NUM
  757. = #{frpPassNum},
  758. </if>
  759. <if test="isSiteC30 != null and isSiteC30 != ''">IS_SITE_C30
  760. = #{isSiteC30},
  761. </if>
  762. <if test="siteC30Num != null ">SITE_C30_NUM
  763. = #{siteC30Num},
  764. </if>
  765. <if test="isSiteLoc != null and isSiteLoc != ''">IS_SITE_LOC
  766. = #{isSiteLoc},
  767. </if>
  768. <if test="siteLocNum != null ">SITE_LOC_NUM
  769. = #{siteLocNum},
  770. </if>
  771. <if test="isSiteLmt != null and isSiteLmt != ''">IS_SITE_LMT
  772. = #{isSiteLmt},
  773. </if>
  774. <if test="siteLmtNum != null ">SITE_LMT_NUM
  775. = #{siteLmtNum},
  776. </if>
  777. <if test="isRiskPub != null and isRiskPub != ''">IS_RISK_PUB
  778. = #{isRiskPub},
  779. </if>
  780. <if test="riskPubNum != null ">RISK_PUB_NUM
  781. = #{riskPubNum},
  782. </if>
  783. <if test="isSiteRqr != null and isSiteRqr != ''">IS_SITE_RQR
  784. = #{isSiteRqr},
  785. </if>
  786. <if test="siteRqrNum != null ">SITE_RQR_NUM
  787. = #{siteRqrNum},
  788. </if>
  789. <if test="note != null and note != ''">NOTE
  790. = #{note},
  791. </if>
  792. <if test="persId != null and persId != ''">PERS_ID
  793. = #{persId},
  794. </if>
  795. <if test="intm != null">INTM
  796. = #{intm},
  797. </if>
  798. <if test="uptm != null">UPTM
  799. = #{uptm},
  800. </if>
  801. <if test="dataStat != null and dataStat != ''">DATA_STAT
  802. = #{dataStat},
  803. </if>
  804. <if test="total != null and total != ''">TOTAL
  805. = #{total},
  806. </if>
  807. <if test="actualScore != null and actualScore != ''">ACTUAL_SCORE
  808. = #{actualScore},
  809. </if>
  810. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  811. = #{rgstrId},
  812. </if>
  813. <if test="iibPrctNum != null ">IIB_PRCT_NUM
  814. = #{iibPrctNum},
  815. </if>
  816. </trim>
  817. <include refid="page_where"/>
  818. </update>
  819. <!-- 其他自定义SQL -->
  820. </mapper>