FTmsaccbillsMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.orderManagement.finance.mapper.FTmsaccbillsMapper">
  6. <resultMap type="FTmsaccbills" id="FTmsaccbillsResult">
  7. <result property="id" column="id" />
  8. <result property="accYear" column="acc_year" />
  9. <result property="accMonth" column="acc_month" />
  10. <result property="actId" column="act_id" />
  11. <result property="fFromDate" column="f_from_date" />
  12. <result property="amt" column="amt" />
  13. <result property="fToDate" column="f_to_date" />
  14. <result property="refNo" column="ref_no" />
  15. <result property="postDate" column="post_date" />
  16. <result property="fAmtcr" column="f_amtcr" />
  17. <result property="fAmtdr" column="f_amtdr" />
  18. <result property="delFlag" column="del_flag" />
  19. <result property="createBy" column="create_by" />
  20. <result property="createTime" column="create_time" />
  21. <result property="updateBy" column="update_by" />
  22. <result property="updateTime" column="update_time" />
  23. <result property="fCtrlcorpid" column="f_ctrlcorpid" />
  24. <result property="tMblno" column="t_mblno" />
  25. <result property="fBilltype" column="f_billtype" />
  26. <result property="fAccbilldate" column="f_accbilldate" />
  27. <result property="fRefNo" column="f_ref_no" />
  28. <result property="fBillno" column="f_billno" />
  29. <result property="fDeptid" column="f_deptid" />
  30. <result property="chargingMethod" column="charging_method" />
  31. <result property="fBillstatus" column="f_billstatus" />
  32. <result property="invoiceNo" column="invoice_no" />
  33. <result property="bank" column="bank" />
  34. <result property="waterBillNo" column="water_bill_no" />
  35. <result property="fCorpid" column="f_corpid" />
  36. <result property="fSystemType" column="f_system_type" />
  37. <result property="fRemarks" column="f_remarks" />
  38. </resultMap>
  39. <sql id="selectFTmsaccbillsVo">
  40. select id, acc_year, acc_month, act_id, f_from_date, amt, f_to_date, ref_no, post_date, f_amtcr, f_amtdr, del_flag, create_by, create_time, update_by, update_time, f_ctrlcorpid, t_mblno, f_billtype, f_accbilldate, f_ref_no, f_billno, f_deptid, charging_method, f_billstatus, invoice_no, bank, water_bill_no, f_corpid, f_system_type, f_remarks from F_TMSACCBILLS
  41. </sql>
  42. <select id="selectFTmsaccbillsList" parameterType="FTmsaccbills" resultMap="FTmsaccbillsResult">
  43. <include refid="selectFTmsaccbillsVo"/>
  44. <where>
  45. <if test="accYear != null "> and acc_year = #{accYear}</if>
  46. <if test="accMonth != null "> and acc_month = #{accMonth}</if>
  47. <if test="actId != null "> and act_id = #{actId}</if>
  48. <if test="fFromDate != null "> and f_from_date = #{fFromDate}</if>
  49. <if test="amt != null "> and amt = #{amt}</if>
  50. <if test="fToDate != null "> and f_to_date = #{fToDate}</if>
  51. <if test="refNo != null and refNo != ''"> and ref_no = #{refNo}</if>
  52. <if test="postDate != null "> and post_date = #{postDate}</if>
  53. <if test="fAmtcr != null "> and f_amtcr = #{fAmtcr}</if>
  54. <if test="fAmtdr != null "> and f_amtdr = #{fAmtdr}</if>
  55. <if test="fCtrlcorpid != null and fCtrlcorpid != ''"> and f_ctrlcorpid = #{fCtrlcorpid}</if>
  56. <if test="tMblno != null and tMblno != ''"> and t_mblno = #{tMblno}</if>
  57. <if test="fBilltype != null and fBilltype != ''"> and f_billtype = #{fBilltype}</if>
  58. <if test="fRefNo != null and fRefNo != ''"> and f_ref_no = #{fRefNo}</if>
  59. <if test="fBillno != null and fBillno != ''"> and f_billno = #{fBillno}</if>
  60. <if test="fDeptid != null "> and f_deptid = #{fDeptid}</if>
  61. <if test="chargingMethod != null and chargingMethod != ''"> and charging_method = #{chargingMethod}</if>
  62. <if test="fBillstatus != null "> and f_billstatus = #{fBillstatus}</if>
  63. <if test="invoiceNo != null and invoiceNo != ''"> and invoice_no = #{invoiceNo}</if>
  64. <if test="bank != null and bank != ''"> and bank = #{bank}</if>
  65. <if test="waterBillNo != null and waterBillNo != ''"> and water_bill_no = #{waterBillNo}</if>
  66. <if test="fCorpid != null "> and f_corpid = #{fCorpid}</if>
  67. <if test="fSystemType != null and fSystemType != ''"> and f_system_type = #{fSystemType}</if>
  68. <if test="fRemarks != null and fRemarks != ''"> and f_remarks = #{fRemarks}</if>
  69. <if test='timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  70. and f_accbilldate &gt;= #{timeInterval[0]}
  71. </if>
  72. <if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  73. and f_accbilldate &lt;= #{timeInterval[1]}
  74. </if>
  75. </where>
  76. </select>
  77. <select id="selectFTmsaccbillsById" parameterType="Long" resultMap="FTmsaccbillsResult">
  78. <include refid="selectFTmsaccbillsVo"/>
  79. where id = #{id}
  80. </select>
  81. <insert id="insertFTmsaccbills" parameterType="FTmsaccbills" useGeneratedKeys="true" keyProperty="id">
  82. insert into F_TMSACCBILLS
  83. <trim prefix="(" suffix=")" suffixOverrides=",">
  84. <if test="accYear != null">acc_year,</if>
  85. <if test="accMonth != null">acc_month,</if>
  86. <if test="actId != null">act_id,</if>
  87. <if test="fFromDate != null">f_from_date,</if>
  88. <if test="amt != null">amt,</if>
  89. <if test="fToDate != null">f_to_date,</if>
  90. <if test="refNo != null">ref_no,</if>
  91. <if test="postDate != null">post_date,</if>
  92. <if test="fAmtcr != null">f_amtcr,</if>
  93. <if test="fAmtdr != null">f_amtdr,</if>
  94. <if test="delFlag != null">del_flag,</if>
  95. <if test="createBy != null">create_by,</if>
  96. <if test="createTime != null">create_time,</if>
  97. <if test="updateBy != null">update_by,</if>
  98. <if test="updateTime != null">update_time,</if>
  99. <if test="fCtrlcorpid != null">f_ctrlcorpid,</if>
  100. <if test="tMblno != null">t_mblno,</if>
  101. <if test="fBilltype != null and fBilltype != ''">f_billtype,</if>
  102. <if test="fAccbilldate != null">f_accbilldate,</if>
  103. <if test="fRefNo != null">f_ref_no,</if>
  104. <if test="fBillno != null">f_billno,</if>
  105. <if test="fDeptid != null">f_deptid,</if>
  106. <if test="chargingMethod != null">charging_method,</if>
  107. <if test="fBillstatus != null">f_billstatus,</if>
  108. <if test="invoiceNo != null">invoice_no,</if>
  109. <if test="bank != null">bank,</if>
  110. <if test="waterBillNo != null">water_bill_no,</if>
  111. <if test="fCorpid != null">f_corpid,</if>
  112. <if test="fSystemType != null">f_system_type,</if>
  113. <if test="fRemarks != null">f_remarks,</if>
  114. </trim>
  115. <trim prefix="values (" suffix=")" suffixOverrides=",">
  116. <if test="accYear != null">#{accYear},</if>
  117. <if test="accMonth != null">#{accMonth},</if>
  118. <if test="actId != null">#{actId},</if>
  119. <if test="fFromDate != null">#{fFromDate},</if>
  120. <if test="amt != null">#{amt},</if>
  121. <if test="fToDate != null">#{fToDate},</if>
  122. <if test="refNo != null">#{refNo},</if>
  123. <if test="postDate != null">#{postDate},</if>
  124. <if test="fAmtcr != null">#{fAmtcr},</if>
  125. <if test="fAmtdr != null">#{fAmtdr},</if>
  126. <if test="delFlag != null">#{delFlag},</if>
  127. <if test="createBy != null">#{createBy},</if>
  128. <if test="createTime != null">#{createTime},</if>
  129. <if test="updateBy != null">#{updateBy},</if>
  130. <if test="updateTime != null">#{updateTime},</if>
  131. <if test="fCtrlcorpid != null">#{fCtrlcorpid},</if>
  132. <if test="tMblno != null">#{tMblno},</if>
  133. <if test="fBilltype != null and fBilltype != ''">#{fBilltype},</if>
  134. <if test="fAccbilldate != null">#{fAccbilldate},</if>
  135. <if test="fRefNo != null">#{fRefNo},</if>
  136. <if test="fBillno != null">#{fBillno},</if>
  137. <if test="fDeptid != null">#{fDeptid},</if>
  138. <if test="chargingMethod != null">#{chargingMethod},</if>
  139. <if test="fBillstatus != null">#{fBillstatus},</if>
  140. <if test="invoiceNo != null">#{invoiceNo},</if>
  141. <if test="bank != null">#{bank},</if>
  142. <if test="waterBillNo != null">#{waterBillNo},</if>
  143. <if test="fCorpid != null">#{fCorpid},</if>
  144. <if test="fSystemType != null">#{fSystemType},</if>
  145. <if test="fRemarks != null">#{fRemarks},</if>
  146. </trim>
  147. </insert>
  148. <update id="updateFTmsaccbills" parameterType="FTmsaccbills">
  149. update F_TMSACCBILLS
  150. <trim prefix="SET" suffixOverrides=",">
  151. <if test="accYear != null">acc_year = #{accYear},</if>
  152. <if test="accMonth != null">acc_month = #{accMonth},</if>
  153. <if test="actId != null">act_id = #{actId},</if>
  154. <if test="fFromDate != null">f_from_date = #{fFromDate},</if>
  155. <if test="amt != null">amt = #{amt},</if>
  156. <if test="fToDate != null">f_to_date = #{fToDate},</if>
  157. <if test="refNo != null">ref_no = #{refNo},</if>
  158. <if test="postDate != null">post_date = #{postDate},</if>
  159. <if test="fAmtcr != null">f_amtcr = #{fAmtcr},</if>
  160. <if test="fAmtdr != null">f_amtdr = #{fAmtdr},</if>
  161. <if test="delFlag != null">del_flag = #{delFlag},</if>
  162. <if test="createBy != null">create_by = #{createBy},</if>
  163. <if test="createTime != null">create_time = #{createTime},</if>
  164. <if test="updateBy != null">update_by = #{updateBy},</if>
  165. <if test="updateTime != null">update_time = #{updateTime},</if>
  166. <if test="fCtrlcorpid != null">f_ctrlcorpid = #{fCtrlcorpid},</if>
  167. <if test="tMblno != null">t_mblno = #{tMblno},</if>
  168. <if test="fBilltype != null and fBilltype != ''">f_billtype = #{fBilltype},</if>
  169. <if test="fAccbilldate != null">f_accbilldate = #{fAccbilldate},</if>
  170. <if test="fRefNo != null">f_ref_no = #{fRefNo},</if>
  171. <if test="fBillno != null">f_billno = #{fBillno},</if>
  172. <if test="fDeptid != null">f_deptid = #{fDeptid},</if>
  173. <if test="chargingMethod != null">charging_method = #{chargingMethod},</if>
  174. <if test="fBillstatus != null">f_billstatus = #{fBillstatus},</if>
  175. <if test="invoiceNo != null">invoice_no = #{invoiceNo},</if>
  176. <if test="bank != null">bank = #{bank},</if>
  177. <if test="waterBillNo != null">water_bill_no = #{waterBillNo},</if>
  178. <if test="fCorpid != null">f_corpid = #{fCorpid},</if>
  179. <if test="fSystemType != null">f_system_type = #{fSystemType},</if>
  180. <if test="fRemarks != null">f_remarks = #{fRemarks},</if>
  181. </trim>
  182. where id = #{id}
  183. </update>
  184. <delete id="deleteFTmsaccbillsById" parameterType="Long">
  185. delete from F_TMSACCBILLS where id = #{id}
  186. </delete>
  187. <delete id="deleteFTmsaccbillsByIds" parameterType="String">
  188. delete from F_TMSACCBILLS where id in
  189. <foreach item="id" collection="array" open="(" separator="," close=")">
  190. #{id}
  191. </foreach>
  192. </delete>
  193. <select id="fTmsaccbillsListAccamount" resultType="java.util.Map">
  194. SELECT
  195. t.id fSrcpid,
  196. c.f_name fFeesName,
  197. car.mblno fMblno,
  198. car.order_no orderNo,
  199. car.carreg_no carregNo,
  200. '对账' billType,
  201. date_format( car.accept_date, '%Y-%m-%d' ) AS acceptDate,
  202. t.load_addr loadAddr,
  203. t.md_load_addr mdLoadAddr,
  204. w.f_id AS fSrcid,
  205. w.f_dc AS fSrcdc,
  206. w.f_qty fQty,
  207. cntr.dict_label cntrId,
  208. car.driver_name driverName,
  209. f.f_name fFeeName,
  210. w.f_feeid fFeeid,
  211. IFNULL(w.f_amount, 0) - IFNULL(w.f_accamount, 0) fAmount,
  212. w.f_amount fAmt
  213. FROM
  214. F_TMSORDERBILLS t
  215. LEFT JOIN F_TMSORDERBILLSCARS car ON car.org_id = t.id
  216. LEFT JOIN F_TMSORDERBILLSFEES w ON car.id = w.f_pid
  217. LEFT JOIN t_corps c ON w.f_corpid = c.f_id
  218. LEFT JOIN sys_dict_data cntr ON cntr.dict_value = car.cntr_id
  219. AND cntr.dict_type = 'data_cntrId'
  220. LEFT JOIN t_fees f ON w.f_feeid = f.f_id
  221. <where>
  222. cntr.status = '0'
  223. <if test="fCorpid != null and fCorpid != ''">and t.corp_id = #{ fCorpid} </if>
  224. <if test="fToCorpid != null and fToCorpid != ''">and w.f_corpid = #{ fToCorpid} </if>
  225. <if test="fMblno != null and fMblno != ''">and car.mblno like concat('%', #{ fMblno}, '%') </if>
  226. <if test="fStatementNo != null and fStatementNo != ''">and w.f_statement_no like concat('%', #{ fStatementNo}, '%') </if>
  227. <if test='fReconciliation != null and fReconciliation != "" and fReconciliation == "1" '>
  228. and w.f_accamount_date IS NOT NULL
  229. </if>
  230. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "0" '>
  231. and w.f_accamount_date IS NULL
  232. </if>
  233. <if test=' fDc != null and fDc != "" and fDc == "D" '>
  234. and w.f_dc = #{ fDc}
  235. </if>
  236. <if test=' fDc != null and fDc != "" and fDc == "C" '>
  237. and w.f_dc = #{ fDc}
  238. </if>
  239. <if test=" fFeeid != null and fFeeid != '' ">
  240. and w.f_feeid in
  241. <foreach collection=" fFeeid" item="id" index="index" open="(" close=")" separator=",">
  242. #{id}
  243. </foreach>
  244. </if>
  245. <if test=' timeExamine != null and timeExamine[0] != null and timeExamine[0]!= ""'>
  246. and w.f_review_date &gt;= #{ timeExamine[0]}
  247. </if>
  248. <if test=' timeExamine != null and timeExamine[1] != null and timeExamine[1]!= ""'>
  249. and w.f_review_date &lt;= #{ timeExamine[1]}
  250. </if>
  251. <if test=' timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  252. and t.f_bsdate &gt;= #{ timeInterval[0]}
  253. </if>
  254. <if test=' timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  255. and t.f_bsdate &lt;= #{ timeInterval[1]}
  256. </if>
  257. <if test=' timeReconci != null and timeReconci[0] != null and timeReconci[0]!= ""'>
  258. and w.f_accamount_date &gt;= #{ timeReconci[0]}
  259. </if>
  260. <if test=' timeReconci != null and timeReconci[1] != null and timeReconci[1]!= ""'>
  261. and w.f_accamount_date &lt;= #{ timeReconci[1]}
  262. </if>
  263. <if test=' acceptDateList != null and acceptDateList[0] != null and acceptDateList[0]!= ""'>
  264. and car.accept_date &gt;= #{ acceptDateList[0]}
  265. </if>
  266. <if test=' acceptDateList != null and acceptDateList[1] != null and acceptDateList[1]!= ""'>
  267. and car.accept_date &lt;= #{ acceptDateList[1]}
  268. </if>
  269. <if test=" fBusinessType != null and fBusinessType != '' ">
  270. and w.f_business_type in
  271. <foreach collection=" fBusinessType" item="id" open="(" close=")" separator=",">
  272. #{id}
  273. </foreach>
  274. </if>
  275. and ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0) != 0
  276. GROUP BY w.f_id
  277. </where>
  278. </select>
  279. <select id="fTmsaccbillsList" resultType="java.util.Map">
  280. SELECT
  281. w.f_id AS fSrcid,
  282. t.id AS fSrcpid,
  283. t.corp_id AS fCorpid,
  284. c1.f_name AS fName,
  285. c.f_id AS fId,
  286. c.f_name AS fFeesName,
  287. car.mblno AS fMblno,
  288. w.f_product_name AS fProductName,
  289. w.create_time AS fBsdate,
  290. w.act_id AS fBilltype,
  291. dict.dict_label AS billType,
  292. w.f_feeid AS fFeeid,
  293. w.src_bill_no AS srcBillNo,
  294. f.f_name AS fFeeName,
  295. w.f_dc AS fSrcdc,
  296. ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmtdr,
  297. ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmt
  298. FROM
  299. F_TMSORDERBILLSFEES w
  300. LEFT JOIN F_TMSORDERBILLSCARS car ON car.id = w.f_pid
  301. LEFT JOIN t_fees f ON w.f_feeid = f.f_id
  302. LEFT JOIN t_corps AS c ON w.f_corpid = c.f_id
  303. LEFT JOIN F_TMSORDERBILLS AS t ON w.org_id = t.id
  304. LEFT JOIN t_corps AS c1 ON t.corp_id = c1.f_id
  305. LEFT JOIN sys_dict_data dict ON dict.dict_value = t.bill_type
  306. <where>
  307. dict.status = '0'
  308. AND dict.dict_type = 'data_billType'
  309. <if test=" fCorpid != null and fCorpid != ''">and t.corp_id = #{ fCorpid} </if>
  310. <if test=" fToCorpid != null and fToCorpid != ''">and w.f_corpid = #{ fToCorpid} </if>
  311. <if test=" fMblno != null and fMblno != ''">and car.mblno like concat('%', #{ fMblno}, '%') </if>
  312. <if test=" fStatementNo != null and fStatementNo != ''">and w.f_statement_no like concat('%', #{ fStatementNo}, '%') </if>
  313. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "1" '>
  314. and w.f_accamount_date IS NOT NULL
  315. </if>
  316. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "0" '>
  317. and w.f_accamount_date IS NULL
  318. </if>
  319. <if test=' fDc != null and fDc != "" and fDc == "D" '>
  320. and w.f_dc = #{ fDc}
  321. </if>
  322. <if test=' fDc != null and fDc != "" and fDc == "C" '>
  323. and w.f_dc = #{ fDc}
  324. </if>
  325. <if test=" fFeeid != null and fFeeid != '' ">
  326. and w.f_feeid in
  327. <foreach collection=" fFeeid" item="id" index="index" open="(" close=")" separator=",">
  328. #{id}
  329. </foreach>
  330. </if>
  331. <if test=' timeExamine != null and timeExamine[0] != null and timeExamine[0]!= ""'>
  332. and w.f_review_date &gt;= #{ timeExamine[0]}
  333. </if>
  334. <if test=' timeExamine != null and timeExamine[1] != null and timeExamine[1]!= ""'>
  335. and w.f_review_date &lt;= #{ timeExamine[1]}
  336. </if>
  337. <if test=' timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  338. and t.f_bsdate &gt;= #{ timeInterval[0]}
  339. </if>
  340. <if test=' timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  341. and t.f_bsdate &lt;= #{ timeInterval[1]}
  342. </if>
  343. <if test=' timeReconci != null and timeReconci[0] != null and timeReconci[0]!= ""'>
  344. and w.f_stlamount_date &gt;= #{ timeReconci[0]}
  345. </if>
  346. <if test=' timeReconci != null and timeReconci[1] != null and timeReconci[1]!= ""'>
  347. and w.f_stlamount_date &lt;= #{ timeReconci[1]}
  348. </if>
  349. and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) != 0
  350. GROUP BY w.f_id
  351. </where>
  352. </select>
  353. <select id="selectFTmsaccbillsMapList" parameterType="FTmsaccbills" resultType="Map">
  354. SELECT
  355. f.id fId,
  356. f.f_billno fBillno,
  357. f.f_corpid AS fCorpid,
  358. c.f_name AS fCorpidName,
  359. f.f_amtcr AS amt,
  360. '对账金额',
  361. f.create_by createBy,
  362. f.f_accbilldate fAccbilldate,
  363. f.create_time createTime,
  364. CASE
  365. f.f_billstatus
  366. WHEN '1' THEN
  367. '保存'
  368. WHEN '2' THEN
  369. '暂存'
  370. WHEN '3' THEN
  371. '审批驳回'
  372. WHEN '4' THEN
  373. '提交审核'
  374. WHEN '5' THEN
  375. '审核中'
  376. WHEN '6' THEN
  377. '审核完成'
  378. END AS fBillstatus,
  379. f.f_remarks fRemarks
  380. FROM
  381. F_TMSACCBILLS f
  382. LEFT JOIN t_corps AS c ON f.f_corpid = c.f_id
  383. <where>
  384. <if test="actId != null "> and f.act_id = #{actId}</if>
  385. <if test="fBilltype != null and fBilltype != ''"> and f.f_billtype = #{fBilltype}</if>
  386. <if test="fBillno != null and fBillno != ''"> and f.f_billno = #{fBillno}</if>
  387. <if test="fCorpid != null "> and f.f_corpid = #{fCorpid}</if>
  388. <if test="fFromDate != null "> and f.f_from_date = #{fFromDate}</if>
  389. <if test="fToDate != null "> and f.f_to_date = #{fToDate}</if>
  390. <if test="amt != null "> and f.amt = #{amt}</if>
  391. <if test="refNo != null and refNo != ''"> and f.ref_no = #{refNo}</if>
  392. <if test="postDate != null "> and f.post_date = #{postDate}</if>
  393. <if test="fBillstatus != null "> and f.f_billstatus = #{fBillstatus}</if>
  394. <if test="fRemarks != null and fRemarks != ''"> and f.f_remarks = #{fRemarks}</if>
  395. <if test=' timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  396. and f.f_accbilldate &gt;= #{ timeInterval[0]}
  397. </if>
  398. <if test=' timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  399. and f.f_accbilldate &lt;= #{ timeInterval[1]}
  400. </if>
  401. </where>
  402. </select>
  403. </mapper>