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
63d6f1a6
Commit
63d6f1a6
authored
Dec 26, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
d4ea0f89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
29 deletions
+10
-29
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+0
-1
CompanyModule.cs
Mall.Module.TradePavilion/CompanyModule.cs
+9
-26
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+1
-2
No files found.
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
63d6f1a6
...
...
@@ -1354,7 +1354,6 @@ namespace Mall.Module.TradePavilion
public
RB_CompanyEnterprise_Extend
GetCompanyEntity
(
object
CompanyId
)
{
var
model
=
companyEnterpriseRepository
.
GetEntity
<
RB_CompanyEnterprise_Extend
>(
CompanyId
);
return
model
;
}
...
...
Mall.Module.TradePavilion/CompanyModule.cs
View file @
63d6f1a6
...
...
@@ -45,9 +45,6 @@ namespace Mall.Module.TradePavilion
/// </summary>
private
readonly
Repository
.
User
.
RB_Member_UserRepository
member_UserRepository
=
new
Repository
.
User
.
RB_Member_UserRepository
();
private
readonly
RB_CompanyEnterpriseRepository
companyEnterpriseRepository
=
new
RB_CompanyEnterpriseRepository
();
/// <summary>
/// 获取公司信息分页列表
/// </summary>
...
...
@@ -114,17 +111,7 @@ namespace Mall.Module.TradePavilion
public
RB_Company_Extend
GetCompanyEntity
(
object
CompanyId
)
{
var
model
=
companyRepository
.
GetEntity
<
RB_Company_Extend
>(
CompanyId
);
return
model
;
}
/// <summary>
/// 获取公司信息实体
/// </summary>
/// <param name="CompanyId"></param>
/// <returns></returns>
public
RB_CompanyEnterprise_Extend
GetCompanyEnterpriseModule
(
int
CompanyId
)
{
var
model
=
companyEnterpriseRepository
.
GetEntity
<
RB_CompanyEnterprise_Extend
>(
CompanyId
);
return
model
;
}
...
...
@@ -532,28 +519,26 @@ namespace Mall.Module.TradePavilion
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Company
Enterprise
_Extend
.
CompanyStatus
),
Status
},
{
nameof
(
RB_Company_Extend
.
CompanyStatus
),
Status
},
};
if
(
Status
==
2
)
{
fileds
.
Add
(
nameof
(
RB_Company
Enterprise
_Extend
.
RejectRemark
),
remark
);
fileds
.
Add
(
nameof
(
RB_Company_Extend
.
RejectRemark
),
remark
);
}
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_CompanyEnterprise_Extend
.
CompanyId
),
FiledValue
=
CompanyId
,
OperatorEnum
=
OperatorEnum
.
Equal
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Company_Extend
.
CompanyId
),
FiledValue
=
CompanyId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
bool
flag
=
company
Enterprise
Repository
.
Update
(
fileds
,
wheres
,
trans
);
bool
flag
=
companyRepository
.
Update
(
fileds
,
wheres
,
trans
);
if
(
flag
)
{
//新增 更新品牌 载体信息
if
(
Status
==
1
)
{
var
cmodel
=
company
Enterprise
Repository
.
GetEntity
(
CompanyId
);
var
cmodel
=
companyRepository
.
GetEntity
(
CompanyId
);
if
(
cmodel
.
FirstShopType
==
1
)
{
//品牌
...
...
@@ -770,8 +755,6 @@ namespace Mall.Module.TradePavilion
}
}
/// <summary>
/// 验证品牌名称
/// </summary>
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
63d6f1a6
...
...
@@ -362,10 +362,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
CompanyId
=
parms
.
GetInt
(
"CompanyId"
,
0
);
var
Status
=
parms
.
GetInt
(
"CompanyStatus"
,
0
);
var
Remark
=
parms
.
GetStringValue
(
"Remark"
);
//不通过备注
var
model
=
companyModule
.
GetCompanyEnt
erpriseModule
(
CompanyId
);
var
model
=
companyModule
.
GetCompanyEnt
ity
(
CompanyId
);
if
(
model
==
null
||
model
.
CompanyId
<=
0
)
{
return
ApiResult
.
Failed
(
"公司信息不存在"
);
...
...
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