优化支付导出

master
chenzhi 4 years ago
parent 28eedef4ed
commit 7617ee8a4c

@ -330,7 +330,7 @@ class PaymentController extends BaseController
->field("s.*,p.statement_num statement_pool_num")
->join("left join tab_company_statement_pool p ON p.id = s.pool_id")
->where(['s.id'=>['in',$id]])
->order("FIELD(s.pay_status,0,-1,1),s.verify_status desc")
->order("statement_num desc")
->select();
foreach ($data as $key => $value) {

Loading…
Cancel
Save