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
9d2a0dfc
Commit
9d2a0dfc
authored
Apr 15, 2025
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pms使用接口
parent
9e9ec502
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
4 deletions
+49
-4
EquipmentSpecificIndexController.java
...ipmanage/controller/EquipmentSpecificIndexController.java
+12
-4
EquipmentSpecificIndexMapper.java
...join/equipmanage/mapper/EquipmentSpecificIndexMapper.java
+1
-0
IEquipmentSpecificIndexSerivce.java
...n/equipmanage/service/IEquipmentSpecificIndexSerivce.java
+2
-0
EquipmentSpecificIndexSerivceImpl.java
...anage/service/impl/EquipmentSpecificIndexSerivceImpl.java
+7
-0
EmergencyMapper.xml
...ystem-equip/src/main/resources/mapper/EmergencyMapper.xml
+4
-0
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+23
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificIndexController.java
View file @
9d2a0dfc
...
...
@@ -4,19 +4,20 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificIndexSerivce
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
@Slf4j
...
...
@@ -55,4 +56,11 @@ public class EquipmentSpecificIndexController extends AbstractBaseController {
return
equipmentSpecificIndexService
.
getPage
(
page
,
bizOrgCode
,
systemId
,
equipName
,
startDate
,
endDate
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getIndexByCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"指标"
,
notes
=
"指标"
)
public
ResponseModel
getIndexByCode
(
@RequestParam
String
indexs
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
return
CommonResponseUtil
.
success
(
equipmentSpecificIndexService
.
getIndexDataByIndex
(
indexs
,
bizOrgCode
));
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificIndexMapper.java
View file @
9d2a0dfc
...
...
@@ -130,4 +130,5 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
List
<
Map
<
String
,
Object
>>
getIndexDataByIndex
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"list"
)
List
<
String
>
list
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificIndexSerivce.java
View file @
9d2a0dfc
...
...
@@ -81,4 +81,6 @@ public interface IEquipmentSpecificIndexSerivce extends IService<EquipmentSpecif
List
<
EquipmentIndexVO
>
getEquipIndexByIdIn
(
List
<
Long
>
specificIndexIds
);
IPage
<
Map
<
String
,
Object
>>
getPage
(
Page
<
EquipmentSpecificIndex
>
page
,
String
bizOrgCode
,
String
systemId
,
String
equipName
,
String
startDate
,
String
endDate
);
List
<
Map
<
String
,
Object
>>
getIndexDataByIndex
(
String
index
,
String
bizOrgCode
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificIndexSerivceImpl.java
View file @
9d2a0dfc
...
...
@@ -15,6 +15,8 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -112,4 +114,9 @@ public class EquipmentSpecificIndexSerivceImpl extends ServiceImpl<EquipmentSpec
});
return
resultPage
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getIndexDataByIndex
(
String
index
,
String
bizOrgCode
)
{
return
this
.
baseMapper
.
getIndexDataByIndex
(
bizOrgCode
,
Arrays
.
asList
(
index
.
split
(
","
)));
}
}
amos-boot-system-equip/src/main/resources/mapper/EmergencyMapper.xml
View file @
9d2a0dfc
...
...
@@ -1660,6 +1660,10 @@
SELECT
wlesal.id,
wlesal.biz_org_name AS bizOrgName,
wlesal.clean_time AS cleanTime,
wlesal.biz_org_code AS bizOrgCode,
wlesal.alarm_reason AS alarmReason,
wlesal.resolve_result AS resolveResult,
concat(wlesal.equipment_specific_name, wlesal.equipment_specific_index_name) AS alamContent,
IF (wlesal.confirm_type IS NULL, '未确认', '已确认') handleStatus,
IF (wlesal.clean_time IS NOT NULL, '已消除', '未消除' ) cleanStatus,
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
9d2a0dfc
...
...
@@ -641,4 +641,26 @@
</where>
ORDER BY wesi.update_date DESC
</select>
<select
id=
"getIndexDataByIndex"
resultType=
"java.util.Map"
>
SELECT
wesi.id AS id, wesi.equipment_specific_id,
wesi.`value`,
wesi.equipment_index_key,
wesi.equipment_index_name,
wes.`name`
FROM
`wl_equipment_specific_index` wesi
LEFT JOIN wl_equipment_specific wes ON wesi.equipment_specific_id = wes.id
<where>
<if
test=
"list != null and list.size > 0 and type = 'id'"
>
wesi.equipment_index_key IN
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND wes.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
</where>
</select>
</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