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
7e065802
Commit
7e065802
authored
Jun 23, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ebdcf81c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
daily.cs
AutoTurnOver.DB/daily.cs
+11
-4
No files found.
AutoTurnOver.DB/daily.cs
View file @
7e065802
...
...
@@ -1032,9 +1032,9 @@ where 1=1 ";
{
sql
=
@"select t2.id, t2.platform, t2.bailun_sku,t3.warehouse_name, t2.warehouse_code,t2.push_time
from dc_return_goods_push as t2
left join dc_base_warehouse as t3 on t
1
.warehouse_code = t3.warehouse_code
left join dc_base_warehouse as t3 on t
2
.warehouse_code = t3.warehouse_code
where 1=1 "
;
countSql
=
" select count(1) from dc_return_goods_push as t2 left join dc_base_warehouse as t3 on t
1
.warehouse_code = t3.warehouse_code where 1=1 "
;
countSql
=
" select count(1) from dc_return_goods_push as t2 left join dc_base_warehouse as t3 on t
2
.warehouse_code = t3.warehouse_code where 1=1 "
;
}
DynamicParameters
parameters
=
new
DynamicParameters
();
if
(!
string
.
IsNullOrWhiteSpace
(
warehousecode
))
...
...
@@ -1111,8 +1111,15 @@ where 1=1 ";
}
}
sql
+=
" order by t1.id desc "
;
if
(
type
==
1
)
{
sql
+=
" order by t2.id desc "
;
}
else
{
sql
+=
" order by t1.id desc "
;
}
total
=
_connection
.
QueryFirst
<
int
>(
countSql
,
parameters
,
commandTimeout
:
0
);
sql
+=
" limit "
+
offset
+
","
+
limit
;
var
obj
=
_connection
.
Query
<
dc_auto_shortage_push_route_dto
>(
sql
,
parameters
,
buffered
:
false
,
commandTimeout
:
0
);
...
...
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