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
f4be9825
Commit
f4be9825
authored
Dec 29, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6_temp' into develop_dl_plan6_temp
parents
5b9a1343
f2a68435
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
19 deletions
+31
-19
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+4
-2
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/controller/ConfigureController.java
View file @
f4be9825
...
...
@@ -859,11 +859,13 @@ public class ConfigureController extends AbstractBaseController {
* 每天凌晨0点25分 对当前换流站历史数据进行处理
* */
@Scheduled
(
cron
=
"${jobs.day.cron.old}"
)
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/iotWeekReporOldData"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"物联报表 历史数据处理"
,
notes
=
"物联报表 历史数据处理"
)
public
ResponseModel
iotWeekReportData
(
Page
page
)
{
public
ResponseModel
iotWeekReportData
()
{
Page
page
=
new
Page
<>();
page
.
setSize
(
20L
);
page
.
setCurrent
(
1L
);
List
<
Integer
>
reportTypes
=
Arrays
.
asList
(
1
,
2
,
3
);
reportTypes
.
forEach
(
reportType
->{
AnalysisReportLogDto
dto
=
new
AnalysisReportLogDto
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
View file @
f4be9825
...
...
@@ -214,4 +214,6 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
List
<
String
>
selectChildListdate
(
@Param
(
"id"
)
Long
id
);
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 @
f4be9825
...
...
@@ -1451,7 +1451,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
vo
.
setName
(
orgUsrDto
.
getBizOrgName
());
vo
.
setId
(
orgUsrDto
.
getSequenceNbr
());
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
;
}).
collect
(
Collectors
.
toList
());
// 3.将建筑的bizOrgCode转换为parentId连接树 ,拼接数据准备
...
...
@@ -1488,7 +1488,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
c
.
setTotal
(
countMap
.
get
(
c
.
getInstanceId
())
==
null
?
0L
:
countMap
.
get
(
c
.
getInstanceId
()));
}
else
{
// 方法 复用,覆盖掉不需要的数据
c
.
setTotal
(
0L
);
//
c.setTotal(0L);
}
});
//2.list to tree
...
...
@@ -1496,7 +1496,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
.
filter
(
a
->
companyBuildingList
.
stream
().
noneMatch
(
c
->
c
.
getId
().
toString
().
equals
(
a
.
getParentId
())))
.
peek
(
b
->
{
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
());
}
...
...
amos-boot-system-equip/src/main/resources/application.properties
View file @
f4be9825
...
...
@@ -125,4 +125,5 @@ fxkgtId=1522051112935387138
management.security.enabled
=
true
management.endpoint.health.show-details
=
always
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560stationCode=LSHLZ1bZAJU645Pgl7
\ No newline at end of file
spring.security.user.password
=
a1234560
stationCode
=
LSHLZ1bZAJU645Pgl7
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
f4be9825
...
...
@@ -303,6 +303,7 @@
`wlesal`.`equipment_specific_index_key` AS `indexKey`,
`wlesal`.`equipment_specific_index_name` AS `indexName`,
`wlesal`.`equipment_specific_id` AS `specificId`,
`wlesal`.emergency_level_color as levelColor,
IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
`wlesal`.`iot_code` AS `iotCode`,
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
f4be9825
...
...
@@ -2176,17 +2176,16 @@
<select
id=
"getWater"
resultType=
"java.util.Map"
>
SELECT
ei.equipment_specific_id
r.*
FROM
cb_water_resource r
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
r.resource_type in ( 'industryPool','pool')
AND r.is_delete = 1
and ei.equipment_specific_id is not null
and ei.equipment_specific_id =#{id}
and FIND_IN_SET( #{id}, rp.level_device_id) > 0
</select>
<select
id=
"getStationCode"
resultType=
"java.util.Map"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/FormInstanceMapper.xml
View file @
f4be9825
...
...
@@ -645,4 +645,9 @@ AND field_name =#{name}
</if>
</where>
</select>
<select
id=
"queryVideoCountByBizOrgCode"
resultType=
"java.lang.Long"
>
select count(1) from wl_video where biz_org_code like concat(#{bizOrgCode}, '%')
</select>
</mapper>
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
f4be9825
...
...
@@ -58,7 +58,7 @@
</if>
group by wlv.id
order by wlv.create_date desc
order by wlv.create_date desc
, v.id desc
</select>
<!-- SELECT
v.id AS id,
...
...
@@ -121,8 +121,8 @@
<if
test=
"dto.type!=null and dto.type!=''"
>
and v.type = #{dto.type}
</if>
GROUP BY id
order by v.create_date
GROUP BY
v.
id
order by v.create_date
desc, v.id desc
</when>
<when
test=
'dto.buildingId == null || dto.buildingId ==""'
>
<where>
...
...
@@ -142,8 +142,8 @@
and v.type =#{dto.type}
</if>
</where>
GROUP BY id
order by v.create_date
GROUP BY
v.
id
order by v.create_date
desc, v.id desc
</when>
</choose>
</select>
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/msgMapper.xml
View file @
f4be9825
...
...
@@ -98,7 +98,7 @@
<![CDATA[
CONCAT(
'巡检地点:',
pp.address
,
IFNULL(pp.address, '无')
,
'<br />
点编号:',
pp.point_no,
'
<br
/>
当前状态:',
...
...
@@ -121,7 +121,7 @@
) ]]> saveMsg,
CONCAT(
'巡检地点:',
pp.address
,
IFNULL(pp.address, '无')
,
';点编号:',
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