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
58f7a94b
Commit
58f7a94b
authored
Dec 11, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
912de17b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+4
-5
RB_CompanyEnterpriseRepository.cs
...epository/TradePavilion/RB_CompanyEnterpriseRepository.cs
+1
-1
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+1
-1
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+1
-1
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+1
-1
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+6
-5
No files found.
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
58f7a94b
...
@@ -718,9 +718,9 @@ namespace Mall.Module.TradePavilion
...
@@ -718,9 +718,9 @@ namespace Mall.Module.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_CompanyEnterprise_Extend
>
GetCompanyEnterprisePage
List
Module
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_CompanyEnterprise_Extend
query
)
public
List
<
RB_CompanyEnterprise_Extend
>
GetCompanyEnterprisePageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_CompanyEnterprise_Extend
query
)
{
{
var
list
=
companyEnterpriseRepository
.
GetCompany
PageList
Repository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
var
list
=
companyEnterpriseRepository
.
GetCompany
EnterprisePage
Repository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
list
.
Any
())
if
(
list
!=
null
&&
list
.
Any
())
{
{
//查询用户列表
//查询用户列表
...
@@ -729,11 +729,10 @@ namespace Mall.Module.TradePavilion
...
@@ -729,11 +729,10 @@ namespace Mall.Module.TradePavilion
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
var
umodel
=
ulist
.
Where
(
x
=>
x
.
Id
==
item
.
CreateBy
).
FirstOrDefault
();
var
umodel
=
ulist
.
Where
(
x
=>
x
.
Id
==
item
.
CreateBy
).
FirstOrDefault
();
item
.
UserName
=
umodel
.
Name
;
item
.
UserName
=
umodel
?.
Name
??
""
;
item
.
UserIcon
=
umodel
.
Photo
;
item
.
UserIcon
=
umodel
?.
Photo
??
""
;
}
}
}
}
return
list
;
return
list
;
}
}
...
...
Mall.Repository/TradePavilion/RB_CompanyEnterpriseRepository.cs
View file @
58f7a94b
...
@@ -22,7 +22,7 @@ namespace Mall.Repository.TradePavilion
...
@@ -22,7 +22,7 @@ namespace Mall.Repository.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_CompanyEnterprise_Extend
>
GetCompany
PageList
Repository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_CompanyEnterprise_Extend
query
)
public
List
<
RB_CompanyEnterprise_Extend
>
GetCompany
EnterprisePage
Repository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_CompanyEnterprise_Extend
query
)
{
{
rowsCount
=
0
;
rowsCount
=
0
;
DynamicParameters
parameters
=
new
DynamicParameters
();
DynamicParameters
parameters
=
new
DynamicParameters
();
...
...
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
58f7a94b
...
@@ -3361,7 +3361,7 @@ namespace Mall.WebApi.Controllers
...
@@ -3361,7 +3361,7 @@ namespace Mall.WebApi.Controllers
//宜宾商再通特色颜色处理
//宜宾商再通特色颜色处理
if
((
miniProgram
.
TenantId
??
0
)
==
30
)
if
((
miniProgram
.
TenantId
??
0
)
==
30
)
{
{
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#017edf"
,
secondary
=
"#ea850"
,
IsEducation
=
0
};
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#017edf"
,
secondary
=
"#ea850
5
"
,
IsEducation
=
0
};
}
}
break
;
break
;
case
MallShopStyleEnum
.
PureBlack
:
case
MallShopStyleEnum
.
PureBlack
:
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
58f7a94b
...
@@ -3417,7 +3417,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -3417,7 +3417,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
};
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
query
.
TenantId
=
userInfo
.
TenantId
;
query
.
TenantId
=
userInfo
.
TenantId
;
var
list
=
buildingCarrierModule
.
GetCompanyEnterprisePage
List
Module
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
var
list
=
buildingCarrierModule
.
GetCompanyEnterprisePageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
return
ApiResult
.
Success
(
data
:
pageModel
);
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
58f7a94b
...
@@ -4490,7 +4490,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -4490,7 +4490,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
buildingCarrierModule
.
GetCompanyEnterprisePage
List
Module
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
var
list
=
buildingCarrierModule
.
GetCompanyEnterprisePageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
return
ApiResult
.
Success
(
data
:
pageModel
);
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
58f7a94b
...
@@ -2205,11 +2205,12 @@ namespace Mall.WebApi.Controllers.User
...
@@ -2205,11 +2205,12 @@ namespace Mall.WebApi.Controllers.User
/// <returns></returns>
/// <returns></returns>
public
ApiResult
TestYBBrandImport
()
public
ApiResult
TestYBBrandImport
()
{
{
string
rootPath
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
"upfile"
);
//string rootPath = Path.Combine(Directory.GetCurrentDirectory(), "upfile");
string
filePath
=
rootPath
+
@"\宜宾模板文件.xlsx"
;
//string filePath = rootPath+ @"\宜宾模板文件.xlsx";
string
tempPath
=
rootPath
+
@"\TempImg"
;
//string tempPath = rootPath + @"\TempImg";
var
list
=
BrandHelper
.
ImportYBBrandData
(
filePath
,
tempPath
);
//var list = BrandHelper.ImportYBBrandData(filePath, tempPath);
return
ApiResult
.
Success
(
data
:
Common
.
Plugin
.
JsonHelper
.
Serialize
(
list
));
//return ApiResult.Success(data: Common.Plugin.JsonHelper.Serialize(list));
return
ApiResult
.
Success
();
}
}
}
}
}
}
\ No newline at end of file
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