BisBisRdwspRgstrFeeDao.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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.BisBisRdwspRgstrFeeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee" id="bisBisRdwspRgstrFeeResultMap">
  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="centerX" column="CENTER_X"/>
  15. <result property="centerY" column="CENTER_Y"/>
  16. <result property="gdX" column="GD_X"/>
  17. <result property="gdY" column="GD_Y"/>
  18. <result property="isFeeMake" column="IS_FEE_MAKE"/>
  19. <result property="feeRely" column="FEE_RELY"/>
  20. <result property="feeType" column="FEE_TYPE"/>
  21. <result property="isJiliangNote" column="IS_JILIANG_NOTE"/>
  22. <result property="isJiliangType" column="IS_JILIANG_TYPE"/>
  23. <result property="isJiliangFee" column="IS_JILIANG_FEE"/>
  24. <result property="isGudingNote" column="IS_GUDING_NOTE"/>
  25. <result property="isGudingType" column="IS_GUDING_TYPE"/>
  26. <result property="isGudingFee" column="IS_GUDING_FEE"/>
  27. <result property="jietiPriceOne" column="JIETI_PRICE_ONE"/>
  28. <result property="jietiPriceTwo" column="JIETI_PRICE_TWO"/>
  29. <result property="jietiPriceThree" column="JIETI_PRICE_THREE"/>
  30. <result property="jietiXianeOne" column="JIETI_XIANE_ONE"/>
  31. <result property="jietiXianeTwo" column="JIETI_XIANE_TWO"/>
  32. <result property="jietiXianeThree" column="JIETI_XIANE_THREE"/>
  33. <result property="gudingPriceTwo" column="GUDING_PRICE_TWO"/>
  34. <result property="jiliangPriceTwo" column="JILIANG_PRICE_TWO"/>
  35. <result property="isCalFee" column="IS_CAL_FEE"/>
  36. <result property="isOverBaseFee" column="IS_OVER_BASE_FEE"/>
  37. <result property="payFeeProcent" column="PAY_FEE_PROCENT"/>
  38. <result property="posFaeIsEqp" column="POS_FAE_IS_EQP"/>
  39. <result property="posFaeIsRun" column="POS_FAE_IS_RUN"/>
  40. <result property="posRsWsqIsOk" column="POS_RS_WSQ_IS_OK"/>
  41. <result property="posRsOswIsOk" column="POS_RS_OSW_IS_OK"/>
  42. <result property="telephone" column="TELEPHONE"/>
  43. <result property="visitDate" column="VISIT_DATE"/>
  44. <result property="persId" column="PERS_ID"/>
  45. <result property="recPers" column="REC_PERS"/>
  46. <result property="intm" column="INTM"/>
  47. <result property="uptm" column="UPTM"/>
  48. <result property="status" column="STATUS"/>
  49. <result property="jiliangPrice" column="JILIANG_PRICE"/>
  50. <result property="xianEPrice" column="XIAN_E_PRICE"/>
  51. <result property="gudingPriceDw" column="GUDING_PRICE_DW"/>
  52. <result property="gudingPrice" column="GUDING_PRICE"/>
  53. </resultMap>
  54. <sql id="table_columns">
  55. GUDING_PRICE_DW,
  56. GUDING_PRICE,
  57. XIAN_E_PRICE,
  58. JILIANG_PRICE,
  59. ID,
  60. REGSTR_ID,
  61. PRJ_ID,
  62. PRJ_NM,
  63. PRJ_TYPE,
  64. AD_CODE,
  65. AD_NAME,
  66. AD_FULL_NAME,
  67. ADDR,
  68. CENTER_X,
  69. CENTER_Y,
  70. GD_X,
  71. GD_Y,
  72. IS_FEE_MAKE,
  73. FEE_RELY,
  74. FEE_TYPE,
  75. IS_JILIANG_NOTE,
  76. IS_JILIANG_TYPE,
  77. IS_JILIANG_FEE,
  78. IS_GUDING_NOTE,
  79. IS_GUDING_TYPE,
  80. IS_GUDING_FEE,
  81. JIETI_PRICE_ONE,
  82. JIETI_PRICE_TWO,
  83. JIETI_PRICE_THREE,
  84. JIETI_XIANE_ONE,
  85. JIETI_XIANE_TWO,
  86. JIETI_XIANE_THREE,
  87. GUDING_PRICE_TWO,
  88. JILIANG_PRICE_TWO,
  89. IS_CAL_FEE,
  90. IS_OVER_BASE_FEE,
  91. PAY_FEE_PROCENT,
  92. POS_FAE_IS_EQP,
  93. POS_FAE_IS_RUN,
  94. POS_RS_WSQ_IS_OK,
  95. POS_RS_OSW_IS_OK,
  96. TELEPHONE,
  97. VISIT_DATE,
  98. PERS_ID,
  99. REC_PERS,
  100. INTM,
  101. UPTM,
  102. STATUS
  103. </sql>
  104. <sql id="entity_properties">
  105. #{gudingPriceDw},
  106. #{gudingPrice},
  107. #{xianEPrice},
  108. #{jiliangPrice},
  109. #{id},
  110. #{regstrId},
  111. #{prjId},
  112. #{prjNm},
  113. #{prjType},
  114. #{adCode},
  115. #{adName},
  116. #{adFullName},
  117. #{addr},
  118. #{centerX},
  119. #{centerY},
  120. #{gdX},
  121. #{gdY},
  122. #{isFeeMake},
  123. #{feeRely},
  124. #{feeType},
  125. #{isJiliangNote},
  126. #{isJiliangType},
  127. #{isJiliangFee},
  128. #{isGudingNote},
  129. #{isGudingType},
  130. #{isGudingFee},
  131. #{jietiPriceOne},
  132. #{jietiPriceTwo},
  133. #{jietiPriceThree},
  134. #{jietiXianeOne},
  135. #{jietiXianeTwo},
  136. #{jietiXianeThree},
  137. #{gudingPriceTwo},
  138. #{jiliangPriceTwo},
  139. #{isCalFee},
  140. #{isOverBaseFee},
  141. #{payFeeProcent},
  142. #{posFaeIsEqp},
  143. #{posFaeIsRun},
  144. #{posRsWsqIsOk},
  145. #{posRsOswIsOk},
  146. #{telephone},
  147. #{visitDate},
  148. #{persId},
  149. #{recPers},
  150. #{intm},
  151. #{uptm},
  152. #{status}
  153. </sql>
  154. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  155. <sql id="page_where">
  156. <trim prefix="where" prefixOverrides="and | or ">
  157. <if test="gudingPriceDw != null and gudingPriceDw != ''">and GUDING_PRICE_DW = #{gudingPriceDw}</if>
  158. <if test="gudingPrice != null and gudingPrice != ''">and GUDING_PRICE = #{gudingPrice}</if>
  159. <if test="xianEPrice != null and xianEPrice != ''">and XIAN_E_PRICE = #{xianEPrice}</if>
  160. <if test="jiliangPrice != null and jiliangPrice != ''">and JILIANG_PRICE = #{jiliangPrice}</if>
  161. <if test="regstrId != null and regstrId != ''">and REGSTR_ID = #{regstrId}</if>
  162. <if test="prjId != null and prjId != ''">and PRJ_ID = #{prjId}</if>
  163. <if test="prjNm != null and prjNm != ''">and PRJ_NM = #{prjNm}</if>
  164. <if test="prjType != null and prjType != ''">and PRJ_TYPE = #{prjType}</if>
  165. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  166. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  167. <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
  168. <if test="addr != null and addr != ''">and ADDR = #{addr}</if>
  169. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  170. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  171. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  172. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  173. <if test="isFeeMake != null and isFeeMake != ''">and IS_FEE_MAKE = #{isFeeMake}</if>
  174. <if test="feeRely != null and feeRely != ''">and FEE_RELY = #{feeRely}</if>
  175. <if test="feeType != null and feeType != ''">and FEE_TYPE = #{feeType}</if>
  176. <if test="isJiliangNote != null and isJiliangNote != ''">and IS_JILIANG_NOTE = #{isJiliangNote}</if>
  177. <if test="isJiliangType != null and isJiliangType != ''">and IS_JILIANG_TYPE = #{isJiliangType}</if>
  178. <if test="isJiliangFee != null and isJiliangFee != ''">and IS_JILIANG_FEE = #{isJiliangFee}</if>
  179. <if test="isGudingNote != null and isGudingNote != ''">and IS_GUDING_NOTE = #{isGudingNote}</if>
  180. <if test="isGudingType != null and isGudingType != ''">and IS_GUDING_TYPE = #{isGudingType}</if>
  181. <if test="isGudingFee != null and isGudingFee != ''">and IS_GUDING_FEE = #{isGudingFee}</if>
  182. <if test="jietiPriceOne != null and jietiPriceOne != ''">and JIETI_PRICE_ONE = #{jietiPriceOne}</if>
  183. <if test="jietiPriceTwo != null and jietiPriceTwo != ''">and JIETI_PRICE_TWO = #{jietiPriceTwo}</if>
  184. <if test="jietiPriceThree != null and jietiPriceThree != ''">and JIETI_PRICE_THREE = #{jietiPriceThree}</if>
  185. <if test="jietiXianeOne != null and jietiXianeOne != ''">and JIETI_XIANE_ONE = #{jietiXianeOne}</if>
  186. <if test="jietiXianeTwo != null and jietiXianeTwo != ''">and JIETI_XIANE_TWO = #{jietiXianeTwo}</if>
  187. <if test="jietiXianeThree != null and jietiXianeThree != ''">and JIETI_XIANE_THREE = #{jietiXianeThree}</if>
  188. <if test="gudingPriceTwo != null and gudingPriceTwo != ''">and GUDING_PRICE_TWO = #{gudingPriceTwo}</if>
  189. <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">and JILIANG_PRICE_TWO = #{jiliangPriceTwo}</if>
  190. <if test="isCalFee != null and isCalFee != ''">and IS_CAL_FEE = #{isCalFee}</if>
  191. <if test="isOverBaseFee != null and isOverBaseFee != ''">and IS_OVER_BASE_FEE = #{isOverBaseFee}</if>
  192. <if test="payFeeProcent != null and payFeeProcent != ''">and PAY_FEE_PROCENT = #{payFeeProcent}</if>
  193. <if test="posFaeIsEqp != null and posFaeIsEqp != ''">and POS_FAE_IS_EQP = #{posFaeIsEqp}</if>
  194. <if test="posFaeIsRun != null and posFaeIsRun != ''">and POS_FAE_IS_RUN = #{posFaeIsRun}</if>
  195. <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">and POS_RS_WSQ_IS_OK = #{posRsWsqIsOk}</if>
  196. <if test="posRsOswIsOk != null and posRsOswIsOk != ''">and POS_RS_OSW_IS_OK = #{posRsOswIsOk}</if>
  197. <if test="telephone != null and telephone != ''">and TELEPHONE = #{telephone}</if>
  198. <if test="visitDate != null and visitDate != ''">and VISIT_DATE = #{visitDate}</if>
  199. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  200. <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
  201. <if test="intm != null">and INTM = #{intm}</if>
  202. <if test="uptm != null">and UPTM = #{uptm}</if>
  203. <if test="status != null and status != ''">and STATUS = #{status}</if>
  204. </trim>
  205. </sql>
  206. <select id="get" resultMap="bisBisRdwspRgstrFeeResultMap" parameterType="String">
  207. select
  208. <include refid="table_columns"/>
  209. from BIS_BIS_RDWSP_RGSTR_FEE where ID = #{id}
  210. </select>
  211. <select id="getBy" resultMap="bisBisRdwspRgstrFeeResultMap">
  212. select
  213. <include refid="table_columns"/>
  214. from BIS_BIS_RDWSP_RGSTR_FEE
  215. <include refid="page_where"/>
  216. </select>
  217. <select id="findAll" resultMap="bisBisRdwspRgstrFeeResultMap">
  218. select
  219. <include refid="table_columns"/>
  220. from BIS_BIS_RDWSP_RGSTR_FEE
  221. </select>
  222. <select id="findList" resultMap="bisBisRdwspRgstrFeeResultMap">
  223. select
  224. <include refid="table_columns"/>
  225. from BIS_BIS_RDWSP_RGSTR_FEE
  226. <include refid="page_where"/>
  227. </select>
  228. <select id="selectCount" resultType="int">
  229. select count(ID) from BIS_BIS_RDWSP_RGSTR_FEE
  230. <include refid="page_where"/>
  231. </select>
  232. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
  233. insert into BIS_BIS_RDWSP_RGSTR_FEE(
  234. <include refid="table_columns"/>
  235. )
  236. values (
  237. <include refid="entity_properties"/>
  238. )
  239. </insert>
  240. <delete id="delete" parameterType="java.lang.String">
  241. delete from BIS_BIS_RDWSP_RGSTR_FEE where ID = #{id}
  242. </delete>
  243. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
  244. delete from BIS_BIS_RDWSP_RGSTR_FEE
  245. <include refid="page_where"/>
  246. </delete>
  247. <update id="deleteInFlag" parameterType="java.lang.String">
  248. update BIS_BIS_RDWSP_RGSTR_FEE set flag_valid = 0 where>ID = #{id}
  249. </update>
  250. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
  251. update BIS_BIS_RDWSP_RGSTR_FEE
  252. <trim prefix="set" suffixOverrides=",">
  253. <if test="gudingPriceDw != null and gudingPriceDw != ''">GUDING_PRICE_DW = #{gudingPriceDw},</if>
  254. <if test="gudingPrice != null and gudingPrice != ''">GUDING_PRICE = #{gudingPrice},</if>
  255. <if test="xianEPrice != null and xianEPrice != ''">XIAN_E_PRICE = #{xianEPrice},</if>
  256. <if test="jiliangPrice != null and jiliangPrice != ''">JILIANG_PRICE = #{jiliangPrice},</if>
  257. <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
  258. <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
  259. <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
  260. <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
  261. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  262. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  263. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  264. <if test="addr != null and addr != ''">ADDR = #{addr},</if>
  265. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  266. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  267. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  268. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  269. <if test="isFeeMake != null and isFeeMake != ''">IS_FEE_MAKE = #{isFeeMake},</if>
  270. <if test="feeRely != null and feeRely != ''">FEE_RELY = #{feeRely},</if>
  271. <if test="feeType != null and feeType != ''">FEE_TYPE = #{feeType},</if>
  272. <if test="isJiliangNote != null and isJiliangNote != ''">IS_JILIANG_NOTE = #{isJiliangNote},</if>
  273. <if test="isJiliangType != null and isJiliangType != ''">IS_JILIANG_TYPE = #{isJiliangType},</if>
  274. <if test="isJiliangFee != null and isJiliangFee != ''">IS_JILIANG_FEE = #{isJiliangFee},</if>
  275. <if test="isGudingNote != null and isGudingNote != ''">IS_GUDING_NOTE = #{isGudingNote},</if>
  276. <if test="isGudingType != null and isGudingType != ''">IS_GUDING_TYPE = #{isGudingType},</if>
  277. <if test="isGudingFee != null and isGudingFee != ''">IS_GUDING_FEE = #{isGudingFee},</if>
  278. <if test="jietiPriceOne != null and jietiPriceOne != ''">JIETI_PRICE_ONE = #{jietiPriceOne},</if>
  279. <if test="jietiPriceTwo != null and jietiPriceTwo != ''">JIETI_PRICE_TWO = #{jietiPriceTwo},</if>
  280. <if test="jietiPriceThree != null and jietiPriceThree != ''">JIETI_PRICE_THREE = #{jietiPriceThree},</if>
  281. <if test="jietiXianeOne != null and jietiXianeOne != ''">JIETI_XIANE_ONE = #{jietiXianeOne},</if>
  282. <if test="jietiXianeTwo != null and jietiXianeTwo != ''">JIETI_XIANE_TWO = #{jietiXianeTwo},</if>
  283. <if test="jietiXianeThree != null and jietiXianeThree != ''">JIETI_XIANE_THREE = #{jietiXianeThree},</if>
  284. <if test="gudingPriceTwo != null and gudingPriceTwo != ''">GUDING_PRICE_TWO = #{gudingPriceTwo},</if>
  285. <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">JILIANG_PRICE_TWO = #{jiliangPriceTwo},</if>
  286. <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
  287. <if test="isOverBaseFee != null and isOverBaseFee != ''">IS_OVER_BASE_FEE = #{isOverBaseFee},</if>
  288. <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
  289. <if test="posFaeIsEqp != null and posFaeIsEqp != ''">POS_FAE_IS_EQP = #{posFaeIsEqp},</if>
  290. <if test="posFaeIsRun != null and posFaeIsRun != ''">POS_FAE_IS_RUN = #{posFaeIsRun},</if>
  291. <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">POS_RS_WSQ_IS_OK = #{posRsWsqIsOk},</if>
  292. <if test="posRsOswIsOk != null and posRsOswIsOk != ''">POS_RS_OSW_IS_OK = #{posRsOswIsOk},</if>
  293. <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
  294. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  295. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  296. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  297. <if test="intm != null">INTM = #{intm},</if>
  298. <if test="uptm != null">UPTM = #{uptm},</if>
  299. <if test="status != null and status != ''">STATUS = #{status},</if>
  300. </trim>
  301. <where>ID = #{id}</where>
  302. </update>
  303. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
  304. update BIS_BIS_RDWSP_RGSTR_FEE
  305. <trim prefix="set" suffixOverrides=",">
  306. <if test="gudingPriceDw != null and gudingPriceDw != ''">GUDING_PRICE_DW = #{gudingPriceDw},</if>
  307. <if test="gudingPrice != null and gudingPrice != ''">GUDING_PRICE = #{gudingPrice},</if>
  308. <if test="xianEPrice != null and xianEPrice != ''">XIAN_E_PRICE = #{xianEPrice},</if>
  309. <if test="jiliangPrice != null and jiliangPrice != ''">JILIANG_PRICE = #{jiliangPrice},</if>
  310. <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
  311. <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
  312. <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
  313. <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
  314. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  315. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  316. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  317. <if test="addr != null and addr != ''">ADDR = #{addr},</if>
  318. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  319. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  320. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  321. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  322. <if test="isFeeMake != null and isFeeMake != ''">IS_FEE_MAKE = #{isFeeMake},</if>
  323. <if test="feeRely != null and feeRely != ''">FEE_RELY = #{feeRely},</if>
  324. <if test="feeType != null and feeType != ''">FEE_TYPE = #{feeType},</if>
  325. <if test="isJiliangNote != null and isJiliangNote != ''">IS_JILIANG_NOTE = #{isJiliangNote},</if>
  326. <if test="isJiliangType != null and isJiliangType != ''">IS_JILIANG_TYPE = #{isJiliangType},</if>
  327. <if test="isJiliangFee != null and isJiliangFee != ''">IS_JILIANG_FEE = #{isJiliangFee},</if>
  328. <if test="isGudingNote != null and isGudingNote != ''">IS_GUDING_NOTE = #{isGudingNote},</if>
  329. <if test="isGudingType != null and isGudingType != ''">IS_GUDING_TYPE = #{isGudingType},</if>
  330. <if test="isGudingFee != null and isGudingFee != ''">IS_GUDING_FEE = #{isGudingFee},</if>
  331. <if test="jietiPriceOne != null and jietiPriceOne != ''">JIETI_PRICE_ONE = #{jietiPriceOne},</if>
  332. <if test="jietiPriceTwo != null and jietiPriceTwo != ''">JIETI_PRICE_TWO = #{jietiPriceTwo},</if>
  333. <if test="jietiPriceThree != null and jietiPriceThree != ''">JIETI_PRICE_THREE = #{jietiPriceThree},</if>
  334. <if test="jietiXianeOne != null and jietiXianeOne != ''">JIETI_XIANE_ONE = #{jietiXianeOne},</if>
  335. <if test="jietiXianeTwo != null and jietiXianeTwo != ''">JIETI_XIANE_TWO = #{jietiXianeTwo},</if>
  336. <if test="jietiXianeThree != null and jietiXianeThree != ''">JIETI_XIANE_THREE = #{jietiXianeThree},</if>
  337. <if test="gudingPriceTwo != null and gudingPriceTwo != ''">GUDING_PRICE_TWO = #{gudingPriceTwo},</if>
  338. <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">JILIANG_PRICE_TWO = #{jiliangPriceTwo},</if>
  339. <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
  340. <if test="isOverBaseFee != null and isOverBaseFee != ''">IS_OVER_BASE_FEE = #{isOverBaseFee},</if>
  341. <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
  342. <if test="posFaeIsEqp != null and posFaeIsEqp != ''">POS_FAE_IS_EQP = #{posFaeIsEqp},</if>
  343. <if test="posFaeIsRun != null and posFaeIsRun != ''">POS_FAE_IS_RUN = #{posFaeIsRun},</if>
  344. <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">POS_RS_WSQ_IS_OK = #{posRsWsqIsOk},</if>
  345. <if test="posRsOswIsOk != null and posRsOswIsOk != ''">POS_RS_OSW_IS_OK = #{posRsOswIsOk},</if>
  346. <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
  347. <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
  348. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  349. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  350. <if test="intm != null">INTM = #{intm},</if>
  351. <if test="uptm != null">UPTM = #{uptm},</if>
  352. <if test="status != null and status != ''">STATUS = #{status},</if>
  353. </trim>
  354. <include refid="page_where"/>
  355. </update>
  356. <!-- 其他自定义SQL -->
  357. <select id="findPageList" resultType="cn.com.goldenwater.dcproj.model.BisInspPblm"
  358. parameterType="cn.com.goldenwater.dcproj.param.PlbmParam">
  359. select w.* from (
  360. select
  361. j.id as oid,j.obj_id,m.pblm_id,m.obj_type,m.insp_pblm_name,m.insp_pblm_desc,m.pblm_long,m.pblm_lat,s.check_point,
  362. m.new_vill_name,j.nm,m.vill_type,m.has_vedio,m.quote,m.rec_pers,
  363. m.regid,j.code as ad_code,ba.ad_full_name,s.sn_num,p.pers_name,
  364. m.insp_add_desc,m.coll_time,(select l.pnm from bis_insp_all l where l.id=substr(al.id,1,6)) as pnm,
  365. (select org_nm from bis_insp_org where org_id=substr(al.id,4,3)) as org_nm
  366. FROM BIS_INSP_PBLM M
  367. JOIN BIS_INSP_ALL_OBJ J ON M.OBJ_ID=J.OBJ_ID
  368. JOIN BIS_INSP_ALL AL ON AL.ID=J.ID
  369. LEFT JOIN OBJ_INSP_PBLMS S ON M.PBLMS_TYPE_ID=S.GUID
  370. LEFT JOIN BIS_INSP_ALL_RLATION_PERS P ON M.REC_PERS=P.GUID
  371. LEFT JOIN ATT_AD_X_BASE BA ON J.CODE=BA.AD_CODE
  372. ) w
  373. <where>
  374. obj_type = '37'
  375. <!-- W.OID in (
  376. select distinct id from (
  377. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  378. WHERE A.PERSID = #{presId}
  379. AND Type='37'
  380. and (length(id) between 2 and 10))
  381. CONNECT BY P.PID = PRIOR P.ID
  382. union all
  383. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  384. WHERE A.PERSID = #{presId}
  385. AND Type='37'
  386. and length(id)&gt; 11 )
  387. )
  388. ) -->
  389. <if test="villType !=null and villType !=''">
  390. and w.vill_type in (${villType})
  391. </if>
  392. <if test="objIdes != null and objIdes != ''">and OBJ_ID in (${objIdes})</if>
  393. <if test="inspPblmName !=null and inspPblmName !=''">and w.insp_pblm_name like '${inspPblmName}%'</if>
  394. <if test="startTime != null and startTime != ''">and COLL_TIME &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
  395. <if test="findTime != null and findTime != ''">and COLL_TIME=STR_TO_DATE(#{findTime},'%Y-%m-%d')</if>
  396. <if test="endTime != null and endTime != ''">and COLL_TIME &lt; DATE_ADD(STR_TO_DATE(#{endTime},'%Y-%m-%d'), INTERVAL 1 DAY)</if>
  397. <if test="oides != null and oides != ''">and oid in (${oides})</if>
  398. <if test="regid !=null and regid !=''">and w.regid=#{regid}</if>
  399. <if test="recPers !=null and recPers !=''">
  400. and w.rec_Pers=#{recPers}
  401. </if>
  402. <if test="objId !=null and objId !=''">
  403. and w.obj_id=#{objId}
  404. </if>
  405. <if test="groupId !=null and groupId !=''">
  406. and oid like '${groupId}%'
  407. </if>
  408. <if test="adFullName !=null and adFullName !=''">
  409. and w.AD_FULL_NAMe like '%${adFullName}%'
  410. </if>
  411. <if test="persName !=null and persName !=''">
  412. and w.PERS_NAME like '%${persName}%'
  413. </if>
  414. <if test="nm !=null and nm !=''">
  415. and w.NM like '%${nm}%'
  416. </if>
  417. <if test="orgNm !=null and orgNm !=''">
  418. and w.ORG_NM like '%${orgNm}%'
  419. </if>
  420. <if test="hasVedio !=null and hasVedio !=''">
  421. and w.HAS_VEDIO=#{hasVedio}
  422. </if>
  423. <if test="adCode !=null and adCode !=''">
  424. and w.AD_CODE like '${adCode}%'
  425. </if>
  426. </where>
  427. order by w.AD_CODE
  428. <if test="orderBy !=null and orderBy !=''">
  429. ,${orderBy}
  430. </if>
  431. </select>
  432. </mapper>