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
ab08499a
Commit
ab08499a
authored
Jun 29, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
fcd5eae7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
19 deletions
+62
-19
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+3
-1
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-0
ConfirmAlarmServiceImpl.java
...oin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
+9
-17
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+4
-0
LatentDangerController.java
...entdanger/business/controller/LatentDangerController.java
+8
-0
LatentDangerMapper.java
.../latentdanger/business/dao/mapper/LatentDangerMapper.java
+2
-0
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+5
-0
ILatentDangerService.java
...ntdanger/business/service/intfc/ILatentDangerService.java
+2
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+14
-0
LatentDangerMapper.xml
...anger/src/main/resources/db/mapper/LatentDangerMapper.xml
+13
-0
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
ab08499a
...
...
@@ -171,7 +171,9 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
IPage
<
MaintenanceResourceDataVo
>
getEquipClassifyDataPage
(
Page
page
,
Long
fireFightSysId
,
String
fireFacilityName
,
String
classifyId
,
Long
fireFacilityId
,
List
<
Long
>
buildingId
,
List
<
String
>
bandWbCompany
);
List
<
UserDto
>
getEquipSpecificLocationInfo
(
Long
equipmentSpecificId
,
String
[]
fieldName
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
ab08499a
...
...
@@ -169,6 +169,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
EquipmentDetailVo
getAirEquipSpecificDetail
(
Long
stockDetailId
);
List
<
UserDto
>
getEquipSpecificLocationInfo
(
Long
equipmentSpecificId
,
String
[]
fieldName
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
/**
* 根据specificId删除相关数据
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
View file @
ab08499a
...
...
@@ -439,23 +439,15 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
log
.
error
(
"查询机场人员为空,检查机场人员是否绑定单位!"
);
}
confirmAlamVo
.
setFireLocation
(
ent
.
getLocation
());
List
<
UserDto
>
infoList
=
equipmentSpecificSerivce
.
getEquipSpecificLocationInfo
(
ent
.
getEquipmentSpecificId
(),
FIELD_NAME
.
split
(
","
));
if
(
CollectionUtils
.
isNotEmpty
(
infoList
))
{
infoList
.
stream
().
forEach
(
dto
->
{
// String name = dto.getPersonName();
// confirmAlamVo.setFireLocation(name);
String
code
=
dto
.
getFieldCode
();
String
value
=
dto
.
getFieldValue
();
switch
(
code
)
{
case
"longitude"
:
confirmAlamVo
.
setFloorLongitude
(
getVal
(
value
));
break
;
case
"latitude"
:
confirmAlamVo
.
setFloorLatitude
(
getVal
(
value
));
break
;
default
:
}
});
Map
<
String
,
Double
>
equipLocationInfo
=
equipmentSpecificSerivce
.
getEquipLocationInfo
(
ent
.
getEquipmentSpecificId
());
if
(!
ObjectUtils
.
isEmpty
(
equipLocationInfo
))
{
if
(
equipLocationInfo
.
containsKey
(
"longitude"
)){
confirmAlamVo
.
setFloorLongitude
(
equipLocationInfo
.
get
(
"longitude"
));
}
if
(
equipLocationInfo
.
containsKey
(
"latitude"
)){
confirmAlamVo
.
setFloorLatitude
(
equipLocationInfo
.
get
(
"latitude"
));
}
}
try
{
ruleConfirmAlamService
.
confirmAlam
(
confirmAlamVo
,
appKey
,
product
,
token
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
ab08499a
...
...
@@ -1197,6 +1197,10 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
return
equipmentSpecificMapper
.
getEquipSpecificLocationInfo
(
equipmentSpecificId
,
fieldName
);
}
public
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
)
{
return
equipmentSpecificMapper
.
getEquipLocationInfo
(
equipmentSpecificId
);
}
@Override
@Async
(
"equipAsyncExecutor"
)
public
void
equipSpecificDataSync
(
Long
equipmentId
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/controller/LatentDangerController.java
View file @
ab08499a
...
...
@@ -436,4 +436,12 @@ public class LatentDangerController extends BaseController {
}
return
ResponseHelper
.
buildResponse
(
null
);
}
@ApiOperation
(
value
=
"隐患跳转巡检任务页面"
,
notes
=
"隐患跳转巡检任务页面"
)
@GetMapping
(
value
=
"/web/patrol/{id}/{bizId}"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
String
updateStatusByUserIdAndPlandIdLike
(
@PathVariable
String
bizId
,
@PathVariable
Long
id
)
{
return
iLatentDangerService
.
selectByIdandBizId
(
id
,
bizId
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/dao/mapper/LatentDangerMapper.java
View file @
ab08499a
...
...
@@ -90,4 +90,6 @@ public interface LatentDangerMapper extends BaseMapper<LatentDanger> {
String
orgCode
);
List
<
LatentDanger
>
updateStatusByUserIdAndPlandIdLike
(
String
userId
,
String
planId
);
String
selectByIdandBizId
(
Long
id
,
String
bizId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
ab08499a
...
...
@@ -2717,4 +2717,8 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
this
.
savePatrol
(
dangerDtos
,
userId
,
userRealName
,
departmentId
,
departmentName
,
companyId
,
orgCode
,
role
,
"1"
);
}
public
String
selectByIdandBizId
(
Long
id
,
String
bizId
){
return
latentDangerMapper
.
selectByIdandBizId
(
id
,
bizId
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/intfc/ILatentDangerService.java
View file @
ab08499a
...
...
@@ -203,4 +203,6 @@ public interface ILatentDangerService {
public
Map
<
String
,
Integer
>
currentLandgerCount
(
String
companyId
,
String
loginOrgCode
);
void
updateStatusByUserIdAndPlandIdLike
(
String
userId
,
String
planId
,
ReginParams
reginParams
)
throws
Exception
;
String
selectByIdandBizId
(
Long
id
,
String
bizId
)
;
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
ab08499a
...
...
@@ -1297,6 +1297,20 @@
</if>
</where>
</select>
<select
id=
"getEquipLocationInfo"
resultType=
"map"
>
SELECT
wed.longitude as longitude,
wed.latitude as latitude
FROM
wl_stock_detail sd
LEFT JOIN wl_equipment_detail wed ON sd.equipment_detail_id = wed.id
<where>
<if
test=
"equipmentSpecificId != null"
>
sd.equipment_specific_id = #{equipmentSpecificId}
</if>
</where>
</select>
<select
id=
"getEquipSpeInfo"
resultType=
"Map"
>
SELECT
...
...
amos-boot-system-latentdanger/src/main/resources/db/mapper/LatentDangerMapper.xml
View file @
ab08499a
...
...
@@ -1104,4 +1104,16 @@ WHERE
AND deleted = 0
)
</select>
<select
id=
"selectByIdandBizId"
resultType=
"string"
>
SELECT
pc.plan_task_id as taskId
FROM
p_latent_danger p
LEFT JOIN p_check_input pci ON pci.id = p.biz_id
LEFT JOIN p_check pc ON pci.check_id = pc.id
WHERE
p.id = #{id} and p.biz_id = #{bizId}
</select>
</mapper>
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
ab08499a
...
...
@@ -120,7 +120,7 @@
<if
test=
"isFixed!=null"
>
and b.is_fixed = #{isFixed}
</if>
<if
test=
"isOK!=null"
>
and a.is_OK = #{isOK}
</if>
<if
test=
"planId!=null"
>
and a.plan_Id = #{planId}
</if>
<if
test=
"planTaskId!=null"
>
and a.plan_task_
detail_
id = #{planTaskId}
</if>
<if
test=
"planTaskId!=null"
>
and a.plan_task_id = #{planTaskId}
</if>
<if
test=
"userId!=null"
>
and find_in_set(#{userId}, a.user_id) > 0
</if>
<if
test=
"routeId!=null"
>
and a.route_Id = #{routeId}
</if>
<if
test=
"catalogId!=null"
>
and b.Catalog_Id = #{catalogId}
</if>
...
...
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