Commit c73fae01 by cwy

0406

parent 36a7e3c2
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai ###项目初始化配置 [init] // 项目名称 entry_name = data-collect-dev // 是否开启调试日志 log = true ###数据库配置 [database] type = mysql hostname = huisheng_mysql database = data-collect username = root password = Huisheng@12345 hostport = 3306 charset = utf8 debug = true ###redis配置 [redis] hostname = huisheng_redis port = 6379 debug = true [LANG] default_lang = zh-cn APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai ###项目初始化配置 [init] // 项目名称 entry_name = data-collect // 是否开启调试日志 log = true ###数据库配置 [database] type = mysql hostname = huisheng_mysql database = data-collect username = root password = Huisheng@12345 hostport = 3306 charset = utf8 debug = true ###redis配置 [redis] hostname = huisheng_redis port = 6379 debug = true [LANG] default_lang = zh-cn
\ No newline at end of file \ No newline at end of file
......
...@@ -49,9 +49,10 @@ class NormReceivesBus extends BaseBus ...@@ -49,9 +49,10 @@ class NormReceivesBus extends BaseBus
$hideField = []; $hideField = [];
// 排序 // 排序
if($data['order']){ if($data['order']){
$order = ["id"=>$data['order']]; $str = "norm_id {$data['order']}, id {$data['order']}";
$order = [$str];
}else{ }else{
$order = ["id"=>"desc"]; $order = ["norm_id"=>"desc","id"=>"desc"];
} }
// 分页 // 分页
$page = $data['page']; $page = $data['page'];
......
...@@ -44,6 +44,7 @@ class NormReceives extends Model ...@@ -44,6 +44,7 @@ class NormReceives extends Model
'list_rows'=>$limit, 'list_rows'=>$limit,
'page'=>$page 'page'=>$page
]); ]);
// var_dump($this->getLastSql());
}catch (\Exception $e){ }catch (\Exception $e){
exception($e,'mysql.NormReceives.pagingListDataSql'); exception($e,'mysql.NormReceives.pagingListDataSql');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment