Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
Project
Project
Details
Activity
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
林锐标
slm-bi
Commits
87ed373b
Commit
87ed373b
authored
Apr 20, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
5f246c2e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
BaseRestController.java
...java/com/syc/slm/slmbi/controller/BaseRestController.java
+0
-1
InstrumentPanelController.java
...m/syc/slm/slmbi/controller/InstrumentPanelController.java
+1
-6
BusinessConditionDTO.java
...main/java/com/syc/slm/slmbi/dto/BusinessConditionDTO.java
+9
-0
BusinessDTO.java
src/main/java/com/syc/slm/slmbi/dto/BusinessDTO.java
+7
-2
No files found.
src/main/java/com/syc/slm/slmbi/controller/BaseRestController.java
View file @
87ed373b
...
...
@@ -17,7 +17,6 @@ import org.springframework.web.context.request.NativeWebRequest;
import
org.springframework.web.context.request.RequestAttributes
;
import
org.springframework.web.context.request.ServletWebRequest
;
import
org.springframework.web.servlet.HandlerMapping
;
import
org.springframework.web.servlet.View
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Enumeration
;
...
...
src/main/java/com/syc/slm/slmbi/controller/InstrumentPanelController.java
View file @
87ed373b
...
...
@@ -32,12 +32,7 @@ public class InstrumentPanelController extends BaseRestController {
@Autowired
private
InstrumentPanelService
instrumentPanelService
;
/**
* where :{name:'',creator:'',updater:'',startDate:'' ,endDate:'',recordStatus:''}
*
* @param where
* @return
*/
@GetMapping
@ApiOperation
(
"仪表板列表"
)
@ApiImplicitParam
(
name
=
"appId"
,
value
=
"租户id"
,
required
=
true
,
dataTypeClass
=
String
.
class
)
...
...
src/main/java/com/syc/slm/slmbi/dto/BusinessConditionDTO.java
View file @
87ed373b
package
com
.
syc
.
slm
.
slmbi
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* slm-bi
*
* @author : lin
* @date : 2021-04-19 19:36
**/
@ApiModel
(
value
=
"业务查询条件DTO"
)
@Data
public
class
BusinessConditionDTO
{
@ApiModelProperty
(
value
=
"区间配置字段"
,
required
=
true
)
private
String
key
;
@ApiModelProperty
(
value
=
"字段对应的值,时间给对应时间戳"
,
required
=
true
)
private
String
value
;
@ApiModelProperty
(
value
=
"查询类型(大于 gt, 小于 lt ,大于等于 gte ,小于等于 lte)"
,
required
=
true
)
private
String
queryType
;
}
src/main/java/com/syc/slm/slmbi/dto/BusinessDTO.java
View file @
87ed373b
package
com
.
syc
.
slm
.
slmbi
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
...
...
@@ -11,11 +13,14 @@ import java.util.List;
* @date : 2021-04-19 19:31
**/
@Data
@ApiModel
(
value
=
"业务数据查询DTO"
)
public
class
BusinessDTO
{
@ApiModelProperty
(
value
=
"查询表名"
,
required
=
true
)
private
String
table
;
@ApiModelProperty
(
value
=
"查询配置的字段"
,
required
=
true
)
private
String
filed
;
@ApiModelProperty
(
value
=
"查询配置的时间区间(如果为空不要调用后台)"
,
required
=
true
)
List
<
BusinessConditionDTO
>
where
;
//avg sum count
@ApiModelProperty
(
value
=
"统计类型(平均值 avg ,合计值 sum, 最大值 max ,最小值 min,中位数 middle ,原值 original)"
,
required
=
true
)
private
String
statisticsType
;
}
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