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
dfb73b51
Commit
dfb73b51
authored
Dec 13, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7963d5ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
38 deletions
+52
-38
RB_Building_Carrier.cs
Mall.Model/Entity/TradePavilion/RB_Building_Carrier.cs
+8
-8
BuildingCarrierModule.cs
Mall.Module.TradePavilion/BuildingCarrierModule.cs
+14
-14
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+20
-15
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+10
-1
No files found.
Mall.Model/Entity/TradePavilion/RB_Building_Carrier.cs
View file @
dfb73b51
...
...
@@ -113,7 +113,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 项目类型
/// </summary>
public
ProjectTypeEnum
ProjectType
{
get
;
set
;
}
public
int
?
ProjectType
{
get
;
set
;
}
/// <summary>
/// 商业体量(单位:万平方米)
...
...
@@ -160,7 +160,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 首店试验场 0-否,1-是
/// </summary>
public
int
FirstStoreTest
{
get
;
set
;
}
public
int
?
FirstStoreTest
{
get
;
set
;
}
/// <summary>
...
...
@@ -176,12 +176,12 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 去年业绩(单位:W)
/// </summary>
public
decimal
YeJi
{
get
;
set
;
}
public
decimal
?
YeJi
{
get
;
set
;
}
/// <summary>
/// 店铺数量
/// </summary>
public
int
ShopNum
{
get
;
set
;
}
public
int
?
ShopNum
{
get
;
set
;
}
/// <summary>
/// 可租赁面积
...
...
@@ -191,7 +191,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 可租赁面积
/// </summary>
public
decimal
EndAreaRequirement
{
get
;
set
;
}
public
decimal
?
EndAreaRequirement
{
get
;
set
;
}
/// <summary>
...
...
@@ -202,7 +202,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 经营面积
/// </summary>
public
decimal
EndBuiltUpArea
{
get
;
set
;
}
public
decimal
?
EndBuiltUpArea
{
get
;
set
;
}
/// <summary>
...
...
@@ -224,12 +224,12 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 类型(1-载体,2-楼宇)
/// </summary>
public
int
BuildingCarrierType
{
get
;
set
;
}
public
int
?
BuildingCarrierType
{
get
;
set
;
}
/// <summary>
/// 是否为成都载体(1-是)
/// </summary>
public
int
IsChengDu
{
get
;
set
;
}
public
int
?
IsChengDu
{
get
;
set
;
}
/// <summary>
/// 资产权属
...
...
Mall.Module.TradePavilion/BuildingCarrierModule.cs
View file @
dfb73b51
...
...
@@ -167,20 +167,20 @@ namespace Mall.Module.TradePavilion
flag
=
newId
>
0
;
}
if
(
flag
)
{
var
oldCarrierMetroList
=
building_CarriermetroRepository
.
GetBuildingCarrierMetroListRepository
(
new
RB_Building_Carriermetro_Extend
{
TenantId
=
extModel
.
TenantId
,
MallBaseId
=
extModel
.
MallBaseId
,
CarrierId
=
extModel
.
ID
});
building_CarriermetroRepository
.
DeleteBatch
(
oldCarrierMetroList
);
foreach
(
var
item
in
extModel
.
BuildingCarriermetroList
)
{
item
.
ID
=
0
;
item
.
Status
=
0
;
item
.
TenantId
=
extModel
.
TenantId
;
item
.
MallBaseId
=
extModel
.
MallBaseId
;
item
.
CarrierId
=
extModel
.
ID
;
}
building_CarriermetroRepository
.
InsertBatch
(
extModel
.
BuildingCarriermetroList
);
}
//
if (flag)
//
{
//
var oldCarrierMetroList = building_CarriermetroRepository.GetBuildingCarrierMetroListRepository(new RB_Building_Carriermetro_Extend { TenantId = extModel.TenantId, MallBaseId = extModel.MallBaseId, CarrierId = extModel.ID });
//
building_CarriermetroRepository.DeleteBatch(oldCarrierMetroList);
//
foreach (var item in extModel.BuildingCarriermetroList)
//
{
//
item.ID = 0;
//
item.Status = 0;
//
item.TenantId = extModel.TenantId;
//
item.MallBaseId = extModel.MallBaseId;
//
item.CarrierId = extModel.ID;
//
}
//
building_CarriermetroRepository.InsertBatch(extModel.BuildingCarriermetroList);
//
}
return
flag
;
}
...
...
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
dfb73b51
...
...
@@ -687,32 +687,34 @@ namespace Mall.Module.TradePavilion
inserCModel
.
UserId
=
cmodel
.
CreateBy
;
inserCModel
.
BuiltUpArea
=
model
.
BuiltUpArea
??
0
;
inserCModel
.
AreaRequirement
=
model
.
AreaRequirement
??
0
;
if
(
model
.
OpenTime
.
HasValue
)
{
if
(
model
.
OpenTime
.
Value
<=
System
.
DateTime
.
Now
)
{
inserCModel
.
OpeningStatus
=
1
;
}
inserCModel
.
OpenTime
=
model
.
OpenTime
.
Value
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
model
.
StartingInfo
))
{
inserCModel
.
FirstStoreTest
=
1
;
}
int
Id
=
building_CarrierRepository
.
Insert
(
inserCModel
);
if
(
Id
>
0
)
{
var
mlist
=
MetroList
.
RefMapperToList
<
RB_CarrierEnterpriseMetroApplyFor_Extend
>();
mlist
.
ForEach
(
x
=>
{
x
.
ID
=
0
;
x
.
CarrierId
=
Id
;
x
.
Status
=
0
;
x
.
TenantId
=
model
.
TenantId
;
x
.
MallBaseId
=
model
.
MallBaseId
;
});
carrierEnterpriseMetroApplyForRepository
.
InsertBatch
(
mlist
);
}
//
if (Id > 0)
//
{
//
var mlist = MetroList.RefMapperToList<RB_CarrierEnterpriseMetroApplyFor_Extend>();
//
mlist.ForEach(x =>
//
{
//
x.ID = 0;
//
x.CarrierId = Id;
//
x.Status = 0;
//
x.TenantId = model.TenantId;
//
x.MallBaseId = model.MallBaseId;
//
});
//
carrierEnterpriseMetroApplyForRepository.InsertBatch(mlist);
//
}
#
endregion
}
}
...
...
@@ -842,7 +844,10 @@ namespace Mall.Module.TradePavilion
if
(
clist
.
Any
())
{
model
.
CarrierModel
=
clist
.
FirstOrDefault
().
RefMapperTo
<
RB_CarrierEnterpriseApplyFor_Extend
>();
// model.CarrierModel.BuiltUpArea = clist.FirstOrDefault().BuiltUpArea;
model
.
CarrierModel
.
BuiltUpArea
=
clist
.
FirstOrDefault
()?.
BuiltUpArea
;
model
.
CarrierModel
.
AreaRequirement
=
clist
.
FirstOrDefault
()?.
AreaRequirement
;
model
.
CarrierModel
.
OpenTime
=
clist
.
FirstOrDefault
()?.
OpenTime
;
// model.CarrierModel.BuiltUpArea = clist.FirstOrDefault().BuiltUpArea;
//var metroList = carrierEnterpriseMetroApplyForRepository.GetCarrierMetroList(new RB_CarrierEnterpriseMetroApplyFor_Extend { TenantId = model.TenantId, MallBaseId = model.MallBaseId, CarrierId = model.CarrierModel.ID });
//model.CarrierModel.CarrierMetroList = new List<RB_CarrierEnterpriseMetroApplyFor_Extend>();
//if (metroList != null && metroList.Any())
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
dfb73b51
...
...
@@ -2894,7 +2894,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
x
.
LatAndLon
,
x
.
Developers
,
x
.
ProjectType
,
ProjectTypeName
=
x
.
ProjectType
.
GetEnumName
(),
//
ProjectTypeName = x.ProjectType.GetEnumName(),
x
.
CarrierSize
,
x
.
LayersNum
,
x
.
CategoryName
,
...
...
@@ -3343,6 +3343,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
var
userInfo
=
AppletUserInfo
;
RB_Building_Carrier_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Building_Carrier_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
ProjectType
=
query
?.
ProjectType
??
0
;
query
.
IsChengDu
=
query
?.
IsChengDu
??
0
;
query
.
YeJi
=
query
?.
YeJi
??
0
;
query
.
EndAreaRequirement
=
query
?.
EndAreaRequirement
??
0
;
query
.
BuildingCarrierType
=
query
?.
BuildingCarrierType
??
0
;
query
.
FirstStoreTest
=
query
?.
FirstStoreTest
??
0
;
query
.
ShopNum
=
query
?.
ShopNum
??
0
;
query
.
EndBuiltUpArea
=
query
?.
EndBuiltUpArea
??
0
;
query
.
BuildingCarriermetroList
=
new
List
<
RB_Building_Carriermetro_Extend
>();
if
(
query
.
ID
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递载体id"
);
...
...
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