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
5922c1dc
Commit
5922c1dc
authored
Dec 05, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
53094d79
b2e63c9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
4 deletions
+81
-4
RB_Brand_Enterprise.cs
Mall.Model/Entity/TradePavilion/RB_Brand_Enterprise.cs
+7
-2
BuildingCarrierModule.cs
Mall.Module.TradePavilion/BuildingCarrierModule.cs
+11
-1
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+59
-1
Mall.WebApi.csproj
Mall.WebApi/Mall.WebApi.csproj
+4
-0
No files found.
Mall.Model/Entity/TradePavilion/RB_Brand_Enterprise.cs
View file @
5922c1dc
...
...
@@ -67,12 +67,12 @@ namespace Mall.Model.Entity.TradePavilion
/// 品牌视频
/// </summary>
public
string
VideoUrl
{
get
;
set
;
}
/// <summary>
/// 品牌全名
/// </summary>
public
string
FullBrandName
{
get
;
set
;
}
/// <summary>
/// 品牌名称
/// </summary>
...
...
@@ -99,7 +99,7 @@ namespace Mall.Model.Entity.TradePavilion
public
string
BrandType
{
get
;
set
;
}
/// <summary>
/// 客户群体
/// 客户群体
[客户定位]
/// </summary>
public
string
CustomerType
{
get
;
set
;
}
...
...
@@ -241,6 +241,11 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary>
public
string
DevIntention
{
get
;
set
;
}
/// <summary>
/// 物业需求
/// </summary>
public
string
PropertyDemand
{
get
;
set
;
}
/// <summary>
/// 合作条件
/// </summary>
...
...
Mall.Module.TradePavilion/BuildingCarrierModule.cs
View file @
5922c1dc
...
...
@@ -182,10 +182,20 @@ namespace Mall.Module.TradePavilion
{
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
.
ShopNum
),
model
.
ShopNum
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
BuiltUpArea
),
model
.
BuiltUpArea
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
EndBuiltUpArea
),
model
.
EndBuiltUpArea
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
BrandType
),
model
.
BrandType
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
CustomerType
),
model
.
CustomerType
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
AreaRequirement
),
model
.
AreaRequirement
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
EndAreaRequirement
),
model
.
EndAreaRequirement
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
CategoryId
),
model
.
CategoryId
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Brand
Type
),
model
.
Brand
Type
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Brand
EnterpriseType
),
model
.
BrandEnterprise
Type
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Introduce
),
model
.
Introduce
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
DevIntention
),
model
.
DevIntention
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
PropertyDemand
),
model
.
PropertyDemand
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Cooperation
),
model
.
Cooperation
},
{
nameof
(
RB_Brand_Enterprise_Extend
.
Complementary
),
model
.
Complementary
},
};
flag
=
brand_EnterpriseRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Brand_Enterprise_Extend
.
ID
),
model
.
ID
));
}
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
5922c1dc
...
...
@@ -17,6 +17,7 @@ using Mall.Common.API;
using
Mall.Common.Enum
;
using
Mall.Common.Enum.TradePavilion
;
using
Mall.Common.Plugin
;
using
Mall.Model.Extend.TradePavilion
;
using
Mall.Module.TradePavilion
;
using
Mall.WebApi.Filter
;
...
...
@@ -43,6 +44,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
private
readonly
ContractModule
module
=
new
ContractModule
();
/// <summary>
/// 微信统计处理类对象
/// </summary>
private
readonly
WechatStatisticsModule
wechatStatisticsModule
=
new
WechatStatisticsModule
();
/// <summary>
/// 投资采购处理类对象
/// </summary>
...
...
@@ -3661,6 +3667,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
return
ApiResult
.
Success
(
data
:
extModel
);
}
[
HttpPost
]
public
ApiResult
GetBrandEnterprisePage
()
{
...
...
@@ -3672,7 +3679,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
RB_Brand_Enterprise_Extend
query
=
new
RB_Brand_Enterprise_Extend
()
{
BrandEnterpriseType
=
parms
.
GetInt
(
"BrandEnterpriseType"
),
BrandName
=
parms
.
GetStringValue
(
"BrandName"
),
FullBrandName
=
parms
.
GetStringValue
(
"FullBrandName"
),
};
List
<
object
>
list
=
new
List
<
object
>();
var
dataList
=
buildingCarrierModule
.
GetBrandEnterprisePageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
...
...
@@ -3706,6 +3715,20 @@ namespace Mall.WebApi.Controllers.TradePavilion
FullBrandName
=
parms
.
GetStringValue
(
"FullBrandName"
),
VideoUrl
=
parms
.
GetStringValue
(
"VideoUrl"
),
Logo
=
parms
.
GetStringValue
(
"Logo"
),
ShopNum
=
parms
.
GetInt
(
"ShopNum"
),
BuiltUpArea
=
parms
.
GetDecimal
(
"BuiltUpArea"
),
EndBuiltUpArea
=
parms
.
GetDecimal
(
"EndBuiltUpArea"
),
BrandType
=
parms
.
GetStringValue
(
"BrandType"
),
CustomerType
=
parms
.
GetStringValue
(
"CustomerType"
),
AreaRequirement
=
parms
.
GetDecimal
(
"AreaRequirement"
),
EndAreaRequirement
=
parms
.
GetDecimal
(
"EndAreaRequirement"
),
CategoryId
=
parms
.
GetInt
(
"CategoryId"
),
BrandEnterpriseType
=
parms
.
GetInt
(
"BrandEnterpriseType"
),
Introduce
=
parms
.
GetStringValue
(
"Introduce"
),
DevIntention
=
parms
.
GetStringValue
(
"DevIntention"
),
PropertyDemand
=
parms
.
GetStringValue
(
"PropertyDemand"
),
Cooperation
=
parms
.
GetStringValue
(
"Cooperation"
),
Complementary
=
parms
.
GetStringValue
(
"Complementary"
),
};
List
<
string
>
BannerList
=
new
List
<
string
>();
string
bannerListStr
=
parms
.
GetStringValue
(
"BannerList"
);
...
...
@@ -3721,6 +3744,18 @@ namespace Mall.WebApi.Controllers.TradePavilion
}
}
model
.
Banner
=
Common
.
Plugin
.
JsonHelper
.
Serialize
(
BannerList
);
model
.
TenantId
=
RequestParm
.
TenantId
;
model
.
MallBaseId
=
RequestParm
.
MallBaseId
;
if
(
model
.
ID
>
0
)
{
model
.
UpdateBy
=
RequestParm
.
TenantId
;
model
.
UpdateDate
=
DateTime
.
Now
;
}
else
{
model
.
CreateBy
=
RequestParm
.
TenantId
;
model
.
CreateDate
=
DateTime
.
Now
;
}
bool
flag
=
buildingCarrierModule
.
SetBrandEnterpriseModule
(
model
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
@@ -3748,5 +3783,28 @@ namespace Mall.WebApi.Controllers.TradePavilion
bool
flag
=
buildingCarrierModule
.
RemoveBrandEnterpriseModule
(
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 获取微信统计信息
/// </summary>
/// <returns></returns>
public
ApiResult
WechatStatistics
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
string
DateStr
=
parms
.
GetStringValue
(
"StartDate"
);
if
(
string
.
IsNullOrWhiteSpace
(
DateStr
))
{
DateStr
=
DateTime
.
Now
.
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd"
);
}
RB_Wechat_Statistics_Extend
extModel
=
new
RB_Wechat_Statistics_Extend
()
{
ID
=
parms
.
GetInt
(
"ID"
),
Ref_Date
=
Convert
.
ToDateTime
(
DateStr
).
ToString
(
"yyyyMMdd"
),
TenantId
=
RequestParm
.
TenantId
,
MallBaseId
=
RequestParm
.
MallBaseId
,
};
var
model
=
wechatStatisticsModule
.
GetList
(
extModel
)?.
FirstOrDefault
()
??
new
RB_Wechat_Statistics_Extend
();
return
ApiResult
.
Success
(
""
,
model
);
}
}
}
\ No newline at end of file
Mall.WebApi/Mall.WebApi.csproj
View file @
5922c1dc
...
...
@@ -48,6 +48,10 @@
<ProjectReference Include="..\Mall.ThirdCore\Mall.ThirdCore.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\WeChatStatistics\" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="https://json-schema.org/draft/2019-09/schema" /></VisualStudio></ProjectExtensions>
...
...
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