TacPawpBitopqPeqaaDao.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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.TacPawpBitopqPeqaaDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa" id="tacPawpBitopqPeqaaResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="sctnId" column="SCTN_ID"/>
  8. <result property="sctnNm" column="SCTN_NM"/>
  9. <result property="tacId" column="TAC_ID"/>
  10. <result property="tacNm" column="TAC_NM"/>
  11. <result property="rwunitQlctn" column="RWUNIT_QLCTN"/>
  12. <result property="rwunitDfNum" column="RWUNIT_DF_NUM"/>
  13. <result property="rwunitCncltn" column="RWUNIT_CNCLTN"/>
  14. <result property="spvsQlctn" column="SPVS_QLCTN"/>
  15. <result property="spvsDfNum" column="SPVS_DF_NUM"/>
  16. <result property="spvsCncltn" column="SPVS_CNCLTN"/>
  17. <result property="untpjtDvdNum" column="UNTPJT_DVD_NUM"/>
  18. <result property="untpjtHbeNum" column="UNTPJT_HBE_NUM"/>
  19. <result property="untpjtFpy" column="UNTPJT_FPY"/>
  20. <result property="untpjtAprvdNum" column="UNTPJT_APRVD_NUM"/>
  21. <result property="subpjtDvdNum" column="SUBPJT_DVD_NUM"/>
  22. <result property="subpjtHbeNum" column="SUBPJT_HBE_NUM"/>
  23. <result property="subpjtFpy" column="SUBPJT_FPY"/>
  24. <result property="subpjtAprvdNum" column="SUBPJT_APRVD_NUM"/>
  25. <result property="cellpjtDvdNum" column="CELLPJT_DVD_NUM"/>
  26. <result property="cellpjtHbeNum" column="CELLPJT_HBE_NUM"/>
  27. <result property="cellpjtFpy" column="CELLPJT_FPY"/>
  28. <result property="cellpjtAprvdNum" column="CELLPJT_APRVD_NUM"/>
  29. <result property="intmdtAcctnsInfo" column="INTMDT_ACCTNS_INFO"/>
  30. <result property="isSpclAcctns" column="IS_SPCL_ACCTNS"/>
  31. <result property="spclAcctnsTm" column="SPCL_ACCTNS_TM"/>
  32. <result property="spclAcctnsInfo" column="SPCL_ACCTNS_INFO"/>
  33. <result property="compltdAcctnsInfo" column="COMPLTD_ACCTNS_INFO"/>
  34. <result property="remark" column="REMARK"/>
  35. <result property="note" column="NOTE"/>
  36. <result property="persId" column="PERS_ID"/>
  37. <result property="intm" column="INTM"/>
  38. <result property="uptm" column="UPTM"/>
  39. <result property="dataStat" column="DATA_STAT"/>
  40. </resultMap>
  41. <sql id="table_columns">
  42. ID,
  43. RGSTR_ID,
  44. SCTN_ID,
  45. SCTN_NM,
  46. TAC_ID,
  47. TAC_NM,
  48. RWUNIT_QLCTN,
  49. RWUNIT_DF_NUM,
  50. RWUNIT_CNCLTN,
  51. SPVS_QLCTN,
  52. SPVS_DF_NUM,
  53. SPVS_CNCLTN,
  54. UNTPJT_DVD_NUM,
  55. UNTPJT_HBE_NUM,
  56. UNTPJT_FPY,
  57. UNTPJT_APRVD_NUM,
  58. SUBPJT_DVD_NUM,
  59. SUBPJT_HBE_NUM,
  60. SUBPJT_FPY,
  61. SUBPJT_APRVD_NUM,
  62. CELLPJT_DVD_NUM,
  63. CELLPJT_HBE_NUM,
  64. CELLPJT_FPY,
  65. CELLPJT_APRVD_NUM,
  66. INTMDT_ACCTNS_INFO,
  67. IS_SPCL_ACCTNS,
  68. SPCL_ACCTNS_TM,
  69. SPCL_ACCTNS_INFO,
  70. COMPLTD_ACCTNS_INFO,
  71. REMARK,
  72. NOTE,
  73. PERS_ID,
  74. INTM,
  75. UPTM,
  76. DATA_STAT
  77. </sql>
  78. <sql id="entity_properties">
  79. #{id},
  80. #{rgstrId},
  81. #{sctnId},
  82. #{sctnNm},
  83. #{tacId},
  84. #{tacNm},
  85. #{rwunitQlctn},
  86. #{rwunitDfNum},
  87. #{rwunitCncltn},
  88. #{spvsQlctn},
  89. #{spvsDfNum},
  90. #{spvsCncltn},
  91. #{untpjtDvdNum},
  92. #{untpjtHbeNum},
  93. #{untpjtFpy},
  94. #{untpjtAprvdNum},
  95. #{subpjtDvdNum},
  96. #{subpjtHbeNum},
  97. #{subpjtFpy},
  98. #{subpjtAprvdNum},
  99. #{cellpjtDvdNum},
  100. #{cellpjtHbeNum},
  101. #{cellpjtFpy},
  102. #{cellpjtAprvdNum},
  103. #{intmdtAcctnsInfo},
  104. #{isSpclAcctns},
  105. #{spclAcctnsTm},
  106. #{spclAcctnsInfo},
  107. #{compltdAcctnsInfo},
  108. #{remark},
  109. #{note},
  110. #{persId},
  111. #{intm},
  112. #{uptm},
  113. #{dataStat}
  114. </sql>
  115. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  116. <sql id="page_where">
  117. <trim prefix="where" prefixOverrides="and | or ">
  118. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  119. <if test="sctnId != null and sctnId != ''">and SCTN_ID = #{sctnId}</if>
  120. <if test="sctnNm != null and sctnNm != ''">and SCTN_NM like '%${sctnNm}%'</if>
  121. <if test="tacId != null and tacId != ''">and TAC_ID = #{tacId}</if>
  122. <if test="tacNm != null and tacNm != ''">and TAC_NM like '%${tacNm}%'</if>
  123. <if test="rwunitQlctn != null and rwunitQlctn != ''">and RWUNIT_QLCTN = #{rwunitQlctn}</if>
  124. <if test="rwunitDfNum != null and rwunitDfNum != ''">and RWUNIT_DF_NUM = #{rwunitDfNum}</if>
  125. <if test="rwunitCncltn != null and rwunitCncltn != ''">and RWUNIT_CNCLTN = #{rwunitCncltn}</if>
  126. <if test="spvsQlctn != null and spvsQlctn != ''">and SPVS_QLCTN = #{spvsQlctn}</if>
  127. <if test="spvsDfNum != null and spvsDfNum != ''">and SPVS_DF_NUM = #{spvsDfNum}</if>
  128. <if test="spvsCncltn != null and spvsCncltn != ''">and SPVS_CNCLTN = #{spvsCncltn}</if>
  129. <if test="untpjtDvdNum != null and untpjtDvdNum != ''">and UNTPJT_DVD_NUM = #{untpjtDvdNum}</if>
  130. <if test="untpjtHbeNum != null and untpjtHbeNum != ''">and UNTPJT_HBE_NUM = #{untpjtHbeNum}</if>
  131. <if test="untpjtFpy != null and untpjtFpy != ''">and UNTPJT_FPY = #{untpjtFpy}</if>
  132. <if test="untpjtAprvdNum != null and untpjtAprvdNum != ''">and UNTPJT_APRVD_NUM = #{untpjtAprvdNum}</if>
  133. <if test="subpjtDvdNum != null and subpjtDvdNum != ''">and SUBPJT_DVD_NUM = #{subpjtDvdNum}</if>
  134. <if test="subpjtHbeNum != null and subpjtHbeNum != ''">and SUBPJT_HBE_NUM = #{subpjtHbeNum}</if>
  135. <if test="subpjtFpy != null and subpjtFpy != ''">and SUBPJT_FPY = #{subpjtFpy}</if>
  136. <if test="subpjtAprvdNum != null and subpjtAprvdNum != ''">and SUBPJT_APRVD_NUM = #{subpjtAprvdNum}</if>
  137. <if test="cellpjtDvdNum != null and cellpjtDvdNum != ''">and CELLPJT_DVD_NUM = #{cellpjtDvdNum}</if>
  138. <if test="cellpjtHbeNum != null and cellpjtHbeNum != ''">and CELLPJT_HBE_NUM = #{cellpjtHbeNum}</if>
  139. <if test="cellpjtFpy != null and cellpjtFpy != ''">and CELLPJT_FPY = #{cellpjtFpy}</if>
  140. <if test="cellpjtAprvdNum != null and cellpjtAprvdNum != ''">and CELLPJT_APRVD_NUM = #{cellpjtAprvdNum}</if>
  141. <if test="intmdtAcctnsInfo != null and intmdtAcctnsInfo != ''">and INTMDT_ACCTNS_INFO =
  142. #{intmdtAcctnsInfo}
  143. </if>
  144. <if test="isSpclAcctns != null and isSpclAcctns != ''">and IS_SPCL_ACCTNS = #{isSpclAcctns}</if>
  145. <if test="spclAcctnsTm != null and spclAcctnsTm != ''">and SPCL_ACCTNS_TM = #{spclAcctnsTm}</if>
  146. <if test="spclAcctnsInfo != null and spclAcctnsInfo != ''">and SPCL_ACCTNS_INFO = #{spclAcctnsInfo}</if>
  147. <if test="compltdAcctnsInfo != null and compltdAcctnsInfo != ''">and COMPLTD_ACCTNS_INFO =
  148. #{compltdAcctnsInfo}
  149. </if>
  150. <if test="remark != null and remark != ''">and REMARK = #{remark}</if>
  151. <if test="note != null and note != ''">and NOTE = #{note}</if>
  152. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  153. <if test="intm != null">and INTM = #{intm}</if>
  154. <if test="uptm != null">and UPTM = #{uptm}</if>
  155. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  156. </trim>
  157. </sql>
  158. <select id="get" resultMap="tacPawpBitopqPeqaaResultMap" parameterType="String">
  159. select
  160. <include refid="table_columns"/>
  161. from TAC_PAWP_BITOPQ_PEQAA where ID = #{id}
  162. </select>
  163. <select id="getBy" resultMap="tacPawpBitopqPeqaaResultMap">
  164. select
  165. <include refid="table_columns"/>
  166. from TAC_PAWP_BITOPQ_PEQAA
  167. <include refid="page_where"/>
  168. </select>
  169. <select id="findAll" resultMap="tacPawpBitopqPeqaaResultMap">
  170. select
  171. <include refid="table_columns"/>
  172. from TAC_PAWP_BITOPQ_PEQAA
  173. </select>
  174. <select id="findList" resultMap="tacPawpBitopqPeqaaResultMap">
  175. select
  176. <include refid="table_columns"/>
  177. from TAC_PAWP_BITOPQ_PEQAA
  178. <include refid="page_where"/>
  179. </select>
  180. <select id="selectCount" resultType="int">
  181. select count(ID) from TAC_PAWP_BITOPQ_PEQAA
  182. <include refid="page_where"/>
  183. </select>
  184. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
  185. insert into TAC_PAWP_BITOPQ_PEQAA(
  186. <include refid="table_columns"/>
  187. )
  188. values (
  189. <include refid="entity_properties"/>
  190. )
  191. </insert>
  192. <delete id="delete" parameterType="java.lang.String">
  193. delete from TAC_PAWP_BITOPQ_PEQAA where ID = #{id}
  194. </delete>
  195. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
  196. delete from TAC_PAWP_BITOPQ_PEQAA
  197. <include refid="page_where"/>
  198. </delete>
  199. <update id="deleteInFlag" parameterType="java.lang.String">
  200. update TAC_PAWP_BITOPQ_PEQAA set flag_valid = 0 where ID = #{id}
  201. </update>
  202. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
  203. update TAC_PAWP_BITOPQ_PEQAA
  204. <trim prefix="set" suffixOverrides=",">
  205. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  206. <if test="sctnId != null and sctnId != ''">SCTN_ID = #{sctnId},</if>
  207. <if test="sctnNm != null and sctnNm != ''">SCTN_NM = #{sctnNm},</if>
  208. <if test="tacId != null and tacId != ''">TAC_ID = #{tacId},</if>
  209. <if test="tacNm != null and tacNm != ''">TAC_NM = #{tacNm},</if>
  210. <if test="rwunitQlctn != null and rwunitQlctn != ''">RWUNIT_QLCTN = #{rwunitQlctn},</if>
  211. <if test="rwunitDfNum != null and rwunitDfNum != ''">RWUNIT_DF_NUM = #{rwunitDfNum},</if>
  212. <if test="rwunitCncltn != null and rwunitCncltn != ''">RWUNIT_CNCLTN = #{rwunitCncltn},</if>
  213. <if test="spvsQlctn != null and spvsQlctn != ''">SPVS_QLCTN = #{spvsQlctn},</if>
  214. <if test="spvsDfNum != null and spvsDfNum != ''">SPVS_DF_NUM = #{spvsDfNum},</if>
  215. <if test="spvsCncltn != null and spvsCncltn != ''">SPVS_CNCLTN = #{spvsCncltn},</if>
  216. <if test="untpjtDvdNum != null">UNTPJT_DVD_NUM = #{untpjtDvdNum},</if>
  217. <if test="untpjtHbeNum != null">UNTPJT_HBE_NUM = #{untpjtHbeNum},</if>
  218. <if test="untpjtFpy != null">UNTPJT_FPY = #{untpjtFpy},</if>
  219. <if test="untpjtAprvdNum != null">UNTPJT_APRVD_NUM = #{untpjtAprvdNum},</if>
  220. <if test="subpjtDvdNum != null">SUBPJT_DVD_NUM = #{subpjtDvdNum},</if>
  221. <if test="subpjtHbeNum != null">SUBPJT_HBE_NUM = #{subpjtHbeNum},</if>
  222. <if test="subpjtFpy != null">SUBPJT_FPY = #{subpjtFpy},</if>
  223. <if test="subpjtAprvdNum != null">SUBPJT_APRVD_NUM = #{subpjtAprvdNum},</if>
  224. <if test="cellpjtDvdNum != null">CELLPJT_DVD_NUM = #{cellpjtDvdNum},</if>
  225. <if test="cellpjtHbeNum != null">CELLPJT_HBE_NUM = #{cellpjtHbeNum},</if>
  226. <if test="cellpjtFpy != null">CELLPJT_FPY = #{cellpjtFpy},</if>
  227. <if test="cellpjtAprvdNum != null">CELLPJT_APRVD_NUM = #{cellpjtAprvdNum},</if>
  228. <if test="intmdtAcctnsInfo != null">INTMDT_ACCTNS_INFO = #{intmdtAcctnsInfo},</if>
  229. <if test="isSpclAcctns != null">IS_SPCL_ACCTNS = #{isSpclAcctns},</if>
  230. <if test="spclAcctnsTm != null">SPCL_ACCTNS_TM = #{spclAcctnsTm},</if>
  231. <if test="spclAcctnsInfo != null">SPCL_ACCTNS_INFO = #{spclAcctnsInfo},</if>
  232. <if test="compltdAcctnsInfo != null">COMPLTD_ACCTNS_INFO = #{compltdAcctnsInfo},</if>
  233. <if test="remark != null">REMARK = #{remark},</if>
  234. <if test="note != null">NOTE = #{note},</if>
  235. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  236. <if test="intm != null">INTM = #{intm},</if>
  237. <if test="uptm != null">UPTM = #{uptm},</if>
  238. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  239. </trim>
  240. <where>ID = #{id}</where>
  241. </update>
  242. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
  243. update TAC_PAWP_BITOPQ_PEQAA
  244. <trim prefix="set" suffixOverrides=",">
  245. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  246. <if test="sctnId != null and sctnId != ''">SCTN_ID = #{sctnId},</if>
  247. <if test="sctnNm != null">SCTN_NM = #{sctnNm},</if>
  248. <if test="tacId != null and tacId != ''">TAC_ID = #{tacId},</if>
  249. <if test="tacNm != null">TAC_NM = #{tacNm},</if>
  250. <if test="rwunitQlctn != null and rwunitQlctn != ''">RWUNIT_QLCTN = #{rwunitQlctn},</if>
  251. <if test="rwunitDfNum != null and rwunitDfNum != ''">RWUNIT_DF_NUM = #{rwunitDfNum},</if>
  252. <if test="rwunitCncltn != null and rwunitCncltn != ''">RWUNIT_CNCLTN = #{rwunitCncltn},</if>
  253. <if test="spvsQlctn != null and spvsQlctn != ''">SPVS_QLCTN = #{spvsQlctn},</if>
  254. <if test="spvsDfNum != null and spvsDfNum != ''">SPVS_DF_NUM = #{spvsDfNum},</if>
  255. <if test="spvsCncltn != null and spvsCncltn != ''">SPVS_CNCLTN = #{spvsCncltn},</if>
  256. <if test="untpjtDvdNum != null">UNTPJT_DVD_NUM = #{untpjtDvdNum},</if>
  257. <if test="untpjtHbeNum != null">UNTPJT_HBE_NUM = #{untpjtHbeNum},</if>
  258. <if test="untpjtFpy != null">UNTPJT_FPY = #{untpjtFpy},</if>
  259. <if test="untpjtAprvdNum != null">UNTPJT_APRVD_NUM = #{untpjtAprvdNum},</if>
  260. <if test="subpjtDvdNum != null">SUBPJT_DVD_NUM = #{subpjtDvdNum},</if>
  261. <if test="subpjtHbeNum != null">SUBPJT_HBE_NUM = #{subpjtHbeNum},</if>
  262. <if test="subpjtFpy != null">SUBPJT_FPY = #{subpjtFpy},</if>
  263. <if test="subpjtAprvdNum != null">SUBPJT_APRVD_NUM = #{subpjtAprvdNum},</if>
  264. <if test="cellpjtDvdNum != null">CELLPJT_DVD_NUM = #{cellpjtDvdNum},</if>
  265. <if test="cellpjtHbeNum != null">CELLPJT_HBE_NUM = #{cellpjtHbeNum},</if>
  266. <if test="cellpjtFpy != null">CELLPJT_FPY = #{cellpjtFpy},</if>
  267. <if test="cellpjtAprvdNum != null">CELLPJT_APRVD_NUM = #{cellpjtAprvdNum},</if>
  268. <if test="intmdtAcctnsInfo != null">INTMDT_ACCTNS_INFO = #{intmdtAcctnsInfo},</if>
  269. <if test="isSpclAcctns != null">IS_SPCL_ACCTNS = #{isSpclAcctns},</if>
  270. <if test="spclAcctnsTm != null">SPCL_ACCTNS_TM = #{spclAcctnsTm},</if>
  271. <if test="spclAcctnsInfo != null">SPCL_ACCTNS_INFO = #{spclAcctnsInfo},</if>
  272. <if test="compltdAcctnsInfo != null">COMPLTD_ACCTNS_INFO = #{compltdAcctnsInfo},</if>
  273. <if test="remark != null">REMARK = #{remark},</if>
  274. <if test="note != null">NOTE = #{note},</if>
  275. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  276. <if test="intm != null">INTM = #{intm},</if>
  277. <if test="uptm != null">UPTM = #{uptm},</if>
  278. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  279. </trim>
  280. <include refid="page_where"/>
  281. </update>
  282. <!-- 其他自定义SQL -->
  283. </mapper>