TacPawpPdbstDao.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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.TacPawpPdbstDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpPdbst" id="tacPawpPdbstResultMap">
  5. <result property="rgstrId" column="RGSTR_ID"/>
  6. <result property="proposalName" column="PROPOSAL_NAME"/>
  7. <result property="proposalCmplUnit" column="PROPOSAL_CMPL_UNIT"/>
  8. <result property="proposalCmaf" column="PROPOSAL_CMAF"/>
  9. <result property="proposalReplyUnit" column="PROPOSAL_REPLY_UNIT"/>
  10. <result property="proposalReplyTm" column="PROPOSAL_REPLY_TM"/>
  11. <result property="proposalReplySn" column="PROPOSAL_REPLY_SN"/>
  12. <result property="fsrName" column="FSR_NAME"/>
  13. <result property="fsrCmplUnit" column="FSR_CMPL_UNIT"/>
  14. <result property="fsrCmaf" column="FSR_CMAF"/>
  15. <result property="fsrReplyUnit" column="FSR_REPLY_UNIT"/>
  16. <result property="fsrReplyTm" column="FSR_REPLY_TM"/>
  17. <result property="fsrReplySn" column="FSR_REPLY_SN"/>
  18. <result property="fsrBeoi" column="FSR_BEOI"/>
  19. <result property="pdrName" column="PDR_NAME"/>
  20. <result property="pdrCmplUnit" column="PDR_CMPL_UNIT"/>
  21. <result property="pdrCmaf" column="PDR_CMAF"/>
  22. <result property="pdrReplyUnit" column="PDR_REPLY_UNIT"/>
  23. <result property="pdrReplyTm" column="PDR_REPLY_TM"/>
  24. <result property="pdrReplySn" column="PDR_REPLY_SN"/>
  25. <result property="pdrBeoi" column="PDR_BEOI"/>
  26. <result property="pdrPeriod" column="PDR_PERIOD"/>
  27. <result property="cadCmplUnit" column="CAD_CMPL_UNIT"/>
  28. <result property="cadNum" column="CAD_NUM"/>
  29. <result property="isMcn" column="IS_MCN"/>
  30. <result property="desChgNum" column="DES_CHG_NUM"/>
  31. <result property="desChgNumInfo" column="DES_CHG_NUM_INFO"/>
  32. <result property="dcphbcNum" column="DCPHBC_NUM"/>
  33. <result property="dcphbcNumInfo" column="DCPHBC_NUM_INFO"/>
  34. <result property="ftcdcpNum" column="FTCDCP_NUM"/>
  35. <result property="svcIsSuaa" column="SVC_IS_SUAA"/>
  36. <result property="svcIsAdr" column="SVC_IS_ADR"/>
  37. <result property="svcIsMtd" column="SVC_IS_MTD"/>
  38. <result property="remark" column="REMARK"/>
  39. <result property="note" column="NOTE"/>
  40. <result property="persId" column="PERS_ID"/>
  41. <result property="intm" column="INTM"/>
  42. <result property="uptm" column="UPTM"/>
  43. <result property="dataStat" column="DATA_STAT"/>
  44. <result property="id" column="ID"/>
  45. </resultMap>
  46. <sql id="table_columns">
  47. RGSTR_ID,
  48. PROPOSAL_NAME,
  49. PROPOSAL_CMPL_UNIT,
  50. PROPOSAL_CMAF,
  51. PROPOSAL_REPLY_UNIT,
  52. PROPOSAL_REPLY_TM,
  53. PROPOSAL_REPLY_SN,
  54. FSR_NAME,
  55. FSR_CMPL_UNIT,
  56. FSR_CMAF,
  57. FSR_REPLY_UNIT,
  58. FSR_REPLY_TM,
  59. FSR_REPLY_SN,
  60. FSR_BEOI,
  61. PDR_NAME,
  62. PDR_CMPL_UNIT,
  63. PDR_CMAF,
  64. PDR_REPLY_UNIT,
  65. PDR_REPLY_TM,
  66. PDR_REPLY_SN,
  67. PDR_BEOI,
  68. PDR_PERIOD,
  69. CAD_CMPL_UNIT,
  70. CAD_NUM,
  71. IS_MCN,
  72. DES_CHG_NUM,
  73. DCPHBC_NUM,
  74. FTCDCP_NUM,
  75. SVC_IS_SUAA,
  76. SVC_IS_ADR,
  77. SVC_IS_MTD,
  78. REMARK,
  79. NOTE,
  80. PERS_ID,
  81. INTM,
  82. UPTM,
  83. DATA_STAT,DES_CHG_NUM_INFO,DCPHBC_NUM_INFO,
  84. ID
  85. </sql>
  86. <sql id="entity_properties">
  87. #{rgstrId},
  88. #{proposalName},
  89. #{proposalCmplUnit},
  90. #{proposalCmaf},
  91. #{proposalReplyUnit},
  92. #{proposalReplyTm},
  93. #{proposalReplySn},
  94. #{fsrName},
  95. #{fsrCmplUnit},
  96. #{fsrCmaf},
  97. #{fsrReplyUnit},
  98. #{fsrReplyTm},
  99. #{fsrReplySn},
  100. #{fsrBeoi},
  101. #{pdrName},
  102. #{pdrCmplUnit},
  103. #{pdrCmaf},
  104. #{pdrReplyUnit},
  105. #{pdrReplyTm},
  106. #{pdrReplySn},
  107. #{pdrBeoi},
  108. #{pdrPeriod},
  109. #{cadCmplUnit},
  110. #{cadNum},
  111. #{isMcn},
  112. #{desChgNum},
  113. #{dcphbcNum},
  114. #{ftcdcpNum},
  115. #{svcIsSuaa},
  116. #{svcIsAdr},
  117. #{svcIsMtd},
  118. #{remark},
  119. #{note},
  120. #{persId},
  121. #{intm},
  122. #{uptm},
  123. #{dataStat},#{desChgNumInfo},#{dcphbcNumInfo},
  124. #{id}
  125. </sql>
  126. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  127. <sql id="page_where">
  128. <trim prefix="where" prefixOverrides="and | or ">
  129. <if test="proposalName != null and proposalName != ''">and PROPOSAL_NAME like '%${proposalName}%'</if>
  130. <if test="desChgNumInfo != null and desChgNumInfo != ''">and DES_CHG_NUM_INFO like '%${desChgNumInfo}%'</if>
  131. <if test="dcphbcNumInfo != null and dcphbcNumInfo != ''">and DCPHBC_NUM_INFO like '%${dcphbcNumInfo}%'</if>
  132. <if test="proposalCmplUnit != null and proposalCmplUnit != ''">and PROPOSAL_CMPL_UNIT like
  133. '%${proposalCmplUnit}%'
  134. </if>
  135. <if test="proposalCmaf != null and proposalCmaf != ''">and PROPOSAL_CMAF like '%${proposalCmaf}%'</if>
  136. <if test="proposalReplyUnit != null and proposalReplyUnit != ''">and PROPOSAL_REPLY_UNIT like
  137. '%${proposalReplyUnit}%'
  138. </if>
  139. <if test="proposalReplyTm != null">and PROPOSAL_REPLY_TM = #{proposalReplyTm}</if>
  140. <if test="proposalReplySn != null and proposalReplySn != ''">and PROPOSAL_REPLY_SN like
  141. '%${proposalReplySn}%'
  142. </if>
  143. <if test="fsrName != null and fsrName != ''">and FSR_NAME like '%${fsrName}%'</if>
  144. <if test="fsrCmplUnit != null and fsrCmplUnit != ''">and FSR_CMPL_UNIT like '%${fsrCmplUnit}%'</if>
  145. <if test="fsrCmaf != null and fsrCmaf != ''">and FSR_CMAF like '%${fsrCmaf}%' #{fsrCmaf}</if>
  146. <if test="fsrReplyUnit != null and fsrReplyUnit != ''">and FSR_REPLY_UNIT like '%${fsrReplyUnit}%'</if>
  147. <if test="fsrReplyTm != null">and FSR_REPLY_TM = #{fsrReplyTm}</if>
  148. <if test="fsrReplySn != null and fsrReplySn != ''">and FSR_REPLY_SN like '%${fsrReplySn}%'</if>
  149. <if test="fsrBeoi != null and fsrBeoi != ''">and FSR_BEOI like '%${fsrBeoi}%'</if>
  150. <if test="pdrName != null and pdrName != ''">and PDR_NAME like '%${pdrName}%'</if>
  151. <if test="pdrCmplUnit != null and pdrCmplUnit != ''">and PDR_CMPL_UNIT like '%${pdrCmplUnit}%'</if>
  152. <if test="pdrCmaf != null and pdrCmaf != ''">and PDR_CMAF like '%${pdrCmaf}%'</if>
  153. <if test="pdrReplyUnit != null and pdrReplyUnit != ''">and PDR_REPLY_UNIT like '%${pdrReplyUnit}%'</if>
  154. <if test="pdrReplyTm != null">and PDR_REPLY_TM = #{pdrReplyTm}</if>
  155. <if test="pdrReplySn != null and pdrReplySn != ''">and PDR_REPLY_SN like '%${pdrReplySn}%'</if>
  156. <if test="pdrBeoi != null and pdrBeoi != ''">and PDR_BEOI like '%${pdrBeoi}%'</if>
  157. <if test="pdrPeriod != null and pdrPeriod != ''">and PDR_PERIOD like '%${pdrPeriod}%'</if>
  158. <if test="cadCmplUnit != null and cadCmplUnit != ''">and CAD_CMPL_UNIT like '%${cadCmplUnit}%'</if>
  159. <if test="cadNum != null and cadNum != ''">and CAD_NUM = #{cadNum}</if>
  160. <if test="isMcn != null and isMcn != ''">and IS_MCN = #{isMcn}</if>
  161. <if test="desChgNum != null and desChgNum != ''">and DES_CHG_NUM = #{desChgNum}</if>
  162. <if test="dcphbcNum != null and dcphbcNum != ''">and DCPHBC_NUM = #{dcphbcNum}</if>
  163. <if test="ftcdcpNum != null and ftcdcpNum != ''">and FTCDCP_NUM = #{ftcdcpNum}</if>
  164. <if test="svcIsSuaa != null and svcIsSuaa != ''">and SVC_IS_SUAA = #{svcIsSuaa}</if>
  165. <if test="svcIsAdr != null and svcIsAdr != ''">and SVC_IS_ADR = #{svcIsAdr}</if>
  166. <if test="svcIsMtd != null and svcIsMtd != ''">and SVC_IS_MTD = #{svcIsMtd}</if>
  167. <if test="remark != null and remark != ''">and REMARK like '%${remark}%'</if>
  168. <if test="note != null and note != ''">and NOTE like '%${note}%'</if>
  169. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  170. <if test="intm != null">and INTM = #{intm}</if>
  171. <if test="uptm != null">and UPTM = #{uptm}</if>
  172. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  173. <if test="id != null and id != ''">and ID = #{id}</if>
  174. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  175. </trim>
  176. </sql>
  177. <select id="get" resultMap="tacPawpPdbstResultMap" parameterType="String">
  178. select
  179. <include refid="table_columns"/>
  180. from TAC_PAWP_PDBST where ID = #{id}
  181. </select>
  182. <select id="getBy" resultMap="tacPawpPdbstResultMap">
  183. select
  184. <include refid="table_columns"/>
  185. from TAC_PAWP_PDBST
  186. <include refid="page_where"/>
  187. </select>
  188. <select id="findAll" resultMap="tacPawpPdbstResultMap">
  189. select
  190. <include refid="table_columns"/>
  191. from TAC_PAWP_PDBST
  192. </select>
  193. <select id="findList" resultMap="tacPawpPdbstResultMap">
  194. select
  195. <include refid="table_columns"/>
  196. from TAC_PAWP_PDBST
  197. <include refid="page_where"/>
  198. </select>
  199. <select id="selectCount" resultType="int">
  200. select count(ID) from TAC_PAWP_PDBST
  201. <include refid="page_where"/>
  202. </select>
  203. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
  204. insert into TAC_PAWP_PDBST(
  205. <include refid="table_columns"/>
  206. )
  207. values (
  208. <include refid="entity_properties"/>
  209. )
  210. </insert>
  211. <delete id="delete" parameterType="java.lang.String">
  212. delete from TAC_PAWP_PDBST where ID = #{id}
  213. </delete>
  214. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
  215. delete from TAC_PAWP_PDBST
  216. <include refid="page_where"/>
  217. </delete>
  218. <update id="deleteInFlag" parameterType="java.lang.String">
  219. update TAC_PAWP_PDBST set flag_valid = 0 where ID = #{id}
  220. </update>
  221. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
  222. update TAC_PAWP_PDBST
  223. <trim prefix="set" suffixOverrides=",">
  224. <if test="proposalName != null">PROPOSAL_NAME = #{proposalName},</if>
  225. <if test="proposalCmplUnit != null">PROPOSAL_CMPL_UNIT = #{proposalCmplUnit},</if>
  226. <if test="proposalCmaf != null">PROPOSAL_CMAF = #{proposalCmaf},</if>
  227. <if test="proposalReplyUnit != null">PROPOSAL_REPLY_UNIT = #{proposalReplyUnit},</if>
  228. <if test="proposalReplyTm != null">PROPOSAL_REPLY_TM = #{proposalReplyTm},</if>
  229. <if test="proposalReplySn != null">PROPOSAL_REPLY_SN = #{proposalReplySn},</if>
  230. <if test="fsrName != null">FSR_NAME = #{fsrName},</if>
  231. <if test="fsrCmplUnit != null">FSR_CMPL_UNIT = #{fsrCmplUnit},</if>
  232. <if test="fsrCmaf != null">FSR_CMAF = #{fsrCmaf},</if>
  233. <if test="fsrReplyUnit != null">FSR_REPLY_UNIT = #{fsrReplyUnit},</if>
  234. <if test="fsrReplyTm != null">FSR_REPLY_TM = #{fsrReplyTm},</if>
  235. <if test="fsrReplySn != null">FSR_REPLY_SN = #{fsrReplySn},</if>
  236. <if test="fsrBeoi != null">FSR_BEOI = #{fsrBeoi},</if>
  237. <if test="pdrName != null">PDR_NAME = #{pdrName},</if>
  238. <if test="pdrCmplUnit != null">PDR_CMPL_UNIT = #{pdrCmplUnit},</if>
  239. <if test="pdrCmaf != null">PDR_CMAF = #{pdrCmaf},</if>
  240. <if test="pdrReplyUnit != null">PDR_REPLY_UNIT = #{pdrReplyUnit},</if>
  241. <if test="pdrReplyTm != null">PDR_REPLY_TM = #{pdrReplyTm},</if>
  242. <if test="pdrReplySn != null">PDR_REPLY_SN = #{pdrReplySn},</if>
  243. <if test="pdrBeoi != null">PDR_BEOI = #{pdrBeoi},</if>
  244. <if test="pdrPeriod != null">PDR_PERIOD = #{pdrPeriod},</if>
  245. <if test="cadCmplUnit != null">CAD_CMPL_UNIT = #{cadCmplUnit},</if>
  246. <if test="cadNum != null">CAD_NUM = #{cadNum},</if>
  247. <if test="isMcn != null">IS_MCN = #{isMcn},</if>
  248. <if test="desChgNum != null">DES_CHG_NUM = #{desChgNum},</if>
  249. <if test="dcphbcNum != null">DCPHBC_NUM = #{dcphbcNum},</if>
  250. <if test="ftcdcpNum != null">FTCDCP_NUM = #{ftcdcpNum},</if>
  251. <if test="svcIsSuaa != null">SVC_IS_SUAA = #{svcIsSuaa},</if>
  252. <if test="svcIsAdr != null">SVC_IS_ADR = #{svcIsAdr},</if>
  253. <if test="svcIsMtd != null">SVC_IS_MTD = #{svcIsMtd},</if>
  254. <if test="desChgNumInfo != null">DES_CHG_NUM_INFO = #{desChgNumInfo},</if>
  255. <if test="dcphbcNumInfo != null">DCPHBC_NUM_INFO = #{dcphbcNumInfo},</if>
  256. <if test="remark != null">REMARK = #{remark},</if>
  257. <if test="note != null">NOTE = #{note},</if>
  258. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  259. <if test="intm != null">INTM = #{intm},</if>
  260. <if test="uptm != null">UPTM = #{uptm},</if>
  261. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  262. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  263. </trim>
  264. <where>ID = #{id}</where>
  265. </update>
  266. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
  267. update TAC_PAWP_PDBST
  268. <trim prefix="set" suffixOverrides=",">
  269. <if test="proposalName != null">PROPOSAL_NAME = #{proposalName},</if>
  270. <if test="proposalCmplUnit != null">PROPOSAL_CMPL_UNIT = #{proposalCmplUnit},</if>
  271. <if test="proposalCmaf != null">PROPOSAL_CMAF = #{proposalCmaf},</if>
  272. <if test="proposalReplyUnit != null">PROPOSAL_REPLY_UNIT = #{proposalReplyUnit},</if>
  273. <if test="proposalReplyTm != null">PROPOSAL_REPLY_TM = #{proposalReplyTm},</if>
  274. <if test="proposalReplySn != null">PROPOSAL_REPLY_SN = #{proposalReplySn},</if>
  275. <if test="fsrName != null">FSR_NAME = #{fsrName},</if>
  276. <if test="fsrCmplUnit != null">FSR_CMPL_UNIT = #{fsrCmplUnit},</if>
  277. <if test="fsrCmaf != null">FSR_CMAF = #{fsrCmaf},</if>
  278. <if test="fsrReplyUnit != null">FSR_REPLY_UNIT = #{fsrReplyUnit},</if>
  279. <if test="fsrReplyTm != null">FSR_REPLY_TM = #{fsrReplyTm},</if>
  280. <if test="fsrReplySn != null">FSR_REPLY_SN = #{fsrReplySn},</if>
  281. <if test="fsrBeoi != null">FSR_BEOI = #{fsrBeoi},</if>
  282. <if test="pdrName != null">PDR_NAME = #{pdrName},</if>
  283. <if test="pdrCmplUnit != null">PDR_CMPL_UNIT = #{pdrCmplUnit},</if>
  284. <if test="pdrCmaf != null">PDR_CMAF = #{pdrCmaf},</if>
  285. <if test="pdrReplyUnit != null">PDR_REPLY_UNIT = #{pdrReplyUnit},</if>
  286. <if test="pdrReplyTm != null">PDR_REPLY_TM = #{pdrReplyTm},</if>
  287. <if test="pdrReplySn != null">PDR_REPLY_SN = #{pdrReplySn},</if>
  288. <if test="pdrBeoi != null">PDR_BEOI = #{pdrBeoi},</if>
  289. <if test="pdrPeriod != null">PDR_PERIOD = #{pdrPeriod},</if>
  290. <if test="cadCmplUnit != null">CAD_CMPL_UNIT = #{cadCmplUnit},</if>
  291. <if test="cadNum != null">CAD_NUM = #{cadNum},</if>
  292. <if test="isMcn != null">IS_MCN = #{isMcn},</if>
  293. <if test="desChgNum != null">DES_CHG_NUM = #{desChgNum},</if>
  294. <if test="dcphbcNum != null">DCPHBC_NUM = #{dcphbcNum},</if>
  295. <if test="ftcdcpNum != null">FTCDCP_NUM = #{ftcdcpNum},</if>
  296. <if test="svcIsSuaa != null">SVC_IS_SUAA = #{svcIsSuaa},</if>
  297. <if test="svcIsAdr != null">SVC_IS_ADR = #{svcIsAdr},</if>
  298. <if test="svcIsMtd != null">SVC_IS_MTD = #{svcIsMtd},</if>
  299. <if test="remark != null">REMARK = #{remark},</if>
  300. <if test="note != null">NOTE = #{note},</if>
  301. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  302. <if test="desChgNumInfo != null">DES_CHG_NUM_INFO = #{desChgNumInfo},</if>
  303. <if test="dcphbcNumInfo != null">DCPHBC_NUM_INFO = #{dcphbcNumInfo},</if>
  304. <if test="intm != null">INTM = #{intm},</if>
  305. <if test="uptm != null">UPTM = #{uptm},</if>
  306. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  307. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  308. </trim>
  309. <include refid="page_where"/>
  310. </update>
  311. <!-- 其他自定义SQL -->
  312. </mapper>