BisInspWrmRgstrMacowiagDao.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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.BisInspWrmRgstrMacowiagDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag" id="bisInspWrmRgstrMacowiagResultMap">
  5. <result property="id" column="ID" />
  6. <result property="rgstrId" column="RGSTR_ID" />
  7. <result property="rwaIsClear" column="RWA_IS_CLEAR" />
  8. <result property="crsdIsTtws" column="CRSD_IS_TTWS" />
  9. <result property="isTaowtfgGlci" column="IS_TAOWTFG_GLCI" />
  10. <result property="iaulgimIsAs" column="IAULGIM_IS_AS" />
  11. <result property="iaulgimRate" column="IAULGIM_RATE" />
  12. <result property="tattaowiIsEtrawotwici" column="TATTAOWI_IS_ETRAWOTWICI" />
  13. <result property="agwIsEarg" column="AGW_IS_EARG" />
  14. <result property="isAbuwusssaptlEwus" column="IS_ABUWUSSSAPTL_EWUS" />
  15. <result property="isTdwrmstrFwusd" column="IS_TDWRMSTR_FWUSD" />
  16. <result property="caawtiIsCrwcsbwcdrs" column="CAAWTI_IS_CRWCSBWCDRS" />
  17. <result property="rwislwiIsCcwidr" column="RWISLWI_IS_CCWIDR" />
  18. <result property="isErgipl" column="IS_ERGIPL" />
  19. <result property="gwipsbIsTu" column="GWIPSB_IS_TU" />
  20. <result property="swncacwspnuwmzIsKsbUt" column="SWNCACWSPNUWMZ_IS_KSB_UT" />
  21. <result property="nmrmaIsIiww" column="NMRMA_IS_IIWW" />
  22. <result property="goaIsPgpap" column="GOA_IS_PGPAP" />
  23. <result property="goIsGeg" column="GO_IS_GEG" />
  24. <result property="persId" column="PERS_ID" />
  25. <result property="intm" column="INTM" />
  26. <result property="uptm" column="UPTM" />
  27. <result property="status" column="STATUS"/>
  28. </resultMap>
  29. <sql id="table_columns">
  30. ID,
  31. RGSTR_ID,
  32. RWA_IS_CLEAR,
  33. CRSD_IS_TTWS,
  34. IS_TAOWTFG_GLCI,
  35. IAULGIM_IS_AS,
  36. IAULGIM_RATE,
  37. TATTAOWI_IS_ETRAWOTWICI,
  38. AGW_IS_EARG,
  39. IS_ABUWUSSSAPTL_EWUS,
  40. IS_TDWRMSTR_FWUSD,
  41. CAAWTI_IS_CRWCSBWCDRS,
  42. RWISLWI_IS_CCWIDR,
  43. IS_ERGIPL,
  44. GWIPSB_IS_TU,
  45. SWNCACWSPNUWMZ_IS_KSB_UT,
  46. NMRMA_IS_IIWW,
  47. GOA_IS_PGPAP,
  48. GO_IS_GEG,
  49. PERS_ID,
  50. INTM,
  51. UPTM,
  52. STATUS
  53. </sql>
  54. <sql id="entity_properties">
  55. #{id},
  56. #{rgstrId},
  57. #{rwaIsClear},
  58. #{crsdIsTtws},
  59. #{isTaowtfgGlci},
  60. #{iaulgimIsAs},
  61. #{iaulgimRate},
  62. #{tattaowiIsEtrawotwici},
  63. #{agwIsEarg},
  64. #{isAbuwusssaptlEwus},
  65. #{isTdwrmstrFwusd},
  66. #{caawtiIsCrwcsbwcdrs},
  67. #{rwislwiIsCcwidr},
  68. #{isErgipl},
  69. #{gwipsbIsTu},
  70. #{swncacwspnuwmzIsKsbUt},
  71. #{nmrmaIsIiww},
  72. #{goaIsPgpap},
  73. #{goIsGeg},
  74. #{persId},
  75. #{intm},
  76. #{uptm},
  77. #{status}
  78. </sql>
  79. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  80. <sql id="page_where">
  81. <trim prefix="where" prefixOverrides="and | or ">
  82. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  83. <if test="rwaIsClear != null and rwaIsClear != ''">and RWA_IS_CLEAR = #{rwaIsClear}</if>
  84. <if test="crsdIsTtws != null and crsdIsTtws != ''">and CRSD_IS_TTWS = #{crsdIsTtws}</if>
  85. <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">and IS_TAOWTFG_GLCI = #{isTaowtfgGlci}</if>
  86. <if test="iaulgimIsAs != null and iaulgimIsAs != ''">and IAULGIM_IS_AS = #{iaulgimIsAs}</if>
  87. <if test="iaulgimRate != null and iaulgimRate != ''">and IAULGIM_RATE = #{iaulgimRate}</if>
  88. <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">and TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici}</if>
  89. <if test="agwIsEarg != null and agwIsEarg != ''">and AGW_IS_EARG = #{agwIsEarg}</if>
  90. <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">and IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus}</if>
  91. <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">and IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd}</if>
  92. <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">and CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs}</if>
  93. <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">and RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr}</if>
  94. <if test="isErgipl != null and isErgipl != ''">and IS_ERGIPL = #{isErgipl}</if>
  95. <if test="gwipsbIsTu != null and gwipsbIsTu != ''">and GWIPSB_IS_TU = #{gwipsbIsTu}</if>
  96. <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">and SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt}</if>
  97. <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">and NMRMA_IS_IIWW = #{nmrmaIsIiww}</if>
  98. <if test="goaIsPgpap != null and goaIsPgpap != ''">and GOA_IS_PGPAP = #{goaIsPgpap}</if>
  99. <if test="goIsGeg != null and goIsGeg != ''">and GO_IS_GEG = #{goIsGeg}</if>
  100. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  101. <if test="intm != null">and INTM = #{intm}</if>
  102. <if test="uptm != null">and UPTM = #{uptm}</if>
  103. <if test="status != null and status != ''">and STATUS = #{status}</if>
  104. </trim>
  105. </sql>
  106. <select id="get" resultMap="bisInspWrmRgstrMacowiagResultMap" parameterType="String" >
  107. select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG where ID = #{id}
  108. </select>
  109. <select id="getBy" resultMap="bisInspWrmRgstrMacowiagResultMap">
  110. select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
  111. </select>
  112. <select id="findAll" resultMap="bisInspWrmRgstrMacowiagResultMap">
  113. select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG
  114. </select>
  115. <select id="findList" resultMap="bisInspWrmRgstrMacowiagResultMap">
  116. select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
  117. </select>
  118. <select id="selectCount" resultType="int" >
  119. select count(ID) from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
  120. </select>
  121. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
  122. insert into BIS_INSP_WRM_RGSTR_MACOWIAG( <include refid="table_columns" /> )
  123. values ( <include refid="entity_properties" /> )
  124. </insert>
  125. <delete id="delete" parameterType="java.lang.String">
  126. delete from BIS_INSP_WRM_RGSTR_MACOWIAG where ID = #{id}
  127. </delete>
  128. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
  129. delete from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
  130. </delete>
  131. <update id="deleteInFlag" parameterType="java.lang.String">
  132. update BIS_INSP_WRM_RGSTR_MACOWIAG set flag_valid = 0 where>ID = #{id}
  133. </update>
  134. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
  135. update BIS_INSP_WRM_RGSTR_MACOWIAG
  136. <trim prefix="set" suffixOverrides=",">
  137. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  138. <if test="rwaIsClear != null and rwaIsClear != ''">RWA_IS_CLEAR = #{rwaIsClear},</if>
  139. <if test="crsdIsTtws != null and crsdIsTtws != ''">CRSD_IS_TTWS = #{crsdIsTtws},</if>
  140. <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">IS_TAOWTFG_GLCI = #{isTaowtfgGlci},</if>
  141. <if test="iaulgimIsAs != null and iaulgimIsAs != ''">IAULGIM_IS_AS = #{iaulgimIsAs},</if>
  142. <if test="iaulgimRate != null and iaulgimRate != ''">IAULGIM_RATE = #{iaulgimRate},</if>
  143. <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici},</if>
  144. <if test="agwIsEarg != null and agwIsEarg != ''">AGW_IS_EARG = #{agwIsEarg},</if>
  145. <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus},</if>
  146. <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd},</if>
  147. <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs},</if>
  148. <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr},</if>
  149. <if test="isErgipl != null and isErgipl != ''">IS_ERGIPL = #{isErgipl},</if>
  150. <if test="gwipsbIsTu != null and gwipsbIsTu != ''">GWIPSB_IS_TU = #{gwipsbIsTu},</if>
  151. <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt},</if>
  152. <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">NMRMA_IS_IIWW = #{nmrmaIsIiww},</if>
  153. <if test="goaIsPgpap != null and goaIsPgpap != ''">GOA_IS_PGPAP = #{goaIsPgpap},</if>
  154. <if test="goIsGeg != null and goIsGeg != ''">GO_IS_GEG = #{goIsGeg},</if>
  155. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  156. <if test="intm != null">INTM = #{intm},</if>
  157. <if test="uptm != null">UPTM = #{uptm},</if>
  158. <if test="status != null and status != ''">STATUS = #{status},</if>
  159. </trim>
  160. <where>ID = #{id}</where>
  161. </update>
  162. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
  163. update BIS_INSP_WRM_RGSTR_MACOWIAG
  164. <trim prefix="set" suffixOverrides=",">
  165. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  166. <if test="rwaIsClear != null and rwaIsClear != ''">RWA_IS_CLEAR = #{rwaIsClear},</if>
  167. <if test="crsdIsTtws != null and crsdIsTtws != ''">CRSD_IS_TTWS = #{crsdIsTtws},</if>
  168. <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">IS_TAOWTFG_GLCI = #{isTaowtfgGlci},</if>
  169. <if test="iaulgimIsAs != null and iaulgimIsAs != ''">IAULGIM_IS_AS = #{iaulgimIsAs},</if>
  170. <if test="iaulgimRate != null and iaulgimRate != ''">IAULGIM_RATE = #{iaulgimRate},</if>
  171. <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici},</if>
  172. <if test="agwIsEarg != null and agwIsEarg != ''">AGW_IS_EARG = #{agwIsEarg},</if>
  173. <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus},</if>
  174. <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd},</if>
  175. <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs},</if>
  176. <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr},</if>
  177. <if test="isErgipl != null and isErgipl != ''">IS_ERGIPL = #{isErgipl},</if>
  178. <if test="gwipsbIsTu != null and gwipsbIsTu != ''">GWIPSB_IS_TU = #{gwipsbIsTu},</if>
  179. <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt},</if>
  180. <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">NMRMA_IS_IIWW = #{nmrmaIsIiww},</if>
  181. <if test="goaIsPgpap != null and goaIsPgpap != ''">GOA_IS_PGPAP = #{goaIsPgpap},</if>
  182. <if test="goIsGeg != null and goIsGeg != ''">GO_IS_GEG = #{goIsGeg},</if>
  183. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  184. <if test="intm != null">INTM = #{intm},</if>
  185. <if test="uptm != null">UPTM = #{uptm},</if>
  186. <if test="status != null and status != ''">STATUS = #{status},</if>
  187. </trim>
  188. <include refid="page_where" />
  189. </update>
  190. <!-- 其他自定义SQL -->
  191. </mapper>