BisInspWtuntRgstrCollegeDao.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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.BisInspWtuntRgstrCollegeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege" id="bisInspWtuntRgstrCollegeResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="fueNum" column="FUE_NUM"/>
  8. <result property="taasNum" column="TAAS_NUM"/>
  9. <result property="fctwu18" column="FCTWU18"/>
  10. <result property="fctwu19" column="FCTWU19"/>
  11. <result property="isPlWs" column="IS_PL_WS"/>
  12. <result property="planDpt" column="PLAN_DPT"/>
  13. <result property="planUseWw18" column="PLAN_USE_WW18"/>
  14. <result property="planUseWw19" column="PLAN_USE_WW19"/>
  15. <result property="isOvPlanUseWw" column="IS_OV_PLAN_USE_WW"/>
  16. <result property="isExeTopmus" column="IS_EXE_TOPMUS"/>
  17. <result property="isNowu" column="IS_NOWU"/>
  18. <result property="owMth" column="OW_MTH"/>
  19. <result property="nowu19" column="NOWU19"/>
  20. <result property="isNkmwun" column="IS_NKMWUN"/>
  21. <result property="sittmowrIsExact" column="SITTMOWR_IS_EXACT"/>
  22. <result property="isBuldSrarfwc" column="IS_BULD_SRARFWC"/>
  23. <result property="isWrwco" column="IS_WRWCO"/>
  24. <result property="uwu" column="UWU"/>
  25. <result property="uwuWu" column="UWU_WU"/>
  26. <result property="isIowsaouWmf" column="IS_IOWSAOU_WMF"/>
  27. <result property="wmfIsNr" column="WMF_IS_NR"/>
  28. <result property="isBuldOwmp" column="IS_BULD_OWMP"/>
  29. <result property="owmpIsNr" column="OWMP_IS_NR"/>
  30. <result property="isTacwnaau" column="IS_TACWNAAU"/>
  31. <result property="orasbowuIsComp" column="ORASBOWU_IS_COMP"/>
  32. <result property="isIwcidta" column="IS_IWCIDTA"/>
  33. <result property="isPwsikwua" column="IS_PWSIKWUA"/>
  34. <result property="intm" column="INTM"/>
  35. <result property="uptm" column="UPTM"/>
  36. <result property="status" column="STATUS"/>
  37. <result property="tacwnaauNote" column="TACWNAAU_NOTE"/>
  38. <result property="fctwu18Well" column="FCTWU18_WELL"/>
  39. <result property="fctwu19Well" column="FCTWU19_WELL"/>
  40. <result property="fctwu18Swhs" column="FCTWU18_SWHS"/>
  41. <result property="fctwu19Swhs" column="FCTWU19_SWHS"/>
  42. </resultMap>
  43. <sql id="table_columns">
  44. ID,
  45. RGSTR_ID,
  46. FUE_NUM,
  47. TAAS_NUM,
  48. FCTWU18,
  49. FCTWU19,
  50. FCTWU18_WELL,
  51. FCTWU19_WELL,
  52. FCTWU18_SWHS,
  53. FCTWU19_SWHS,
  54. IS_PL_WS,
  55. PLAN_DPT,
  56. PLAN_USE_WW18,
  57. PLAN_USE_WW19,
  58. IS_OV_PLAN_USE_WW,
  59. IS_EXE_TOPMUS,
  60. IS_NOWU,
  61. OW_MTH,
  62. NOWU19,
  63. IS_NKMWUN,
  64. SITTMOWR_IS_EXACT,
  65. IS_BULD_SRARFWC,
  66. IS_WRWCO,
  67. UWU,
  68. UWU_WU,
  69. IS_IOWSAOU_WMF,
  70. WMF_IS_NR,
  71. IS_BULD_OWMP,
  72. OWMP_IS_NR,
  73. IS_TACWNAAU,
  74. ORASBOWU_IS_COMP,
  75. IS_IWCIDTA,
  76. IS_PWSIKWUA,
  77. INTM,
  78. UPTM,
  79. STATUS,
  80. TACWNAAU_NOTE
  81. </sql>
  82. <sql id="entity_properties">
  83. #{id},
  84. #{rgstrId},
  85. #{fueNum},
  86. #{taasNum},
  87. #{fctwu18},
  88. #{fctwu19},
  89. #{fctwu18Well},
  90. #{fctwu19Well},
  91. #{fctwu18Swhs},
  92. #{fctwu19Swhs},
  93. #{isPlWs},
  94. #{planDpt},
  95. #{planUseWw18},
  96. #{planUseWw19},
  97. #{isOvPlanUseWw},
  98. #{isExeTopmus},
  99. #{isNowu},
  100. #{owMth},
  101. #{nowu19},
  102. #{isNkmwun},
  103. #{sittmowrIsExact},
  104. #{isBuldSrarfwc},
  105. #{isWrwco},
  106. #{uwu},
  107. #{uwuWu},
  108. #{isIowsaouWmf},
  109. #{wmfIsNr},
  110. #{isBuldOwmp},
  111. #{owmpIsNr},
  112. #{isTacwnaau},
  113. #{orasbowuIsComp},
  114. #{isIwcidta},
  115. #{isPwsikwua},
  116. #{intm},
  117. #{uptm},
  118. #{status},
  119. #{tacwnaauNote}
  120. </sql>
  121. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  122. <sql id="page_where">
  123. <trim prefix="where" prefixOverrides="and | or ">
  124. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  125. <if test="fueNum != null and fueNum != ''">and FUE_NUM = #{fueNum}</if>
  126. <if test="taasNum != null and taasNum != ''">and TAAS_NUM = #{taasNum}</if>
  127. <if test="fctwu18 != null and fctwu18 != ''">and FCTWU18 = #{fctwu18}</if>
  128. <if test="fctwu19 != null and fctwu19 != ''">and FCTWU19 = #{fctwu19}</if>
  129. <if test="fctwu18Well != null and fctwu18Well != ''">and FCTWU18_WELL = #{fctwu18Well}</if>
  130. <if test="fctwu19Well != null and fctwu19Well != ''">and FCTWU19_WELL = #{fctwu19Well}</if>
  131. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">and FCTWU18_SWHS = #{fctwu18Swhs}</if>
  132. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">and FCTWU19_SWHS = #{fctwu19Swhs}</if>
  133. <if test="isPlWs != null and isPlWs != ''">and IS_PL_WS = #{isPlWs}</if>
  134. <if test="planDpt != null and planDpt != ''">and PLAN_DPT = #{planDpt}</if>
  135. <if test="planUseWw18 != null and planUseWw18 != ''">and PLAN_USE_WW18 = #{planUseWw18}</if>
  136. <if test="planUseWw19 != null and planUseWw19 != ''">and PLAN_USE_WW19 = #{planUseWw19}</if>
  137. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">and IS_OV_PLAN_USE_WW = #{isOvPlanUseWw}</if>
  138. <if test="isExeTopmus != null and isExeTopmus != ''">and IS_EXE_TOPMUS = #{isExeTopmus}</if>
  139. <if test="isNowu != null and isNowu != ''">and IS_NOWU = #{isNowu}</if>
  140. <if test="owMth != null and owMth != ''">and OW_MTH = #{owMth}</if>
  141. <if test="nowu19 != null and nowu19 != ''">and NOWU19 = #{nowu19}</if>
  142. <if test="isNkmwun != null and isNkmwun != ''">and IS_NKMWUN = #{isNkmwun}</if>
  143. <if test="sittmowrIsExact != null and sittmowrIsExact != ''">and SITTMOWR_IS_EXACT = #{sittmowrIsExact}</if>
  144. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">and IS_BULD_SRARFWC = #{isBuldSrarfwc}</if>
  145. <if test="isWrwco != null and isWrwco != ''">and IS_WRWCO = #{isWrwco}</if>
  146. <if test="uwu != null and uwu != ''">and UWU = #{uwu}</if>
  147. <if test="uwuWu != null and uwuWu != ''">and UWU_WU = #{uwuWu}</if>
  148. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">and IS_IOWSAOU_WMF = #{isIowsaouWmf}</if>
  149. <if test="wmfIsNr != null and wmfIsNr != ''">and WMF_IS_NR = #{wmfIsNr}</if>
  150. <if test="isBuldOwmp != null and isBuldOwmp != ''">and IS_BULD_OWMP = #{isBuldOwmp}</if>
  151. <if test="owmpIsNr != null and owmpIsNr != ''">and OWMP_IS_NR = #{owmpIsNr}</if>
  152. <if test="isTacwnaau != null and isTacwnaau != ''">and IS_TACWNAAU = #{isTacwnaau}</if>
  153. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">and ORASBOWU_IS_COMP = #{orasbowuIsComp}</if>
  154. <if test="isIwcidta != null and isIwcidta != ''">and IS_IWCIDTA = #{isIwcidta}</if>
  155. <if test="isPwsikwua != null and isPwsikwua != ''">and IS_PWSIKWUA = #{isPwsikwua}</if>
  156. <if test="intm != null">and INTM = #{intm}</if>
  157. <if test="uptm != null">and UPTM = #{uptm}</if>
  158. <if test="status != null and status != ''">and STATUS = #{status}</if>
  159. <if test="tacwnaauNote != null and tacwnaauNote != ''">and TACWNAAU_NOTE = #{tacwnaauNote}</if>
  160. </trim>
  161. </sql>
  162. <select id="get" resultMap="bisInspWtuntRgstrCollegeResultMap" parameterType="String">
  163. select
  164. <include refid="table_columns"/>
  165. from BIS_INSP_WTUNT_RGSTR_COLLEGE where ID = #{id}
  166. </select>
  167. <select id="getBy" resultMap="bisInspWtuntRgstrCollegeResultMap">
  168. select
  169. <include refid="table_columns"/>
  170. from BIS_INSP_WTUNT_RGSTR_COLLEGE
  171. <include refid="page_where"/>
  172. </select>
  173. <select id="findAll" resultMap="bisInspWtuntRgstrCollegeResultMap">
  174. select
  175. <include refid="table_columns"/>
  176. from BIS_INSP_WTUNT_RGSTR_COLLEGE
  177. </select>
  178. <select id="findList" resultMap="bisInspWtuntRgstrCollegeResultMap">
  179. select
  180. <include refid="table_columns"/>
  181. from BIS_INSP_WTUNT_RGSTR_COLLEGE
  182. <include refid="page_where"/>
  183. </select>
  184. <select id="selectCount" resultType="int">
  185. select count(ID) from BIS_INSP_WTUNT_RGSTR_COLLEGE
  186. <include refid="page_where"/>
  187. </select>
  188. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
  189. insert into BIS_INSP_WTUNT_RGSTR_COLLEGE(
  190. <include refid="table_columns"/>
  191. )
  192. values (
  193. <include refid="entity_properties"/>
  194. )
  195. </insert>
  196. <delete id="delete" parameterType="java.lang.String">
  197. delete from BIS_INSP_WTUNT_RGSTR_COLLEGE where ID = #{id}
  198. </delete>
  199. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
  200. delete from BIS_INSP_WTUNT_RGSTR_COLLEGE
  201. <include refid="page_where"/>
  202. </delete>
  203. <update id="deleteInFlag" parameterType="java.lang.String">
  204. update BIS_INSP_WTUNT_RGSTR_COLLEGE set flag_valid = 0 where>ID = #{id}
  205. </update>
  206. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
  207. update BIS_INSP_WTUNT_RGSTR_COLLEGE
  208. <trim prefix="set" suffixOverrides=",">
  209. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  210. <if test="fueNum != null and fueNum != ''">FUE_NUM = #{fueNum},</if>
  211. <if test="taasNum != null and taasNum != ''">TAAS_NUM = #{taasNum},</if>
  212. <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
  213. <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
  214. <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
  215. <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
  216. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
  217. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
  218. <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
  219. <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
  220. <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
  221. <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
  222. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
  223. <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
  224. <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
  225. <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
  226. <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
  227. <if test="isNkmwun != null and isNkmwun != ''">IS_NKMWUN = #{isNkmwun},</if>
  228. <if test="sittmowrIsExact != null and sittmowrIsExact != ''">SITTMOWR_IS_EXACT = #{sittmowrIsExact},</if>
  229. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
  230. <if test="isWrwco != null and isWrwco != ''">IS_WRWCO = #{isWrwco},</if>
  231. <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
  232. <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
  233. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
  234. <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
  235. <if test="isBuldOwmp != null and isBuldOwmp != ''">IS_BULD_OWMP = #{isBuldOwmp},</if>
  236. <if test="owmpIsNr != null and owmpIsNr != ''">OWMP_IS_NR = #{owmpIsNr},</if>
  237. <if test="isTacwnaau != null and isTacwnaau != ''">IS_TACWNAAU = #{isTacwnaau},</if>
  238. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
  239. <if test="isIwcidta != null and isIwcidta != ''">IS_IWCIDTA = #{isIwcidta},</if>
  240. <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
  241. <if test="intm != null">INTM = #{intm},</if>
  242. <if test="uptm != null">UPTM = #{uptm},</if>
  243. <if test="status != null and status != ''">STATUS = #{status},</if>
  244. <if test="tacwnaauNote != null and tacwnaauNote != ''">TACWNAAU_NOTE = #{tacwnaauNote},</if>
  245. </trim>
  246. <where>ID = #{id}</where>
  247. </update>
  248. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
  249. update BIS_INSP_WTUNT_RGSTR_COLLEGE
  250. <trim prefix="set" suffixOverrides=",">
  251. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  252. <if test="fueNum != null and fueNum != ''">FUE_NUM = #{fueNum},</if>
  253. <if test="taasNum != null and taasNum != ''">TAAS_NUM = #{taasNum},</if>
  254. <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
  255. <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
  256. <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
  257. <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
  258. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
  259. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
  260. <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
  261. <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
  262. <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
  263. <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
  264. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
  265. <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
  266. <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
  267. <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
  268. <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
  269. <if test="isNkmwun != null and isNkmwun != ''">IS_NKMWUN = #{isNkmwun},</if>
  270. <if test="sittmowrIsExact != null and sittmowrIsExact != ''">SITTMOWR_IS_EXACT = #{sittmowrIsExact},</if>
  271. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
  272. <if test="isWrwco != null and isWrwco != ''">IS_WRWCO = #{isWrwco},</if>
  273. <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
  274. <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
  275. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
  276. <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
  277. <if test="isBuldOwmp != null and isBuldOwmp != ''">IS_BULD_OWMP = #{isBuldOwmp},</if>
  278. <if test="owmpIsNr != null and owmpIsNr != ''">OWMP_IS_NR = #{owmpIsNr},</if>
  279. <if test="isTacwnaau != null and isTacwnaau != ''">IS_TACWNAAU = #{isTacwnaau},</if>
  280. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
  281. <if test="isIwcidta != null and isIwcidta != ''">IS_IWCIDTA = #{isIwcidta},</if>
  282. <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
  283. <if test="intm != null">INTM = #{intm},</if>
  284. <if test="uptm != null">UPTM = #{uptm},</if>
  285. <if test="status != null and status != ''">STATUS = #{status},</if>
  286. <if test="tacwnaauNote != null and tacwnaauNote != ''">TACWNAAU_NOTE = #{tacwnaauNote},</if>
  287. </trim>
  288. <include refid="page_where"/>
  289. </update>
  290. <!-- 其他自定义SQL -->
  291. </mapper>