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
c28354a7
Commit
c28354a7
authored
Jun 08, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
75a8f220
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
309 additions
and
214 deletions
+309
-214
StatisticsModule.cs
Mall.Module.MarketingCenter/StatisticsModule.cs
+271
-214
LiveHouseController.cs
Mall.WebApi/Controllers/AppletWeChat/LiveHouseController.cs
+38
-0
No files found.
Mall.Module.MarketingCenter/StatisticsModule.cs
View file @
c28354a7
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/AppletWeChat/LiveHouseController.cs
View file @
c28354a7
...
...
@@ -1488,6 +1488,44 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
/// <summary>
/// 每月统计
/// </summary>
/// <param name="requestMsg"></param>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetDSMoreMonthStatistics
(
object
requestMsg
)
{
var
requestParm
=
JsonConvert
.
DeserializeObject
<
RequestParm
>(
requestMsg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
requestParm
.
msg
.
ToString
());
string
StartTime
=
parms
.
GetStringValue
(
"StartTime"
);
//开始时间 月
string
EndTime
=
parms
.
GetStringValue
(
"EndTime"
);
//结束时间 月
if
(
string
.
IsNullOrEmpty
(
StartTime
))
{
return
ApiResult
.
ParamIsNull
();
}
if
(
string
.
IsNullOrEmpty
(
EndTime
))
{
return
ApiResult
.
ParamIsNull
();
}
try
{
StartTime
=
Convert
.
ToDateTime
(
StartTime
).
ToString
(
"yyyy-MM"
);
EndTime
=
Convert
.
ToDateTime
(
EndTime
).
ToString
(
"yyyy-MM"
);
}
catch
(
Exception
)
{
return
ApiResult
.
Failed
(
"月份格式有误"
);
}
if
(
Convert
.
ToDateTime
(
StartTime
)
>
Convert
.
ToDateTime
(
EndTime
))
{
return
ApiResult
.
Failed
(
"起始月份不能大于结束月份"
);
}
var
Robj
=
statisticsModule
.
GetDSMoreMonthStatistics
(
StartTime
,
EndTime
,
requestParm
.
TenantId
,
requestParm
.
MallBaseId
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
#
endregion
}
}
\ 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