|
@@ -438,7 +438,8 @@
|
|
|
SELECT
|
|
SELECT
|
|
|
<include refid="selectDtailsSql"/>
|
|
<include refid="selectDtailsSql"/>
|
|
|
FROM expense_account a left join department b on a.apply_dep =b.id left join department c on a.pay_dep =c.id
|
|
FROM expense_account a left join department b on a.apply_dep =b.id left join department c on a.pay_dep =c.id
|
|
|
- left join expense_account_private d on a.eaaid=d.id
|
|
|
|
|
|
|
+ left join expense_account_private d on a.eaaid=d.id left join t_order_new o on a.order_no =o.order_no
|
|
|
|
|
+ left join t_order_mid tm on a.order_no =tm.order_no
|
|
|
WHERE a.status= #{status}
|
|
WHERE a.status= #{status}
|
|
|
and a.prid= #{prid} and a.aid = #{aid}
|
|
and a.prid= #{prid} and a.aid = #{aid}
|
|
|
</select>
|
|
</select>
|