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
be2f3465
Commit
be2f3465
authored
Dec 05, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4541a85a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+29
-0
No files found.
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
be2f3465
...
@@ -17,6 +17,7 @@ using Mall.Common.API;
...
@@ -17,6 +17,7 @@ using Mall.Common.API;
using
Mall.Common.Enum
;
using
Mall.Common.Enum
;
using
Mall.Common.Enum.TradePavilion
;
using
Mall.Common.Enum.TradePavilion
;
using
Mall.Common.Plugin
;
using
Mall.Common.Plugin
;
using
Mall.Model.Entity.WeChatStatistics
;
using
Mall.Model.Extend.TradePavilion
;
using
Mall.Model.Extend.TradePavilion
;
using
Mall.Module.TradePavilion
;
using
Mall.Module.TradePavilion
;
using
Mall.WebApi.Filter
;
using
Mall.WebApi.Filter
;
...
@@ -43,6 +44,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -43,6 +44,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
/// </summary>
private
readonly
ContractModule
module
=
new
ContractModule
();
private
readonly
ContractModule
module
=
new
ContractModule
();
/// <summary>
/// 微信统计处理类对象
/// </summary>
private
readonly
WechatStatisticsModule
wechatStatisticsModule
=
new
WechatStatisticsModule
();
/// <summary>
/// <summary>
/// 投资采购处理类对象
/// 投资采购处理类对象
/// </summary>
/// </summary>
...
@@ -3659,5 +3665,28 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -3659,5 +3665,28 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
extModel
=
buildingCarrierModule
.
RemoveBuildingCarrierModule
(
ID
);
var
extModel
=
buildingCarrierModule
.
RemoveBuildingCarrierModule
(
ID
);
return
ApiResult
.
Success
(
data
:
extModel
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
}
/// <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
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