BisInspVillqhFeeDao.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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.BisInspVillqhFeeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillqhFee" id="bisInspVillqhFeeResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="regstrId" column="REGSTR_ID"/>
  7. <result property="prjId" column="PRJ_ID"/>
  8. <result property="prjNm" column="PRJ_NM"/>
  9. <result property="prjType" column="PRJ_TYPE"/>
  10. <result property="adCode" column="AD_CODE"/>
  11. <result property="adName" column="AD_NAME"/>
  12. <result property="adFullName" column="AD_FULL_NAME"/>
  13. <result property="addr" column="ADDR"/>
  14. <result property="isEarlyWk" column="IS_EARLY_WK"/>
  15. <result property="buldTm" column="BULD_TM"/>
  16. <result property="buldCost" column="BULD_COST"/>
  17. <result property="buldPcity" column="BULD_PCITY"/>
  18. <result property="buldPrsSize" column="BULD_PRS_SIZE"/>
  19. <result property="buldPprsSize" column="BULD_PPRS_SIZE"/>
  20. <result property="isBuld" column="IS_BULD"/>
  21. <result property="isChk" column="IS_CHK"/>
  22. <result property="isPubWtrt" column="IS_PUB_WTRT"/>
  23. <result property="isImpSys" column="IS_IMP_SYS"/>
  24. <result property="yearCost" column="YEAR_COST"/>
  25. <result property="invest" column="INVEST"/>
  26. <result property="prjSize" column="PRJ_SIZE"/>
  27. <result property="pesSize" column="PES_SIZE"/>
  28. <result property="centerX" column="CENTER_X"/>
  29. <result property="centerY" column="CENTER_Y"/>
  30. <result property="gdX" column="GD_X"/>
  31. <result property="gdY" column="GD_Y"/>
  32. <result property="visitDate" column="VISIT_DATE"/>
  33. <result property="persId" column="PERS_ID"/>
  34. <result property="recPers" column="REC_PERS"/>
  35. <result property="intm" column="INTM"/>
  36. <result property="uptm" column="UPTM"/>
  37. <result property="status" column="STATUS"/>
  38. <result property="isDrawPlan" column="IS_DRAW_PLAN"/>
  39. <result property="isExApp" column="IS_EX_APP"/>
  40. <result property="isIssue" column="IS_ISSUE"/>
  41. <result property="planCost" column="PLAN_COST"/>
  42. <result property="dataStat" column="DATA_STAT"/>
  43. <result property="isConTask" column="IS_CON_TASK"/>
  44. <result property="isWaMeInst" column="IS_WA_ME_INST"/>
  45. <result property="waChgWay" column="WA_CHG_WAY"/>
  46. <result property="waterBill" column="WATER_BILL"/>
  47. </resultMap>
  48. <sql id="table_columns">
  49. ID,
  50. REGSTR_ID,
  51. PLAN_COST,
  52. PRJ_ID,
  53. PRJ_NM,
  54. PRJ_TYPE,
  55. AD_CODE,
  56. AD_NAME,
  57. AD_FULL_NAME,
  58. ADDR,
  59. IS_EARLY_WK,
  60. BULD_TM,
  61. BULD_COST,
  62. BULD_PCITY,
  63. BULD_PRS_SIZE,
  64. BULD_PPRS_SIZE,
  65. IS_BULD,
  66. IS_DRAW_PLAN,
  67. IS_EX_APP,
  68. IS_ISSUE,
  69. IS_CHK,
  70. IS_PUB_WTRT,
  71. IS_IMP_SYS,
  72. YEAR_COST,
  73. INVEST,
  74. PRJ_SIZE,
  75. PES_SIZE,
  76. CENTER_X,
  77. CENTER_Y,
  78. GD_X,
  79. GD_Y,
  80. VISIT_DATE,
  81. PERS_ID,
  82. REC_PERS,
  83. INTM,
  84. UPTM,
  85. STATUS,
  86. DATA_STAT,
  87. IS_CON_TASK,
  88. IS_WA_ME_INST,
  89. WA_CHG_WAY,
  90. WATER_BILL
  91. </sql>
  92. <sql id="entity_properties">
  93. #{id},
  94. #{regstrId},
  95. #{planCost},
  96. #{prjId},
  97. #{prjNm},
  98. #{prjType},
  99. #{adCode},
  100. #{adName},
  101. #{adFullName},
  102. #{addr},
  103. #{isEarlyWk},
  104. #{buldTm},
  105. #{buldCost},
  106. #{buldPcity},
  107. #{buldPrsSize},
  108. #{buldPprsSize},
  109. #{isBuld},
  110. #{isDrawPlan},
  111. #{isExApp},
  112. #{isIssue},
  113. #{isChk},
  114. #{isPubWtrt},
  115. #{isImpSys},
  116. #{yearCost},
  117. #{invest},
  118. #{prjSize},
  119. #{pesSize},
  120. #{centerX},
  121. #{centerY},
  122. #{gdX},
  123. #{gdY},
  124. #{visitDate},
  125. #{persId},
  126. #{recPers},
  127. #{intm},
  128. #{uptm},
  129. #{status},
  130. #{dataStat},
  131. #{isConTask},
  132. #{isWaMeInst},
  133. #{waChgWay},
  134. #{waterBill}
  135. </sql>
  136. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  137. <sql id="page_where">
  138. <trim prefix="where" prefixOverrides="and | or ">
  139. <if test="regstrId != null and regstrId != ''">and REGSTR_ID = #{regstrId}</if>
  140. <if test="planCost != null and planCost != ''">and PLAN_COST = #{planCost}</if>
  141. <if test="prjId != null and prjId != ''">and PRJ_ID = #{prjId}</if>
  142. <if test="prjNm != null and prjNm != ''">and PRJ_NM = #{prjNm}</if>
  143. <if test="prjType != null and prjType != ''">and PRJ_TYPE = #{prjType}</if>
  144. <if test="adCode != null and adCode != ''">and AD_CODE LIKE '${adCode}%'</if>
  145. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  146. <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
  147. <if test="addr != null and addr != ''">and ADDR = #{addr}</if>
  148. <if test="isEarlyWk != null and isEarlyWk != ''">and IS_EARLY_WK = #{isEarlyWk}</if>
  149. <if test="buldTm != null and buldTm != ''">and BULD_TM = #{buldTm}</if>
  150. <if test="buldCost != null and buldCost != ''">and BULD_COST = #{buldCost}</if>
  151. <if test="buldPcity != null and buldPcity != ''">and BULD_PCITY = #{buldPcity}</if>
  152. <if test="buldPrsSize != null and buldPrsSize != ''">and BULD_PRS_SIZE = #{buldPrsSize}</if>
  153. <if test="buldPprsSize != null and buldPprsSize != ''">and BULD_PPRS_SIZE = #{buldPprsSize}</if>
  154. <if test="isBuld != null and isBuld != ''">and IS_BULD = #{isBuld}</if>
  155. <if test="isDrawPlan != null and isDrawPlan != ''">and IS_DRAW_PLAN = #{isDrawPlan}</if>
  156. <if test="isExApp != null and isExApp != ''">and IS_EX_APP = #{isExApp}</if>
  157. <if test="isIssue != null and isIssue != ''">and IS_ISSUE = #{isIssue}</if>
  158. <if test="isChk != null and isChk != ''">and IS_CHK = #{isChk}</if>
  159. <if test="isPubWtrt != null and isPubWtrt != ''">and IS_PUB_WTRT = #{isPubWtrt}</if>
  160. <if test="isImpSys != null and isImpSys != ''">and IS_IMP_SYS = #{isImpSys}</if>
  161. <if test="yearCost != null and yearCost != ''">and YEAR_COST = #{yearCost}</if>
  162. <if test="invest != null and invest != ''">and INVEST = #{invest}</if>
  163. <if test="prjSize != null and prjSize != ''">and PRJ_SIZE = #{prjSize}</if>
  164. <if test="pesSize != null and pesSize != ''">and PES_SIZE = #{pesSize}</if>
  165. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  166. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  167. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  168. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  169. <if test="visitDate != null and visitDate != ''">and VISIT_DATE = #{visitDate}</if>
  170. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  171. <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
  172. <if test="intm != null">and INTM = #{intm}</if>
  173. <if test="uptm != null">and UPTM = #{uptm}</if>
  174. <if test="status != null and status != ''">and STATUS = #{status}</if>
  175. <if test="isConTask != null and isConTask != ''">and IS_CON_TASK = #{isConTask}</if>
  176. <if test="isWaMeInst != null and isWaMeInst != ''">and IS_WA_ME_INST = #{isWaMeInst}</if>
  177. <if test="waChgWay != null and waChgWay != ''">and WA_CHG_WAY = #{waChgWay}</if>
  178. <if test="waterBill != null">and WATER_BILL = #{waterBill}</if>
  179. and DATA_STAT='0'
  180. </trim>
  181. </sql>
  182. <select id="get" resultMap="bisInspVillqhFeeResultMap" parameterType="String">
  183. select
  184. <include refid="table_columns"/>
  185. from BIS_INSP_VILLQH_FEE where ID = #{id}
  186. </select>
  187. <select id="getBy" resultMap="bisInspVillqhFeeResultMap">
  188. select
  189. <include refid="table_columns"/>
  190. from BIS_INSP_VILLQH_FEE
  191. <include refid="page_where"/>
  192. </select>
  193. <select id="findAll" resultMap="bisInspVillqhFeeResultMap">
  194. select
  195. <include refid="table_columns"/>
  196. from BIS_INSP_VILLQH_FEE
  197. </select>
  198. <select id="findList" resultMap="bisInspVillqhFeeResultMap">
  199. select
  200. <include refid="table_columns"/>
  201. from BIS_INSP_VILLQH_FEE
  202. <include refid="page_where"/>
  203. </select>
  204. <select id="selectCount" resultType="int">
  205. select count(ID) from BIS_INSP_VILLQH_FEE
  206. <include refid="page_where"/>
  207. </select>
  208. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
  209. insert into BIS_INSP_VILLQH_FEE(
  210. <include refid="table_columns"/>
  211. )
  212. values (
  213. <include refid="entity_properties"/>
  214. )
  215. </insert>
  216. <delete id="delete" parameterType="java.lang.String">
  217. update BIS_INSP_VILLQH_FEE set DATA_STAT='9' WHERE ID = #{id}
  218. </delete>
  219. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
  220. update BIS_INSP_VILLQH_FEE set DATA_STAT='9'
  221. <include refid="page_where"/>
  222. </delete>
  223. <update id="deleteInFlag" parameterType="java.lang.String">
  224. update BIS_INSP_VILLQH_FEE set DATA_STAT='9' WHERE ID = #{id}
  225. </update>
  226. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
  227. update BIS_INSP_VILLQH_FEE
  228. <trim prefix="set" suffixOverrides=",">
  229. <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
  230. <if test="planCost != null and planCost != ''">PLAN_COST = #{planCost},</if>
  231. <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
  232. <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
  233. <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
  234. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  235. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  236. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  237. <if test="addr != null and addr != ''">ADDR = #{addr},</if>
  238. <if test="isEarlyWk != null and isEarlyWk != ''">IS_EARLY_WK = #{isEarlyWk},</if>
  239. <if test="buldTm != null and buldTm != ''">BULD_TM = #{buldTm},</if>
  240. <if test="buldCost != null and buldCost != ''">BULD_COST = #{buldCost},</if>
  241. <if test="buldPcity != null and buldPcity != ''">BULD_PCITY = #{buldPcity},</if>
  242. <if test="buldPrsSize != null and buldPrsSize != ''">BULD_PRS_SIZE = #{buldPrsSize},</if>
  243. <if test="buldPprsSize != null and buldPprsSize != ''">BULD_PPRS_SIZE = #{buldPprsSize},</if>
  244. <if test="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
  245. <if test="isDrawPlan != null and isDrawPlan != ''">IS_DRAW_PLAN = #{isDrawPlan},</if>
  246. <if test="isExApp != null and isExApp != ''">IS_EX_APP = #{isExApp},</if>
  247. <if test="isIssue != null and isIssue != ''">IS_ISSUE = #{isIssue},</if>
  248. <if test="isChk != null and isChk != ''">IS_CHK = #{isChk},</if>
  249. <if test="isPubWtrt != null and isPubWtrt != ''">IS_PUB_WTRT = #{isPubWtrt},</if>
  250. <if test="isImpSys != null and isImpSys != ''">IS_IMP_SYS = #{isImpSys},</if>
  251. <if test="yearCost != null and yearCost != ''">YEAR_COST = #{yearCost},</if>
  252. <if test="invest != null and invest != ''">INVEST = #{invest},</if>
  253. <if test="prjSize != null and prjSize != ''">PRJ_SIZE = #{prjSize},</if>
  254. <if test="pesSize != null and pesSize != ''">PES_SIZE = #{pesSize},</if>
  255. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  256. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  257. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  258. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  259. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  260. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  261. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  262. <if test="intm != null">INTM = #{intm},</if>
  263. <if test="uptm != null">UPTM = #{uptm},</if>
  264. <if test="status != null and status != ''">STATUS = #{status},</if>
  265. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  266. <if test="isConTask != null and isConTask != ''">IS_CON_TASK = #{isConTask},</if>
  267. <if test="isWaMeInst != null and isWaMeInst != ''"> IS_WA_ME_INST = #{isWaMeInst},</if>
  268. <if test="waChgWay != null and waChgWay != ''"> WA_CHG_WAY = #{waChgWay},</if>
  269. <if test="waterBill != null"> WATER_BILL = #{waterBill},</if>
  270. </trim>
  271. <where>ID = #{id}</where>
  272. </update>
  273. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
  274. update BIS_INSP_VILLQH_FEE
  275. <trim prefix="set" suffixOverrides=",">
  276. <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
  277. <if test="planCost != null and planCost != ''">PLAN_COST = #{planCost},</if>
  278. <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
  279. <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
  280. <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
  281. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  282. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  283. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  284. <if test="addr != null and addr != ''">ADDR = #{addr},</if>
  285. <if test="isEarlyWk != null and isEarlyWk != ''">IS_EARLY_WK = #{isEarlyWk},</if>
  286. <if test="buldTm != null and buldTm != ''">BULD_TM = #{buldTm},</if>
  287. <if test="buldCost != null and buldCost != ''">BULD_COST = #{buldCost},</if>
  288. <if test="buldPcity != null and buldPcity != ''">BULD_PCITY = #{buldPcity},</if>
  289. <if test="buldPrsSize != null and buldPrsSize != ''">BULD_PRS_SIZE = #{buldPrsSize},</if>
  290. <if test="buldPprsSize != null and buldPprsSize != ''">BULD_PPRS_SIZE = #{buldPprsSize},</if>
  291. <if test="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
  292. <if test="isDrawPlan != null and isDrawPlan != ''">IS_DRAW_PLAN = #{isDrawPlan},</if>
  293. <if test="isExApp != null and isExApp != ''">IS_EX_APP = #{isExApp},</if>
  294. <if test="isIssue != null and isIssue != ''">IS_ISSUE = #{isIssue},</if>
  295. <if test="isChk != null and isChk != ''">IS_CHK = #{isChk},</if>
  296. <if test="isPubWtrt != null and isPubWtrt != ''">IS_PUB_WTRT = #{isPubWtrt},</if>
  297. <if test="isImpSys != null and isImpSys != ''">IS_IMP_SYS = #{isImpSys},</if>
  298. <if test="yearCost != null and yearCost != ''">YEAR_COST = #{yearCost},</if>
  299. <if test="invest != null and invest != ''">INVEST = #{invest},</if>
  300. <if test="prjSize != null and prjSize != ''">PRJ_SIZE = #{prjSize},</if>
  301. <if test="pesSize != null and pesSize != ''">PES_SIZE = #{pesSize},</if>
  302. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  303. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  304. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  305. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  306. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  307. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  308. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  309. <if test="intm != null">INTM = #{intm},</if>
  310. <if test="uptm != null">UPTM = #{uptm},</if>
  311. <if test="status != null and status != ''">STATUS = #{status},</if>
  312. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  313. <if test="isConTask != null and isConTask != ''">IS_CON_TASK = #{isConTask},</if>
  314. <if test="isWaMeInst != null and isWaMeInst != ''"> IS_WA_ME_INST = #{isWaMeInst},</if>
  315. <if test="waChgWay != null and waChgWay != ''"> WA_CHG_WAY = #{waChgWay},</if>
  316. <if test="waterBill != null"> WATER_BILL = #{waterBill},</if>
  317. </trim>
  318. <include refid="page_where"/>
  319. </update>
  320. <!-- 其他自定义SQL -->
  321. </mapper>