|
|
@@ -746,7 +746,7 @@
|
|
|
select b.id,b.check_no,b.total_amount,b.amount,b.aname,b.apply_dep,b.pay_dep,b.real_amount,b.type_other ,b.aid,b.create_time ,
|
|
|
date_format(b.create_time,'%Y-%m-%d %H:%i:%S')createTimeStr,b.examine_name, dep.name applyDepName,dep2.name payDepName,
|
|
|
b.remarks,b.eaaid ,eap.name ,eap.bank ,eap.accounts ,b.status,b.process_status,
|
|
|
- c.id sonId,c.total_amount sonTotalAmount,c.settlement_amount sonSettlementAmount,c.amount sonAmount, c.`type` sonType,c.type_other sonTypeOther,
|
|
|
+ c.id sonId,c.total_amount sonTotalAmount,c.settlement_amount sonSettlementAmount,c.amount sonAmount, c.`type` sonType,c.type_other sonTypeOther,c.prid,
|
|
|
c.user_names ,c.release_start ,c.release_end , c.district_name districtName,c.user_names userNames,c.secondary_type ,c.secondary_type_other,c.attachment_url,
|
|
|
c.duration,pr.plan,c.real_amount sonRealAmount,o.order_no,o.contract_no,pr.type publicReleaseType,tm.bid_type bidType,
|
|
|
c.debit_id debitId, debit.real_amount DebitRealAmount ,debit.settlement_amount DebitSettlementAmount,debit.liquidation_status DebitliquidationStatus,
|
|
|
@@ -1125,4 +1125,20 @@
|
|
|
from expense_account
|
|
|
where expense_main=0 and status in(1,2,3) and order_no=#{orderNo}
|
|
|
</select>
|
|
|
+ <select id="getOrderNoNotCountAmount" resultType="java.math.BigDecimal">
|
|
|
+ SELECT d.real_amount
|
|
|
+ from t_order_new a left join public_release_details b on a.buyer_id =b.uid
|
|
|
+ left join public_release c on b.prid =c.id
|
|
|
+ left join expense_account d on c.id =d.prid
|
|
|
+ where a.order_no = #{orderNo}
|
|
|
+ and c.status in (1,2) and d.status in (1,2) and c.order_no is null
|
|
|
+ </select>
|
|
|
+ <select id="getUidNotCountAmount" resultType="java.math.BigDecimal">
|
|
|
+ SELECT d.real_amount
|
|
|
+ from public_release_details b
|
|
|
+ left join public_release c on b.prid =c.id
|
|
|
+ left join expense_account d on c.id =d.prid
|
|
|
+ where b.uid= #{uid}
|
|
|
+ and c.status in (1,2) and d.status in (1,2) and c.order_no is null
|
|
|
+ </select>
|
|
|
</mapper>
|