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
4ec1d341
Commit
4ec1d341
authored
Feb 29, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl' of
http://36.40.66.175:5000//moa/amos-boot-biz
into develop_dl
parents
7de90047
d592228b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
13 deletions
+24
-13
EquipmentManageController.java
...oin/equipmanage/controller/EquipmentManageController.java
+2
-2
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+3
-2
EquipmentManageService.java
...m/yeejoin/equipmanage/service/EquipmentManageService.java
+1
-1
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+1
-1
EquipmentDetailServiceImpl.java
.../equipmanage/service/impl/EquipmentDetailServiceImpl.java
+5
-3
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+2
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+2
-2
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+8
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentManageController.java
View file @
4ec1d341
...
...
@@ -67,7 +67,7 @@ public class EquipmentManageController extends AbstractBaseController{
companyId
=
result
.
get
(
"sequenceNbr"
).
toString
();
}
}
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
null
);
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
null
,
null
);
}
@GetMapping
(
value
=
"/getUtils"
)
...
...
@@ -149,7 +149,7 @@ public class EquipmentManageController extends AbstractBaseController{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备系统列表"
,
notes
=
"装备系统列表"
)
public
List
<
EquipmentManageEntity
>
getEquipmentManageAll
()
{
return
equipmentManageService
.
list
();
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
4ec1d341
...
...
@@ -724,7 +724,8 @@ public class FireFightingSystemController extends AbstractBaseController {
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
pageSize
,
@RequestParam
(
value
=
"nameOrCode"
,
required
=
false
)
String
nameOrCode
,
@RequestParam
(
value
=
"companyId"
,
required
=
false
)
String
companyId
,
@ApiParam
(
value
=
"缺陷管理新增页面用,其余地方可忽略 1-是缺陷管理 0-不是"
)
@RequestParam
(
required
=
false
)
Integer
isDefect
@ApiParam
(
value
=
"缺陷管理新增页面用,其余地方可忽略 1-是缺陷管理 0-不是"
)
@RequestParam
(
required
=
false
)
Integer
isDefect
,
@ApiParam
(
value
=
"接口调用源,web端调用/卡片调用"
)
@RequestParam
(
value
=
"useSource"
,
required
=
false
)
String
invokeSource
)
{
if
(
null
!=
isDefect
&&
1
==
isDefect
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
@@ -749,7 +750,7 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
);
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
,
invokeSource
);
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/EquipmentManageService.java
View file @
4ec1d341
...
...
@@ -26,7 +26,7 @@ public interface EquipmentManageService extends IService<EquipmentManageEntity>
* @param pageSize
* @return
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
,
String
invokeSource
);
/**
* 获取下拉菜单数据
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
4ec1d341
...
...
@@ -47,7 +47,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
* @param pageSize
* @return
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
,
String
invokeSource
);
FireFightingSystemEntity
getOneById
(
Long
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentDetailServiceImpl.java
View file @
4ec1d341
...
...
@@ -403,14 +403,16 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
}
}
// 实时信号
int
count
=
equipmentSpecificAlarmLogService
.
coun
t
(
List
<
EquipmentSpecificAlarmLog
>
alarmLogs
=
equipmentSpecificAlarmLogService
.
lis
t
(
Wrappers
.<
EquipmentSpecificAlarmLog
>
lambdaQuery
()
.
select
(
EquipmentSpecificAlarmLog:
:
getEquipmentSpecificIndexName
)
.
eq
(
EquipmentSpecificAlarmLog:
:
getEquipmentSpecificId
,
id
)
.
isNull
(
EquipmentSpecificAlarmLog:
:
getCleanTime
)
.
orderByDesc
(
EquipmentSpecificAlarmLog:
:
getCreateDate
)
);
equipmentDetail
.
setSignal
(
"-"
);
if
(
count
>
0
)
{
String
signal
=
equipmentSpecific
.
getRealtimeIot
IndexName
();
if
(
!
alarmLogs
.
isEmpty
()
)
{
String
signal
=
alarmLogs
.
get
(
0
).
getEquipmentSpecific
IndexName
();
equipmentDetail
.
setSignal
(
Objects
.
nonNull
(
signal
)
?
signal
:
"-"
);
}
// 二维码
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
4ec1d341
...
...
@@ -53,7 +53,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyCode
,
String
nameOrCode
,
String
systemStatus
)
{
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyCode
,
String
nameOrCode
,
String
systemStatus
,
String
invokeSource
)
{
HttpServletRequest
request
=
null
;
Map
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"equimentName"
,
equimentName
);
...
...
@@ -68,6 +68,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
map
.
put
(
"controBoxBuildId"
,
controBoxBuildId
);
map
.
put
(
"nameOrCode"
,
nameOrCode
);
map
.
put
(
"systemStatus"
,
systemStatus
);
map
.
put
(
"invokeSource"
,
invokeSource
);
List
<
EquipmentManageVo
>
dataList
=
equipmentManageMapper
.
queryEquipmenInfo
(
map
);
Long
count
=
equipmentManageMapper
.
queryEquipmenCount
(
map
);
map
.
clear
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
4ec1d341
...
...
@@ -199,9 +199,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
)
{
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
,
String
nameOrCode
,
String
systemStatus
,
String
invokeSource
)
{
Map
<
String
,
Object
>
map
=
equipmentManageService
.
queryEquipmenInfoAndCount
(
equimentName
,
equimentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
);
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
,
nameOrCode
,
systemStatus
,
invokeSource
);
List
<
EquipmentManageVo
>
dataList
=
(
List
<
EquipmentManageVo
>)
map
.
get
(
"dataList"
);
StringBuilder
stb
=
new
StringBuilder
();
dataList
.
forEach
(
y
->
{
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
4ec1d341
...
...
@@ -60,7 +60,14 @@
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
AND sys.form_group_id = #{formGroupId}
</if>
order by CONVERT(sys.biz_org_name USING gbk) ASC, sys.system_status DESC
<choose>
<when
test=
"invokeSource == 'dcfcCard'"
>
ORDER BY CONVERT(sys.biz_org_name USING gbk) ASC, sys.system_status DESC
</when>
<otherwise>
ORDER BY sys.id DESC
</otherwise>
</choose>
LIMIT #{spage},#{pageSize}
</select>
<select
id=
"queryEquipmenCount"
resultType=
"long"
>
...
...
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