Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
DataCenter_Core2.1_20190520
Commits
8359605c
Commit
8359605c
authored
Oct 16, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加帐号筛选功能
parent
0524812e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
Program.cs
Bailun.DC.DailyPurchaseSellStock/Program.cs
+7
-4
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+7
-1
ApiController.cs
Bailun.DC.Web/Controllers/ApiController.cs
+2
-2
No files found.
Bailun.DC.DailyPurchaseSellStock/Program.cs
View file @
8359605c
...
...
@@ -22,14 +22,17 @@ namespace Bailun.DC.DailyPurchaseSellStock
{
var
_services
=
new
Services
();
var
start
=
DateTime
.
Parse
(
"2020-09-
25
"
);
var
start
=
DateTime
.
Parse
(
"2020-09-
30
"
);
//_services.Init(start);
_services
.
Init
(
start
);
return
;
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
Console
.
WriteLine
(
start
);
_services
.
Init
(
start
);
start
=
start
.
AddDays
(
1
);
////
Console.WriteLine(start);
////
_services.Init(start);
////
start = start.AddDays(1);
}
}
}
...
...
Bailun.DC.Services/OrdersServices.cs
View file @
8359605c
...
...
@@ -6553,7 +6553,7 @@ namespace Bailun.DC.Services
#
region
拦截订单
public
List
<
mInterceptOrderItemid
>
ListInterceptOrderItemId
(
int
page
,
int
pagesize
,
DateTime
?
start
,
DateTime
?
end
,
ref
int
total
,
string
platform
)
public
List
<
mInterceptOrderItemid
>
ListInterceptOrderItemId
(
int
page
,
int
pagesize
,
DateTime
?
start
,
DateTime
?
end
,
ref
int
total
,
string
platform
,
int
?
accountid
)
{
var
sqlparam
=
new
DynamicParameters
();
...
...
@@ -6576,6 +6576,12 @@ namespace Bailun.DC.Services
sqlparam
.
Add
(
"platform"
,
platform
);
}
if
(
accountid
.
HasValue
)
{
sql
+=
" and bailun_account_id=@accountid"
;
sqlparam
.
Add
(
""
,
accountid
.
Value
);
}
//分页记录
//sql += " limit "+(page-1)*pagesize+","+pagesize;
...
...
Bailun.DC.Web/Controllers/ApiController.cs
View file @
8359605c
...
...
@@ -457,7 +457,7 @@ namespace Bailun.DC.Web.Controllers
/// <param name="platform">平台类型</param>
/// <returns></returns>
[
HttpPost
]
public
JsonResult
ListInterceptItemid
(
int
page
,
DateTime
?
start
,
DateTime
?
end
,
string
platform
=
"Aliexpress"
)
public
JsonResult
ListInterceptItemid
(
int
page
,
DateTime
?
start
,
DateTime
?
end
,
int
?
accountid
,
string
platform
=
"Aliexpress"
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListInterceptItemid"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
RemoteIpAddress
.
ToString
());
var
pagesize
=
1000
;
...
...
@@ -465,7 +465,7 @@ namespace Bailun.DC.Web.Controllers
try
{
var
obj
=
new
Services
.
OrdersServices
().
ListInterceptOrderItemId
(
page
,
pagesize
,
start
,
end
,
ref
total
,
platform
);
var
obj
=
new
Services
.
OrdersServices
().
ListInterceptOrderItemId
(
page
,
pagesize
,
start
,
end
,
ref
total
,
platform
,
accountid
);
total
=
obj
.
Count
;
return
Json
(
new
{
...
...
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