新增排序

master
chenzhi 4 years ago
parent 9d8ed80fcc
commit 6c05756415

@ -117,7 +117,7 @@ class CompanyStatementController extends ThinkController
$data = M("company_statement","tab_") $data = M("company_statement","tab_")
->field("id,withdraw_type,company_name,company_belong,statement_begin_time,statement_end_time,statement_money,platform_amount,verify_status,verify_log,op_time,remark") ->field("id,withdraw_type,company_name,company_belong,statement_begin_time,statement_end_time,statement_money,platform_amount,verify_status,verify_log,op_time,remark")
->where($map) ->where($map)
->order("op_time Desc")->page($page,$row)->select(); ->order("FIELD(verify_status,0,1,-1,2,3,-2,4,5),id desc")->page($page,$row)->select();
foreach($data as $k => &$v) { foreach($data as $k => &$v) {
$v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']); $v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']);
@ -851,7 +851,7 @@ class CompanyStatementController extends ThinkController
"pool"=>"<a class='butn' id='pool'>发起汇总</a>", "pool"=>"<a class='butn' id='pool'>发起汇总</a>",
"updateStatement"=>"<a class='butn' id='updateStatement' style='background-color: green;'>重算金额</a>", "updateStatement"=>"<a class='butn' id='updateStatement' style='background-color: green;'>重算金额</a>",
"export"=>"<a class='butn' id='export'>批量导出</a>", "export"=>"<a class='butn' id='export'>批量导出</a>",
"updateNewStatement"=>"<a class='butn' id='updateNewStatement'>新增结算</a>", "updateNewStatement"=>"<a class='butn' id='updateNewStatement' style='background-color: green;'>新增结算</a>",
]; ];
$resarr = []; $resarr = [];
foreach ($mentBtn as $k => $v) { foreach ($mentBtn as $k => $v) {

Loading…
Cancel
Save