Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
e2a9a383
Commit
e2a9a383
authored
Dec 07, 2018
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动周转默认 用建议采购数排序
parent
bcbbae4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+3
-1
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
e2a9a383
...
@@ -23,7 +23,7 @@ namespace AutoTurnOver.DB
...
@@ -23,7 +23,7 @@ namespace AutoTurnOver.DB
/// <param name="order">排序类型</param>
/// <param name="order">排序类型</param>
/// <param name="sort">排序字段</param>
/// <param name="sort">排序字段</param>
/// <returns></returns>
/// <returns></returns>
public
static
List
<
Models
.
dc_auto_turnover
>
List
(
Condition_AutoTurnOver
m
,
int
offset
,
int
limit
,
ref
int
total
,
string
order
=
""
,
string
sort
=
""
)
public
static
List
<
Models
.
dc_auto_turnover
>
List
(
Condition_AutoTurnOver
m
,
int
offset
,
int
limit
,
ref
int
total
,
string
order
=
""
,
string
sort
=
""
)
{
{
try
try
{
{
...
@@ -47,6 +47,8 @@ namespace AutoTurnOver.DB
...
@@ -47,6 +47,8 @@ namespace AutoTurnOver.DB
total
=
_connection
.
ExecuteScalar
<
int
>(
"select count(0) from ("
+
sql
+
") tb1"
);
total
=
_connection
.
ExecuteScalar
<
int
>(
"select count(0) from ("
+
sql
+
") tb1"
);
//设置默认排序字段
if
(
string
.
IsNullOrWhiteSpace
(
sort
))
sort
=
"quantity_init_advise"
;
if
(!
string
.
IsNullOrEmpty
(
sort
))
if
(!
string
.
IsNullOrEmpty
(
sort
))
{
{
sql
+=
" order by dat."
+
sort
;
sql
+=
" order by dat."
+
sort
;
...
...
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