Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d6894817
Commit
d6894817
authored
Jul 05, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公用API参数修改
parent
f3215d30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
MonitorFanIndicatorMapper.java
...ot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
+3
-3
MonitorFanIndicatorMapper.xml
...i/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
+4
-4
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+3
-3
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+6
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
View file @
d6894817
...
...
@@ -19,12 +19,12 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
//批量修改
void
UpdateMonitorFanIndicator
(
@Param
(
value
=
"list"
)
List
<
IndexDto
>
list
);
Integer
queryByPageTotal
(
@Param
(
"
fanCode"
)
String
fanCode
,
Integer
queryByPageTotal
(
@Param
(
"
equipmentNumber"
)
String
equipmentNumber
,
@Param
(
"gateway"
)
String
gateway
,
@Param
(
"frontModule"
)
String
frontModule
);
Page
<
MonitorFanIndicator
>
queryByPage
(
@Param
(
"size"
)
long
size
,
@Param
(
"
fanCode"
)
String
fanCode
,
List
<
MonitorFanIndicator
>
queryByPage
(
@Param
(
"size"
)
long
size
,
@Param
(
"
equipmentNumber"
)
String
equipmentNumber
,
@Param
(
"gateway"
)
String
gateway
,
@Param
(
"frontModule"
)
String
frontModule
,
@Param
(
"offset"
)
int
offset
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
View file @
d6894817
...
...
@@ -39,8 +39,8 @@
<select
id=
"queryByPage"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanIndicator"
>
select * from monitor_fan_indicator
<where>
<if
test=
"
fanCode != null and fanCode
!=''"
>
fan_code like concat('%', #{fanCode},'%')
<if
test=
"
equipmentNumber != null and equipmentNumber
!=''"
>
equipment_number = #{equipmentNumber}
</if>
<if
test=
"gateway != null and gateway !=''"
>
AND gateway = #{gateway}
...
...
@@ -55,8 +55,8 @@
<select
id=
"queryByPageTotal"
resultType=
"java.lang.Integer"
>
select count(1) from monitor_fan_indicator
<where>
<if
test=
"
fanCode != null and fanCode
!=''"
>
fan_code like concat('%', #{fanCode},'%')
<if
test=
"
equipmentNumber != null and equipmentNumber
!=''"
>
equipment_number = #{equipmentNumber}
</if>
<if
test=
"gateway != null and gateway !=''"
>
AND gateway = #{gateway}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
d6894817
...
...
@@ -34,14 +34,14 @@ public class MonitorFanIdxController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"根据
风机编码
、网关ID、前段展示模块查询表数据"
)
@ApiOperation
(
value
=
"根据
设备编号
、网关ID、前段展示模块查询表数据"
)
@GetMapping
(
"/getFanIdxInfoByPage"
)
public
ResponseModel
<
IPage
<
MonitorFanIndicator
>>
getFanIdxInfoByPage
(
@RequestParam
(
value
=
"
fanCode"
,
required
=
false
)
String
fanCode
,
public
ResponseModel
<
IPage
<
MonitorFanIndicator
>>
getFanIdxInfoByPage
(
@RequestParam
(
value
=
"
equipmentNumber"
,
required
=
false
)
String
equipmentNumber
,
@RequestParam
(
value
=
"gateway"
,
required
=
false
)
String
gateway
,
@RequestParam
(
value
=
"frontModule"
,
required
=
false
)
String
frontModule
,
@RequestParam
(
value
=
"current"
,
required
=
false
)
int
current
,
@RequestParam
(
value
=
"size"
,
required
=
false
)
int
size
)
{
return
ResponseHelper
.
buildResponse
(
monitorFanIndicator
.
getFanIdxInfoByPage
(
fanCode
,
gateway
,
frontModule
,
current
,
size
));
return
ResponseHelper
.
buildResponse
(
monitorFanIndicator
.
getFanIdxInfoByPage
(
equipmentNumber
,
gateway
,
frontModule
,
current
,
size
));
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
d6894817
...
...
@@ -51,12 +51,13 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
IPage
<
MonitorFanIndicator
>
getFanIdxInfoByPage
(
String
fanCode
,
String
gateway
,
String
frontModule
,
int
current
,
int
size
)
{
public
IPage
<
MonitorFanIndicator
>
getFanIdxInfoByPage
(
String
equipmentNumber
,
String
gateway
,
String
frontModule
,
int
current
,
int
size
)
{
Page
<
MonitorFanIndicator
>
page
=
new
Page
<>(
current
,
size
);
Integer
integer
=
monitorFanIndicatorregionMapper
.
queryByPageTotal
(
fanCode
,
gateway
,
frontModule
);
Page
<
MonitorFanIndicator
>
monitorFanIndicators
=
monitorFanIndicatorregionMapper
.
queryByPage
(
page
.
getSize
(),
fanCode
,
gateway
,
frontModule
,
(
current
-
1
)
*
size
);
monitorFanIndicators
.
setTotal
(
integer
);
return
monitorFanIndicators
;
Integer
integer
=
monitorFanIndicatorregionMapper
.
queryByPageTotal
(
equipmentNumber
,
gateway
,
frontModule
);
List
<
MonitorFanIndicator
>
monitorFanIndicators
=
monitorFanIndicatorregionMapper
.
queryByPage
(
page
.
getSize
(),
equipmentNumber
,
gateway
,
frontModule
,
(
current
-
1
)
*
size
);
page
.
setTotal
(
integer
);
page
.
setRecords
(
monitorFanIndicators
);
return
page
;
}
public
TreeDto
getTreeInfo
(
String
sequenceNbr
)
{
...
...
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