|
|
@@ -1432,7 +1432,8 @@
|
|
|
and a.start_time between #{startTime} and #{endTime}
|
|
|
</select>
|
|
|
<select id="selectFinanceChangeCount" resultType="com.goafanti.admin.bo.OutFinanceCount">
|
|
|
- select c.finance_id aid,sum(if(a.process_state=6,1,0))changeCount,sum(if(a.process_state>6 and a.status=2,1,0)) changeInvoiceCount
|
|
|
+ select c.finance_id aid,sum(if(a.process_state=6,1,0))changeCount,
|
|
|
+ sum(if((a.process_state>6 and a.status=2)or (a.process_state=6),1,0)) changeInvoiceCount
|
|
|
from new_order_change a left join t_order_new b on a.order_no =b.order_no
|
|
|
left join department c on b.order_dep =c.id
|
|
|
where c.finance_id = #{aid}
|