BisZhejiangCountryFeeDao.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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.BisZhejiangCountryFeeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee" id="bisZhejiangCountryFeeResultMap">
  5. <result property="cwsCode" column="CWS_CODE"/>
  6. <result property="projectNm" column="PROJECT_NM"/>
  7. <result property="projectLogo" column="PROJECT_LOGO"/>
  8. <result property="projectNote" column="PROJECT_NOTE"/>
  9. <result property="projectDesc" column="PROJECT_DESC"/>
  10. <result property="projectType" column="PROJECT_TYPE"/>
  11. <result property="id" column="ID"/>
  12. <result property="rgstrId" column="RGSTR_ID"/>
  13. <result property="adCode" column="AD_CODE"/>
  14. <result property="finishTime" column="FINISH_TIME"/>
  15. <result property="isCalFee" column="IS_CAL_FEE"/>
  16. <result property="fee" column="FEE"/>
  17. <result property="isKnowFeeProcent" column="IS_KNOW_FEE_PROCENT"/>
  18. <result property="payFeeProcent" column="PAY_FEE_PROCENT"/>
  19. <result property="isOwnCleanTool" column="IS_OWN_CLEAN_TOOL"/>
  20. <result property="visitDate" column="VISIT_DATE"/>
  21. <result property="persId" column="PERS_ID"/>
  22. <result property="recPers2" column="REC_PERS2"/>
  23. <result property="createTime" column="CREATE_TIME"/>
  24. <result property="updateTime" column="UPDATE_TIME"/>
  25. <result property="status" column="STATUS"/>
  26. <result property="isDisinfNormal" column="IS_DISINF_NORMAL"/>
  27. <result property="waterQuaHaveNote" column="WATER_QUA_HAVE_NOTE"/>
  28. <result property="waterCheckCount" column="WATER_CHECK_COUNT"/>
  29. <result property="telephone" column="TELEPHONE"/>
  30. <result property="adFullName" column="AD_FULL_NAME"/>
  31. <result property="lgtd" column="LGTD"/>
  32. <result property="lttd" column="LTTD"/>
  33. <result property="lgtdpc" column="LGTDPC"/>
  34. <result property="lttdpc" column="LTTDPC"/>
  35. <result property="projectThreePerson" column="PROJECT_THREE_PERSON"/>
  36. <result property="projectPerson" column="PROJECT_PERSON"/>
  37. <result property="weihuPerson" column="WEIHU_PERSON"/>
  38. <result property="biaozhunCreate" column="BIAOZHUN_CREATE"/>
  39. <result property="personStatify" column="PERSON_STATIFY"/>
  40. <result property="note" column="NOTE"/>
  41. <result property="location" column="location"/>
  42. </resultMap>
  43. <sql id="table_columns">
  44. location,
  45. CWS_CODE,
  46. PROJECT_NM,
  47. PROJECT_LOGO,
  48. PROJECT_NOTE,
  49. PROJECT_DESC,
  50. PROJECT_TYPE,
  51. ID,
  52. RGSTR_ID,
  53. AD_CODE,
  54. FINISH_TIME,
  55. IS_CAL_FEE,
  56. FEE,
  57. IS_KNOW_FEE_PROCENT,
  58. PAY_FEE_PROCENT,
  59. IS_OWN_CLEAN_TOOL,
  60. VISIT_DATE,
  61. PERS_ID,
  62. REC_PERS2,
  63. CREATE_TIME,
  64. UPDATE_TIME,
  65. STATUS,
  66. IS_DISINF_NORMAL,
  67. WATER_QUA_HAVE_NOTE,
  68. WATER_CHECK_COUNT,
  69. TELEPHONE,
  70. AD_FULL_NAME,
  71. LGTD,
  72. LTTD,
  73. LGTDPC,
  74. LTTDPC,
  75. PROJECT_THREE_PERSON,
  76. PROJECT_PERSON,
  77. WEIHU_PERSON,
  78. BIAOZHUN_CREATE,
  79. PERSON_STATIFY,
  80. NOTE
  81. </sql>
  82. <sql id="entity_properties">
  83. #{location},
  84. #{cwsCode},
  85. #{projectNm},
  86. #{projectLogo},
  87. #{projectNote},
  88. #{projectDesc},
  89. #{projectType},
  90. #{id},
  91. #{rgstrId},
  92. #{adCode},
  93. #{finishTime},
  94. #{isCalFee},
  95. #{fee},
  96. #{isKnowFeeProcent},
  97. #{payFeeProcent},
  98. #{isOwnCleanTool},
  99. #{visitDate},
  100. #{persId},
  101. #{recPers2},
  102. #{createTime},
  103. #{updateTime},
  104. #{status},
  105. #{isDisinfNormal},
  106. #{waterQuaHaveNote},
  107. #{waterCheckCount},
  108. #{telephone},
  109. #{adFullName},
  110. #{lgtd},
  111. #{lttd},
  112. #{lgtdpc},
  113. #{lttdpc},
  114. #{projectThreePerson},
  115. #{projectPerson},
  116. #{weihuPerson},
  117. #{biaozhunCreate},
  118. #{personStatify},
  119. #{note}
  120. </sql>
  121. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  122. <sql id="page_where">
  123. <trim prefix="where" prefixOverrides="and | or ">
  124. <if test="location != null and location != ''">and location = #{location}</if>
  125. <if test="cwsCode != null and cwsCode != ''">and CWS_CODE = #{cwsCode}</if>
  126. <if test="projectLogo != null and projectLogo != ''">and PROJECT_LOGO = #{projectLogo}</if>
  127. <if test="projectNote != null and projectNote != ''">and PROJECT_NOTE = #{projectNote}</if>
  128. <if test="projectDesc != null and projectDesc != ''">and PROJECT_DESC = #{projectDesc}</if>
  129. <if test="projectType != null and projectType != ''">and PROJECT_TYPE = #{projectType}</if>
  130. <if test="id != null and id != ''">and ID = #{id}</if>
  131. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  132. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  133. <if test="finishTime != null and finishTime != ''">and FINISH_TIME = #{finishTime}</if>
  134. <if test="isCalFee != null and isCalFee != ''">and IS_CAL_FEE = #{isCalFee}</if>
  135. <if test="fee != null and fee != ''">and FEE = #{fee}</if>
  136. <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">and IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent}</if>
  137. <if test="payFeeProcent != null and payFeeProcent != ''">and PAY_FEE_PROCENT = #{payFeeProcent}</if>
  138. <if test="isOwnCleanTool != null and isOwnCleanTool != ''">and IS_OWN_CLEAN_TOOL = #{isOwnCleanTool}</if>
  139. <if test="visitDate != null and visitDate != ''">and VISIT_DATE = #{visitDate}</if>
  140. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  141. <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
  142. <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
  143. <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
  144. <if test="status != null and status != ''">and STATUS = #{status}</if>
  145. <if test="isDisinfNormal != null and isDisinfNormal != ''">and IS_DISINF_NORMAL = #{isDisinfNormal}</if>
  146. <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">and WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote}</if>
  147. <if test="waterCheckCount != null and waterCheckCount != ''">and WATER_CHECK_COUNT = #{waterCheckCount}</if>
  148. <if test="telephone != null and telephone != ''">and TELEPHONE = #{telephone}</if>
  149. <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
  150. <if test="lgtd != null and lgtd != ''">and LGTD = #{lgtd}</if>
  151. <if test="lttd != null and lttd != ''">and LTTD = #{lttd}</if>
  152. <if test="lgtdpc != null and lgtdpc != ''">and LGTDPC = #{lgtdpc}</if>
  153. <if test="lttdpc != null and lttdpc != ''">and LTTDPC = #{lttdpc}</if>
  154. <if test="projectThreePerson != null and projectThreePerson != ''">and PROJECT_THREE_PERSON = #{projectThreePerson}</if>
  155. <if test="projectPerson != null and projectPerson != ''">and PROJECT_PERSON = #{projectPerson}</if>
  156. <if test="weihuPerson != null and weihuPerson != ''">and WEIHU_PERSON = #{weihuPerson}</if>
  157. <if test="biaozhunCreate != null and biaozhunCreate != ''">and BIAOZHUN_CREATE = #{biaozhunCreate}</if>
  158. <if test="personStatify != null and personStatify != ''">and PERSON_STATIFY = #{personStatify}</if>
  159. <if test="note != null and note != ''">and NOTE = #{note}</if>
  160. </trim>
  161. </sql>
  162. <select id="get" resultMap="bisZhejiangCountryFeeResultMap" parameterType="String" >
  163. select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE where ID = #{id}
  164. </select>
  165. <select id="getBy" resultMap="bisZhejiangCountryFeeResultMap">
  166. select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
  167. </select>
  168. <select id="findAll" resultMap="bisZhejiangCountryFeeResultMap">
  169. select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE
  170. </select>
  171. <select id="findList" resultMap="bisZhejiangCountryFeeResultMap">
  172. select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
  173. </select>
  174. <select id="selectCount" resultType="int" >
  175. select count(ID) from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
  176. </select>
  177. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
  178. insert into BIS_ZHEJIANG_COUNTRY_FEE( <include refid="table_columns" /> )
  179. values ( <include refid="entity_properties" /> )
  180. </insert>
  181. <delete id="delete" parameterType="java.lang.String">
  182. delete from BIS_ZHEJIANG_COUNTRY_FEE where ID = #{id}
  183. </delete>
  184. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
  185. delete from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
  186. </delete>
  187. <update id="deleteInFlag" parameterType="java.lang.String">
  188. update BIS_ZHEJIANG_COUNTRY_FEE set flag_valid = 0 where ID = #{id}
  189. </update>
  190. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
  191. update BIS_ZHEJIANG_COUNTRY_FEE
  192. <trim prefix="set" suffixOverrides=",">
  193. <if test="location != null and location != ''"> location = #{location},</if>
  194. <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
  195. <if test="projectLogo != null and projectLogo != ''">PROJECT_LOGO = #{projectLogo},</if>
  196. <if test="projectNote != null and projectNote != ''">PROJECT_NOTE = #{projectNote},</if>
  197. <if test="projectDesc != null and projectDesc != ''">PROJECT_DESC = #{projectDesc},</if>
  198. <if test="projectType != null and projectType != ''">PROJECT_TYPE = #{projectType},</if>
  199. <if test="id != null and id != ''">ID = #{id},</if>
  200. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  201. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  202. <if test="finishTime != null and finishTime != ''">FINISH_TIME = #{finishTime},</if>
  203. <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
  204. <if test="fee != null and fee != ''">FEE = #{fee},</if>
  205. <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent},</if>
  206. <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
  207. <if test="isOwnCleanTool != null and isOwnCleanTool != ''">IS_OWN_CLEAN_TOOL = #{isOwnCleanTool},</if>
  208. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  209. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  210. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  211. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  212. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  213. <if test="status != null and status != ''">STATUS = #{status},</if>
  214. <if test="isDisinfNormal != null and isDisinfNormal != ''">IS_DISINF_NORMAL = #{isDisinfNormal},</if>
  215. <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote},</if>
  216. <if test="waterCheckCount != null and waterCheckCount != ''">WATER_CHECK_COUNT = #{waterCheckCount},</if>
  217. <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
  218. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  219. <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
  220. <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
  221. <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
  222. <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
  223. <if test="projectThreePerson != null and projectThreePerson != ''">PROJECT_THREE_PERSON = #{projectThreePerson},</if>
  224. <if test="projectPerson != null and projectPerson != ''">PROJECT_PERSON = #{projectPerson},</if>
  225. <if test="weihuPerson != null and weihuPerson != ''">WEIHU_PERSON = #{weihuPerson},</if>
  226. <if test="biaozhunCreate != null and biaozhunCreate != ''">BIAOZHUN_CREATE = #{biaozhunCreate},</if>
  227. <if test="personStatify != null and personStatify != ''">PERSON_STATIFY = #{personStatify},</if>
  228. <if test="note != null and note != ''">NOTE = #{note},</if>
  229. </trim>
  230. <where>ID = #{id}</where>
  231. </update>
  232. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
  233. update BIS_ZHEJIANG_COUNTRY_FEE
  234. <trim prefix="set" suffixOverrides=",">
  235. <if test="location != null and location != ''"> location = #{location},</if>
  236. <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
  237. <if test="projectLogo != null and projectLogo != ''">PROJECT_LOGO = #{projectLogo},</if>
  238. <if test="projectNote != null and projectNote != ''">PROJECT_NOTE = #{projectNote},</if>
  239. <if test="projectDesc != null and projectDesc != ''">PROJECT_DESC = #{projectDesc},</if>
  240. <if test="projectType != null and projectType != ''">PROJECT_TYPE = #{projectType},</if>
  241. <if test="id != null and id != ''">ID = #{id},</if>
  242. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  243. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  244. <if test="finishTime != null and finishTime != ''">FINISH_TIME = #{finishTime},</if>
  245. <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
  246. <if test="fee != null and fee != ''">FEE = #{fee},</if>
  247. <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent},</if>
  248. <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
  249. <if test="isOwnCleanTool != null and isOwnCleanTool != ''">IS_OWN_CLEAN_TOOL = #{isOwnCleanTool},</if>
  250. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  251. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  252. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  253. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  254. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  255. <if test="status != null and status != ''">STATUS = #{status},</if>
  256. <if test="isDisinfNormal != null and isDisinfNormal != ''">IS_DISINF_NORMAL = #{isDisinfNormal},</if>
  257. <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote},</if>
  258. <if test="waterCheckCount != null and waterCheckCount != ''">WATER_CHECK_COUNT = #{waterCheckCount},</if>
  259. <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
  260. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  261. <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
  262. <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
  263. <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
  264. <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
  265. <if test="projectThreePerson != null and projectThreePerson != ''">PROJECT_THREE_PERSON = #{projectThreePerson},</if>
  266. <if test="projectPerson != null and projectPerson != ''">PROJECT_PERSON = #{projectPerson},</if>
  267. <if test="weihuPerson != null and weihuPerson != ''">WEIHU_PERSON = #{weihuPerson},</if>
  268. <if test="biaozhunCreate != null and biaozhunCreate != ''">BIAOZHUN_CREATE = #{biaozhunCreate},</if>
  269. <if test="personStatify != null and personStatify != ''">PERSON_STATIFY = #{personStatify},</if>
  270. <if test="note != null and note != ''">NOTE = #{note},</if>
  271. </trim>
  272. <include refid="page_where" />
  273. </update>
  274. <!-- 其他自定义SQL -->
  275. </mapper>