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
53094d79
Commit
53094d79
authored
Dec 05, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e8a84dc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
3 deletions
+106
-3
RB_Brand_Enterprise.cs
Mall.Model/Entity/TradePavilion/RB_Brand_Enterprise.cs
+12
-2
BuildingCarrierModule.cs
Mall.Module.TradePavilion/BuildingCarrierModule.cs
+6
-1
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+88
-0
No files found.
Mall.Model/Entity/TradePavilion/RB_Brand_Enterprise.cs
View file @
53094d79
...
...
@@ -111,7 +111,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 性质
/// </summary>
public
ProjectTypeEnum
?
ProjectType
{
get
;
set
;
}
public
ProjectTypeEnum
ProjectType
{
get
;
set
;
}
/// <summary>
/// 面积要求
...
...
@@ -214,7 +214,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 是否已在成都落地 0-否,1-是,-1未填写
/// </summary>
public
int
?
IsInChengdu
{
get
;
set
;
}
public
int
IsInChengdu
{
get
;
set
;
}
/// <summary>
/// 奖项来源ids
...
...
@@ -240,5 +240,15 @@ namespace Mall.Model.Entity.TradePavilion
/// 发展意向
/// </summary>
public
string
DevIntention
{
get
;
set
;
}
/// <summary>
/// 合作条件
/// </summary>
public
string
Cooperation
{
get
;
set
;
}
/// <summary>
/// 配套需求
/// </summary>
public
string
Complementary
{
get
;
set
;
}
}
}
Mall.Module.TradePavilion/BuildingCarrierModule.cs
View file @
53094d79
...
...
@@ -180,7 +180,12 @@ namespace Mall.Module.TradePavilion
{
nameof
(
RB_Brand_Enterprise_Extend
.
BrandName
),
model
.
BrandName
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
FullBrandName
),
model
.
FullBrandName
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
VideoUrl
),
model
.
VideoUrl
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
VideoUrl
),
model
.
VideoUrl
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Logo
),
model
.
Logo
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Banner
),
model
.
Banner
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
CustomerType
),
model
.
CustomerType
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
CategoryId
),
model
.
CategoryId
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
BrandType
),
model
.
BrandType
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Introduce
),
model
.
Introduce
},
};
flag
=
brand_EnterpriseRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Brand_Enterprise_Extend
.
ID
),
model
.
ID
));
}
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
53094d79
...
...
@@ -3660,5 +3660,93 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
extModel
=
buildingCarrierModule
.
RemoveBuildingCarrierModule
(
ID
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
[
HttpPost
]
public
ApiResult
GetBrandEnterprisePage
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
ResultPageModel
pageModel
=
new
ResultPageModel
()
{
pageIndex
=
parms
.
GetInt
(
"pageIndex"
),
pageSize
=
parms
.
GetInt
(
"pageSize"
),
};
RB_Brand_Enterprise_Extend
query
=
new
RB_Brand_Enterprise_Extend
()
{
};
List
<
object
>
list
=
new
List
<
object
>();
var
dataList
=
buildingCarrierModule
.
GetBrandEnterprisePageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
dataList
)
{
list
.
Add
(
new
{
item
.
ID
,
item
.
BrandName
,
item
.
FullBrandName
,
CreateDate
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
CreateDate
),
});
}
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 【商载通】新增修改品牌、企业
/// </summary>
/// <returns></returns>
public
ApiResult
SetBrandEnterprise
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_Brand_Enterprise_Extend
model
=
new
RB_Brand_Enterprise_Extend
()
{
ID
=
parms
.
GetInt
(
"ID"
),
BrandName
=
parms
.
GetStringValue
(
"BrandName"
),
FullBrandName
=
parms
.
GetStringValue
(
"FullBrandName"
),
VideoUrl
=
parms
.
GetStringValue
(
"VideoUrl"
),
Logo
=
parms
.
GetStringValue
(
"Logo"
),
};
List
<
string
>
BannerList
=
new
List
<
string
>();
string
bannerListStr
=
parms
.
GetStringValue
(
"BannerList"
);
if
(!
string
.
IsNullOrEmpty
(
bannerListStr
))
{
try
{
BannerList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
bannerListStr
);
}
catch
{
}
}
model
.
Banner
=
Common
.
Plugin
.
JsonHelper
.
Serialize
(
BannerList
);
bool
flag
=
buildingCarrierModule
.
SetBrandEnterpriseModule
(
model
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 根据编号获取品牌、企业服务
/// </summary>
/// <returns></returns>
public
ApiResult
GetBrandEnterpriseInfo
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
int
Id
=
parms
.
GetInt
(
"ID"
);
var
extModel
=
buildingCarrierModule
.
GetBrandEnterpriseModule
(
Id
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 根据编号删除品牌、企业服务
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveBrandEnterpriseInfo
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
int
Id
=
parms
.
GetInt
(
"ID"
);
bool
flag
=
buildingCarrierModule
.
RemoveBrandEnterpriseModule
(
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
}
\ 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