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
6cbcd040
Commit
6cbcd040
authored
Nov 07, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0093b91a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
CompanyModule.cs
Mall.Module.TradePavilion/CompanyModule.cs
+25
-25
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+13
-13
No files found.
Mall.Module.TradePavilion/CompanyModule.cs
View file @
6cbcd040
...
@@ -550,12 +550,12 @@ namespace Mall.Module.TradePavilion
...
@@ -550,12 +550,12 @@ namespace Mall.Module.TradePavilion
{
{
//修改
//修改
#
region
验证品牌是否已关联用户
#
region
验证品牌是否已关联用户
var
bmodel
=
brand2Repository
.
GetEntity
(
BrandModel
.
ExistBrandId
);
//
var bmodel = brand2Repository.GetEntity(BrandModel.ExistBrandId);
if
(
bmodel
.
UserId
>
0
)
//
if (bmodel.UserId > 0)
{
//
{
companyRepository
.
DBSession
.
Rollback
();
//
companyRepository.DBSession.Rollback();
return
"该品牌已被其他用户认证,请核实后再试"
;
//
return "该品牌已被其他用户认证,请核实后再试";
}
//
}
#
endregion
#
endregion
Dictionary
<
string
,
object
>
filedsBrand
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
filedsBrand
=
new
Dictionary
<
string
,
object
>()
{
{
...
@@ -596,16 +596,16 @@ namespace Mall.Module.TradePavilion
...
@@ -596,16 +596,16 @@ namespace Mall.Module.TradePavilion
{
{
//新增
//新增
#
region
再次验证品牌名称
#
region
再次验证品牌名称
if
(
ValidateBrandName
(
BrandModel
.
BrandName
,
cmodel
.
MallBaseId
))
//
if (ValidateBrandName(BrandModel.BrandName, cmodel.MallBaseId))
{
//
{
companyRepository
.
DBSession
.
Rollback
();
//
companyRepository.DBSession.Rollback();
return
"该品牌名称已存在,请确认品牌名称后再次审核"
;
//
return "该品牌名称已存在,请确认品牌名称后再次审核";
}
//
}
if
(
ValidateFullBrandName
(
BrandModel
.
FullBrandName
,
cmodel
.
MallBaseId
))
//
if (ValidateFullBrandName(BrandModel.FullBrandName, cmodel.MallBaseId))
{
//
{
companyRepository
.
DBSession
.
Rollback
();
//
companyRepository.DBSession.Rollback();
return
"该品牌全名已存在,请确认品牌全名后再次审核"
;
//
return "该品牌全名已存在,请确认品牌全名后再次审核";
}
//
}
#
endregion
#
endregion
#
region
新增品牌
#
region
新增品牌
...
@@ -631,11 +631,11 @@ namespace Mall.Module.TradePavilion
...
@@ -631,11 +631,11 @@ namespace Mall.Module.TradePavilion
//修改
//修改
#
region
验证品牌是否已关联用户
#
region
验证品牌是否已关联用户
var
carrmodel
=
carrierRepository
.
GetEntity
(
CarrierModel
.
ExistCarrierId
);
var
carrmodel
=
carrierRepository
.
GetEntity
(
CarrierModel
.
ExistCarrierId
);
if
(
carrmodel
.
UserId
>
0
)
//
if (carrmodel.UserId > 0)
{
//
{
companyRepository
.
DBSession
.
Rollback
();
//
companyRepository.DBSession.Rollback();
return
"该载体已被其他用户认证,请核实后再试"
;
//
return "该载体已被其他用户认证,请核实后再试";
}
//
}
#
endregion
#
endregion
#
region
修改载体
#
region
修改载体
int
FirstStoreTest
=
0
;
int
FirstStoreTest
=
0
;
...
@@ -704,10 +704,10 @@ namespace Mall.Module.TradePavilion
...
@@ -704,10 +704,10 @@ namespace Mall.Module.TradePavilion
{
{
//新增
//新增
#
region
再次验证载体名称
#
region
再次验证载体名称
if
(
ValidateCarrierName
(
CarrierModel
.
CarrierName
,
CarrierModel
.
MallBaseId
))
//
if (ValidateCarrierName(CarrierModel.CarrierName, CarrierModel.MallBaseId))
{
//
{
return
"该载体名称已存在,请确认载体名称后再次审核"
;
//
return "该载体名称已存在,请确认载体名称后再次审核";
}
//
}
#
endregion
#
endregion
#
region
新增载体
#
region
新增载体
var
inserCModel
=
CarrierModel
.
RefMapperTo
<
RB_Carrier_Extend
>();
var
inserCModel
=
CarrierModel
.
RefMapperTo
<
RB_Carrier_Extend
>();
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
6cbcd040
...
@@ -234,24 +234,24 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -234,24 +234,24 @@ namespace Mall.WebApi.Controllers.TradePavilion
#
region
验证品牌名称是否已经存在了
#
region
验证品牌名称是否已经存在了
if
(
query
.
ExistBrandId
==
0
)
if
(
query
.
ExistBrandId
==
0
)
{
{
if
(
carrierModule
.
ValidateBrandName
(
query
.
BrandName
,
userInfo
.
MallBaseId
))
//
if (carrierModule.ValidateBrandName(query.BrandName, userInfo.MallBaseId))
{
//
{
return
ApiResult
.
Failed
(
"该品牌名称已存在,请选择绑定已有品牌"
);
// //
return ApiResult.Failed("该品牌名称已存在,请选择绑定已有品牌");
}
//
}
if
(
carrierModule
.
ValidateFullBrandName
(
query
.
FullBrandName
,
userInfo
.
MallBaseId
))
//
if (carrierModule.ValidateFullBrandName(query.FullBrandName, userInfo.MallBaseId))
{
//
{
return
ApiResult
.
Failed
(
"该品牌全名已存在,请选择绑定已有品牌"
);
// //
return ApiResult.Failed("该品牌全名已存在,请选择绑定已有品牌");
}
//
}
}
}
//修改
//修改
#
region
验证品牌是否已关联用户
#
region
验证品牌是否已关联用户
if
(
query
.
ExistBrandId
>
0
)
if
(
query
.
ExistBrandId
>
0
)
{
{
var
bmodel
=
carrierModule
.
GetBrand
(
new
RB_Brand_Extend
{
ID
=
query
.
ExistBrandId
,
MallBaseId
=
query
.
MallBaseId
,
TenantId
=
query
.
TenantId
});
//
var bmodel = carrierModule.GetBrand(new RB_Brand_Extend { ID = query.ExistBrandId, MallBaseId = query.MallBaseId, TenantId = query.TenantId });
if
(
bmodel
.
UserId
>
0
)
//
if (bmodel.UserId > 0)
{
//
{
return
ApiResult
.
Failed
(
"该品牌已被其他用户认证,请核实后再试"
);
// //
return ApiResult.Failed("该品牌已被其他用户认证,请核实后再试");
}
//
}
}
}
#
endregion
#
endregion
#
endregion
#
endregion
...
...
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