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
31811d5d
Commit
31811d5d
authored
Dec 11, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b332a3f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
2 deletions
+92
-2
RB_EnterpriseServicesApply.cs
....Model/Entity/TradePavilion/RB_EnterpriseServicesApply.cs
+5
-0
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+77
-0
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+10
-2
No files found.
Mall.Model/Entity/TradePavilion/RB_EnterpriseServicesApply.cs
View file @
31811d5d
...
...
@@ -145,5 +145,10 @@ namespace Mall.Model.Entity.TradePavilion
/// 现有企业服务id
/// </summary>
public
int
ExistServiceId
{
get
;
set
;
}
/// <summary>
/// 企业类别
/// </summary>
public
int
EType
{
get
;
set
;
}
}
}
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
31811d5d
...
...
@@ -305,6 +305,8 @@ namespace Mall.Module.TradePavilion
{
nameof
(
RB_EnterpriseServicesApply_Extend
.
ContactPhone
),
model
.
ContactPhone
},
{
nameof
(
RB_EnterpriseServicesApply_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_EnterpriseServicesApply_Extend
.
UpdateDate
),
model
.
UpdateDate
},
{
nameof
(
RB_EnterpriseServicesApply_Extend
.
EType
),
model
.
EType
},
};
flag
=
enterpriseServicesApplyRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_EnterpriseServicesApply_Extend
.
ID
),
model
.
ID
));
}
...
...
@@ -349,6 +351,8 @@ namespace Mall.Module.TradePavilion
{
nameof
(
RB_EnterpriseServices
.
ContactPhone
),
BrandModel
.
ContactPhone
},
{
nameof
(
RB_EnterpriseServices
.
UpdateBy
),
BrandModel
.
UpdateBy
},
{
nameof
(
RB_EnterpriseServices
.
UpdateDate
),
BrandModel
.
UpdateDate
},
{
nameof
(
RB_EnterpriseServices
.
EType
),
BrandModel
.
EType
},
};
enterpriseServicesRepository
.
Update
(
filedsBrand
,
new
WhereHelper
(
nameof
(
RB_EnterpriseServices
.
ServiceId
),
BrandModel
.
ExistServiceId
));
}
...
...
@@ -1554,6 +1558,79 @@ namespace Mall.Module.TradePavilion
}
}
}
else
if
(
cmodel
.
FirstShopType
==
4
)
{
//企业服务
var
brandList
=
buildingApplyForRepository
.
GetBuildingRepository
(
new
RB_BuildingApplyFor_Extend
{
MallBaseId
=
cmodel
.
MallBaseId
,
CompanyId
=
cmodel
.
CompanyId
});
if
(
brandList
!=
null
&&
brandList
.
Any
())
{
var
BrandModel
=
brandList
.
FirstOrDefault
();
if
(
BrandModel
.
ExistBuildId
>
0
)
{
//修改
#
region
验证品牌是否已关联用户
//var bmodel = brand2Repository.GetEntity(BrandModel.ExistBrandId);
//if (bmodel.UserId > 0)
//{
// companyEnterpriseRepository.DBSession.Rollback();
// return "该品牌已被其他用户认证,请核实后再试";
//}
#
endregion
Dictionary
<
string
,
object
>
filedsBrand
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Building_Extend
.
Name
),
BrandModel
.
Name
},
{
nameof
(
RB_Building_Extend
.
Banner
),
BrandModel
.
Banner
},
{
nameof
(
RB_Building_Extend
.
Address
),
BrandModel
.
Address
},
{
nameof
(
RB_Building_Extend
.
LatAndLon
),
BrandModel
.
LatAndLon
},
{
nameof
(
RB_Building_Extend
.
OperationTime
),
BrandModel
.
OperationTime
},
{
nameof
(
RB_Building_Extend
.
CategoryId
),
BrandModel
.
CategoryId
},
{
nameof
(
RB_Building_Extend
.
Areas
),
BrandModel
.
Areas
},
{
nameof
(
RB_Building_Extend
.
BuildingNum
),
BrandModel
.
BuildingNum
},
{
nameof
(
RB_Building_Extend
.
FloorNum
),
BrandModel
.
FloorNum
},
{
nameof
(
RB_Building_Extend
.
ElevatorNum
),
BrandModel
.
ElevatorNum
},
{
nameof
(
RB_Building_Extend
.
FloorHeight
),
BrandModel
.
FloorHeight
},
{
nameof
(
RB_Building_Extend
.
Developers
),
BrandModel
.
Developers
},
{
nameof
(
RB_Building_Extend
.
PropertyComp
),
BrandModel
.
PropertyComp
},
{
nameof
(
RB_Building_Extend
.
SaleOrSelf
),
BrandModel
.
SaleOrSelf
},
{
nameof
(
RB_Building_Extend
.
IsAllOperate
),
BrandModel
.
IsAllOperate
},
{
nameof
(
RB_Building_Extend
.
ConstructionTime
),
BrandModel
.
ConstructionTime
},
{
nameof
(
RB_Building_Extend
.
PropertyFee
),
BrandModel
.
PropertyFee
},
{
nameof
(
RB_Building_Extend
.
RentFee
),
BrandModel
.
RentFee
},
{
nameof
(
RB_Building_Extend
.
IndustryDirection
),
BrandModel
.
IndustryDirection
},
{
nameof
(
RB_Building_Extend
.
BrandDemand
),
BrandModel
.
BrandDemand
},
{
nameof
(
RB_Building_Extend
.
Other
),
BrandModel
.
Other
},
{
nameof
(
RB_Building_Extend
.
ContactName
),
BrandModel
.
ContactName
},
{
nameof
(
RB_Building_Extend
.
ContactPhone
),
BrandModel
.
ContactPhone
},
{
nameof
(
RB_Building_Extend
.
UpdateBy
),
BrandModel
.
UpdateBy
},
{
nameof
(
RB_Building_Extend
.
UpdateDate
),
BrandModel
.
UpdateDate
},
};
buildingRepository
.
Update
(
filedsBrand
,
new
WhereHelper
(
nameof
(
RB_Building_Extend
.
BuildId
),
BrandModel
.
ExistBuildId
),
trans
);
}
else
{
//新增
#
region
再次验证品牌名称
//if (ValidateBrandName(BrandModel.BrandName, cmodel.MallBaseId))
//{
// companyEnterpriseRepository.DBSession.Rollback();
// return "该品牌名称已存在,请确认品牌名称后再次审核";
//}
//if (ValidateFullBrandName(BrandModel.FullBrandName, cmodel.MallBaseId))
//{
// companyEnterpriseRepository.DBSession.Rollback();
// return "该品牌全名已存在,请确认品牌全名后再次审核";
//}
#
endregion
#
region
新增品牌
var
inserBModel
=
BrandModel
.
RefMapperTo
<
RB_Building_Extend
>();
inserBModel
.
BuildId
=
0
;
inserBModel
.
UserId
=
cmodel
.
CreateBy
;
buildingRepository
.
Insert
(
inserBModel
,
trans
);
#
endregion
}
}
}
}
}
companyEnterpriseRepository
.
DBSession
.
Commit
();
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
31811d5d
...
...
@@ -2875,6 +2875,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
ProjectTypeName
=
x
.
ProjectType
.
GetEnumName
(),
x
.
CarrierSize
,
x
.
LayersNum
,
x
.
CategoryName
,
x
.
CarNum
,
x
.
CarrierPlan
,
x
.
CarrierTarget
,
...
...
@@ -2884,7 +2885,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
x
.
OpeningStatus
,
x
.
FirstStoreTest
,
x
.
BannerList
,
x
.
IsChengDu
,
});
return
ApiResult
.
Success
(
data
:
pageModel
);
}
...
...
@@ -3003,6 +3004,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
CarrierSize
=
x
.
Areas
,
LayersNum
=
x
.
FloorNum
,
CarNum
=
x
.
ElevatorNum
,
//电梯数,载体的是车位数
x
.
CategoryName
,
x
.
BannerList
,
});
return
ApiResult
.
Success
(
data
:
pageModel
);
...
...
@@ -3092,7 +3094,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
BrandName
=
parms
.
GetStringValue
(
"BrandName"
),
ProjectType
=
(
Common
.
Enum
.
TradePavilion
.
ProjectTypeEnum
)
parms
.
GetInt
(
"ProjectType"
,
0
),
BrandClass
Id
=
parms
.
GetInt
(
"BrandClassId"
,
0
),
Category
Id
=
parms
.
GetInt
(
"BrandClassId"
,
0
),
BrandEnterpriseType
=
parms
.
GetInt
(
"BrandEnterpriseType"
,
1
),
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
...
...
@@ -3191,6 +3193,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
x
.
BannerList
,
BrandName
=
x
.
Name
,
ShopNum
=
x
.
IntentionalFloor
,
//店铺数对应企业服务的楼层数
x
.
CategoryName
,
x
.
CategoryId
,
});
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
result
;
...
...
@@ -3488,6 +3492,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
ContactName
=
parms
.
GetStringValue
(
"ContactName"
),
ContactPhone
=
parms
.
GetStringValue
(
"ContactPhone"
),
CompanyId
=
parms
.
GetInt
(
"CompanyId"
),
EType
=
parms
.
GetInt
(
"EType"
),
};
if
(
model
.
CompanyId
<=
0
)
{
...
...
@@ -3578,6 +3583,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
BrandDemand
=
parms
.
GetStringValue
(
"BrandDemand"
),
CategoryId
=
parms
.
GetInt
(
"CategoryId"
,
0
),
BuildingCarrierType
=
parms
.
GetInt
(
"BuildingCarrierType"
,
1
),
ContactPhone
=
parms
.
GetStringValue
(
"ContactPhone"
),
ContactName
=
parms
.
GetStringValue
(
"ContactName"
),
};
var
bannerList
=
parms
.
GetStringValue
(
"BannerList"
);
if
(!
string
.
IsNullOrEmpty
(
bannerList
))
...
...
@@ -3744,6 +3751,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
Other
=
parms
.
GetStringValue
(
"Other"
),
ContactName
=
parms
.
GetStringValue
(
"ContactName"
),
ContactPhone
=
parms
.
GetStringValue
(
"ContactPhone"
),
CompanyId
=
parms
.
GetInt
(
"CompanyId"
),
};
if
(
model
.
CompanyId
<=
0
)
...
...
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