|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.ruoyi.warehouse.mapper.TFeeMapper">
|
|
|
+<mapper namespace="com.ruoyi.finance.mapper.TFeeMapper">
|
|
|
|
|
|
<resultMap type="TFee" id="TFeeResult">
|
|
|
<result property="fId" column="f_id"/>
|
|
@@ -183,6 +183,22 @@
|
|
|
<if test="map.tWareHouseFees.fToCorpid != null and map.tWareHouseFees.fToCorpid != ''">and w.f_corpid = #{map.tWareHouseFees.fToCorpid} </if>
|
|
|
<if test="map.tWareHouseFees.fMblno != null and map.tWareHouseFees.fMblno != ''">and t.f_mblno like concat('%', #{map.tWareHouseFees.fMblno}, '%') </if>
|
|
|
<if test="map.tWareHouseFees.fStatementNo != null and map.tWareHouseFees.fStatementNo != ''">and w.f_statement_no like concat('%', #{map.tWareHouseFees.fStatementNo}, '%') </if>
|
|
|
+ <choose>
|
|
|
+ <when test="map.tWareHouseFees.fReconciliation != null and map.tWareHouseFees.fReconciliation != '' and map.tWareHouseFees.fReconciliation == '1' ">
|
|
|
+ and w.f_accamount_date IS NOT NULL
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and w.f_accamount_date IS NULL
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ <choose>
|
|
|
+ <when test="map.tWareHouseFees.fDc != null and map.tWareHouseFees.fDc != '' and map.tWareHouseFees.fDc == 'D' ">
|
|
|
+ and w.f_dc = #{map.tWareHouseFees.fDc}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and w.f_dc = #{map.tWareHouseFees.fDc}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
<if test="map.feeIdList != null and map.feeIdList != '' ">
|
|
|
and w.f_feeid in
|
|
|
<foreach collection="feeIdList" item="id" index="index" open="(" close=")" separator=",">
|