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
f2a68435
Commit
f2a68435
authored
Dec 29, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
f1e8270b
9901eb40
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
17 deletions
+27
-17
FormInstanceMapper.java
...va/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
+2
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+5
-3
application.properties
...ot-system-equip/src/main/resources/application.properties
+3
-2
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+1
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+4
-5
FormInstanceMapper.xml
...em-equip/src/main/resources/mapper/FormInstanceMapper.xml
+5
-0
VideoMapper.xml
...ot-system-equip/src/main/resources/mapper/VideoMapper.xml
+5
-5
msgMapper.xml
...-system-patrol/src/main/resources/db/mapper/msgMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
View file @
f2a68435
...
@@ -214,4 +214,6 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
...
@@ -214,4 +214,6 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
List
<
String
>
selectChildListdate
(
@Param
(
"id"
)
Long
id
);
List
<
String
>
selectChildListdate
(
@Param
(
"id"
)
Long
id
);
int
updateFormFieldValue
(
@Param
(
"id"
)
Long
id
,
@Param
(
"name"
)
String
name
,
@Param
(
"value"
)
String
value
);
int
updateFormFieldValue
(
@Param
(
"id"
)
Long
id
,
@Param
(
"name"
)
String
name
,
@Param
(
"value"
)
String
value
);
Long
queryVideoCountByBizOrgCode
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
f2a68435
...
@@ -1451,7 +1451,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1451,7 +1451,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
vo
.
setName
(
orgUsrDto
.
getBizOrgName
());
vo
.
setName
(
orgUsrDto
.
getBizOrgName
());
vo
.
setId
(
orgUsrDto
.
getSequenceNbr
());
vo
.
setId
(
orgUsrDto
.
getSequenceNbr
());
vo
.
setBizOrgName
(
orgUsrDto
.
getBizOrgName
());
vo
.
setBizOrgName
(
orgUsrDto
.
getBizOrgName
());
vo
.
setTotal
(
buildingTreeVos
.
stream
().
filter
(
b
->
!
ObjectUtils
.
isEmpty
(
b
.
getBizOrgCode
())
&&
b
.
getBizOrgCode
().
contains
(
ObjectUtils
.
isEmpty
(
vo
.
getBizOrgCode
())?
""
:
vo
.
getBizOrgCode
())
&&
"building"
.
equals
(
b
.
getGroupType
())).
count
()
);
vo
.
setTotal
(
!
StringUtils
.
isEmpty
(
orgUsrDto
.
getBizOrgCode
())
?
formInstanceMapper
.
queryVideoCountByBizOrgCode
(
orgUsrDto
.
getBizOrgCode
())
:
0L
);
return
vo
;
return
vo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
// 3.将建筑的bizOrgCode转换为parentId连接树 ,拼接数据准备
// 3.将建筑的bizOrgCode转换为parentId连接树 ,拼接数据准备
...
@@ -1488,7 +1488,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1488,7 +1488,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
c
.
setTotal
(
countMap
.
get
(
c
.
getInstanceId
())
==
null
?
0L
:
countMap
.
get
(
c
.
getInstanceId
()));
c
.
setTotal
(
countMap
.
get
(
c
.
getInstanceId
())
==
null
?
0L
:
countMap
.
get
(
c
.
getInstanceId
()));
}
else
{
}
else
{
// 方法 复用,覆盖掉不需要的数据
// 方法 复用,覆盖掉不需要的数据
c
.
setTotal
(
0L
);
//
c.setTotal(0L);
}
}
});
});
//2.list to tree
//2.list to tree
...
@@ -1496,7 +1496,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1496,7 +1496,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
.
filter
(
a
->
companyBuildingList
.
stream
().
noneMatch
(
c
->
c
.
getId
().
toString
().
equals
(
a
.
getParentId
())))
.
filter
(
a
->
companyBuildingList
.
stream
().
noneMatch
(
c
->
c
.
getId
().
toString
().
equals
(
a
.
getParentId
())))
.
peek
(
b
->
{
.
peek
(
b
->
{
b
.
setChildren
(
getCompanyBuildingChildrenWithCount
(
b
.
getId
().
toString
(),
companyBuildingList
));
b
.
setChildren
(
getCompanyBuildingChildrenWithCount
(
b
.
getId
().
toString
(),
companyBuildingList
));
b
.
setTotal
(
b
.
getChildren
().
stream
().
filter
(
c
->
c
.
getTotal
()
!=
null
).
mapToLong
(
BuildingTreeVo:
:
getTotal
).
sum
());
if
(!
ALL_BUILDING
.
equals
(
b
.
getGroupType
()))
{
b
.
setTotal
(
b
.
getChildren
().
stream
().
filter
(
c
->
c
.
getTotal
()
!=
null
).
mapToLong
(
BuildingTreeVo:
:
getTotal
).
sum
());
}
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
...
...
amos-boot-system-equip/src/main/resources/application.properties
View file @
f2a68435
...
@@ -125,4 +125,5 @@ fxkgtId=1522051112935387138
...
@@ -125,4 +125,5 @@ fxkgtId=1522051112935387138
management.security.enabled
=
true
management.security.enabled
=
true
management.endpoint.health.show-details
=
always
management.endpoint.health.show-details
=
always
spring.security.user.name
=
admin
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560stationCode=LSHLZ1bZAJU645Pgl7
spring.security.user.password
=
a1234560
\ No newline at end of file
stationCode
=
LSHLZ1bZAJU645Pgl7
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
f2a68435
...
@@ -302,6 +302,7 @@
...
@@ -302,6 +302,7 @@
`wlesal`.`equipment_specific_index_key` AS `indexKey`,
`wlesal`.`equipment_specific_index_key` AS `indexKey`,
`wlesal`.`equipment_specific_index_name` AS `indexName`,
`wlesal`.`equipment_specific_index_name` AS `indexName`,
`wlesal`.`equipment_specific_id` AS `specificId`,
`wlesal`.`equipment_specific_id` AS `specificId`,
`wlesal`.emergency_level_color as levelColor,
IF
IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
`wlesal`.`iot_code` AS `iotCode`,
`wlesal`.`iot_code` AS `iotCode`,
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
f2a68435
...
@@ -2183,17 +2183,16 @@
...
@@ -2183,17 +2183,16 @@
</select>
</select>
<select
id=
"getwater"
resultType=
"java.util.Map"
>
<select
id=
"getwater"
resultType=
"java.util.Map"
>
SELECT
SELECT
ei.equipment_specific_id
r.*
FROM
FROM
cb_water_resource r
cb_water_resource r
LEFT JOIN cb_water_resource_pool rp ON rp.resource_id = r.sequence_nbr
LEFT JOIN cb_water_resource_pool rp ON rp.resource_id = r.sequence_nbr
LEFT JOIN wl_equipment_specific_index ei ON ei.equipment_specific_id = rp.level_device_id
WHERE
WHERE
r.resource_type in ( 'industryPool','pool')
r.resource_type in ( 'industryPool','pool')
AND r.is_delete = 1
and FIND_IN_SET( #{id}, rp.level_device_id) > 0
and ei.equipment_specific_id is not null
and ei.equipment_specific_id =#{id}
</select>
</select>
...
...
amos-boot-system-equip/src/main/resources/mapper/FormInstanceMapper.xml
View file @
f2a68435
...
@@ -645,4 +645,9 @@ AND field_name =#{name}
...
@@ -645,4 +645,9 @@ AND field_name =#{name}
</if>
</if>
</where>
</where>
</select>
</select>
<select
id=
"queryVideoCountByBizOrgCode"
resultType=
"java.lang.Long"
>
select count(1) from wl_video where biz_org_code like concat(#{bizOrgCode}, '%')
</select>
</mapper>
</mapper>
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
f2a68435
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</if>
</if>
group by wlv.id
group by wlv.id
order by wlv.create_date desc
order by wlv.create_date desc
, v.id desc
</select>
</select>
<!-- SELECT
<!-- SELECT
v.id AS id,
v.id AS id,
...
@@ -121,8 +121,8 @@
...
@@ -121,8 +121,8 @@
<if
test=
"dto.type!=null and dto.type!=''"
>
<if
test=
"dto.type!=null and dto.type!=''"
>
and v.type = #{dto.type}
and v.type = #{dto.type}
</if>
</if>
GROUP BY id
GROUP BY
v.
id
order by v.create_date
order by v.create_date
desc, v.id desc
</when>
</when>
<when
test=
'dto.buildingId == null || dto.buildingId ==""'
>
<when
test=
'dto.buildingId == null || dto.buildingId ==""'
>
<where>
<where>
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
and v.type =#{dto.type}
and v.type =#{dto.type}
</if>
</if>
</where>
</where>
GROUP BY id
GROUP BY
v.
id
order by v.create_date
order by v.create_date
desc, v.id desc
</when>
</when>
</choose>
</choose>
</select>
</select>
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/msgMapper.xml
View file @
f2a68435
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<![CDATA[
<![CDATA[
CONCAT(
CONCAT(
'巡检地点:',
'巡检地点:',
pp.address
,
IFNULL(pp.address, '无')
,
'<br />
点编号:',
'<br />
点编号:',
pp.point_no,
pp.point_no,
'
<br
/>
当前状态:',
'
<br
/>
当前状态:',
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
) ]]> saveMsg,
) ]]> saveMsg,
CONCAT(
CONCAT(
'巡检地点:',
'巡检地点:',
pp.address
,
IFNULL(pp.address, '无')
,
';点编号:',
';点编号:',
pp.point_no,
pp.point_no,
';当前状态:',
';当前状态:',
...
...
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