TacPawpBioesRwunitDao.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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.TacPawpBioesRwunitDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit" id="tacPawpBioesRwunitResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="untNm" column="UNT_NM"/>
  8. <result property="entprsQlfctn" column="ENTPRS_QLFCTN"/>
  9. <result property="aopsl" column="AOPSL"/>
  10. <result property="sePas" column="SE_PAS"/>
  11. <result property="ttopfpaNum" column="TTOPFPA_NUM"/>
  12. <result property="ttopfpaTawcNum" column="TTOPFPA_TAWC_NUM"/>
  13. <result property="sosNum" column="SOS_NUM"/>
  14. <result property="sosTawcNum" column="SOS_TAWC_NUM"/>
  15. <result property="tsPp" column="TS_PP"/>
  16. <result property="tsRar" column="TS_RAR"/>
  17. <result property="tsOi" column="TS_OI"/>
  18. <result property="tsCp" column="TS_CP"/>
  19. <result property="pfcpIsCmpl" column="PFCP_IS_CMPL"/>
  20. <result property="pfcpIsRpt" column="PFCP_IS_RPT"/>
  21. <result property="erpfpaIsCmpl" column="ERPFPA_IS_CMPL"/>
  22. <result property="erpfpaIsRpt" column="ERPFPA_IS_RPT"/>
  23. <result property="scpwgrIsCmpl" column="SCPWGR_IS_CMPL"/>
  24. <result property="scpwgrIsRtf" column="SCPWGR_IS_RTF"/>
  25. <result property="isDpseatr" column="IS_DPSEATR"/>
  26. <result property="isBldEs" column="IS_BLD_ES"/>
  27. <result property="isPrcdEd" column="IS_PRCD_ED"/>
  28. <result property="isPrcdPri" column="IS_PRCD_PRI"/>
  29. <result property="isTcosr" column="IS_TCOSR"/>
  30. <result property="spfswsaiIsCmpls" column="SPFSWSAI_IS_CMPLS"/>
  31. <result property="note" column="NOTE"/>
  32. <result property="persId" column="PERS_ID"/>
  33. <result property="intm" column="INTM"/>
  34. <result property="uptm" column="UPTM"/>
  35. <result property="dataStat" column="DATA_STAT"/>
  36. </resultMap>
  37. <sql id="table_columns">
  38. ID,
  39. RGSTR_ID,
  40. UNT_NM,
  41. ENTPRS_QLFCTN,
  42. AOPSL,
  43. SE_PAS,
  44. TTOPFPA_NUM,
  45. TTOPFPA_TAWC_NUM,
  46. SOS_NUM,
  47. SOS_TAWC_NUM,
  48. TS_PP,
  49. TS_RAR,
  50. TS_OI,
  51. TS_CP,
  52. PFCP_IS_CMPL,
  53. PFCP_IS_RPT,
  54. ERPFPA_IS_CMPL,
  55. ERPFPA_IS_RPT,
  56. SCPWGR_IS_CMPL,
  57. SCPWGR_IS_RTF,
  58. IS_DPSEATR,
  59. IS_BLD_ES,
  60. IS_PRCD_ED,
  61. IS_PRCD_PRI,
  62. IS_TCOSR,
  63. SPFSWSAI_IS_CMPLS,
  64. NOTE,
  65. PERS_ID,
  66. INTM,
  67. UPTM,
  68. DATA_STAT
  69. </sql>
  70. <sql id="entity_properties">
  71. #{id},
  72. #{rgstrId},
  73. #{untNm},
  74. #{entprsQlfctn},
  75. #{aopsl},
  76. #{sePas},
  77. #{ttopfpaNum},
  78. #{ttopfpaTawcNum},
  79. #{sosNum},
  80. #{sosTawcNum},
  81. #{tsPp},
  82. #{tsRar},
  83. #{tsOi},
  84. #{tsCp},
  85. #{pfcpIsCmpl},
  86. #{pfcpIsRpt},
  87. #{erpfpaIsCmpl},
  88. #{erpfpaIsRpt},
  89. #{scpwgrIsCmpl},
  90. #{scpwgrIsRtf},
  91. #{isDpseatr},
  92. #{isBldEs},
  93. #{isPrcdEd},
  94. #{isPrcdPri},
  95. #{isTcosr},
  96. #{spfswsaiIsCmpls},
  97. #{note},
  98. #{persId},
  99. #{intm},
  100. #{uptm},
  101. #{dataStat}
  102. </sql>
  103. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  104. <sql id="page_where">
  105. <trim prefix="where" prefixOverrides="and | or ">
  106. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  107. <if test="untNm != null and untNm != ''">and UNT_NM like '%${untNm}%'</if>
  108. <if test="entprsQlfctn != null and entprsQlfctn != ''">and ENTPRS_QLFCTN like '%${entprsQlfctn}%'</if>
  109. <if test="aopsl != null and aopsl != ''">and AOPSL = #{aopsl}</if>
  110. <if test="sePas != null and sePas != ''">and SE_PAS = #{sePas}</if>
  111. <if test="ttopfpaNum != null and ttopfpaNum != ''">and TTOPFPA_NUM = #{ttopfpaNum}</if>
  112. <if test="ttopfpaTawcNum != null and ttopfpaTawcNum != ''">and TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum}</if>
  113. <if test="sosNum != null and sosNum != ''">and SOS_NUM = #{sosNum}</if>
  114. <if test="sosTawcNum != null and sosTawcNum != ''">and SOS_TAWC_NUM = #{sosTawcNum}</if>
  115. <if test="tsPp != null and tsPp != ''">and TS_PP = #{tsPp}</if>
  116. <if test="tsRar != null and tsRar != ''">and TS_RAR = #{tsRar}</if>
  117. <if test="tsOi != null and tsOi != ''">and TS_OI = #{tsOi}</if>
  118. <if test="tsCp != null and tsCp != ''">and TS_CP = #{tsCp}</if>
  119. <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">and PFCP_IS_CMPL = #{pfcpIsCmpl}</if>
  120. <if test="pfcpIsRpt != null and pfcpIsRpt != ''">and PFCP_IS_RPT = #{pfcpIsRpt}</if>
  121. <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">and ERPFPA_IS_CMPL = #{erpfpaIsCmpl}</if>
  122. <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">and ERPFPA_IS_RPT = #{erpfpaIsRpt}</if>
  123. <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">and SCPWGR_IS_CMPL = #{scpwgrIsCmpl}</if>
  124. <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">and SCPWGR_IS_RTF = #{scpwgrIsRtf}</if>
  125. <if test="isDpseatr != null and isDpseatr != ''">and IS_DPSEATR = #{isDpseatr}</if>
  126. <if test="isBldEs != null and isBldEs != ''">and IS_BLD_ES = #{isBldEs}</if>
  127. <if test="isPrcdEd != null and isPrcdEd != ''">and IS_PRCD_ED = #{isPrcdEd}</if>
  128. <if test="isPrcdPri != null and isPrcdPri != ''">and IS_PRCD_PRI = #{isPrcdPri}</if>
  129. <if test="isTcosr != null and isTcosr != ''">and IS_TCOSR = #{isTcosr}</if>
  130. <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">and SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls}</if>
  131. <if test="note != null and note != ''">and NOTE = #{note}</if>
  132. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  133. <if test="intm != null">and INTM = #{intm}</if>
  134. <if test="uptm != null">and UPTM = #{uptm}</if>
  135. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  136. </trim>
  137. </sql>
  138. <select id="get" resultMap="tacPawpBioesRwunitResultMap" parameterType="String">
  139. select
  140. <include refid="table_columns"/>
  141. from TAC_PAWP_BIOES_RWUNIT where ID = #{id}
  142. </select>
  143. <select id="getBy" resultMap="tacPawpBioesRwunitResultMap">
  144. select
  145. <include refid="table_columns"/>
  146. from TAC_PAWP_BIOES_RWUNIT
  147. <include refid="page_where"/>
  148. </select>
  149. <select id="findAll" resultMap="tacPawpBioesRwunitResultMap">
  150. select
  151. <include refid="table_columns"/>
  152. from TAC_PAWP_BIOES_RWUNIT
  153. </select>
  154. <select id="findList" resultMap="tacPawpBioesRwunitResultMap">
  155. select
  156. <include refid="table_columns"/>
  157. from TAC_PAWP_BIOES_RWUNIT
  158. <include refid="page_where"/>
  159. </select>
  160. <select id="selectCount" resultType="int">
  161. select count(ID) from TAC_PAWP_BIOES_RWUNIT
  162. <include refid="page_where"/>
  163. </select>
  164. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
  165. insert into TAC_PAWP_BIOES_RWUNIT(
  166. <include refid="table_columns"/>
  167. )
  168. values (
  169. <include refid="entity_properties"/>
  170. )
  171. </insert>
  172. <delete id="delete" parameterType="java.lang.String">
  173. delete from TAC_PAWP_BIOES_RWUNIT where ID = #{id}
  174. </delete>
  175. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
  176. delete from TAC_PAWP_BIOES_RWUNIT
  177. <include refid="page_where"/>
  178. </delete>
  179. <update id="deleteInFlag" parameterType="java.lang.String">
  180. update TAC_PAWP_BIOES_RWUNIT set flag_valid = 0 where ID = #{id}
  181. </update>
  182. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
  183. update TAC_PAWP_BIOES_RWUNIT
  184. <trim prefix="set" suffixOverrides=",">
  185. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  186. <if test="untNm != null">UNT_NM = #{untNm},</if>
  187. <if test="entprsQlfctn != null">ENTPRS_QLFCTN = #{entprsQlfctn},</if>
  188. <if test="aopsl != null">AOPSL = #{aopsl},</if>
  189. <if test="sePas != null">SE_PAS = #{sePas},</if>
  190. <if test="ttopfpaNum != null">TTOPFPA_NUM = #{ttopfpaNum},</if>
  191. <if test="ttopfpaTawcNum != null">TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum},</if>
  192. <if test="sosNum != null">SOS_NUM = #{sosNum},</if>
  193. <if test="sosTawcNum != null">SOS_TAWC_NUM = #{sosTawcNum},</if>
  194. <if test="tsPp != null">TS_PP = #{tsPp},</if>
  195. <if test="tsRar != null">TS_RAR = #{tsRar},</if>
  196. <if test="tsOi != null">TS_OI = #{tsOi},</if>
  197. <if test="tsCp != null">TS_CP = #{tsCp},</if>
  198. <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">PFCP_IS_CMPL = #{pfcpIsCmpl},</if>
  199. <if test="pfcpIsRpt != null and pfcpIsRpt != ''">PFCP_IS_RPT = #{pfcpIsRpt},</if>
  200. <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">ERPFPA_IS_CMPL = #{erpfpaIsCmpl},</if>
  201. <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">ERPFPA_IS_RPT = #{erpfpaIsRpt},</if>
  202. <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">SCPWGR_IS_CMPL = #{scpwgrIsCmpl},</if>
  203. <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">SCPWGR_IS_RTF = #{scpwgrIsRtf},</if>
  204. <if test="isDpseatr != null and isDpseatr != ''">IS_DPSEATR = #{isDpseatr},</if>
  205. <if test="isBldEs != null and isBldEs != ''">IS_BLD_ES = #{isBldEs},</if>
  206. <if test="isPrcdEd != null and isPrcdEd != ''">IS_PRCD_ED = #{isPrcdEd},</if>
  207. <if test="isPrcdPri != null and isPrcdPri != ''">IS_PRCD_PRI = #{isPrcdPri},</if>
  208. <if test="isTcosr != null and isTcosr != ''">IS_TCOSR = #{isTcosr},</if>
  209. <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls},</if>
  210. <if test="note != null">NOTE = #{note},</if>
  211. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  212. <if test="intm != null">INTM = #{intm},</if>
  213. <if test="uptm != null">UPTM = #{uptm},</if>
  214. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  215. </trim>
  216. <where>ID = #{id}</where>
  217. </update>
  218. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
  219. update TAC_PAWP_BIOES_RWUNIT
  220. <trim prefix="set" suffixOverrides=",">
  221. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  222. <if test="untNm != null">UNT_NM = #{untNm},</if>
  223. <if test="entprsQlfctn != null">ENTPRS_QLFCTN = #{entprsQlfctn},</if>
  224. <if test="aopsl != null">AOPSL = #{aopsl},</if>
  225. <if test="sePas != null">SE_PAS = #{sePas},</if>
  226. <if test="ttopfpaNum != null">TTOPFPA_NUM = #{ttopfpaNum},</if>
  227. <if test="ttopfpaTawcNum != null">TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum},</if>
  228. <if test="sosNum != null">SOS_NUM = #{sosNum},</if>
  229. <if test="sosTawcNum != null">SOS_TAWC_NUM = #{sosTawcNum},</if>
  230. <if test="tsPp != null">TS_PP = #{tsPp},</if>
  231. <if test="tsRar != null">TS_RAR = #{tsRar},</if>
  232. <if test="tsOi != null">TS_OI = #{tsOi},</if>
  233. <if test="tsCp != null">TS_CP = #{tsCp},</if>
  234. <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">PFCP_IS_CMPL = #{pfcpIsCmpl},</if>
  235. <if test="pfcpIsRpt != null and pfcpIsRpt != ''">PFCP_IS_RPT = #{pfcpIsRpt},</if>
  236. <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">ERPFPA_IS_CMPL = #{erpfpaIsCmpl},</if>
  237. <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">ERPFPA_IS_RPT = #{erpfpaIsRpt},</if>
  238. <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">SCPWGR_IS_CMPL = #{scpwgrIsCmpl},</if>
  239. <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">SCPWGR_IS_RTF = #{scpwgrIsRtf},</if>
  240. <if test="isDpseatr != null and isDpseatr != ''">IS_DPSEATR = #{isDpseatr},</if>
  241. <if test="isBldEs != null and isBldEs != ''">IS_BLD_ES = #{isBldEs},</if>
  242. <if test="isPrcdEd != null and isPrcdEd != ''">IS_PRCD_ED = #{isPrcdEd},</if>
  243. <if test="isPrcdPri != null and isPrcdPri != ''">IS_PRCD_PRI = #{isPrcdPri},</if>
  244. <if test="isTcosr != null and isTcosr != ''">IS_TCOSR = #{isTcosr},</if>
  245. <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls},</if>
  246. <if test="note != null">NOTE = #{note},</if>
  247. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  248. <if test="intm != null">INTM = #{intm},</if>
  249. <if test="uptm != null">UPTM = #{uptm},</if>
  250. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  251. </trim>
  252. <include refid="page_where"/>
  253. </update>
  254. <!-- 其他自定义SQL -->
  255. </mapper>