Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyi.chen
data-collect-api
Commits
c73fae01
Commit
c73fae01
authored
Apr 08, 2024
by
cwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0406
parent
36a7e3c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
.env
+2
-2
app/api/business/NormReceivesBus.php
+3
-2
app/common/model/mysql/NormReceives.php
+1
-0
No files found.
.env
View file @
c73fae01
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
\ No newline at end of file
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
...
...
app/api/business/NormReceivesBus.php
View file @
c73fae01
...
...
@@ -49,9 +49,10 @@ class NormReceivesBus extends BaseBus
$hideField
=
[];
// 排序
if
(
$data
[
'order'
]){
$order
=
[
"id"
=>
$data
[
'order'
]];
$str
=
"norm_id
{
$data
[
'order'
]
}
, id
{
$data
[
'order'
]
}
"
;
$order
=
[
$str
];
}
else
{
$order
=
[
"id"
=>
"desc"
];
$order
=
[
"
norm_id"
=>
"desc"
,
"
id"
=>
"desc"
];
}
// 分页
$page
=
$data
[
'page'
];
...
...
app/common/model/mysql/NormReceives.php
View file @
c73fae01
...
...
@@ -44,6 +44,7 @@ class NormReceives extends Model
'list_rows'
=>
$limit
,
'page'
=>
$page
]);
// var_dump($this->getLastSql());
}
catch
(
\Exception
$e
){
exception
(
$e
,
'mysql.NormReceives.pagingListDataSql'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment