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
a6eb197e
Commit
a6eb197e
authored
Dec 20, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整记录ip记录
parent
3d83286f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
ApiController.cs
Bailun.DC.Web/Controllers/ApiController.cs
+19
-19
No files found.
Bailun.DC.Web/Controllers/ApiController.cs
View file @
a6eb197e
...
...
@@ -36,7 +36,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
GetListSkuGroup
([
FromBody
]
Models
.
SkuGroup
.
mSkuGroupCondition
m
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetListSkuGroup"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetListSkuGroup"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
total
=
0
;
var
pagesize
=
1000
;
...
...
@@ -58,7 +58,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
GetListGroup
(
string
name
,
string
country
,
string
warehousetype
,
string
warehousecode
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetListGroup"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetListGroup"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
result
=
new
Services
.
SkuMonitorServices
().
ListGroupName
(
name
,
country
,
warehousetype
,
warehousecode
);
...
...
@@ -72,7 +72,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
string
SkuWarehouseRedundancy1
()
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuWarehouseRedundancy1"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuWarehouseRedundancy1"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
filename
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\turnfile\\"
;
...
...
@@ -88,7 +88,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
string
SkuWarehouseSales1
()
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuWarehouseSales1"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuWarehouseSales1"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
filename
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\turnfile\\skusales.csv"
;
...
...
@@ -107,7 +107,7 @@ namespace Bailun.DC.Web.Controllers
/// <returns></returns>
public
JsonResult
ListWeekOutSku
(
int
page
,
int
pagesize
,
DateTime
?
start
,
DateTime
?
end
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListWeekOutSku"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListWeekOutSku"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
total
=
0
;
var
list
=
new
Services
.
SkuMonitorServices
().
ListWeedOut
(
page
,
pagesize
,
start
,
end
,
ref
total
);
...
...
@@ -131,7 +131,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListPlatformSkuSales
(
int
page
,
int
pagesize
,
DateTime
?
start
,
DateTime
?
end
,
string
platform
,
int
companyid
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListPlatformSkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListPlatformSkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
total
=
0
;
var
obj
=
new
Services
.
OrdersServices
().
ListOrderPlatformSku
(
page
,
pagesize
,
start
,
end
,
platform
,
companyid
,
ref
total
);
...
...
@@ -167,7 +167,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
SaveSkuDeliverWeighDiff
(
DateTime
?
day
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/SaveSkuDeliverWeighDiff"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/SaveSkuDeliverWeighDiff"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
result
=
new
Services
.
OrdersServices
().
SaveWeighDiff
(
day
);
...
...
@@ -187,7 +187,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListSalerProfit
(
DateTime
?
start
,
DateTime
?
end
,
int
companyid
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListSalerProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListSalerProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
list
=
new
Services
.
OrdersServices
().
ListSalerProfit
(
start
,
end
,
companyid
);
return
Json
(
list
);
...
...
@@ -203,7 +203,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListItemIdOrderCount
([
FromBody
]
Models
.
Orders
.
mItemIdOrderCount_Input
m
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListItemIdOrderCount"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListItemIdOrderCount"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
if
(
m
.
itemid
.
Length
>
1000
||
m
.
itemid
.
Length
==
0
)
{
...
...
@@ -240,7 +240,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListOrderSkuProfit
([
FromBody
]
Models
.
Orders
.
mShipSkuProfitInput
m
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListOrderSkuProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListOrderSkuProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
pagesize
=
1000
;
var
obj
=
new
Services
.
OrdersServices
().
ListOrderSkuProfit
(
m
.
page
,
pagesize
,
m
.
start
,
m
.
end
,
m
.
bailun_order_id
);
...
...
@@ -285,7 +285,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListFBASkuProfit
([
FromBody
]
Models
.
Orders
.
mShipSkuProfitInput
m
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListFBASkuProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListFBASkuProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
pagesize
=
1000
;
var
obj
=
new
Services
.
OrdersServices
().
ListFBASkuProfit
(
m
.
page
,
pagesize
,
m
.
start
,
m
.
end
,
m
.
bailun_order_id
);
...
...
@@ -335,7 +335,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListEbayFee
([
FromBody
]
mEbayFeeInput
m
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListEbayFee"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListEbayFee"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
try
{
var
pagesize
=
1000
;
...
...
@@ -415,7 +415,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListInterceptItemid
(
int
page
,
DateTime
?
start
,
DateTime
?
end
,
string
platform
=
"Aliexpress"
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListInterceptItemid"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListInterceptItemid"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
pagesize
=
1000
;
var
total
=
0
;
...
...
@@ -454,7 +454,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
GetProfit
(
DateTime
start
,
DateTime
end
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/GetProfit"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
try
{
...
...
@@ -496,7 +496,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
EbaySkuSales
(
int
page
,
DateTime
start
,
DateTime
end
,
string
skus
,
string
platform
=
"Ebay"
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/EbaySkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/EbaySkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
int
pagesize
=
1000
;
...
...
@@ -539,7 +539,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
SkuSales
(
int
page
,
DateTime
start
,
DateTime
end
,
string
skus
,
string
platform
=
"Ebay"
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/SkuSales"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
int
pagesize
=
1000
;
try
...
...
@@ -582,7 +582,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListPuchaseDetail
(
int
page
,
DateTime
start
,
DateTime
end
,
string
suppliername
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListPuchaseDetail"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListPuchaseDetail"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
pagesize
=
1000
;
try
...
...
@@ -613,7 +613,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
DailyExchangeRate
(
DateTime
date
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/DailyExchangeRate"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/DailyExchangeRate"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
obj
=
new
Services
.
CommonServices
().
ListDateExchangeRate
(
date
);
return
Json
(
new
{
...
...
@@ -639,7 +639,7 @@ namespace Bailun.DC.Web.Controllers
[
HttpPost
]
public
JsonResult
ListSkuSaleAndReturn
(
int
page
,
DateTime
start
,
DateTime
end
,
string
platform
,
string
bailunsku
)
{
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListSkuSaleAndReturn"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Local
IpAddress
.
ToString
());
Services
.
ApiServices
.
SaveApiLog
(
"Api/ListSkuSaleAndReturn"
,
_httpContextAccessor
.
HttpContext
.
Connection
.
Remote
IpAddress
.
ToString
());
var
pagesize
=
1000
;
...
...
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