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
974bc1f8
Commit
974bc1f8
authored
Aug 10, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
7197d7bd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
0 deletions
+61
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+4
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+7
-0
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+7
-0
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+9
-0
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+8
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+7
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+19
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
974bc1f8
...
...
@@ -129,6 +129,7 @@
max(case v.field_code when 'administrativePositionCode' then IFNULL(v.field_value_label,v.field_value) end) administrativePositionCode,
max(case v.field_code when 'internalPositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode,
max(case v.field_code when 'fireManagementPostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode,
max(case v.field_code when 'fireManagementPostCode' then v.field_value end) fireManagementPost,
max(case v.field_code when 'positionType' then IFNULL(v.field_value,v.field_value_label) end) positionType,
max(case v.field_code when 'certificateType' then IFNULL(v.field_value_label,v.field_value) end) certificateType,
max(case v.field_code when 'holdingTime' then IFNULL(v.field_value_label,v.field_value) end) holdingTime,
...
...
@@ -171,6 +172,9 @@
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
AND g.peopleType = #{map.peopleType}
</if>
<if
test=
"map.fireManagementPost != null and map.fireManagementPost != ''"
>
AND g.fireManagementPost = #{map.fireManagementPost}
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
974bc1f8
...
...
@@ -600,6 +600,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
map
.
put
(
"positionType"
,
positionType
);
}
String
fireManagementPost
=
""
;
if
(
req
.
containsKey
(
"fireManagementPost"
))
{
fireManagementPost
=
req
.
get
(
"fireManagementPost"
).
toString
();
map
.
put
(
"fireManagementPost"
,
fireManagementPost
);
}
String
peopleType
=
""
;
if
(
req
.
containsKey
(
"peopleType"
))
{
peopleType
=
req
.
get
(
"peopleType"
).
toString
();
...
...
@@ -614,6 +620,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
req
.
remove
(
"positionType"
);
req
.
remove
(
"peopleType"
);
req
.
remove
(
"bizOrgName"
);
req
.
remove
(
"fireManagementPost"
);
map
.
put
(
"fieldsValue"
,
req
);
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
OrgPersonEnum
.
人员
.
getCode
()));
pageBean
.
setTotal
(
this
.
baseMapper
.
selectPersonListCount
(
map
));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
974bc1f8
...
...
@@ -110,6 +110,13 @@ public class FireFightingSystemController extends AbstractBaseController {
return
fireFightingSystemService
.
getEquiplistBySystemId
(
systemId
);
}
@RequestMapping
(
value
=
"/getEquiplistBySystemIdPage"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"根据系统id查询设备列表"
)
public
IPage
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemIdPage
(
Long
systemId
,
int
size
,
int
current
)
{
return
fireFightingSystemService
.
getEquiplistBySystemIdPage
(
systemId
,
size
,
current
);
}
@RequestMapping
(
value
=
"/getEquipcountBySystemId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"根据系统id查询分组设备数量"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
974bc1f8
...
...
@@ -25,6 +25,15 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
*/
List
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemId
(
Long
systemId
);
/**
* 根据系统id查询设备列表
*
* @param systemId page
* @return
*/
IPage
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemIdPage
(
@Param
(
"page"
)
IPage
<
EquiplistSpecificBySystemVO
>
page
,
@Param
(
"systemId"
)
Long
systemId
);
/**
* 根据系统id查询设备列表
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
974bc1f8
...
...
@@ -27,6 +27,14 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
List
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemId
(
Long
systemId
);
/**
* 根据系统id查询设备列表
*
* @param systemId
* @return
*/
IPage
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemIdPage
(
Long
systemId
,
int
size
,
int
current
);
/**
* 获取系列列表
*
* @param equimentName
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
974bc1f8
...
...
@@ -181,6 +181,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
getEquiplistBySystemId
(
Long
systemId
)
{
return
this
.
baseMapper
.
getEquiplistBySystemId
(
systemId
);
}
@Override
public
IPage
<
EquiplistSpecificBySystemVO
>
getEquiplistBySystemIdPage
(
Long
systemId
,
int
size
,
int
current
)
{
IPage
<
EquiplistSpecificBySystemVO
>
page
=
new
Page
();
page
.
setSize
(
size
);
page
.
setCurrent
(
current
);
return
this
.
baseMapper
.
getEquiplistBySystemIdPage
(
page
,
systemId
);
}
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
974bc1f8
...
...
@@ -6072,4 +6072,23 @@
</if>
</where>
</select>
<select
id=
"getEquiplistBySystemIdPage"
resultType=
"com.yeejoin.equipmanage.common.entity.vo.EquiplistSpecificBySystemVO"
>
SELECT
spe.id,
det.`name` equipment_name,
spe.`code`,
spe.`iot_code` iotCode,
cate.`name` AS category_name,
find_in_set(spe.id,(select point_in_scene from wl_source_scene where source_id=#{systemId})) is_bound
FROM
wl_equipment_specific AS spe
LEFT JOIN wl_equipment_detail AS det ON spe.equipment_detail_id = det.id
LEFT JOIN wl_equipment AS wle ON wle.id = det.equipment_id
LEFT JOIN wl_equipment_category cate ON cate.id = wle.category_id
LEFT JOIN wl_stock_detail AS wlsd on wlsd.equipment_detail_id = det.id
WHERE
find_in_set(#{systemId},spe.system_id) and spe.single = true and wlsd.`status` = 1
</select>
</mapper>
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