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
edc54fd3
Commit
edc54fd3
authored
Dec 15, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直流中心消防系统查询修改
parent
e8a52f92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+4
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+2
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
edc54fd3
...
@@ -614,16 +614,19 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -614,16 +614,19 @@ public class FireFightingSystemController extends AbstractBaseController {
@ApiOperation
(
value
=
"消防系统列表查询(不分页)"
,
notes
=
"下拉使用"
)
@ApiOperation
(
value
=
"消防系统列表查询(不分页)"
,
notes
=
"下拉使用"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
List
<
FireFightingSystemEntity
>
listAll
(
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
{
public
List
<
FireFightingSystemEntity
>
listAll
(
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
{
String
name
=
""
;
if
(
StringUtils
.
isBlank
(
bizOrgCode
))
{
if
(
StringUtils
.
isBlank
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
}
}
}
else
{
name
=
"其他系统"
;
}
}
if
(
StringUtils
.
isNotBlank
(
bizOrgCode
))
{
if
(
StringUtils
.
isNotBlank
(
bizOrgCode
))
{
QueryWrapper
<
FireFightingSystemEntity
>
qw
=
new
QueryWrapper
<>();
QueryWrapper
<
FireFightingSystemEntity
>
qw
=
new
QueryWrapper
<>();
qw
.
lambda
().
likeRight
(
FireFightingSystemEntity:
:
getBizOrgCode
,
bizOrgCode
);
qw
.
lambda
().
likeRight
(
FireFightingSystemEntity:
:
getBizOrgCode
,
bizOrgCode
)
.
ne
(
FireFightingSystemEntity:
:
getName
,
name
)
;
return
fireFightingSystemService
.
list
(
qw
);
return
fireFightingSystemService
.
list
(
qw
);
}
}
return
new
ArrayList
<>();
return
new
ArrayList
<>();
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
edc54fd3
...
@@ -2026,8 +2026,9 @@
...
@@ -2026,8 +2026,9 @@
LEFT JOIN wl_equipment e ON wed.`equipment_id` = e.`id`
LEFT JOIN wl_equipment e ON wed.`equipment_id` = e.`id`
LEFT JOIN wl_equipment_category ec ON ec.id = fs.system_type
LEFT JOIN wl_equipment_category ec ON ec.id = fs.system_type
<where>
<where>
fs.`name` != '其他系统'
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
fs.biz_org_code like concat(#{bizOrgCode}, '%')
AND
fs.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
</if>
</where>
</where>
GROUP BY
GROUP BY
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
edc54fd3
...
@@ -4932,7 +4932,7 @@
...
@@ -4932,7 +4932,7 @@
(
(
SELECT
SELECT
ed.`name`,
ed.`name`,
concat_ws( '-',
ws.full_name, ed.area
) area,
concat_ws( '-',
es.position, es.`name`
) area,
es.id,
es.id,
max( CASE WHEN ei.equipment_index_key = 'FHS_PipePressureDetector_PipePressure' THEN ei.`value` END ) AS nowPressure,
max( CASE WHEN ei.equipment_index_key = 'FHS_PipePressureDetector_PipePressure' THEN ei.`value` END ) AS nowPressure,
IF
IF
...
@@ -4947,7 +4947,6 @@
...
@@ -4947,7 +4947,6 @@
FROM
FROM
wl_equipment_specific es
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = es.warehouse_structure_id
LEFT JOIN wl_equipment_specific_index ei ON es.id = ei.equipment_specific_id
LEFT JOIN wl_equipment_specific_index ei ON es.id = ei.equipment_specific_id
LEFT JOIN wl_form_instance_equip fi ON fi.instance_id = es.id
LEFT JOIN wl_form_instance_equip fi ON fi.instance_id = es.id
WHERE
WHERE
...
...
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