BisInspJspwiu2024WaterDao.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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.BisInspJspwiu2024WaterDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water" id="bisInspJspwiu2024WaterResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isCrtf" column="IS_CRTF"/>
  8. <result property="isWaterIntake" column="IS_WATER_INTAKE"/>
  9. <result property="isWtrsArgm" column="IS_WTRS_ARGM"/>
  10. <result property="isOverWtrs" column="IS_OVER_WTRS"/>
  11. <result property="isOverUser" column="IS_OVER_USER"/>
  12. <result property="isWtrsPermit" column="IS_WTRS_PERMIT"/>
  13. <result property="isWtrsCntn" column="IS_WTRS_CNTN"/>
  14. <result property="isWtrsCryut" column="IS_WTRS_CRYUT"/>
  15. <result property="isOverYrpln" column="IS_OVER_YRPLN"/>
  16. <result property="isPayRsrs" column="IS_PAY_RSRS"/>
  17. <result property="isPayTime" column="IS_PAY_TIME"/>
  18. <result property="isOplanRsrs" column="IS_OPLAN_RSRS"/>
  19. <result property="isInstFclt" column="IS_INST_FCLT"/>
  20. <result property="isInstChk" column="IS_INST_CHK"/>
  21. <result property="isInstSys" column="IS_INST_SYS"/>
  22. <result property="isInstPay" column="IS_INST_PAY"/>
  23. <result property="isFillMeet" column="IS_FILL_MEET"/>
  24. <result property="isReltnAcrcy" column="IS_RELTN_ACRCY"/>
  25. <result property="note" column="NOTE"/>
  26. <result property="persId" column="PERS_ID"/>
  27. <result property="intm" column="INTM"/>
  28. <result property="uptm" column="UPTM"/>
  29. <result property="dataStat" column="DATA_STAT"/>
  30. <result property="state" column="STATE"/>
  31. </resultMap>
  32. <sql id="table_columns">
  33. ID,
  34. RGSTR_ID,
  35. IS_CRTF,
  36. IS_WATER_INTAKE,
  37. IS_WTRS_ARGM,
  38. IS_OVER_WTRS,
  39. IS_OVER_USER,
  40. IS_WTRS_PERMIT,
  41. IS_WTRS_CNTN,
  42. IS_WTRS_CRYUT,
  43. IS_OVER_YRPLN,
  44. IS_PAY_RSRS,
  45. IS_PAY_TIME,
  46. IS_OPLAN_RSRS,
  47. IS_INST_FCLT,
  48. IS_INST_CHK,
  49. IS_INST_SYS,
  50. IS_INST_PAY,
  51. IS_FILL_MEET,
  52. IS_RELTN_ACRCY,
  53. NOTE,
  54. PERS_ID,
  55. INTM,
  56. UPTM,
  57. DATA_STAT,
  58. STATE
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{isCrtf},
  64. #{isWaterIntake},
  65. #{isWtrsArgm},
  66. #{isOverWtrs},
  67. #{isOverUser},
  68. #{isWtrsPermit},
  69. #{isWtrsCntn},
  70. #{isWtrsCryut},
  71. #{isOverYrpln},
  72. #{isPayRsrs},
  73. #{isPayTime},
  74. #{isOplanRsrs},
  75. #{isInstFclt},
  76. #{isInstChk},
  77. #{isInstSys},
  78. #{isInstPay},
  79. #{isFillMeet},
  80. #{isReltnAcrcy},
  81. #{note},
  82. #{persId},
  83. #{intm},
  84. #{uptm},
  85. #{dataStat},
  86. #{state}
  87. </sql>
  88. <!-- 浣跨敤like鐢ㄦ硶锛歝olumnName like concat('%',#columnName#,'%') -->
  89. <sql id="page_where">
  90. <trim prefix="where" prefixOverrides="and | or ">
  91. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  92. <if test="isCrtf != null and isCrtf != ''">and IS_CRTF = #{isCrtf}</if>
  93. <if test="isWaterIntake != null and isWaterIntake != ''">and IS_WATER_INTAKE = #{isWaterIntake}</if>
  94. <if test="isWtrsArgm != null and isWtrsArgm != ''">and IS_WTRS_ARGM = #{isWtrsArgm}</if>
  95. <if test="isOverWtrs != null and isOverWtrs != ''">and IS_OVER_WTRS = #{isOverWtrs}</if>
  96. <if test="isOverUser != null and isOverUser != ''">and IS_OVER_USER = #{isOverUser}</if>
  97. <if test="isWtrsPermit != null and isWtrsPermit != ''">and IS_WTRS_PERMIT = #{isWtrsPermit}</if>
  98. <if test="isWtrsCntn != null and isWtrsCntn != ''">and IS_WTRS_CNTN = #{isWtrsCntn}</if>
  99. <if test="isWtrsCryut != null and isWtrsCryut != ''">and IS_WTRS_CRYUT = #{isWtrsCryut}</if>
  100. <if test="isOverYrpln != null and isOverYrpln != ''">and IS_OVER_YRPLN = #{isOverYrpln}</if>
  101. <if test="isPayRsrs != null and isPayRsrs != ''">and IS_PAY_RSRS = #{isPayRsrs}</if>
  102. <if test="isPayTime != null and isPayTime != ''">and IS_PAY_TIME = #{isPayTime}</if>
  103. <if test="isOplanRsrs != null and isOplanRsrs != ''">and IS_OPLAN_RSRS = #{isOplanRsrs}</if>
  104. <if test="isInstFclt != null and isInstFclt != ''">and IS_INST_FCLT = #{isInstFclt}</if>
  105. <if test="isInstChk != null and isInstChk != ''">and IS_INST_CHK = #{isInstChk}</if>
  106. <if test="isInstSys != null and isInstSys != ''">and IS_INST_SYS = #{isInstSys}</if>
  107. <if test="isInstPay != null and isInstPay != ''">and IS_INST_PAY = #{isInstPay}</if>
  108. <if test="isFillMeet != null and isFillMeet != ''">and IS_FILL_MEET = #{isFillMeet}</if>
  109. <if test="isReltnAcrcy != null and isReltnAcrcy != ''">and IS_RELTN_ACRCY = #{isReltnAcrcy}</if>
  110. <if test="note != null and note != ''">and NOTE = #{note}</if>
  111. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  112. <if test="intm != null">and INTM = #{intm}</if>
  113. <if test="uptm != null">and UPTM = #{uptm}</if>
  114. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  115. <if test="state != null and state != ''">and STATE = #{state}</if>
  116. </trim>
  117. </sql>
  118. <select id="get" resultMap="bisInspJspwiu2024WaterResultMap" parameterType="String" >
  119. select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER where RGSTR_ID = #{id}
  120. </select>
  121. <select id="getBy" resultMap="bisInspJspwiu2024WaterResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
  123. </select>
  124. <select id="findAll" resultMap="bisInspJspwiu2024WaterResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER
  126. </select>
  127. <select id="findList" resultMap="bisInspJspwiu2024WaterResultMap">
  128. select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
  129. </select>
  130. <select id="selectCount" resultType="int" >
  131. select count(ID) from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
  132. </select>
  133. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
  134. insert into BIS_INSP_JSPWIU2024_WATER( <include refid="table_columns" /> )
  135. values ( <include refid="entity_properties" /> )
  136. </insert>
  137. <delete id="delete" parameterType="java.lang.String">
  138. update BIS_INSP_JSPWIU2024_WATER set DATA_STAT='9' where ID = #{id}
  139. </delete>
  140. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
  141. delete from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update BIS_INSP_JSPWIU2024_WATER set flag_valid = 0 where ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
  147. update BIS_INSP_JSPWIU2024_WATER
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="isCrtf != null and isCrtf != ''">IS_CRTF = #{isCrtf},</if>
  151. <if test="isWaterIntake != null and isWaterIntake != ''">IS_WATER_INTAKE = #{isWaterIntake},</if>
  152. <if test="isWtrsArgm != null and isWtrsArgm != ''">IS_WTRS_ARGM = #{isWtrsArgm},</if>
  153. <if test="isOverWtrs != null and isOverWtrs != ''">IS_OVER_WTRS = #{isOverWtrs},</if>
  154. <if test="isOverUser != null and isOverUser != ''">IS_OVER_USER = #{isOverUser},</if>
  155. <if test="isWtrsPermit != null and isWtrsPermit != ''">IS_WTRS_PERMIT = #{isWtrsPermit},</if>
  156. <if test="isWtrsCntn != null and isWtrsCntn != ''">IS_WTRS_CNTN = #{isWtrsCntn},</if>
  157. <if test="isWtrsCryut != null and isWtrsCryut != ''">IS_WTRS_CRYUT = #{isWtrsCryut},</if>
  158. <if test="isOverYrpln != null and isOverYrpln != ''">IS_OVER_YRPLN = #{isOverYrpln},</if>
  159. <if test="isPayRsrs != null and isPayRsrs != ''">IS_PAY_RSRS = #{isPayRsrs},</if>
  160. <if test="isPayTime != null and isPayTime != ''">IS_PAY_TIME = #{isPayTime},</if>
  161. <if test="isOplanRsrs != null and isOplanRsrs != ''">IS_OPLAN_RSRS = #{isOplanRsrs},</if>
  162. <if test="isInstFclt != null and isInstFclt != ''">IS_INST_FCLT = #{isInstFclt},</if>
  163. <if test="isInstChk != null and isInstChk != ''">IS_INST_CHK = #{isInstChk},</if>
  164. <if test="isInstSys != null and isInstSys != ''">IS_INST_SYS = #{isInstSys},</if>
  165. <if test="isInstPay != null and isInstPay != ''">IS_INST_PAY = #{isInstPay},</if>
  166. <if test="isFillMeet != null and isFillMeet != ''">IS_FILL_MEET = #{isFillMeet},</if>
  167. <if test="isReltnAcrcy != null and isReltnAcrcy != ''">IS_RELTN_ACRCY = #{isReltnAcrcy},</if>
  168. <if test="note != null and note != ''">NOTE = #{note},</if>
  169. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  170. <if test="intm != null">INTM = #{intm},</if>
  171. <if test="uptm != null">UPTM = #{uptm},</if>
  172. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  173. <if test="state != null and state != ''">STATE = #{state},</if>
  174. </trim>
  175. <where>ID = #{id}</where>
  176. </update>
  177. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
  178. update BIS_INSP_JSPWIU2024_WATER
  179. <trim prefix="set" suffixOverrides=",">
  180. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  181. <if test="isCrtf != null and isCrtf != ''">IS_CRTF = #{isCrtf},</if>
  182. <if test="isWaterIntake != null and isWaterIntake != ''">IS_WATER_INTAKE = #{isWaterIntake},</if>
  183. <if test="isWtrsArgm != null and isWtrsArgm != ''">IS_WTRS_ARGM = #{isWtrsArgm},</if>
  184. <if test="isOverWtrs != null and isOverWtrs != ''">IS_OVER_WTRS = #{isOverWtrs},</if>
  185. <if test="isOverUser != null and isOverUser != ''">IS_OVER_USER = #{isOverUser},</if>
  186. <if test="isWtrsPermit != null and isWtrsPermit != ''">IS_WTRS_PERMIT = #{isWtrsPermit},</if>
  187. <if test="isWtrsCntn != null and isWtrsCntn != ''">IS_WTRS_CNTN = #{isWtrsCntn},</if>
  188. <if test="isWtrsCryut != null and isWtrsCryut != ''">IS_WTRS_CRYUT = #{isWtrsCryut},</if>
  189. <if test="isOverYrpln != null and isOverYrpln != ''">IS_OVER_YRPLN = #{isOverYrpln},</if>
  190. <if test="isPayRsrs != null and isPayRsrs != ''">IS_PAY_RSRS = #{isPayRsrs},</if>
  191. <if test="isPayTime != null and isPayTime != ''">IS_PAY_TIME = #{isPayTime},</if>
  192. <if test="isOplanRsrs != null and isOplanRsrs != ''">IS_OPLAN_RSRS = #{isOplanRsrs},</if>
  193. <if test="isInstFclt != null and isInstFclt != ''">IS_INST_FCLT = #{isInstFclt},</if>
  194. <if test="isInstChk != null and isInstChk != ''">IS_INST_CHK = #{isInstChk},</if>
  195. <if test="isInstSys != null and isInstSys != ''">IS_INST_SYS = #{isInstSys},</if>
  196. <if test="isInstPay != null and isInstPay != ''">IS_INST_PAY = #{isInstPay},</if>
  197. <if test="isFillMeet != null and isFillMeet != ''">IS_FILL_MEET = #{isFillMeet},</if>
  198. <if test="isReltnAcrcy != null and isReltnAcrcy != ''">IS_RELTN_ACRCY = #{isReltnAcrcy},</if>
  199. <if test="note != null and note != ''">NOTE = #{note},</if>
  200. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  201. <if test="intm != null">INTM = #{intm},</if>
  202. <if test="uptm != null">UPTM = #{uptm},</if>
  203. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  204. <if test="state != null and state != ''">STATE = #{state},</if>
  205. </trim>
  206. <include refid="page_where" />
  207. </update>
  208. <!-- 鍏朵粬鑷畾涔塖QL -->
  209. </mapper>