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
ea145ea9
Commit
ea145ea9
authored
Aug 15, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化周转表分类查询
parent
c78c922a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+2
-2
DailyController.cs
AutoTurnOver/Controllers/DailyController.cs
+13
-1
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
ea145ea9
...
...
@@ -104,8 +104,8 @@ from dc_auto_turnover as dat
if
(
m
.
categoryModels
!=
null
)
{
sql
+=
" and
dat
.category_simple_id in ( "
+
string
.
Join
(
","
,
m
.
categoryModels
.
Select
(
s
=>
s
.
id
).
Distinct
())
+
")"
;
sqlCount
+=
" and
dat
.category_simple_id in ( "
+
string
.
Join
(
","
,
m
.
categoryModels
.
Select
(
s
=>
s
.
id
).
Distinct
())
+
")"
;
sql
+=
" and
t4
.category_simple_id in ( "
+
string
.
Join
(
","
,
m
.
categoryModels
.
Select
(
s
=>
s
.
id
).
Distinct
())
+
")"
;
sqlCount
+=
" and
t4
.category_simple_id in ( "
+
string
.
Join
(
","
,
m
.
categoryModels
.
Select
(
s
=>
s
.
id
).
Distinct
())
+
")"
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
buyer_name
))
{
...
...
AutoTurnOver/Controllers/DailyController.cs
View file @
ea145ea9
...
...
@@ -65,9 +65,11 @@ namespace AutoTurnOver.Controllers
public
JsonResult
RealtimeList
(
string
sku
,
string
bailun_sku
,
string
warehousecode
,
string
product_inner_code
,
string
sku_title_cn
,
string
supplier_name
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
,
int
?
has_tort
=
null
,
string
categoryIds
=
null
)
{
try
{
var
services
=
new
DailyServices
();
var
total
=
0
;
var
list
=
services
.
RealtimeList
(
sku
,
bailun_sku
,
warehousecode
,
product_inner_code
,
sku_title_cn
,
supplier_name
,
offset
,
limit
,
ref
total
,
warehousetype
,
warehousearea
,
order
:
order
,
sort
:
sort
,
has_tort
:
has_tort
,
categoryIds
:
categoryIds
);
var
list
=
services
.
RealtimeList
(
sku
,
bailun_sku
,
warehousecode
,
product_inner_code
,
sku_title_cn
,
supplier_name
,
offset
,
limit
,
ref
total
,
warehousetype
,
warehousearea
,
order
:
order
,
sort
:
sort
,
has_tort
:
has_tort
,
categoryIds
:
categoryIds
);
return
new
JsonResult
(
new
{
...
...
@@ -75,6 +77,16 @@ namespace AutoTurnOver.Controllers
total
=
total
,
});
}
catch
(
Exception
ex
)
{
return
new
JsonResult
(
new
{
message
=
ex
.
Message
,
stack_trace
=
ex
.
StackTrace
});
}
}
public
JsonResult
RealtimeListSumFooter
(
string
sku
,
string
bailun_sku
,
string
warehousecode
,
string
product_inner_code
,
string
sku_title_cn
,
string
supplier_name
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
,
int
?
has_tort
=
null
,
string
categoryIds
=
null
)
{
...
...
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