Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
c501c58f
Commit
c501c58f
authored
Dec 12, 2024
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
97888d26
5273c67e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
BrandHelper.cs
Mall.DataHelper/Import/BrandHelper.cs
+1
-1
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+1
-2
No files found.
Mall.DataHelper/Import/BrandHelper.cs
View file @
c501c58f
...
...
@@ -24,8 +24,8 @@ namespace Mall.DataHelper.Import
{
//图片所在的列
List
<
int
>
imgColList
=
new
List
<
int
>();
imgColList
.
Add
(
1
);
imgColList
.
Add
(
2
);
imgColList
.
Add
(
3
);
List
<
RB_Brand_Enterprise_Extend
>
list
=
new
List
<
RB_Brand_Enterprise_Extend
>();
Mall
.
Common
.
Plugin
.
ImportExcelNPOIHelper
importExcelNPOIHelper
=
new
Common
.
Plugin
.
ImportExcelNPOIHelper
(
tempFilePath
);
DataTable
dt
=
importExcelNPOIHelper
.
ExcelToDataTable
(
fileName
,
0
,
0
,
true
,
imgColList
:
imgColList
);
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
c501c58f
...
...
@@ -2232,7 +2232,7 @@ namespace Mall.WebApi.Controllers.User
string
tempPath
=
rootPath
+
@"\TempImport\TempFile"
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
int
Type
=
parms
.
GetInt
(
"
1
"
);
int
Type
=
parms
.
GetInt
(
"
Type
"
);
if
(
Type
==
1
)
{
string
brandFile
=
rootPath
+
@"\消费品牌导入.xlsx"
;
...
...
@@ -2243,7 +2243,6 @@ namespace Mall.WebApi.Controllers.User
{
string
carrierFile
=
rootPath
+
@"\商业载体导入.xlsx"
;
var
carrierList
=
CarrierHelper
.
ImportYBCarrierData
(
carrierFile
,
tempPath
);
return
ApiResult
.
Success
(
data
:
carrierList
);
}
else
if
(
Type
==
3
)
...
...
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