@@ -37,5 +37,4 @@ FROM sa_cashbill t1
left join sa_cashbill t5
on t1.siteid = t5.siteid and t5.ownerid = t1.sa_cashbillid and t5.ownertable = 'sa_cashbill'
where $where$
- and t1.siteid = $siteid$ and $tablefilter$
-order by status desc, createdate desc
+ and t1.siteid = $siteid$ and $tablefilter$
@@ -17,4 +17,4 @@ WHERE t1.STATUS = '审核'
and t1.sys_enterpriseid=$sys_enterpriseid$
and exists (select 1 from sa_orderitems where (ifnull(undeliqty, 0)!=0 and ifnull(isclose, 0 )= 0 and ifnull(isfreeze, 0 )= 0) and sa_orderid=t1.sa_orderid)
AND t1.siteid = $siteid$
- and $where$
+ and $where$ and $tablefilter$