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
da360a83
Commit
da360a83
authored
Aug 18, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重点部位列表排序
parent
a6a7207f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
119 deletions
+113
-119
KeySiteMapper.xml
...le-common-api/src/main/resources/mapper/KeySiteMapper.xml
+112
-119
KeySiteServiceImpl.java
...ot/module/common/biz/service/impl/KeySiteServiceImpl.java
+1
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/KeySiteMapper.xml
View file @
da360a83
...
@@ -3,129 +3,122 @@
...
@@ -3,129 +3,122 @@
<mapper
<mapper
namespace=
"com.yeejoin.amos.boot.module.common.api.mapper.KeySiteMapper"
>
namespace=
"com.yeejoin.amos.boot.module.common.api.mapper.KeySiteMapper"
>
<select
id=
"getPageList"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
<select
id=
"getPageList"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
SELECT
SELECT
c.`name` as name,
c.`name` as name,
c.belong_id as belongId,
c.belong_id as belongId,
cou.biz_org_name as belongName,
cou.biz_org_name as belongName,
c.building_id as buildingId,
c.building_id as buildingId,
c.building_name as buildingName,
c.building_name as buildingName,
c.address_desc as addressDesc,
c.address_desc as addressDesc,
c.building_area as buildingArea,
c.building_area as buildingArea,
c.building_height as buildingHeight,
c.building_height as buildingHeight,
c.fire_endurance_rate as fireEnduranceRate,
c.fire_endurance_rate as fireEnduranceRate,
c.use_nature as useNature,
c.use_nature as useNature,
c.charge_person AS chargePerson,
c.charge_person AS chargePerson,
c.sequence_nbr AS sequenceNbr,
c.sequence_nbr AS sequenceNbr,
c.charge_person_id AS chargePersonId,
c.charge_person_id AS chargePersonId,
c.key_prevention_reason AS keyPreventionReason,
c.key_prevention_reason AS keyPreventionReason,
c.fire_facilities_info AS fireFacilitiesInfo,
c.fire_facilities_info AS fireFacilitiesInfo,
c.fire_prevention_flag AS firePreventionFlag,
c.fire_prevention_flag AS firePreventionFlag,
c.hazard AS hazard,
c.hazard AS hazard,
c.safety_management_measures AS safetyManagementMeasures,
c.safety_management_measures AS safetyManagementMeasures,
c.preventive_measures AS preventiveMeasures,
c.preventive_measures AS preventiveMeasures,
c.remark AS remark,
c.remark AS remark,
c.is_delete AS isDelete,
c.is_delete AS isDelete,
c.rec_user_id AS recUserId,
c.rec_user_id AS recUserId,
c.rec_user_name AS recUserName,
c.rec_user_name AS recUserName,
c.rec_date AS recDate,
c.rec_date AS recDate,
c.fire_endurance_rate_name as fireEnduranceRateName,
c.fire_endurance_rate_name as fireEnduranceRateName,
c.use_nature_name as useNatureName
c.use_nature_name as useNatureName
FROM
FROM
cb_key_site c
cb_key_site c
left join cb_org_usr cou on c.belong_id =cou.sequence_nbr
left join cb_org_usr cou on c.belong_id =cou.sequence_nbr
where c.is_delete=FALSE
where c.is_delete=FALSE
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND c.`name` like concat(#{name}, '%')
AND c.`name` like concat(#{name}, '%')
</if>
</if>
<if
test=
"buildingId != null and buildingId != -1"
>
<if
test=
"buildingId != null and buildingId != -1"
>
AND c.`building_id`= #{buildingId}
AND c.`building_id`= #{buildingId}
</if>
</if>
<if
test=
"fireEnduranceRate != null and fireEnduranceRate != ''"
>
<if
test=
"fireEnduranceRate != null and fireEnduranceRate != ''"
>
AND c.`fire_endurance_rate`= #{fireEnduranceRate}
AND c.`fire_endurance_rate`= #{fireEnduranceRate}
</if>
</if>
<if
test=
"useNature != null and useNature != ''"
>
<if
test=
"useNature != null and useNature != ''"
>
AND c.`use_nature`= #{useNature}
AND c.`use_nature`= #{useNature}
</if>
</if>
<if
test=
"fireFacilitiesInfo != null and fireFacilitiesInfo != ''"
>
<if
test=
"fireFacilitiesInfo != null and fireFacilitiesInfo != ''"
>
AND c.`fire_facilities_info`= #{fireFacilitiesInfo}
AND c.`fire_facilities_info`= #{fireFacilitiesInfo}
</if>
</if>
<if
test=
"belongId != null and belongId!='-1' and belongId != -1"
>
<if
test=
"belongId != null and belongId!='-1' and belongId != -1"
>
AND c.`belong_id`= #{belongId}
AND c.`belong_id`= #{belongId}
</if>
</if>
order by c.rec_date desc
</select>
</select>
<select
id=
"getSequenceNbr"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
<select
id=
"getSequenceNbr"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
SELECT c.`name` as name,
SELECT
c.belong_id as belongId,
c.`name` as name,
cou.biz_org_name as belongName,
c.belong_id as belongId,
c.building_id as buildingId,
cou.biz_org_name as belongName,
c.building_name as buildingName,
c.building_id as buildingId,
c.address_desc as addressDesc,
c.building_name as buildingName,
c.building_area as buildingArea,
c.address_desc as addressDesc,
c.building_height as buildingHeight,
c.building_area as buildingArea,
c.fire_endurance_rate as fireEnduranceRate,
c.building_height as buildingHeight,
c.use_nature as useNature,
c.fire_endurance_rate as fireEnduranceRate,
c.charge_person AS chargePerson,
c.use_nature as useNature,
c.sequence_nbr AS sequenceNbr,
c.charge_person AS chargePerson,
c.charge_person_id AS chargePersonId,
c.sequence_nbr AS sequenceNbr,
c.key_prevention_reason AS keyPreventionReason,
c.charge_person_id AS chargePersonId,
c.fire_facilities_info AS fireFacilitiesInfo,
c.key_prevention_reason AS keyPreventionReason,
c.fire_prevention_flag AS firePreventionFlag,
c.fire_facilities_info AS fireFacilitiesInfo,
c.hazard AS hazard,
c.fire_prevention_flag AS firePreventionFlag,
c.safety_management_measures AS safetyManagementMeasures,
c.hazard AS hazard,
c.preventive_measures AS preventiveMeasures,
c.safety_management_measures AS safetyManagementMeasures,
c.remark AS remark,
c.preventive_measures AS preventiveMeasures,
c.is_delete AS isDelete,
c.remark AS remark,
c.rec_user_id AS recUserId,
c.is_delete AS isDelete,
c.rec_user_name AS recUserName,
c.rec_user_id AS recUserId,
c.rec_date AS recDate,
c.rec_user_name AS recUserName,
c.fire_endurance_rate_name as fireEnduranceRateName,
c.rec_date AS recDate,
c.use_nature_name as useNatureName
c.fire_endurance_rate_name as fireEnduranceRateName,
FROM cb_key_site c
c.use_nature_name as useNatureName
left join cb_org_usr cou on c.belong_id = cou.sequence_nbr
FROM
where c.sequence_nbr = #{sequenceNbr}
cb_key_site c
and c.is_delete = FALSE;
left join cb_org_usr cou on c.belong_id =cou.sequence_nbr
</select>
where c.sequence_nbr=#{sequenceNbr} and c.is_delete=FALSE;
</select>
<select
id=
"getKeySiteList"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
<select
id=
"getKeySiteList"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.KeySiteDto"
>
SELECT c.`name` as name,
SELECT
c.belong_id as belongId,
c.`name` as name,
cou.biz_org_name as belongName,
c.belong_id as belongId,
c.building_id as buildingId,
cou.biz_org_name as belongName,
c.building_name as buildingName,
c.building_id as buildingId,
c.address_desc as addressDesc,
c.building_name as buildingName,
c.building_area as buildingArea,
c.address_desc as addressDesc,
c.building_height as buildingHeight,
c.building_area as buildingArea,
c.fire_endurance_rate as fireEnduranceRate,
c.building_height as buildingHeight,
c.use_nature as useNature,
c.fire_endurance_rate as fireEnduranceRate,
c.charge_person AS chargePerson,
c.use_nature as useNature,
c.sequence_nbr AS sequenceNbr,
c.charge_person AS chargePerson,
c.charge_person_id AS chargePersonId,
c.sequence_nbr AS sequenceNbr,
c.key_prevention_reason AS keyPreventionReason,
c.charge_person_id AS chargePersonId,
c.fire_facilities_info AS fireFacilitiesInfo,
c.key_prevention_reason AS keyPreventionReason,
c.fire_prevention_flag AS firePreventionFlag,
c.fire_facilities_info AS fireFacilitiesInfo,
c.hazard AS hazard,
c.fire_prevention_flag AS firePreventionFlag,
c.safety_management_measures AS safetyManagementMeasures,
c.hazard AS hazard,
c.preventive_measures AS preventiveMeasures,
c.safety_management_measures AS safetyManagementMeasures,
c.remark AS remark,
c.preventive_measures AS preventiveMeasures,
c.is_delete AS isDelete,
c.remark AS remark,
c.rec_user_id AS recUserId,
c.is_delete AS isDelete,
c.rec_user_name AS recUserName,
c.rec_user_id AS recUserId,
c.rec_date AS recDate,
c.rec_user_name AS recUserName,
c.fire_endurance_rate_name as fireEnduranceRateName,
c.rec_date AS recDate,
c.use_nature_name as useNatureName
c.fire_endurance_rate_name as fireEnduranceRateName,
FROM cb_key_site c
c.use_nature_name as useNatureName
left join cb_org_usr cou on c.belong_id = cou.sequence_nbr
FROM
where c.is_delete = FALSE;
cb_key_site c
</select>
left join cb_org_usr cou on c.belong_id =cou.sequence_nbr
where c.is_delete=FALSE;
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/KeySiteServiceImpl.java
View file @
da360a83
...
@@ -67,6 +67,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
...
@@ -67,6 +67,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
String
useNature
,
String
fireFacilitiesInfo
,
Long
belongId
){
String
useNature
,
String
fireFacilitiesInfo
,
Long
belongId
){
return
keySiteMapper
.
getPageList
(
page
,
name
,
buildingId
,
fireEnduranceRate
,
useNature
,
fireFacilitiesInfo
,
belongId
);
return
keySiteMapper
.
getPageList
(
page
,
name
,
buildingId
,
fireEnduranceRate
,
useNature
,
fireFacilitiesInfo
,
belongId
);
}
}
@Override
@Override
public
List
<
Object
>
getBuildTree
()
{
public
List
<
Object
>
getBuildTree
()
{
ResponseModel
<
Object
>
response
=
equipFeignClient
.
getBuildingTree
();
ResponseModel
<
Object
>
response
=
equipFeignClient
.
getBuildingTree
();
...
...
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