BisInspWagaProenInfoDao.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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.BisInspWagaProenInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo" id="bisInspWagaProenInfoResultMap">
  5. <result property="lkcmbHasLdogcsosj" column="LKCMB_HAS_LDOGCSOSJ"/>
  6. <result property="lkcmbHasSadsatbda" column="LKCMB_HAS_SADSATBDA"/>
  7. <result property="lkcmbHasTedaifab" column="LKCMB_HAS_TEDAIFAB"/>
  8. <result property="lkcmbHasTbcttsib" column="LKCMB_HAS_TBCTTSIB"/>
  9. <result property="lkcmbHasTusofio" column="LKCMB_HAS_TUSOFIO"/>
  10. <result property="uadcogcHasDmg" column="UADCOGC_HAS_DMG"/>
  11. <result property="uadcogcHasEasapitr" column="UADCOGC_HAS_EASAPITR"/>
  12. <result property="uadraeaosHasEasapitr" column="UADRAEAOS_HAS_EASAPITR"/>
  13. <result property="uadraeaosHasDmg" column="UADRAEAOS_HAS_DMG"/>
  14. <result property="uadraeaosHasDatnootl" column="UADRAEAOS_HAS_DATNOOTL"/>
  15. <result property="gateHasRd" column="GATE_HAS_RD"/>
  16. <result property="gateHasTsibai" column="GATE_HAS_TSIBAI"/>
  17. <result property="gateHasFlaw" column="GATE_HAS_FLAW"/>
  18. <result property="ocdIsMnoacr" column="OCD_IS_MNOACR"/>
  19. <result property="ocdHasCol" column="OCD_HAS_COL"/>
  20. <result property="ocdHasPdam" column="OCD_HAS_PDAM"/>
  21. <result property="dfHasToht" column="DF_HAS_TOHT"/>
  22. <result property="dfIsNoops" column="DF_IS_NOOPS"/>
  23. <result property="dfHasGfl" column="DF_HAS_GFL"/>
  24. <result property="smfHasPfpf" column="SMF_HAS_PFPF"/>
  25. <result property="smfIsTmaasirn" column="SMF_IS_TMAASIRN"/>
  26. <result property="smfIsSunspasmf" column="SMF_IS_SUNSPASMF"/>
  27. <result property="id" column="ID"/>
  28. <result property="rgstrId" column="RGSTR_ID"/>
  29. <result property="ctapIsDam" column="CTAP_IS_DAM"/>
  30. <result property="strobIsDWiSr" column="STROB_IS_D_WI_SR"/>
  31. <result property="gahsiInfo" column="GAHSI_INFO"/>
  32. <result property="eeoIsN" column="EEO_IS_N"/>
  33. <result property="icaaecsIsH" column="ICAAECS_IS_H"/>
  34. <result property="oeseInfo" column="OESE_INFO"/>
  35. <result property="recPersId" column="REC_PERS_ID"/>
  36. <result property="intm" column="INTM"/>
  37. <result property="uptm" column="UPTM"/>
  38. <result property="dataStat" column="DATA_STAT"/>
  39. <result property="manageProtect" column="MANAGE_PROTECT"/>
  40. </resultMap>
  41. <sql id="table_columns">
  42. LKCMB_HAS_LDOGCSOSJ,
  43. LKCMB_HAS_SADSATBDA,
  44. LKCMB_HAS_TEDAIFAB,
  45. LKCMB_HAS_TBCTTSIB,
  46. LKCMB_HAS_TUSOFIO,
  47. UADCOGC_HAS_DMG,
  48. UADCOGC_HAS_EASAPITR,
  49. UADRAEAOS_HAS_EASAPITR,
  50. UADRAEAOS_HAS_DMG,
  51. UADRAEAOS_HAS_DATNOOTL,
  52. GATE_HAS_RD,
  53. GATE_HAS_TSIBAI,
  54. GATE_HAS_FLAW,
  55. OCD_IS_MNOACR,
  56. OCD_HAS_COL,
  57. OCD_HAS_PDAM,
  58. DF_HAS_TOHT,
  59. DF_IS_NOOPS,
  60. DF_HAS_GFL,
  61. SMF_HAS_PFPF,
  62. SMF_IS_TMAASIRN,
  63. SMF_IS_SUNSPASMF,
  64. ID,
  65. RGSTR_ID,
  66. CTAP_IS_DAM,
  67. STROB_IS_D_WI_SR,
  68. GAHSI_INFO,
  69. EEO_IS_N,
  70. ICAAECS_IS_H,
  71. OESE_INFO,
  72. REC_PERS_ID,
  73. INTM,
  74. UPTM,
  75. DATA_STAT,
  76. MANAGE_PROTECT
  77. </sql>
  78. <sql id="entity_properties">
  79. #{lkcmbHasLdogcsosj},
  80. #{lkcmbHasSadsatbda},
  81. #{lkcmbHasTedaifab},
  82. #{lkcmbHasTbcttsib},
  83. #{lkcmbHasTusofio},
  84. #{uadcogcHasDmg},
  85. #{uadcogcHasEasapitr},
  86. #{uadraeaosHasEasapitr},
  87. #{uadraeaosHasDmg},
  88. #{uadraeaosHasDatnootl},
  89. #{gateHasRd},
  90. #{gateHasTsibai},
  91. #{gateHasFlaw},
  92. #{ocdIsMnoacr},
  93. #{ocdHasCol},
  94. #{ocdHasPdam},
  95. #{dfHasToht},
  96. #{dfIsNoops},
  97. #{dfHasGfl},
  98. #{smfHasPfpf},
  99. #{smfIsTmaasirn},
  100. #{smfIsSunspasmf},
  101. #{id},
  102. #{rgstrId},
  103. #{ctapIsDam},
  104. #{strobIsDWiSr},
  105. #{gahsiInfo},
  106. #{eeoIsN},
  107. #{icaaecsIsH},
  108. #{oeseInfo},
  109. #{recPersId},
  110. #{intm},
  111. #{uptm},
  112. #{dataStat},
  113. #{manageProtect}
  114. </sql>
  115. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  116. <sql id="page_where">
  117. <trim prefix="where" prefixOverrides="and | or ">
  118. <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">and LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj}</if>
  119. <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">and LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda}</if>
  120. <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">and LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab}</if>
  121. <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">and LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib}</if>
  122. <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">and LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio}</if>
  123. <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">and UADCOGC_HAS_DMG = #{uadcogcHasDmg}</if>
  124. <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">and UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr}</if>
  125. <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">and UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr}</if>
  126. <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">and UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg}</if>
  127. <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">and UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl}</if>
  128. <if test="gateHasRd != null and gateHasRd != ''">and GATE_HAS_RD = #{gateHasRd}</if>
  129. <if test="gateHasTsibai != null and gateHasTsibai != ''">and GATE_HAS_TSIBAI = #{gateHasTsibai}</if>
  130. <if test="gateHasFlaw != null and gateHasFlaw != ''">and GATE_HAS_FLAW = #{gateHasFlaw}</if>
  131. <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">and OCD_IS_MNOACR = #{ocdIsMnoacr}</if>
  132. <if test="ocdHasCol != null and ocdHasCol != ''">and OCD_HAS_COL = #{ocdHasCol}</if>
  133. <if test="ocdHasPdam != null and ocdHasPdam != ''">and OCD_HAS_PDAM = #{ocdHasPdam}</if>
  134. <if test="dfHasToht != null and dfHasToht != ''">and DF_HAS_TOHT = #{dfHasToht}</if>
  135. <if test="dfIsNoops != null and dfIsNoops != ''">and DF_IS_NOOPS = #{dfIsNoops}</if>
  136. <if test="dfHasGfl != null and dfHasGfl != ''">and DF_HAS_GFL = #{dfHasGfl}</if>
  137. <if test="smfHasPfpf != null and smfHasPfpf != ''">and SMF_HAS_PFPF = #{smfHasPfpf}</if>
  138. <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">and SMF_IS_TMAASIRN = #{smfIsTmaasirn}</if>
  139. <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">and SMF_IS_SUNSPASMF = #{smfIsSunspasmf}</if>
  140. <if test="id != null and id != ''">and ID = #{id}</if>
  141. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  142. <if test="ctapIsDam != null and ctapIsDam != ''">and CTAP_IS_DAM = #{ctapIsDam}</if>
  143. <if test="strobIsDWiSr != null and strobIsDWiSr != ''">and STROB_IS_D_WI_SR = #{strobIsDWiSr}</if>
  144. <if test="gahsiInfo != null and gahsiInfo != ''">and GAHSI_INFO = #{gahsiInfo}</if>
  145. <if test="eeoIsN != null and eeoIsN != ''">and EEO_IS_N = #{eeoIsN}</if>
  146. <if test="icaaecsIsH != null and icaaecsIsH != ''">and ICAAECS_IS_H = #{icaaecsIsH}</if>
  147. <if test="oeseInfo != null and oeseInfo != ''">and OESE_INFO = #{oeseInfo}</if>
  148. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  149. <if test="intm != null">and INTM = #{intm}</if>
  150. <if test="uptm != null">and UPTM = #{uptm}</if>
  151. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  152. <if test="manageProtect != null and manageProtect != ''">and MANAGE_PROTECT = #{manageProtect}</if>
  153. </trim>
  154. </sql>
  155. <select id="get" resultMap="bisInspWagaProenInfoResultMap" parameterType="String" >
  156. select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO where ID = #{id}
  157. </select>
  158. <select id="getBy" resultMap="bisInspWagaProenInfoResultMap">
  159. select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
  160. </select>
  161. <select id="findAll" resultMap="bisInspWagaProenInfoResultMap">
  162. select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO
  163. </select>
  164. <select id="findList" resultMap="bisInspWagaProenInfoResultMap">
  165. select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
  166. </select>
  167. <select id="selectCount" resultType="int" >
  168. select count(ID) from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
  169. </select>
  170. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
  171. insert into BIS_INSP_WAGA_PROEN_INFO( <include refid="table_columns" /> )
  172. values ( <include refid="entity_properties" /> )
  173. </insert>
  174. <delete id="delete" parameterType="java.lang.String">
  175. delete from BIS_INSP_WAGA_PROEN_INFO where ID = #{id}
  176. </delete>
  177. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
  178. delete from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
  179. </delete>
  180. <update id="deleteInFlag" parameterType="java.lang.String">
  181. update BIS_INSP_WAGA_PROEN_INFO set flag_valid = 0 where ID = #{id}
  182. </update>
  183. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
  184. update BIS_INSP_WAGA_PROEN_INFO
  185. <trim prefix="set" suffixOverrides=",">
  186. <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj},</if>
  187. <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda},</if>
  188. <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab},</if>
  189. <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib},</if>
  190. <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio},</if>
  191. <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">UADCOGC_HAS_DMG = #{uadcogcHasDmg},</if>
  192. <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr},</if>
  193. <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr},</if>
  194. <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg},</if>
  195. <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl},</if>
  196. <if test="gateHasRd != null and gateHasRd != ''">GATE_HAS_RD = #{gateHasRd},</if>
  197. <if test="gateHasTsibai != null and gateHasTsibai != ''">GATE_HAS_TSIBAI = #{gateHasTsibai},</if>
  198. <if test="gateHasFlaw != null and gateHasFlaw != ''">GATE_HAS_FLAW = #{gateHasFlaw},</if>
  199. <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">OCD_IS_MNOACR = #{ocdIsMnoacr},</if>
  200. <if test="ocdHasCol != null and ocdHasCol != ''">OCD_HAS_COL = #{ocdHasCol},</if>
  201. <if test="ocdHasPdam != null and ocdHasPdam != ''">OCD_HAS_PDAM = #{ocdHasPdam},</if>
  202. <if test="dfHasToht != null and dfHasToht != ''">DF_HAS_TOHT = #{dfHasToht},</if>
  203. <if test="dfIsNoops != null and dfIsNoops != ''">DF_IS_NOOPS = #{dfIsNoops},</if>
  204. <if test="dfHasGfl != null and dfHasGfl != ''">DF_HAS_GFL = #{dfHasGfl},</if>
  205. <if test="smfHasPfpf != null and smfHasPfpf != ''">SMF_HAS_PFPF = #{smfHasPfpf},</if>
  206. <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">SMF_IS_TMAASIRN = #{smfIsTmaasirn},</if>
  207. <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">SMF_IS_SUNSPASMF = #{smfIsSunspasmf},</if>
  208. <if test="id != null and id != ''">ID = #{id},</if>
  209. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  210. <if test="ctapIsDam != null and ctapIsDam != ''">CTAP_IS_DAM = #{ctapIsDam},</if>
  211. <if test="strobIsDWiSr != null and strobIsDWiSr != ''">STROB_IS_D_WI_SR = #{strobIsDWiSr},</if>
  212. <if test="gahsiInfo != null and gahsiInfo != ''">GAHSI_INFO = #{gahsiInfo},</if>
  213. <if test="eeoIsN != null and eeoIsN != ''">EEO_IS_N = #{eeoIsN},</if>
  214. <if test="icaaecsIsH != null and icaaecsIsH != ''">ICAAECS_IS_H = #{icaaecsIsH},</if>
  215. <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
  216. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  217. <if test="intm != null">INTM = #{intm},</if>
  218. <if test="uptm != null">UPTM = #{uptm},</if>
  219. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  220. <if test="manageProtect != null and manageProtect != ''">MANAGE_PROTECT = #{manageProtect},</if>
  221. </trim>
  222. <where>ID = #{id}</where>
  223. </update>
  224. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
  225. update BIS_INSP_WAGA_PROEN_INFO
  226. <trim prefix="set" suffixOverrides=",">
  227. <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj},</if>
  228. <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda},</if>
  229. <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab},</if>
  230. <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib},</if>
  231. <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio},</if>
  232. <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">UADCOGC_HAS_DMG = #{uadcogcHasDmg},</if>
  233. <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr},</if>
  234. <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr},</if>
  235. <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg},</if>
  236. <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl},</if>
  237. <if test="gateHasRd != null and gateHasRd != ''">GATE_HAS_RD = #{gateHasRd},</if>
  238. <if test="gateHasTsibai != null and gateHasTsibai != ''">GATE_HAS_TSIBAI = #{gateHasTsibai},</if>
  239. <if test="gateHasFlaw != null and gateHasFlaw != ''">GATE_HAS_FLAW = #{gateHasFlaw},</if>
  240. <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">OCD_IS_MNOACR = #{ocdIsMnoacr},</if>
  241. <if test="ocdHasCol != null and ocdHasCol != ''">OCD_HAS_COL = #{ocdHasCol},</if>
  242. <if test="ocdHasPdam != null and ocdHasPdam != ''">OCD_HAS_PDAM = #{ocdHasPdam},</if>
  243. <if test="dfHasToht != null and dfHasToht != ''">DF_HAS_TOHT = #{dfHasToht},</if>
  244. <if test="dfIsNoops != null and dfIsNoops != ''">DF_IS_NOOPS = #{dfIsNoops},</if>
  245. <if test="dfHasGfl != null and dfHasGfl != ''">DF_HAS_GFL = #{dfHasGfl},</if>
  246. <if test="smfHasPfpf != null and smfHasPfpf != ''">SMF_HAS_PFPF = #{smfHasPfpf},</if>
  247. <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">SMF_IS_TMAASIRN = #{smfIsTmaasirn},</if>
  248. <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">SMF_IS_SUNSPASMF = #{smfIsSunspasmf},</if>
  249. <if test="id != null and id != ''">ID = #{id},</if>
  250. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  251. <if test="ctapIsDam != null and ctapIsDam != ''">CTAP_IS_DAM = #{ctapIsDam},</if>
  252. <if test="strobIsDWiSr != null and strobIsDWiSr != ''">STROB_IS_D_WI_SR = #{strobIsDWiSr},</if>
  253. <if test="gahsiInfo != null and gahsiInfo != ''">GAHSI_INFO = #{gahsiInfo},</if>
  254. <if test="eeoIsN != null and eeoIsN != ''">EEO_IS_N = #{eeoIsN},</if>
  255. <if test="icaaecsIsH != null and icaaecsIsH != ''">ICAAECS_IS_H = #{icaaecsIsH},</if>
  256. <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
  257. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  258. <if test="intm != null">INTM = #{intm},</if>
  259. <if test="uptm != null">UPTM = #{uptm},</if>
  260. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  261. <if test="manageProtect != null and manageProtect != ''">MANAGE_PROTECT = #{manageProtect},</if>
  262. </trim>
  263. <include refid="page_where" />
  264. </update>
  265. <!-- 其他自定义SQL -->
  266. </mapper>