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
93aaf08e
Commit
93aaf08e
authored
Jul 17, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
匹配平台账单流水订单格式调整
parent
6c7e877d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
flowing_sales.cs
Bailun.DC.Models/DataWareHouse/flowing_sales.cs
+2
-0
PlatformOrderController.cs
...reas/DataWareHouse/Controllers/PlatformOrderController.cs
+20
-2
OrderBillings.cshtml
...as/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
+1
-0
No files found.
Bailun.DC.Models/DataWareHouse/flowing_sales.cs
View file @
93aaf08e
...
...
@@ -28,5 +28,7 @@ namespace Bailun.DC.Models.DataWareHouse
public
DateTime
?
datatime
{
get
;
set
;
}
public
string
platformsku
{
get
;
set
;
}
public
string
createuser
{
get
;
set
;
}
}
}
Bailun.DC.Web/Areas/DataWareHouse/Controllers/PlatformOrderController.cs
View file @
93aaf08e
...
...
@@ -5,7 +5,9 @@ using System.Data;
using
System.Linq
;
using
Microsoft.AspNetCore.Hosting
;
using
System.Threading.Tasks
;
using
Bailun.ServiceFabric.Authorize
;
using
Bailun.ServiceFabric.Core.Extension.HttpContext
;
using
Bailun.ServiceFabric.Core.Extension
;
namespace
Bailun.DC.Web.Areas.DataWareHouse.Controllers
{
...
...
@@ -279,8 +281,10 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
/// <param name="platform">平台类型</param>
/// <param name="website">站点</param>
/// <returns></returns>
//[BailunAuthentication(LoginMode.Enforce)]
public
JsonResult
UploadOrderBilling
(
string
platform
,
string
website
)
{
if
(
Request
.
Form
.
Files
.
Count
==
0
)
{
return
Json
(
new
...
...
@@ -290,6 +294,8 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
});
}
//var user = HttpContextHelper.Current?.User;
var
file
=
Request
.
Form
.
Files
[
0
];
Dictionary
<
string
,
DataTable
>
dic
=
Base
.
NpolHelper
.
ExcelToDataTable
(
file
.
OpenReadStream
(),
file
.
FileName
,
true
);
...
...
@@ -311,6 +317,7 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
website
=
website
??
""
,
orderno
=
""
,
platformsku
=
""
,
createuser
=
"页面上传"
};
listOrders
.
Add
(
m
);
...
...
@@ -336,11 +343,22 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
foreach
(
DataRow
dr
in
dtb
.
Rows
)
{
System
.
Collections
.
Generic
.
Dictionary
<
string
,
object
>
drow
=
new
System
.
Collections
.
Generic
.
Dictionary
<
string
,
object
>();
foreach
(
DataColumn
dc
in
dtb
.
Columns
)
{
drow
.
Add
(
dc
.
ColumnName
,
dr
[
dc
.
ColumnName
]);
}
dic
.
Add
(
drow
);
//判断是否空行,如果null值
if
(
drow
.
ToList
().
Where
(
a
=>
a
.
Value
==
null
).
Count
()
==
drow
.
Count
||
drow
.
FirstOrDefault
().
Value
==
null
)
{
continue
;
}
else
{
dic
.
Add
(
drow
);
}
}
return
dic
;
...
...
Bailun.DC.Web/Areas/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
View file @
93aaf08e
...
...
@@ -25,6 +25,7 @@
<option value="esty">esty</option>
<option value="JD">JD</option>
<option value="Fyndiq">Fyndiq</option>
<option value="Paypal">Paypal</option>
</select>
</div>
<div class="form-group">
...
...
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