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
f5db1fdb
Commit
f5db1fdb
authored
Nov 09, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:巡检数据新增同步范围
parent
c451df44
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
0 deletions
+42
-0
CheckInputMapper.java
...oin/amos/patrol/business/dao/mapper/CheckInputMapper.java
+3
-0
AcceptEquipmentRules.java
.../patrol/business/service/action/AcceptEquipmentRules.java
+1
-0
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+2
-0
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+2
-0
PatrolDataSyncServiceImpl.java
...trol/business/service/impl/PatrolDataSyncServiceImpl.java
+15
-0
IPatrolDataSyncService.java
...patrol/business/service/intfc/IPatrolDataSyncService.java
+2
-0
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+2
-0
CheckInputMapper.xml
...-patrol/src/main/resources/db/mapper/CheckInputMapper.xml
+15
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/CheckInputMapper.java
View file @
f5db1fdb
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.patrol.business.dao.mapper;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.patrol.business.dao.mapper;
import
com.yeejoin.amos.patrol.business.bo.CheckInputSyncBo
;
import
com.yeejoin.amos.patrol.business.bo.CheckInputSyncBo
;
import
com.yeejoin.amos.patrol.business.dto.InputCheckDto
;
import
com.yeejoin.amos.patrol.business.dto.InputCheckDto
;
import
com.yeejoin.amos.patrol.dao.entity.CheckInput
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.List
;
...
@@ -15,4 +16,6 @@ public interface CheckInputMapper extends BaseMapper {
...
@@ -15,4 +16,6 @@ public interface CheckInputMapper extends BaseMapper {
"itemId"
)
Long
itemId
,
@Param
(
value
=
"routePointItemId"
)
Long
routePointItemId
,
@Param
(
value
=
"checkInputId"
)
Long
checkInputId
);
"itemId"
)
Long
itemId
,
@Param
(
value
=
"routePointItemId"
)
Long
routePointItemId
,
@Param
(
value
=
"checkInputId"
)
Long
checkInputId
);
List
<
CheckInputSyncBo
>
getCheckInputSyncBoList
(
Map
<
String
,
Object
>
map
);
List
<
CheckInputSyncBo
>
getCheckInputSyncBoList
(
Map
<
String
,
Object
>
map
);
List
<
CheckInput
>
findByIdIn
(
Map
<
String
,
Object
>
map
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/action/AcceptEquipmentRules.java
View file @
f5db1fdb
...
@@ -141,6 +141,7 @@ public class AcceptEquipmentRules {
...
@@ -141,6 +141,7 @@ public class AcceptEquipmentRules {
map
.
put
(
"id"
,
checkInput
.
getId
());
map
.
put
(
"id"
,
checkInput
.
getId
());
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputDataSync
(
checkInput
);
}
}
});
});
log
.
info
(
checkInput
.
getPointClassifyName
()+
"规则校验返回结果修改成功"
);
log
.
info
(
checkInput
.
getPointClassifyName
()+
"规则校验返回结果修改成功"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
f5db1fdb
...
@@ -448,6 +448,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -448,6 +448,7 @@ public class CheckServiceImpl implements ICheckService {
map
.
put
(
"idList"
,
checkInputList
.
stream
().
map
(
CheckInput:
:
getId
).
collect
(
Collectors
.
toList
()));
map
.
put
(
"idList"
,
checkInputList
.
stream
().
map
(
CheckInput:
:
getId
).
collect
(
Collectors
.
toList
()));
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputDataSync
(
checkInputList
);
}
}
});
});
return
new
CheckDto
(
check
.
getId
(),
unqualifiedcheckItemList
);
return
new
CheckDto
(
check
.
getId
(),
unqualifiedcheckItemList
);
...
@@ -699,6 +700,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -699,6 +700,7 @@ public class CheckServiceImpl implements ICheckService {
map
.
put
(
"idList"
,
checkInputList
.
stream
().
map
(
CheckInput:
:
getId
).
collect
(
Collectors
.
toList
()));
map
.
put
(
"idList"
,
checkInputList
.
stream
().
map
(
CheckInput:
:
getId
).
collect
(
Collectors
.
toList
()));
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputDataSync
(
checkInputList
);
}
}
});
});
return
checkDto
;
return
checkDto
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
f5db1fdb
...
@@ -399,6 +399,8 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
...
@@ -399,6 +399,8 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
map
.
put
(
"id"
,
id
);
map
.
put
(
"id"
,
id
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
List
<
CheckInput
>
checkInputList
=
checkInputMapper
.
findByIdIn
(
map
);
patrolDataSyncService
.
checkInputDataSync
(
checkInputList
);
}
}
});
});
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PatrolDataSyncServiceImpl.java
View file @
f5db1fdb
...
@@ -103,6 +103,21 @@ public class PatrolDataSyncServiceImpl implements IPatrolDataSyncService {
...
@@ -103,6 +103,21 @@ public class PatrolDataSyncServiceImpl implements IPatrolDataSyncService {
}
}
@Override
@Override
public
void
checkInputDataSync
(
CheckInput
checkInput
)
{
try
{
if
(
checkInput
!=
null
)
{
String
message
=
buildSyncMessage
(
PatrolDataSyncTopicEnum
.
CHECK_INPUT
.
getTopic
(),
checkInput
);
webMqttComponent
.
publish
(
PatrolDataSyncTopicEnum
.
EQM_PATROL_CREATED
.
getTopic
(),
message
);
if
(
patrolSyncSwitch
)
{
webMqttComponent
.
publish
(
PatrolDataSyncTopicEnum
.
CHECK_INPUT
.
getTopic
(),
JSON
.
toJSONString
(
checkInput
,
SerializerFeature
.
WriteMapNullValue
));
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"站端与中心级巡检数据【checkInput】同步推送失败-----------"
+
e
.
getMessage
());
}
}
@Override
public
void
checkInputDataSync
(
List
<
CheckInput
>
checkInputList
)
{
public
void
checkInputDataSync
(
List
<
CheckInput
>
checkInputList
)
{
try
{
try
{
if
(
CollectionUtils
.
isNotEmpty
(
checkInputList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
checkInputList
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/IPatrolDataSyncService.java
View file @
f5db1fdb
...
@@ -21,6 +21,8 @@ public interface IPatrolDataSyncService {
...
@@ -21,6 +21,8 @@ public interface IPatrolDataSyncService {
void
checkDataSync
(
List
<
Check
>
checkList
);
void
checkDataSync
(
List
<
Check
>
checkList
);
void
checkInputDataSync
(
CheckInput
checkInput
);
void
checkInputDataSync
(
List
<
CheckInput
>
checkInputList
);
void
checkInputDataSync
(
List
<
CheckInput
>
checkInputList
);
void
checkShotDataSync
(
List
<
CheckShot
>
checkShotList
);
void
checkShotDataSync
(
List
<
CheckShot
>
checkShotList
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/JobService.java
View file @
f5db1fdb
...
@@ -388,6 +388,8 @@ public class JobService implements IJobService {
...
@@ -388,6 +388,8 @@ public class JobService implements IJobService {
map
.
put
(
"idList"
,
checkInputIdList
);
map
.
put
(
"idList"
,
checkInputIdList
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
List
<
CheckInputSyncBo
>
checkInputSyncBoList
=
checkInputMapper
.
getCheckInputSyncBoList
(
map
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
patrolDataSyncService
.
checkInputBoDataSync
(
checkInputSyncBoList
);
List
<
CheckInput
>
checkInputList
=
checkInputMapper
.
findByIdIn
(
map
);
patrolDataSyncService
.
checkInputDataSync
(
checkInputList
);
}
}
});
});
}
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/CheckInputMapper.xml
View file @
f5db1fdb
...
@@ -144,4 +144,18 @@
...
@@ -144,4 +144,18 @@
</if>
</if>
</where>
</where>
</select>
</select>
<select
id=
"findByIdIn"
resultType=
"com.yeejoin.amos.patrol.dao.entity.CheckInput"
>
select * from p_check_input
<where>
<if
test=
"id != null"
>
id = #{id}
</if>
<if
test=
"idList != null and idList.size() >0"
>
AND id IN
<foreach
collection=
"idList"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
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