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
d329d178
Commit
d329d178
authored
Aug 15, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
e56fe0e0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
4 deletions
+35
-4
EquipTypeImgAmountVO.java
...in/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
+2
-2
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+7
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+2
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+2
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+6
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+16
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
View file @
d329d178
...
@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO {
...
@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO {
@ApiModelProperty
(
value
=
"分类名称/车或者装备"
)
@ApiModelProperty
(
value
=
"分类名称/车或者装备"
)
private
String
systemType
;
private
String
systemType
;
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
"
状态评估
"
)
private
String
other
;
private
String
other
;
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
"
日常运维
"
)
private
String
equip
;
private
String
equip
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
d329d178
...
@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController {
return
equipmentSpecificSerivce
.
getMonitoringUnitList
(
equipTypeAmountPage
);
return
equipmentSpecificSerivce
.
getMonitoringUnitList
(
equipTypeAmountPage
);
}
}
@GetMapping
(
value
=
"/getMonitoringCount"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询监测部件列表"
,
notes
=
"查询监测部件列表"
)
public
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
)
{
return
equipmentSpecificSerivce
.
getMonitoringCount
(
bizOrgCode
);
}
/**
/**
* 添加系统
* 添加系统
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
d329d178
...
@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
@Param
(
"page"
)
IPage
page
,
@Param
(
"equipTypeAmountPage"
)
EquipTypeAmountPageDTO
equipTypeAmountPage
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
@Param
(
"page"
)
IPage
page
,
@Param
(
"equipTypeAmountPage"
)
EquipTypeAmountPageDTO
equipTypeAmountPage
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
d329d178
...
@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
d329d178
...
@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*;
...
@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
liquibase.pro.packaged.S
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
public
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
)
{
public
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
)
{
return
equipmentSpecificMapper
.
getMonitoringUnitList
(
equipTypeAmountPage
.
getPage
(),
equipTypeAmountPage
);
return
equipmentSpecificMapper
.
getMonitoringUnitList
(
equipTypeAmountPage
.
getPage
(),
equipTypeAmountPage
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
)
{
return
equipmentSpecificMapper
.
getMonitoringCount
(
bizOrgCode
);
}
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
d329d178
...
@@ -2612,14 +2612,27 @@
...
@@ -2612,14 +2612,27 @@
AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
</if>
</if>
<if
test=
"equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''"
>
<if
test=
"equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''"
>
And w
lc
.equip_status = #{equipTypeAmountPage.equipStatus}
And w
es
.equip_status = #{equipTypeAmountPage.equipStatus}
</if>
</if>
<if
test=
"equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''"
>
<if
test=
"equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''"
>
and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%')
and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%')
</if>
</if>
and wes.id = aqr.buss_id
</where>
</where>
ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC
ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC
</select>
</select>
<select
id=
"getMonitoringCount"
resultType=
"java.util.Map"
>
SELECT
wes.id,
count(wed.code) AS count,
LEFT(wed.code, 8) AS code,
wed.equipment_name name
FROM
wl_equipment_specific wes
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
WHERE
wes.biz_org_code LIKE CONCAT( #{bizOrgCode}, '%' )
AND wed.equipment_name is not null
GROUP BY code
</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