FTmsaccbillsMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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 AS fSrcpid,
  196. c1.f_name AS fName,
  197. w.f_id AS fSrcid,
  198. c.f_name AS fFeesName,
  199. w.act_id AS fBilltype,
  200. t.mblno AS fMblno,
  201. t.bill_type AS fBusinessType,
  202. g.f_name AS fProductName,
  203. w.create_time AS fBsdate,
  204. dict.dict_label AS billType,
  205. ifnull( w.f_amount, 0 ) - ifnull( w.f_accamount, 0 ) AS fAmtdr,
  206. ifnull( w.f_amount, 0 ) - ifnull( w.f_accamount, 0 ) AS fAmt,
  207. f.f_name AS fFeeName,
  208. w.f_dc AS fSrcdc,
  209. w.f_qty AS fQty,
  210. w.f_unitprice AS fUnitprice,
  211. w.f_amount AS fAmount,
  212. w.f_feeUnitid AS fFeeUnitid,
  213. t.load_date AS loadDate,
  214. t.un_load_date AS unLoadDate,
  215. date_format( car.load_date, '%Y-%m-%d' ) AS carLoadDate
  216. FROM
  217. F_TMSORDERBILLSFEES w
  218. LEFT JOIN t_fees f ON w.f_feeid = f.f_id
  219. LEFT JOIN t_corps AS c ON w.f_corpid = c.f_id
  220. LEFT JOIN F_TMSORDERBILLS AS t ON w.org_id = t.id
  221. LEFT JOIN t_goods g ON g.f_id = t.goods_id
  222. LEFT JOIN t_corps AS c1 ON t.corp_id = c1.f_id
  223. LEFT JOIN F_TMSORDERBILLSCARS car ON car.id = w.f_pid
  224. LEFT JOIN sys_dict_data dict ON dict.dict_value = t.bill_type
  225. <where>
  226. dict.status = '0'
  227. AND dict.dict_type = 'data_billType'
  228. <if test="fCorpid != null and fCorpid != ''">and t.corp_id = #{ fCorpid} </if>
  229. <if test="fToCorpid != null and fToCorpid != ''">and w.f_corpid = #{ fToCorpid} </if>
  230. <if test="fMblno != null and fMblno != ''">and w.f_mblno like concat('%', #{ fMblno}, '%') </if>
  231. <if test="fStatementNo != null and fStatementNo != ''">and w.f_statement_no like concat('%', #{ fStatementNo}, '%') </if>
  232. <if test='fReconciliation != null and fReconciliation != "" and fReconciliation == "1" '>
  233. and w.f_accamount_date IS NOT NULL
  234. </if>
  235. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "0" '>
  236. and w.f_accamount_date IS NULL
  237. </if>
  238. <if test=' fDc != null and fDc != "" and fDc == "D" '>
  239. and w.f_dc = #{ fDc}
  240. </if>
  241. <if test=' fDc != null and fDc != "" and fDc == "C" '>
  242. and w.f_dc = #{ fDc}
  243. </if>
  244. <if test=" fFeeid != null and fFeeid != '' ">
  245. and w.f_feeid in
  246. <foreach collection=" fFeeid" item="id" index="index" open="(" close=")" separator=",">
  247. #{id}
  248. </foreach>
  249. </if>
  250. <if test=' timeExamine != null and timeExamine[0] != null and timeExamine[0]!= ""'>
  251. and w.f_review_date &gt;= #{ timeExamine[0]}
  252. </if>
  253. <if test=' timeExamine != null and timeExamine[1] != null and timeExamine[1]!= ""'>
  254. and w.f_review_date &lt;= #{ timeExamine[1]}
  255. </if>
  256. <if test=' timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  257. and t.f_bsdate &gt;= #{ timeInterval[0]}
  258. </if>
  259. <if test=' timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  260. and t.f_bsdate &lt;= #{ timeInterval[1]}
  261. </if>
  262. <if test=' timeReconci != null and timeReconci[0] != null and timeReconci[0]!= ""'>
  263. and w.f_accamount_date &gt;= #{ timeReconci[0]}
  264. </if>
  265. <if test=' timeReconci != null and timeReconci[1] != null and timeReconci[1]!= ""'>
  266. and w.f_accamount_date &lt;= #{ timeReconci[1]}
  267. </if>
  268. <if test=" fBusinessType != null and fBusinessType != '' ">
  269. and w.f_business_type in
  270. <foreach collection=" fBusinessType" item="id" open="(" close=")" separator=",">
  271. #{id}
  272. </foreach>
  273. </if>
  274. and ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0) != 0
  275. GROUP BY w.f_id
  276. </where>
  277. </select>
  278. <select id="fTmsaccbillsList" resultType="java.util.Map">
  279. SELECT
  280. w.f_id AS fSrcid,
  281. t.id AS fSrcpid,
  282. t.corp_id AS fCorpid,
  283. c1.f_name AS fName,
  284. c.f_id AS fId,
  285. c.f_name AS fFeesName,
  286. w.f_mblno AS fMblno,
  287. w.f_product_name AS fProductName,
  288. w.create_time AS fBsdate,
  289. w.act_id AS fBilltype,
  290. dict.dict_label AS billType,
  291. w.f_feeid AS fFeeid,
  292. w.src_bill_no AS srcBillNo,
  293. f.f_name AS fFeeName,
  294. w.f_dc AS fSrcdc,
  295. ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmtdr,
  296. ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmt
  297. FROM
  298. F_TMSORDERBILLSFEES w
  299. LEFT JOIN t_fees f ON w.f_feeid = f.f_id
  300. LEFT JOIN t_corps AS c ON w.f_corpid = c.f_id
  301. LEFT JOIN F_TMSORDERBILLS AS t ON w.org_id = t.id
  302. LEFT JOIN t_corps AS c1 ON t.corp_id = c1.f_id
  303. LEFT JOIN sys_dict_data dict ON dict.dict_value = t.bill_type
  304. <where>
  305. dict.status = '0'
  306. AND dict.dict_type = 'data_billType'
  307. <if test=" fCorpid != null and fCorpid != ''">and t.corp_id = #{ fCorpid} </if>
  308. <if test=" fToCorpid != null and fToCorpid != ''">and w.f_corpid = #{ fToCorpid} </if>
  309. <if test=" fMblno != null and fMblno != ''">and w.f_mblno like concat('%', #{ fMblno}, '%') </if>
  310. <if test=" fStatementNo != null and fStatementNo != ''">and w.f_statement_no like concat('%', #{ fStatementNo}, '%') </if>
  311. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "1" '>
  312. and w.f_accamount_date IS NOT NULL
  313. </if>
  314. <if test=' fReconciliation != null and fReconciliation != "" and fReconciliation == "0" '>
  315. and w.f_accamount_date IS NULL
  316. </if>
  317. <if test=' fDc != null and fDc != "" and fDc == "D" '>
  318. and w.f_dc = #{ fDc}
  319. </if>
  320. <if test=' fDc != null and fDc != "" and fDc == "C" '>
  321. and w.f_dc = #{ fDc}
  322. </if>
  323. <if test=" fFeeid != null and fFeeid != '' ">
  324. and w.f_feeid in
  325. <foreach collection=" fFeeid" item="id" index="index" open="(" close=")" separator=",">
  326. #{id}
  327. </foreach>
  328. </if>
  329. <if test=' timeExamine != null and timeExamine[0] != null and timeExamine[0]!= ""'>
  330. and w.f_review_date &gt;= #{ timeExamine[0]}
  331. </if>
  332. <if test=' timeExamine != null and timeExamine[1] != null and timeExamine[1]!= ""'>
  333. and w.f_review_date &lt;= #{ timeExamine[1]}
  334. </if>
  335. <if test=' timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
  336. and t.f_bsdate &gt;= #{ timeInterval[0]}
  337. </if>
  338. <if test=' timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
  339. and t.f_bsdate &lt;= #{ timeInterval[1]}
  340. </if>
  341. <if test=' timeReconci != null and timeReconci[0] != null and timeReconci[0]!= ""'>
  342. and w.f_stlamount_date &gt;= #{ timeReconci[0]}
  343. </if>
  344. <if test=' timeReconci != null and timeReconci[1] != null and timeReconci[1]!= ""'>
  345. and w.f_stlamount_date &lt;= #{ timeReconci[1]}
  346. </if>
  347. and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) != 0
  348. GROUP BY w.f_id
  349. </where>
  350. </select>
  351. <select id="selectFTmsaccbillsMapList" parameterType="FTmsaccbills" resultType="Map">
  352. SELECT
  353. f.id AS fId,
  354. f.f_billno AS fBillno,
  355. f.f_ctrlcorpid AS fCtrlcorpid,
  356. f.f_corpid AS fCorpid,
  357. c.f_name AS fCorpidName,
  358. f.f_accbilldate AS fAccbilldate,
  359. f.t_mblno AS tMblno,
  360. f.charging_method AS chargingMethod,
  361. f.f_amtdr AS fAmtdr,
  362. f.f_amtcr AS fAmtcr,
  363. f.bank AS bank,
  364. f.f_billtype AS fBilltype,
  365. f.invoice_no AS invoiceNo,
  366. f.create_time AS createTime,
  367. f.water_bill_no AS waterBillNo,
  368. f.f_system_type AS fSystemType,
  369. CASE
  370. WHEN f.f_billstatus = '1' THEN '保存'
  371. WHEN f.f_billstatus = '2' THEN '暂存'
  372. WHEN f.f_billstatus = '3' THEN '审批驳回'
  373. WHEN f.f_billstatus = '4' THEN '提交审核'
  374. WHEN f.f_billstatus = '5' THEN '审核中'
  375. WHEN f.f_billstatus = '6' THEN '审核完成'
  376. END AS fBillstatus,
  377. f.f_remarks AS fRemarks,
  378. f.create_by AS createBy
  379. FROM
  380. F_TMSACCBILLS f
  381. LEFT JOIN t_corps AS c ON f.f_corpid = c.f_id
  382. <where>
  383. <if test="actId != null "> and f.act_id = #{actId}</if>
  384. <if test="fBilltype != null and fBilltype != ''"> and f.f_billtype = #{fBilltype}</if>
  385. <if test="fBillno != null and fBillno != ''"> and f.f_billno = #{fBillno}</if>
  386. <if test="fCorpid != null "> and f.f_corpid = #{fCorpid}</if>
  387. <if test="fFromDate != null "> and f.f_from_date = #{fFromDate}</if>
  388. <if test="fToDate != null "> and f.f_to_date = #{fToDate}</if>
  389. <if test="amt != null "> and f.amt = #{amt}</if>
  390. <if test="refNo != null and refNo != ''"> and f.ref_no = #{refNo}</if>
  391. <if test="postDate != null "> and f.post_date = #{postDate}</if>
  392. <if test="fBillstatus != null "> and f.f_billstatus = #{fBillstatus}</if>
  393. <if test="fRemarks != null and fRemarks != ''"> and f.f_remarks = #{fRemarks}</if>
  394. </where>
  395. </select>
  396. </mapper>