|
@@ -29,6 +29,7 @@
|
|
|
<result property="fInvnos" column="f_invnos"/>
|
|
|
<result property="fAccamountDate" column="f_accamount_date"/>
|
|
|
<result property="fInvamount" column="f_invamount"/>
|
|
|
+ <result property="fInvoicingDate" column="f_invoicing_date"/>
|
|
|
<result property="fStlamountNo" column="f_stlamount_no"/>
|
|
|
<result property="fAskamount" column="f_askamount"/>
|
|
|
<result property="fStatus" column="f_status"/>
|
|
@@ -90,6 +91,7 @@
|
|
|
f_accamount_date,
|
|
|
f_invnos,
|
|
|
f_invamount,
|
|
|
+ f_invoicing_date,
|
|
|
f_stlamount_no,
|
|
|
f_askamount,
|
|
|
f_status,
|
|
@@ -148,6 +150,7 @@
|
|
|
<if test="fAccamountDate != null ">and f_accamount_date = #{fAccamountDate}</if>
|
|
|
<if test="fInvnos != null and fInvnos != ''">and f_invnos = #{fInvnos}</if>
|
|
|
<if test="fInvamount != null ">and f_invamount = #{fInvamount}</if>
|
|
|
+ <if test="fInvoicingDate != null ">and f_invoicing_date = #{fInvoicingDate}</if>
|
|
|
<if test="fStlamountNo != null and fStlamountNo != ''">and f_stlamount_no = #{fStlamountNo}</if>
|
|
|
<if test="fAskamount != null ">and f_askamount = #{fAskamount}</if>
|
|
|
<if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
|
|
@@ -306,6 +309,7 @@
|
|
|
<if test="fAccamountDate != null">f_accamount_date,</if>
|
|
|
<if test="fInvnos != null">f_invnos,</if>
|
|
|
<if test="fInvamount != null">f_invamount,</if>
|
|
|
+ <if test="fInvoicingDate != null ">f_invoicing_date,</if>
|
|
|
<if test="fStlamountNo != null">f_stlamount_no,</if>
|
|
|
<if test="fAskamount != null">f_askamount,</if>
|
|
|
<if test="fStatus != null">f_status,</if>
|
|
@@ -361,6 +365,7 @@
|
|
|
<if test="fAccamountDate != null">#{fAccamountDate},</if>
|
|
|
<if test="fInvnos != null">#{fInvnos},</if>
|
|
|
<if test="fInvamount != null">#{fInvamount},</if>
|
|
|
+ <if test="fInvoicingDate != null ">#{fInvoicingDate},</if>
|
|
|
<if test="fStlamountNo != null">#{fStlamountNo},</if>
|
|
|
<if test="fAskamount != null">#{fAskamount},</if>
|
|
|
<if test="fStatus != null">#{fStatus},</if>
|
|
@@ -419,6 +424,7 @@
|
|
|
<if test="fAccamountDate != null">f_accamount_date = #{fAccamountDate},</if>
|
|
|
<if test="fInvnos != null">f_invnos = #{fInvnos},</if>
|
|
|
<if test="fInvamount != null">f_invamount = #{fInvamount},</if>
|
|
|
+ <if test="fInvoicingDate != null ">f_invoicing_date = #{fInvoicingDate},</if>
|
|
|
<if test="fStlamountNo != null">f_stlamount_no = #{fStlamountNo},</if>
|
|
|
<if test="fAskamount != null">f_askamount = #{fAskamount},</if>
|
|
|
<if test="fStatus != null">f_status = #{fStatus},</if>
|
|
@@ -1116,4 +1122,119 @@
|
|
|
#{fId}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+ <select id="selectTWarehousebillsfeesList1" resultType="java.util.Map">
|
|
|
+ SELECT
|
|
|
+ tw.f_id AS fId,
|
|
|
+ tw.f_pid AS fPid,
|
|
|
+ tw.f_lineno AS fLineno,
|
|
|
+ tw.f_corpid AS fCorpid,
|
|
|
+ tw.f_feeid AS fFeeid,
|
|
|
+ tw.f_warehouseid AS fWarehouseid,
|
|
|
+ tw.f_feeUnitid AS fFeeUnitid,
|
|
|
+ tw.f_qty AS fQty,
|
|
|
+ tw.f_unitprice AS fQty,
|
|
|
+ tw.f_amount AS fQty,
|
|
|
+ tw.f_currency AS fQty,
|
|
|
+ tw.f_exrate AS fQty,
|
|
|
+ tw.f_taxrate AS fQty,
|
|
|
+ CASE
|
|
|
+ WHEN tw.f_taxrate = 0 THEN
|
|
|
+ '0.00%'
|
|
|
+ WHEN tw.f_taxrate != 0 THEN
|
|
|
+ CONCAT( tw.f_taxrate, '%' )
|
|
|
+ END AS f_taxratestr,
|
|
|
+ tw.f_dc AS fDc,
|
|
|
+ tw.f_billstatus AS fDillstatus,
|
|
|
+ tw.f_review_date AS fReviewDate,
|
|
|
+ tw.f_statement_no AS fStatementNo,
|
|
|
+ tw.f_accamount AS fAccamount,
|
|
|
+ tw.f_stlamount AS fStlamount,
|
|
|
+ tw.f_accamount_date AS fAccamountDate,
|
|
|
+
|
|
|
+ tw.f_stlamount_no AS fStlamountNo,
|
|
|
+ tw.f_askamount AS fAskamount,
|
|
|
+ tw.f_status AS f_status,
|
|
|
+ tw.f_stlamount_date AS fStlamountDate,
|
|
|
+ tw.del_flag AS delFlag,
|
|
|
+ tw.create_by AS createBy,
|
|
|
+ tw.create_time AS createTime,
|
|
|
+ tw.update_by AS updateBy,
|
|
|
+ tw.update_time AS updateTime,
|
|
|
+ tw.remark AS remark,
|
|
|
+ tw.src_id AS srcId,
|
|
|
+ tw.src_bill_no AS srcBillNo,
|
|
|
+ tw.f_mblno AS fMblno,
|
|
|
+ tw.f_product_name AS fProductName,
|
|
|
+ tw.f_marks AS fMarks,
|
|
|
+ tw.f_chargedate AS fChargedate,
|
|
|
+ tw.f_billing_deadline AS fBillingDeadline,
|
|
|
+ tw.f_inventory_days AS fInventoryDays,
|
|
|
+ tw.f_amt AS fAmt,
|
|
|
+ tw.f_billing_days AS fBillingDays,
|
|
|
+ tw.f_billing_qty AS fBillingQty,
|
|
|
+ tw.f_billtype AS fBilltype,
|
|
|
+ tw.f_billingway AS fBillingway,
|
|
|
+ tw.f_bsdate AS fBsdate,
|
|
|
+ tw.f_originalbilldate AS fOriginalbilldate,
|
|
|
+ tw.f_stltypeid AS fStltypeid,
|
|
|
+ tw.f_business_type AS fBusinessType,
|
|
|
+ tw.f_src_type_id AS fSrcTypeTd,
|
|
|
+ tw.price_date_remarks AS priceDateRemarks,
|
|
|
+ tw.f_address_name AS fAddress_name,
|
|
|
+ tw.f_address AS fAddress,
|
|
|
+ tf.invoice_no AS fInvnos,
|
|
|
+ tf.f_amtdr AS fInvamount,
|
|
|
+ tf.f_accbilldate AS fInvoicingDate
|
|
|
+ FROM
|
|
|
+ t_warehousebillsfees tw
|
|
|
+ LEFT JOIN t_fee tf ON tw.f_invnos = tf.f_billno
|
|
|
+ <where>
|
|
|
+ <if test="fPid != null ">and tw.f_pid = #{fPid}</if>
|
|
|
+ <if test="fLineno != null ">and tw.f_lineno = #{fLineno}</if>
|
|
|
+ <if test="fCorpid != null ">and tw.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fFeeid != null ">and tw.f_feeid = #{fFeeid}</if>
|
|
|
+ <if test="fFeeunitid != null ">and tw.f_feeUnitid = #{fFeeunitid}</if>
|
|
|
+ <if test="fQty != null ">and tw.f_qty = #{fQty}</if>
|
|
|
+ <if test="fUnitprice != null ">and tw.f_unitprice = #{fUnitprice}</if>
|
|
|
+ <if test="fAmount != null ">and tw.f_amount = #{fAmount}</if>
|
|
|
+ <if test="fCurrency != null and fCurrency != ''">and tw.f_currency = #{fCurrency}</if>
|
|
|
+ <if test="fExrate != null ">and tw.f_exrate = #{fExrate}</if>
|
|
|
+ <if test="fTaxrate != null ">and tw.f_taxrate = #{fTaxrate}</if>
|
|
|
+ <if test="fDc != null and fDc != ''">and tw.f_dc = #{fDc}</if>
|
|
|
+ <if test="fBillstatus != null and fBillstatus != ''">and tw.f_billstatus = #{fBillstatus}</if>
|
|
|
+ <if test="fReviewDate != null ">and tw.f_review_date = #{fReviewDate}</if>
|
|
|
+ <if test="fStatementNo != null and fStatementNo != ''">and f_statement_no = #{fStatementNo}</if>
|
|
|
+ <if test="fAccamount != null ">and tw.f_accamount = #{fAccamount}</if>
|
|
|
+ <if test="fStlamount != null ">and tw.f_stlamount = #{fStlamount}</if>
|
|
|
+ <if test="fAccamountDate != null ">and tw.f_accamount_date = #{fAccamountDate}</if>
|
|
|
+ <if test="fInvnos != null and fInvnos != ''">and tw.f_invnos = #{fInvnos}</if>
|
|
|
+ <if test="fInvamount != null ">and tw.f_invamount = #{fInvamount}</if>
|
|
|
+ <if test="fInvoicingDate != null ">and tw.f_invoicing_date = #{fInvoicingDate}</if>
|
|
|
+ <if test="fStlamountNo != null and fStlamountNo != ''">and tw.f_stlamount_no = #{fStlamountNo}</if>
|
|
|
+ <if test="fAskamount != null ">and tw.f_askamount = #{fAskamount}</if>
|
|
|
+ <if test="fStatus != null and fStatus != ''">and tw.f_status = #{fStatus}</if>
|
|
|
+ <if test="fStlamountDate != null ">and tw.f_stlamount_date = #{fStlamountDate}</if>
|
|
|
+ <if test="srcId != null ">and tw.src_id = #{srcId}</if>
|
|
|
+ <if test="srcBillNo != null and srcBillNo != ''">and tw.src_bill_no = #{srcBillNo}</if>
|
|
|
+ <if test="fMblno != null and fMblno != ''">and tw.f_mblno = #{fMblno}</if>
|
|
|
+ <if test="fProductName != null and fProductName != ''">and tw.f_product_name like concat('%', #{fProductName},
|
|
|
+ '%')
|
|
|
+ </if>
|
|
|
+ <if test="fMarks != null and fMarks != ''">and tw.f_marks = #{fMarks}</if>
|
|
|
+ <if test="fChargedate != null ">and tw.f_chargedate = #{fChargedate}</if>
|
|
|
+ <if test="fBillingDeadline != null ">and tw.f_billing_deadline = #{fBillingDeadline}</if>
|
|
|
+ <if test="fInventoryDays != null ">and tw.f_inventory_days = #{fInventoryDays}</if>
|
|
|
+ <if test="fAmt != null ">and tw.f_amt = #{fAmt}</if>
|
|
|
+ <if test="fBillingDays != null ">and tw.f_billing_days = #{fBillingDays}</if>
|
|
|
+ <if test="fBillingQty != null ">and tw.f_billing_qty = #{fBillingQty}</if>
|
|
|
+ <if test="fBilltype != null and fBilltype != ''">and tw.f_billtype = #{fBilltype}</if>
|
|
|
+ <if test="fBillingway != null ">and tw.f_billingway = #{fBillingway}</if>
|
|
|
+ <if test="fBsdate != null ">and tw.f_bsdate = #{fBsdate}</if>
|
|
|
+ <if test="fOriginalbilldate != null ">and tw.f_originalbilldate = #{fOriginalbilldate}</if>
|
|
|
+ <if test="fStltypeid != null">and tw.f_stltypeid = #{fStltypeid},</if>
|
|
|
+ <if test="fSrcTypeId != null">and tw.f_src_type_id = #{fSrcTypeId},</if>
|
|
|
+ <if test="fAddress != null">and tw.f_address = #{fAddress}</if>
|
|
|
+ <if test="fAddressName != null and fAddressName != ''">and tw.f_address_name = #{fAddressName}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|