|
@@ -28,6 +28,7 @@
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="chargingMethod" column="charging_method"/>
|
|
|
+ <result property="fTotalamount" column="f_totalamount"/>
|
|
|
<result property="invoiceNo" column="invoice_no"/>
|
|
|
<result property="bank" column="bank"/>
|
|
|
<result property="waterBillNo" column="water_bill_no"/>
|
|
@@ -73,6 +74,7 @@
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="chargingMethod" column="charging_method"/>
|
|
|
+ <result property="fTotalamount" column="f_totalamount"/>
|
|
|
<result property="invoiceNo" column="invoice_no"/>
|
|
|
<result property="bank" column="bank"/>
|
|
|
<result property="waterBillNo" column="water_bill_no"/>
|
|
@@ -103,6 +105,8 @@
|
|
|
<result property="fMarks" column="f_marks"/>
|
|
|
<result property="fProductName" column="f_product_name"/>
|
|
|
<result property="fReviewDate" column="f_review_date"/>
|
|
|
+ <result property="fAccamount" column="f_accamount"/>
|
|
|
+ <result property="fInvamount" column="f_invamount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTFeeVo">
|
|
@@ -129,6 +133,7 @@
|
|
|
update_by,
|
|
|
update_time,
|
|
|
charging_method,
|
|
|
+ f_totalamount,
|
|
|
invoice_no,
|
|
|
bank,
|
|
|
water_bill_no,
|
|
@@ -184,6 +189,7 @@
|
|
|
ware.update_by,
|
|
|
ware.update_time,
|
|
|
pro.dict_label AS charging_method,
|
|
|
+ ware.f_totalamount AS f_totalamount,
|
|
|
ware.invoice_no,
|
|
|
ware.bank,
|
|
|
ware.water_bill_no,
|
|
@@ -194,7 +200,7 @@
|
|
|
left join sys_dept d on ware.f_deptid = d.dept_id
|
|
|
LEFT JOIN sys_dict_data pro ON pro.dict_value = ware.charging_method and pro.dict_type = 'data_settlement_type'
|
|
|
<where>
|
|
|
- <if test="fBillno != null and fBillno != ''">and ware.f_billno = #{fBillno}</if>
|
|
|
+ <if test="fBillno != null and fBillno != ''">and ware.f_billno like concat('%', #{ fBillno}, '%') </if>
|
|
|
<if test="fCtrlcorpid != null ">and ware.f_ctrlcorpid = #{fCtrlcorpid}</if>
|
|
|
<if test="fActId != null ">and ware.f_act_id = #{fActId}</if>
|
|
|
<if test="fCorpid != null ">and ware.f_corpid = #{fCorpid}</if>
|
|
@@ -223,6 +229,7 @@
|
|
|
and ware.f_amtdr <= #{amount[1]}
|
|
|
</if>
|
|
|
<if test="chargingMethod != null ">and ware.charging_method = #{chargingMethod}</if>
|
|
|
+ <if test="fTotalamount != null ">and ware.f_totalamount = #{fTotalamount}</if>
|
|
|
<if test="invoiceNo != null ">and ware.invoice_no = #{invoiceNo}</if>
|
|
|
<if test="bank != null ">and ware.bank = #{bank}</if>
|
|
|
<if test="waterBillNo != null ">and ware.water_bill_no = #{waterBillNo}</if>
|
|
@@ -310,6 +317,7 @@
|
|
|
and f.create_time <= #{applyTime[1]}
|
|
|
</if>
|
|
|
<if test="chargingMethod != null ">and f.charging_method = #{chargingMethod}</if>
|
|
|
+ <if test="fTotalamount != null ">and f.f_totalamount = #{fTotalamount}</if>
|
|
|
<if test="invoiceNo != null ">and f.invoice_no = #{invoiceNo}</if>
|
|
|
<if test="bank != null ">and f.bank = #{bank}</if>
|
|
|
<if test="waterBillNo != null ">and f.water_bill_no = #{waterBillNo}</if>
|
|
@@ -415,6 +423,7 @@
|
|
|
and f.create_time <= #{applyTime[1]}
|
|
|
</if>
|
|
|
<if test="chargingMethod != null ">and f.charging_method = #{chargingMethod}</if>
|
|
|
+ <if test="fTotalamount != null ">and f.f_totalamount = #{fTotalamount}</if>
|
|
|
<if test="invoiceNo != null ">and f.invoice_no like concat('%', #{invoiceNo}, '%')</if>
|
|
|
<if test="bank != null ">and f.bank like concat('%', #{bank}, '%')</if>
|
|
|
<if test="waterBillNo != null ">and f.water_bill_no like concat('%', #{waterBillNo}, '%')</if>
|
|
@@ -458,6 +467,7 @@
|
|
|
f.update_time,
|
|
|
tn.f_taxrate AS fTaxrate,
|
|
|
f.charging_method,
|
|
|
+ f.f_totalamount,
|
|
|
f.invoice_no,
|
|
|
f.bank,
|
|
|
f.water_bill_no
|
|
@@ -490,6 +500,7 @@
|
|
|
f.update_time AS updateTime,
|
|
|
tn.f_taxrate AS fTaxrate,
|
|
|
f.charging_method AS chargingMethod,
|
|
|
+ f.f_totalamount AS fTotalamount,
|
|
|
f.invoice_no AS invoiceNo,
|
|
|
f.bank AS bank,
|
|
|
f.water_bill_no AS waterBillNo,
|
|
@@ -558,6 +569,7 @@
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="chargingMethod != null">charging_method,</if>
|
|
|
+ <if test="fTotalamount != null">f_totalamount,</if>
|
|
|
<if test="invoiceNo != null">invoice_no,</if>
|
|
|
<if test="bank != null">bank,</if>
|
|
|
<if test="waterBillNo != null">water_bill_no,</if>
|
|
@@ -602,6 +614,7 @@
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="chargingMethod != null">#{chargingMethod},</if>
|
|
|
+ <if test="fTotalamount != null">#{fTotalamount},</if>
|
|
|
<if test="invoiceNo != null">#{invoiceNo},</if>
|
|
|
<if test="bank != null">#{bank},</if>
|
|
|
<if test="waterBillNo != null">#{waterBillNo},</if>
|
|
@@ -649,6 +662,7 @@
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="chargingMethod != null">charging_method = #{chargingMethod},</if>
|
|
|
+ <if test="fTotalamount != null">f_totalamount = #{fTotalamount},</if>
|
|
|
<if test="invoiceNo != null">invoice_no = #{invoiceNo},</if>
|
|
|
<if test="bank != null">bank = #{bank},</if>
|
|
|
<if test="waterBillNo != null">water_bill_no = #{waterBillNo},</if>
|
|
@@ -2748,7 +2762,7 @@
|
|
|
<select id="selectFinancialLedgerList" resultMap="feeVOResult">
|
|
|
SELECT
|
|
|
c.f_name AS f_fees_name, w.f_corpid, w.f_mblno, w.f_billstatus, DATE_FORMAT(w.f_review_date,'%Y-%m') AS reviewDate,
|
|
|
- SUM( w.f_amount ) AS f_amount, SUM( w.f_stlamount ) AS f_stlamount,
|
|
|
+ SUM( w.f_amount ) AS f_amount, SUM( w.f_stlamount ) AS f_stlamount,SUM( w.f_accamount ) AS f_accamount,SUM( w.f_invamount ) AS f_invamount,
|
|
|
ifnull( SUM( w.f_amount ), 0 ) - ifnull( SUM( w.f_stlamount ), 0 ) AS nnfinished
|
|
|
FROM
|
|
|
t_warehousebills t
|
|
@@ -2789,7 +2803,7 @@
|
|
|
<select id="selectFinancialLedgerDetails" resultMap="feeVOResult">
|
|
|
SELECT t.f_id AS f_srcpid, c.f_name AS f_fees_name, w.f_mblno AS f_mblno,
|
|
|
w.f_product_name, w.f_marks, t.f_billtype,
|
|
|
- w.f_review_date,
|
|
|
+ w.f_review_date,w.f_accamount,w.f_invamount,
|
|
|
IF ( w.f_feeid = #{feesId}, w.f_amount, 0.00 ) storage_fee,
|
|
|
IF ( w.f_feeid != #{feesId}, w.f_amount, 0.00 ) other_fee,
|
|
|
w.f_amount, w.f_stlamount AS fStlamount,
|