BisInspFundFinaDao.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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.BisInspFundFinaDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFundFina" id="bisInspFundFinaResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isPeopStipuliate" column="IS_PEOP_STIPULIATE"/>
  8. <result property="isTellerStipuliate" column="IS_TELLER_STIPULIATE"/>
  9. <result property="isBuildManage" column="IS_BUILD_MANAGE"/>
  10. <result property="isImpleSystem" column="IS_IMPLE_SYSTEM"/>
  11. <result property="isSystemComp" column="IS_SYSTEM_COMP"/>
  12. <result property="isForgeReport" column="IS_FORGE_REPORT"/>
  13. <result property="isAlterProof" column="IS_ALTER_PROOF"/>
  14. <result property="isTimelyCollect" column="IS_TIMELY_COLLECT"/>
  15. <result property="isProofStipuliate" column="IS_PROOF_STIPULIATE"/>
  16. <result property="isBillManage" column="IS_BILL_MANAGE"/>
  17. <result property="isBillComp" column="IS_BILL_COMP"/>
  18. <result property="isSaveFile" column="IS_SAVE_FILE"/>
  19. <result property="isReportSign" column="IS_REPORT_SIGN"/>
  20. <result property="isPeopTakeover" column="IS_PEOP_TAKEOVER"/>
  21. <result property="isWriteStipuliate" column="IS_WRITE_STIPULIATE"/>
  22. <result property="isSealManage" column="IS_SEAL_MANAGE"/>
  23. <result property="isPblmReform" column="IS_PBLM_REFORM"/>
  24. <result property="isPriceAccura" column="IS_PRICE_ACCURA"/>
  25. <result property="isProcdComp" column="IS_PROCD_COMP"/>
  26. <result property="isWriteComp" column="IS_WRITE_COMP"/>
  27. <result property="isViolateStipuliate" column="IS_VIOLATE_STIPULIATE"/>
  28. <result property="state" column="STATE"/>
  29. <result property="persId" column="PERS_ID"/>
  30. <result property="intm" column="INTM"/>
  31. <result property="uptm" column="UPTM"/>
  32. <result property="dataStat" column="DATA_STAT"/>
  33. </resultMap>
  34. <sql id="table_columns">
  35. ID,
  36. RGSTR_ID,
  37. IS_PEOP_STIPULIATE,
  38. IS_TELLER_STIPULIATE,
  39. IS_BUILD_MANAGE,
  40. IS_IMPLE_SYSTEM,
  41. IS_SYSTEM_COMP,
  42. IS_FORGE_REPORT,
  43. IS_ALTER_PROOF,
  44. IS_TIMELY_COLLECT,
  45. IS_PROOF_STIPULIATE,
  46. IS_BILL_MANAGE,
  47. IS_BILL_COMP,
  48. IS_SAVE_FILE,
  49. IS_REPORT_SIGN,
  50. IS_PEOP_TAKEOVER,
  51. IS_WRITE_STIPULIATE,
  52. IS_SEAL_MANAGE,
  53. IS_PBLM_REFORM,
  54. IS_PRICE_ACCURA,
  55. IS_PROCD_COMP,
  56. IS_WRITE_COMP,
  57. IS_VIOLATE_STIPULIATE,
  58. STATE,
  59. PERS_ID,
  60. INTM,
  61. UPTM,
  62. DATA_STAT
  63. </sql>
  64. <sql id="entity_properties">
  65. #{id},
  66. #{rgstrId},
  67. #{isPeopStipuliate},
  68. #{isTellerStipuliate},
  69. #{isBuildManage},
  70. #{isImpleSystem},
  71. #{isSystemComp},
  72. #{isForgeReport},
  73. #{isAlterProof},
  74. #{isTimelyCollect},
  75. #{isProofStipuliate},
  76. #{isBillManage},
  77. #{isBillComp},
  78. #{isSaveFile},
  79. #{isReportSign},
  80. #{isPeopTakeover},
  81. #{isWriteStipuliate},
  82. #{isSealManage},
  83. #{isPblmReform},
  84. #{isPriceAccura},
  85. #{isProcdComp},
  86. #{isWriteComp},
  87. #{isViolateStipuliate},
  88. #{state},
  89. #{persId},
  90. #{intm},
  91. #{uptm},
  92. #{dataStat}
  93. </sql>
  94. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  95. <sql id="page_where">
  96. <trim prefix="where" prefixOverrides="and | or ">
  97. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  98. <if test="isPeopStipuliate != null and isPeopStipuliate != ''">and IS_PEOP_STIPULIATE = #{isPeopStipuliate}</if>
  99. <if test="isTellerStipuliate != null and isTellerStipuliate != ''">and IS_TELLER_STIPULIATE = #{isTellerStipuliate}</if>
  100. <if test="isBuildManage != null and isBuildManage != ''">and IS_BUILD_MANAGE = #{isBuildManage}</if>
  101. <if test="isImpleSystem != null and isImpleSystem != ''">and IS_IMPLE_SYSTEM = #{isImpleSystem}</if>
  102. <if test="isSystemComp != null and isSystemComp != ''">and IS_SYSTEM_COMP = #{isSystemComp}</if>
  103. <if test="isForgeReport != null and isForgeReport != ''">and IS_FORGE_REPORT = #{isForgeReport}</if>
  104. <if test="isAlterProof != null and isAlterProof != ''">and IS_ALTER_PROOF = #{isAlterProof}</if>
  105. <if test="isTimelyCollect != null and isTimelyCollect != ''">and IS_TIMELY_COLLECT = #{isTimelyCollect}</if>
  106. <if test="isProofStipuliate != null and isProofStipuliate != ''">and IS_PROOF_STIPULIATE = #{isProofStipuliate}</if>
  107. <if test="isBillManage != null and isBillManage != ''">and IS_BILL_MANAGE = #{isBillManage}</if>
  108. <if test="isBillComp != null and isBillComp != ''">and IS_BILL_COMP = #{isBillComp}</if>
  109. <if test="isSaveFile != null and isSaveFile != ''">and IS_SAVE_FILE = #{isSaveFile}</if>
  110. <if test="isReportSign != null and isReportSign != ''">and IS_REPORT_SIGN = #{isReportSign}</if>
  111. <if test="isPeopTakeover != null and isPeopTakeover != ''">and IS_PEOP_TAKEOVER = #{isPeopTakeover}</if>
  112. <if test="isWriteStipuliate != null and isWriteStipuliate != ''">and IS_WRITE_STIPULIATE = #{isWriteStipuliate}</if>
  113. <if test="isSealManage != null and isSealManage != ''">and IS_SEAL_MANAGE = #{isSealManage}</if>
  114. <if test="isPblmReform != null and isPblmReform != ''">and IS_PBLM_REFORM = #{isPblmReform}</if>
  115. <if test="isPriceAccura != null and isPriceAccura != ''">and IS_PRICE_ACCURA = #{isPriceAccura}</if>
  116. <if test="isProcdComp != null and isProcdComp != ''">and IS_PROCD_COMP = #{isProcdComp}</if>
  117. <if test="isWriteComp != null and isWriteComp != ''">and IS_WRITE_COMP = #{isWriteComp}</if>
  118. <if test="isViolateStipuliate != null and isViolateStipuliate != ''">and IS_VIOLATE_STIPULIATE = #{isViolateStipuliate}</if>
  119. <if test="state != null and state != ''">and STATE = #{state}</if>
  120. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  121. <if test="intm != null">and INTM = #{intm}</if>
  122. <if test="uptm != null">and UPTM = #{uptm}</if>
  123. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  124. </trim>
  125. </sql>
  126. <select id="get" resultMap="bisInspFundFinaResultMap" parameterType="String" >
  127. select <include refid="table_columns" /> from BIS_INSP_FUND_FINA where RGSTR_ID = #{id}
  128. </select>
  129. <select id="getBy" resultMap="bisInspFundFinaResultMap">
  130. select <include refid="table_columns" /> from BIS_INSP_FUND_FINA <include refid="page_where" />
  131. </select>
  132. <select id="findAll" resultMap="bisInspFundFinaResultMap">
  133. select <include refid="table_columns" /> from BIS_INSP_FUND_FINA
  134. </select>
  135. <select id="findList" resultMap="bisInspFundFinaResultMap">
  136. select <include refid="table_columns" /> from BIS_INSP_FUND_FINA <include refid="page_where" />
  137. </select>
  138. <select id="selectCount" resultType="int" >
  139. select count(ID) from BIS_INSP_FUND_FINA <include refid="page_where" />
  140. </select>
  141. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
  142. insert into BIS_INSP_FUND_FINA( <include refid="table_columns" /> )
  143. values ( <include refid="entity_properties" /> )
  144. </insert>
  145. <delete id="delete" parameterType="java.lang.String">
  146. update BIS_INSP_FUND_FINA set DATA_STAT='9' where ID = #{id}
  147. </delete>
  148. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
  149. delete from BIS_INSP_FUND_FINA <include refid="page_where" />
  150. </delete>
  151. <update id="deleteInFlag" parameterType="java.lang.String">
  152. update BIS_INSP_FUND_FINA set flag_valid = 0 where ID = #{id}
  153. </update>
  154. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
  155. update BIS_INSP_FUND_FINA
  156. <trim prefix="set" suffixOverrides=",">
  157. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  158. <if test="isPeopStipuliate != null and isPeopStipuliate != ''">IS_PEOP_STIPULIATE = #{isPeopStipuliate},</if>
  159. <if test="isTellerStipuliate != null and isTellerStipuliate != ''">IS_TELLER_STIPULIATE = #{isTellerStipuliate},</if>
  160. <if test="isBuildManage != null and isBuildManage != ''">IS_BUILD_MANAGE = #{isBuildManage},</if>
  161. <if test="isImpleSystem != null and isImpleSystem != ''">IS_IMPLE_SYSTEM = #{isImpleSystem},</if>
  162. <if test="isSystemComp != null and isSystemComp != ''">IS_SYSTEM_COMP = #{isSystemComp},</if>
  163. <if test="isForgeReport != null and isForgeReport != ''">IS_FORGE_REPORT = #{isForgeReport},</if>
  164. <if test="isAlterProof != null and isAlterProof != ''">IS_ALTER_PROOF = #{isAlterProof},</if>
  165. <if test="isTimelyCollect != null and isTimelyCollect != ''">IS_TIMELY_COLLECT = #{isTimelyCollect},</if>
  166. <if test="isProofStipuliate != null and isProofStipuliate != ''">IS_PROOF_STIPULIATE = #{isProofStipuliate},</if>
  167. <if test="isBillManage != null and isBillManage != ''">IS_BILL_MANAGE = #{isBillManage},</if>
  168. <if test="isBillComp != null and isBillComp != ''">IS_BILL_COMP = #{isBillComp},</if>
  169. <if test="isSaveFile != null and isSaveFile != ''">IS_SAVE_FILE = #{isSaveFile},</if>
  170. <if test="isReportSign != null and isReportSign != ''">IS_REPORT_SIGN = #{isReportSign},</if>
  171. <if test="isPeopTakeover != null and isPeopTakeover != ''">IS_PEOP_TAKEOVER = #{isPeopTakeover},</if>
  172. <if test="isWriteStipuliate != null and isWriteStipuliate != ''">IS_WRITE_STIPULIATE = #{isWriteStipuliate},</if>
  173. <if test="isSealManage != null and isSealManage != ''">IS_SEAL_MANAGE = #{isSealManage},</if>
  174. <if test="isPblmReform != null and isPblmReform != ''">IS_PBLM_REFORM = #{isPblmReform},</if>
  175. <if test="isPriceAccura != null and isPriceAccura != ''">IS_PRICE_ACCURA = #{isPriceAccura},</if>
  176. <if test="isProcdComp != null and isProcdComp != ''">IS_PROCD_COMP = #{isProcdComp},</if>
  177. <if test="isWriteComp != null and isWriteComp != ''">IS_WRITE_COMP = #{isWriteComp},</if>
  178. <if test="isViolateStipuliate != null and isViolateStipuliate != ''">IS_VIOLATE_STIPULIATE = #{isViolateStipuliate},</if>
  179. <if test="state != null and state != ''">STATE = #{state},</if>
  180. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  181. <if test="intm != null">INTM = #{intm},</if>
  182. <if test="uptm != null">UPTM = #{uptm},</if>
  183. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  184. </trim>
  185. <where>ID = #{id}</where>
  186. </update>
  187. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
  188. update BIS_INSP_FUND_FINA
  189. <trim prefix="set" suffixOverrides=",">
  190. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  191. <if test="isPeopStipuliate != null and isPeopStipuliate != ''">IS_PEOP_STIPULIATE = #{isPeopStipuliate},</if>
  192. <if test="isTellerStipuliate != null and isTellerStipuliate != ''">IS_TELLER_STIPULIATE = #{isTellerStipuliate},</if>
  193. <if test="isBuildManage != null and isBuildManage != ''">IS_BUILD_MANAGE = #{isBuildManage},</if>
  194. <if test="isImpleSystem != null and isImpleSystem != ''">IS_IMPLE_SYSTEM = #{isImpleSystem},</if>
  195. <if test="isSystemComp != null and isSystemComp != ''">IS_SYSTEM_COMP = #{isSystemComp},</if>
  196. <if test="isForgeReport != null and isForgeReport != ''">IS_FORGE_REPORT = #{isForgeReport},</if>
  197. <if test="isAlterProof != null and isAlterProof != ''">IS_ALTER_PROOF = #{isAlterProof},</if>
  198. <if test="isTimelyCollect != null and isTimelyCollect != ''">IS_TIMELY_COLLECT = #{isTimelyCollect},</if>
  199. <if test="isProofStipuliate != null and isProofStipuliate != ''">IS_PROOF_STIPULIATE = #{isProofStipuliate},</if>
  200. <if test="isBillManage != null and isBillManage != ''">IS_BILL_MANAGE = #{isBillManage},</if>
  201. <if test="isBillComp != null and isBillComp != ''">IS_BILL_COMP = #{isBillComp},</if>
  202. <if test="isSaveFile != null and isSaveFile != ''">IS_SAVE_FILE = #{isSaveFile},</if>
  203. <if test="isReportSign != null and isReportSign != ''">IS_REPORT_SIGN = #{isReportSign},</if>
  204. <if test="isPeopTakeover != null and isPeopTakeover != ''">IS_PEOP_TAKEOVER = #{isPeopTakeover},</if>
  205. <if test="isWriteStipuliate != null and isWriteStipuliate != ''">IS_WRITE_STIPULIATE = #{isWriteStipuliate},</if>
  206. <if test="isSealManage != null and isSealManage != ''">IS_SEAL_MANAGE = #{isSealManage},</if>
  207. <if test="isPblmReform != null and isPblmReform != ''">IS_PBLM_REFORM = #{isPblmReform},</if>
  208. <if test="isPriceAccura != null and isPriceAccura != ''">IS_PRICE_ACCURA = #{isPriceAccura},</if>
  209. <if test="isProcdComp != null and isProcdComp != ''">IS_PROCD_COMP = #{isProcdComp},</if>
  210. <if test="isWriteComp != null and isWriteComp != ''">IS_WRITE_COMP = #{isWriteComp},</if>
  211. <if test="isViolateStipuliate != null and isViolateStipuliate != ''">IS_VIOLATE_STIPULIATE = #{isViolateStipuliate},</if>
  212. <if test="state != null and state != ''">STATE = #{state},</if>
  213. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  214. <if test="intm != null">INTM = #{intm},</if>
  215. <if test="uptm != null">UPTM = #{uptm},</if>
  216. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  217. </trim>
  218. <include refid="page_where" />
  219. </update>
  220. <!-- 其他自定义SQL -->
  221. </mapper>