BisInspSvwtAreaRgstrWswmDao.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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.BisInspSvwtAreaRgstrWswmDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm" id="bisInspSvwtAreaRgstrWswmResultMap">
  5. <result property="upTm" column="UP_TM"/>
  6. <result property="dataStat" column="DATA_STAT"/>
  7. <result property="id" column="ID"/>
  8. <result property="rgstrId" column="RGSTR_ID"/>
  9. <result property="useWwYy" column="USE_WW_YY"/>
  10. <result property="relUseWw" column="REL_USE_WW"/>
  11. <result property="useWwIsOp" column="USE_WW_IS_OP"/>
  12. <result property="indWu" column="IND_WU"/>
  13. <result property="agrWu" column="AGR_WU"/>
  14. <result property="lifeWu" column="LIFE_WU"/>
  15. <result property="ecoWu" column="ECO_WU"/>
  16. <result property="gdpWu" column="GDP_WU"/>
  17. <result property="indAddWu" column="IND_ADD_WU"/>
  18. <result property="irrR" column="IRR_R"/>
  19. <result property="oth" column="OTH"/>
  20. <result property="othRt" column="OTH_RT"/>
  21. <result property="othRtVal" column="OTH_RT_VAL"/>
  22. <result property="othUseWw" column="OTH_USE_WW"/>
  23. <result property="useWwYr" column="USE_WW_YR"/>
  24. <result property="useWwIsTask" column="USE_WW_IS_TASK"/>
  25. <result property="wpRdIsComp" column="WP_RD_IS_COMP"/>
  26. <result property="wpOfIsComp" column="WP_OF_IS_COMP"/>
  27. <result property="pwmidUnitNum" column="PWMID_UNIT_NUM"/>
  28. <result property="pwmiUnitNum" column="PWMI_UNIT_NUM"/>
  29. <result property="pwmidPwmiR" column="PWMID_PWMI_R"/>
  30. <result property="apwuIsIwtopwuar" column="APWU_IS_IWTOPWUAR"/>
  31. <result property="isUmwImc" column="IS_UMW_IMC"/>
  32. <result property="apwuIsAwupou" column="APWU_IS_AWUPOU"/>
  33. <result property="buldWcNum" column="BULD_WC_NUM"/>
  34. <result property="buldCompNum" column="BULD_COMP_NUM"/>
  35. <result property="buldTituNum" column="BULD_TITU_NUM"/>
  36. <result property="buldOfficeNum" column="BULD_OFFICE_NUM"/>
  37. <result property="buldUnvstNum" column="BULD_UNVST_NUM"/>
  38. <result property="buldSchoolNum" column="BULD_SCHOOL_NUM"/>
  39. <result property="buldOthTituNum" column="BULD_OTH_TITU_NUM"/>
  40. <result property="buldOthWcNum" column="BULD_OTH_WC_NUM"/>
  41. <result property="persId" column="PERS_ID"/>
  42. <result property="inTm" column="IN_TM"/>
  43. <result property="buldPlotNum" column="BULD_PLOT_NUM"/>
  44. </resultMap>
  45. <sql id="table_columns">
  46. UP_TM,
  47. DATA_STAT,
  48. ID,
  49. RGSTR_ID,
  50. USE_WW_YY,
  51. REL_USE_WW,
  52. USE_WW_IS_OP,
  53. IND_WU,
  54. AGR_WU,
  55. LIFE_WU,
  56. ECO_WU,
  57. GDP_WU,
  58. IND_ADD_WU,
  59. IRR_R,
  60. OTH,
  61. OTH_RT,
  62. OTH_RT_VAL,
  63. OTH_USE_WW,
  64. USE_WW_YR,
  65. USE_WW_IS_TASK,
  66. WP_RD_IS_COMP,
  67. WP_OF_IS_COMP,
  68. PWMID_UNIT_NUM,
  69. PWMI_UNIT_NUM,
  70. PWMID_PWMI_R,
  71. APWU_IS_IWTOPWUAR,
  72. IS_UMW_IMC,
  73. APWU_IS_AWUPOU,
  74. BULD_WC_NUM,
  75. BULD_COMP_NUM,
  76. BULD_TITU_NUM,
  77. BULD_OFFICE_NUM,
  78. BULD_UNVST_NUM,
  79. BULD_SCHOOL_NUM,
  80. BULD_OTH_TITU_NUM,
  81. BULD_OTH_WC_NUM,
  82. PERS_ID,
  83. IN_TM,
  84. BULD_PLOT_NUM
  85. </sql>
  86. <sql id="entity_properties">
  87. #{upTm},
  88. #{dataStat},
  89. #{id},
  90. #{rgstrId},
  91. #{useWwYy},
  92. #{relUseWw},
  93. #{useWwIsOp},
  94. #{indWu},
  95. #{agrWu},
  96. #{lifeWu},
  97. #{ecoWu},
  98. #{gdpWu},
  99. #{indAddWu},
  100. #{irrR},
  101. #{oth},
  102. #{othRt},
  103. #{othRtVal},
  104. #{othUseWw},
  105. #{useWwYr},
  106. #{useWwIsTask},
  107. #{wpRdIsComp},
  108. #{wpOfIsComp},
  109. #{pwmidUnitNum},
  110. #{pwmiUnitNum},
  111. #{pwmidPwmiR},
  112. #{apwuIsIwtopwuar},
  113. #{isUmwImc},
  114. #{apwuIsAwupou},
  115. #{buldWcNum},
  116. #{buldCompNum},
  117. #{buldTituNum},
  118. #{buldOfficeNum},
  119. #{buldUnvstNum},
  120. #{buldSchoolNum},
  121. #{buldOthTituNum},
  122. #{buldOthWcNum},
  123. #{persId},
  124. #{inTm},
  125. #{buldPlotNum}
  126. </sql>
  127. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  128. <sql id="page_where">
  129. <trim prefix="where" prefixOverrides="and | or ">
  130. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  131. <if test="id != null and id != ''">and ID = #{id}</if>
  132. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  133. <if test="useWwYy != null and useWwYy != ''">and USE_WW_YY = #{useWwYy}</if>
  134. <if test="relUseWw != null and relUseWw != ''">and REL_USE_WW = #{relUseWw}</if>
  135. <if test="useWwIsOp != null and useWwIsOp != ''">and USE_WW_IS_OP = #{useWwIsOp}</if>
  136. <if test="indWu != null and indWu != ''">and IND_WU = #{indWu}</if>
  137. <if test="agrWu != null and agrWu != ''">and AGR_WU = #{agrWu}</if>
  138. <if test="lifeWu != null and lifeWu != ''">and LIFE_WU = #{lifeWu}</if>
  139. <if test="ecoWu != null and ecoWu != ''">and ECO_WU = #{ecoWu}</if>
  140. <if test="gdpWu != null and gdpWu != ''">and GDP_WU = #{gdpWu}</if>
  141. <if test="indAddWu != null and indAddWu != ''">and IND_ADD_WU = #{indAddWu}</if>
  142. <if test="irrR != null and irrR != ''">and IRR_R = #{irrR}</if>
  143. <if test="oth != null and oth != ''">and OTH = #{oth}</if>
  144. <if test="othRt != null and othRt != ''">and OTH_RT = #{othRt}</if>
  145. <if test="othRtVal != null and othRtVal != ''">and OTH_RT_VAL = #{othRtVal}</if>
  146. <if test="othUseWw != null and othUseWw != ''">and OTH_USE_WW = #{othUseWw}</if>
  147. <if test="useWwYr != null and useWwYr != ''">and USE_WW_YR = #{useWwYr}</if>
  148. <if test="useWwIsTask != null and useWwIsTask != ''">and USE_WW_IS_TASK = #{useWwIsTask}</if>
  149. <if test="wpRdIsComp != null and wpRdIsComp != ''">and WP_RD_IS_COMP = #{wpRdIsComp}</if>
  150. <if test="wpOfIsComp != null and wpOfIsComp != ''">and WP_OF_IS_COMP = #{wpOfIsComp}</if>
  151. <if test="pwmidUnitNum != null and pwmidUnitNum != ''">and PWMID_UNIT_NUM = #{pwmidUnitNum}</if>
  152. <if test="pwmiUnitNum != null and pwmiUnitNum != ''">and PWMI_UNIT_NUM = #{pwmiUnitNum}</if>
  153. <if test="pwmidPwmiR != null and pwmidPwmiR != ''">and PWMID_PWMI_R = #{pwmidPwmiR}</if>
  154. <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">and APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar}</if>
  155. <if test="isUmwImc != null and isUmwImc != ''">and IS_UMW_IMC = #{isUmwImc}</if>
  156. <if test="apwuIsAwupou != null and apwuIsAwupou != ''">and APWU_IS_AWUPOU = #{apwuIsAwupou}</if>
  157. <if test="buldWcNum != null and buldWcNum != ''">and BULD_WC_NUM = #{buldWcNum}</if>
  158. <if test="buldCompNum != null and buldCompNum != ''">and BULD_COMP_NUM = #{buldCompNum}</if>
  159. <if test="buldTituNum != null and buldTituNum != ''">and BULD_TITU_NUM = #{buldTituNum}</if>
  160. <if test="buldOfficeNum != null and buldOfficeNum != ''">and BULD_OFFICE_NUM = #{buldOfficeNum}</if>
  161. <if test="buldUnvstNum != null and buldUnvstNum != ''">and BULD_UNVST_NUM = #{buldUnvstNum}</if>
  162. <if test="buldSchoolNum != null and buldSchoolNum != ''">and BULD_SCHOOL_NUM = #{buldSchoolNum}</if>
  163. <if test="buldOthTituNum != null and buldOthTituNum != ''">and BULD_OTH_TITU_NUM = #{buldOthTituNum}</if>
  164. <if test="buldOthWcNum != null and buldOthWcNum != ''">and BULD_OTH_WC_NUM = #{buldOthWcNum}</if>
  165. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  166. <if test="inTm != null">and IN_TM = #{inTm}</if>
  167. </trim>
  168. </sql>
  169. <select id="get" resultMap="bisInspSvwtAreaRgstrWswmResultMap" parameterType="String" >
  170. select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM where ID = #{id}
  171. </select>
  172. <select id="getBy" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
  173. select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
  174. </select>
  175. <select id="findAll" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
  176. select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM
  177. </select>
  178. <select id="findList" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
  179. select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
  180. </select>
  181. <select id="selectCount" resultType="int" >
  182. select count(ID) from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
  183. </select>
  184. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
  185. insert into BIS_INSP_SVWT_AREA_RGSTR_WSWM( <include refid="table_columns" /> )
  186. values ( <include refid="entity_properties" /> )
  187. </insert>
  188. <delete id="delete" parameterType="java.lang.String">
  189. delete from BIS_INSP_SVWT_AREA_RGSTR_WSWM where ID = #{id}
  190. </delete>
  191. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
  192. delete from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
  193. </delete>
  194. <update id="deleteInFlag" parameterType="java.lang.String">
  195. update BIS_INSP_SVWT_AREA_RGSTR_WSWM set flag_valid = 0 where ID = #{id}
  196. </update>
  197. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
  198. update BIS_INSP_SVWT_AREA_RGSTR_WSWM
  199. <trim prefix="set" suffixOverrides=",">
  200. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  201. <if test="id != null and id != ''">ID = #{id},</if>
  202. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  203. <if test="useWwYy != null">USE_WW_YY = #{useWwYy},</if>
  204. <if test="relUseWw != null">REL_USE_WW = #{relUseWw},</if>
  205. <if test="useWwIsOp != null and useWwIsOp != ''">USE_WW_IS_OP = #{useWwIsOp},</if>
  206. <if test="indWu != null">IND_WU = #{indWu},</if>
  207. <if test="buldPlotNum != null">BULD_PLOT_NUM = #{buldPlotNum},</if>
  208. <if test="agrWu != null">AGR_WU = #{agrWu},</if>
  209. <if test="lifeWu != null">LIFE_WU = #{lifeWu},</if>
  210. <if test="ecoWu != null">ECO_WU = #{ecoWu},</if>
  211. <if test="gdpWu != null">GDP_WU = #{gdpWu},</if>
  212. <if test="indAddWu != null">IND_ADD_WU = #{indAddWu},</if>
  213. <if test="irrR != null">IRR_R = #{irrR},</if>
  214. <if test="oth != null">OTH = #{oth},</if>
  215. <if test="othRt != null">OTH_RT = #{othRt},</if>
  216. <if test="othRtVal != null">OTH_RT_VAL = #{othRtVal},</if>
  217. <if test="othUseWw != null">OTH_USE_WW = #{othUseWw},</if>
  218. <if test="useWwYr != null">USE_WW_YR = #{useWwYr},</if>
  219. <if test="useWwIsTask != null and useWwIsTask != ''">USE_WW_IS_TASK = #{useWwIsTask},</if>
  220. <if test="wpRdIsComp != null and wpRdIsComp != ''">WP_RD_IS_COMP = #{wpRdIsComp},</if>
  221. <if test="wpOfIsComp != null and wpOfIsComp != ''">WP_OF_IS_COMP = #{wpOfIsComp},</if>
  222. <if test="pwmidUnitNum != null">PWMID_UNIT_NUM = #{pwmidUnitNum},</if>
  223. <if test="pwmiUnitNum != null">PWMI_UNIT_NUM = #{pwmiUnitNum},</if>
  224. <if test="pwmidPwmiR != null">PWMID_PWMI_R = #{pwmidPwmiR},</if>
  225. <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar},</if>
  226. <if test="isUmwImc != null and isUmwImc != ''">IS_UMW_IMC = #{isUmwImc},</if>
  227. <if test="apwuIsAwupou != null and apwuIsAwupou != ''">APWU_IS_AWUPOU = #{apwuIsAwupou},</if>
  228. <if test="buldWcNum != null">BULD_WC_NUM = #{buldWcNum},</if>
  229. <if test="buldCompNum != null">BULD_COMP_NUM = #{buldCompNum},</if>
  230. <if test="buldTituNum != null">BULD_TITU_NUM = #{buldTituNum},</if>
  231. <if test="buldOfficeNum != null">BULD_OFFICE_NUM = #{buldOfficeNum},</if>
  232. <if test="buldUnvstNum != null">BULD_UNVST_NUM = #{buldUnvstNum},</if>
  233. <if test="buldSchoolNum != null">BULD_SCHOOL_NUM = #{buldSchoolNum},</if>
  234. <if test="buldOthTituNum != null">BULD_OTH_TITU_NUM = #{buldOthTituNum},</if>
  235. <if test="buldOthWcNum != null">BULD_OTH_WC_NUM = #{buldOthWcNum},</if>
  236. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  237. <if test="inTm != null">IN_TM = #{inTm},</if>
  238. </trim>
  239. <where>ID = #{id}</where>
  240. </update>
  241. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
  242. update BIS_INSP_SVWT_AREA_RGSTR_WSWM
  243. <trim prefix="set" suffixOverrides=",">
  244. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  245. <if test="id != null and id != ''">ID = #{id},</if>
  246. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  247. <if test="useWwYy != null and useWwYy != ''">USE_WW_YY = #{useWwYy},</if>
  248. <if test="relUseWw != null and relUseWw != ''">REL_USE_WW = #{relUseWw},</if>
  249. <if test="useWwIsOp != null and useWwIsOp != ''">USE_WW_IS_OP = #{useWwIsOp},</if>
  250. <if test="indWu != null and indWu != ''">IND_WU = #{indWu},</if>
  251. <if test="buldPlotNum != null">BULD_PLOT_NUM = #{buldPlotNum},</if>
  252. <if test="agrWu != null and agrWu != ''">AGR_WU = #{agrWu},</if>
  253. <if test="lifeWu != null and lifeWu != ''">LIFE_WU = #{lifeWu},</if>
  254. <if test="ecoWu != null and ecoWu != ''">ECO_WU = #{ecoWu},</if>
  255. <if test="gdpWu != null and gdpWu != ''">GDP_WU = #{gdpWu},</if>
  256. <if test="indAddWu != null and indAddWu != ''">IND_ADD_WU = #{indAddWu},</if>
  257. <if test="irrR != null and irrR != ''">IRR_R = #{irrR},</if>
  258. <if test="oth != null and oth != ''">OTH = #{oth},</if>
  259. <if test="othRt != null and othRt != ''">OTH_RT = #{othRt},</if>
  260. <if test="othRtVal != null and othRtVal != ''">OTH_RT_VAL = #{othRtVal},</if>
  261. <if test="othUseWw != null and othUseWw != ''">OTH_USE_WW = #{othUseWw},</if>
  262. <if test="useWwYr != null and useWwYr != ''">USE_WW_YR = #{useWwYr},</if>
  263. <if test="useWwIsTask != null and useWwIsTask != ''">USE_WW_IS_TASK = #{useWwIsTask},</if>
  264. <if test="wpRdIsComp != null and wpRdIsComp != ''">WP_RD_IS_COMP = #{wpRdIsComp},</if>
  265. <if test="wpOfIsComp != null and wpOfIsComp != ''">WP_OF_IS_COMP = #{wpOfIsComp},</if>
  266. <if test="pwmidUnitNum != null and pwmidUnitNum != ''">PWMID_UNIT_NUM = #{pwmidUnitNum},</if>
  267. <if test="pwmiUnitNum != null and pwmiUnitNum != ''">PWMI_UNIT_NUM = #{pwmiUnitNum},</if>
  268. <if test="pwmidPwmiR != null and pwmidPwmiR != ''">PWMID_PWMI_R = #{pwmidPwmiR},</if>
  269. <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar},</if>
  270. <if test="isUmwImc != null and isUmwImc != ''">IS_UMW_IMC = #{isUmwImc},</if>
  271. <if test="apwuIsAwupou != null and apwuIsAwupou != ''">APWU_IS_AWUPOU = #{apwuIsAwupou},</if>
  272. <if test="buldWcNum != null and buldWcNum != ''">BULD_WC_NUM = #{buldWcNum},</if>
  273. <if test="buldCompNum != null and buldCompNum != ''">BULD_COMP_NUM = #{buldCompNum},</if>
  274. <if test="buldTituNum != null and buldTituNum != ''">BULD_TITU_NUM = #{buldTituNum},</if>
  275. <if test="buldOfficeNum != null and buldOfficeNum != ''">BULD_OFFICE_NUM = #{buldOfficeNum},</if>
  276. <if test="buldUnvstNum != null and buldUnvstNum != ''">BULD_UNVST_NUM = #{buldUnvstNum},</if>
  277. <if test="buldSchoolNum != null and buldSchoolNum != ''">BULD_SCHOOL_NUM = #{buldSchoolNum},</if>
  278. <if test="buldOthTituNum != null and buldOthTituNum != ''">BULD_OTH_TITU_NUM = #{buldOthTituNum},</if>
  279. <if test="buldOthWcNum != null and buldOthWcNum != ''">BULD_OTH_WC_NUM = #{buldOthWcNum},</if>
  280. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  281. <if test="inTm != null">IN_TM = #{inTm},</if>
  282. </trim>
  283. <include refid="page_where" />
  284. </update>
  285. <!-- 其他自定义SQL -->
  286. </mapper>