|
|
@@ -2210,9 +2210,11 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
where b.status=0 and b.aid = #{financeId} and a.process_status = 3
|
|
|
</select>
|
|
|
<select id="selectExpenseCount" parameterType="com.goafanti.expenseAccount.bo.ExpenseCountsInput" resultType="com.goafanti.expenseAccount.bo.ExpenseCountsBo">
|
|
|
- select a.order_no orderNo,a.contract_no contractNo,b.buyer_name buyerName,a.total_amount totalAmount,a.settlement_amount settlementAmount,
|
|
|
- c.expenseCount,c.peopleCount,c.notExamine,c.rejectCount,d.paymentAmount,c.days,c.amount expenseAmount
|
|
|
+ select a.order_no orderNo,a.contract_no contractNo,b.buyer_name buyerName,toc.max_duration maxDuration ,toc.actual_duration actualDuration ,
|
|
|
+ toc.exceed_duration exceedDuration, a.total_amount totalAmount,a.settlement_amount settlementAmount,
|
|
|
+ c.expenseCount,c.peopleCount,c.notExamine,c.rejectCount,d.paymentAmount,c.days,c.amount expenseAmount
|
|
|
from t_order_new a left join t_order_mid b on a.order_no =b.order_no
|
|
|
+ left join t_order_public_release_count toc on a.order_no =toc.order_no
|
|
|
left join (select a.order_no,a.expenseCount,b.peopleCount,c.notExamine, c.rejectCount,a.days,a.amount
|
|
|
from (select a.order_no,count(a.id)expenseCount,sum(a.amount) amount,sum(ROUND(a.duration/7.5) )days
|
|
|
from expense_account a where a.order_no in (select a.order_no from expense_account a
|