Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b6b24709
authored
Jul 21, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加参数判断
1 parent
9474bb6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
src/main/java/cn/com/glsx/app/modules/controller/DashboardController.java
src/main/java/cn/com/glsx/app/modules/model/param/DeviceActiveSearch.java
src/main/java/cn/com/glsx/app/modules/controller/DashboardController.java
View file @
b6b2470
...
...
@@ -13,6 +13,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -58,7 +59,7 @@ public class DashboardController {
@GetMapping
(
"/getActiveDeviceWeekReport"
)
@ApiOperation
(
value
=
"一周激活设备报表统计"
,
response
=
DeviceActiveVO
.
class
)
@SysLog
(
module
=
"一周激活设备报表统计"
,
value
=
"一周激活设备报表统计"
,
action
=
OperateType
.
QUERY
,
saveLog
=
false
)
public
R
<
DeviceActiveVO
>
getActiveDeviceWeekReport
(
DeviceActiveSearch
search
)
{
public
R
<
DeviceActiveVO
>
getActiveDeviceWeekReport
(
@Validated
DeviceActiveSearch
search
)
{
List
<
DeviceActiveVO
>
deviceActiveList
=
dashboardService
.
getActiveDeviceWeekReport
(
search
);
return
R
.
ok
().
data
(
deviceActiveList
);
}
...
...
src/main/java/cn/com/glsx/app/modules/model/param/DeviceActiveSearch.java
View file @
b6b2470
...
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
/**
* 设备激活查询
*
...
...
@@ -17,11 +19,13 @@ public class DeviceActiveSearch extends BasicSearch {
* 查询开始时间
*/
@ApiModelProperty
(
"查询开始时间"
)
@NotNull
(
message
=
"startTime不能为空"
)
String
startTime
;
/**
* 查询结束时间
*/
@ApiModelProperty
(
"查询结束时间"
)
@NotNull
(
message
=
"endTime不能为空"
)
String
endTime
;
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment