Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
e2c97f30
Commit
e2c97f30
authored
Aug 09, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交大屏监控风机级别默认值
parent
2b30d5fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
0 deletions
+33
-0
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+0
-0
StationInfoDto.java
...eejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
+6
-0
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+1
-0
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+8
-0
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+18
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
e2c97f30
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
View file @
e2c97f30
...
...
@@ -56,4 +56,10 @@ public class StationInfoDto {
@ApiModelProperty
(
value
=
"风险等级"
)
private
String
riskLevel
;
@ApiModelProperty
(
value
=
"系统名称默认值"
)
private
String
equipmentNameDefault
;
@ApiModelProperty
(
value
=
"设备状态默认值"
)
private
String
subSystemDefault
;
@ApiModelProperty
(
value
=
"变量状态默认值"
)
private
String
indexAddressDefault
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
e2c97f30
...
...
@@ -72,5 +72,6 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
StationBasicDto
getStationInfoByCode
(
@Param
(
"stationCode"
)
String
stationCode
);
List
<
StationBasicDto
>
getStationsByAreaCode
(
@Param
(
"areaCode"
)
String
stationCode
);
List
<
StationBasicDto
>
getStationBasicList
();
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
e2c97f30
...
...
@@ -213,4 +213,12 @@
is_delete = 0
ORDER BY sequence_nbr ASC
</select>
<select
id=
"getStationBasicList"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto"
>
SELECT
sequence_nbr AS sequenceNbr,
station_type stationType
FROM
station_basic
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
e2c97f30
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationCoordinateDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationRecordInfo
;
...
...
@@ -63,6 +65,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
@Autowired
MapRegionServiceImpl
mapRegionServiceImpl
;
private
final
String
CZLX
=
"CZLX"
;
@Autowired
private
RedisUtils
redisUtils
;
/**
* 分页查询
...
...
@@ -279,6 +283,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
}
public
List
<
StationInfoDto
>
getStationList
(
String
areaCode
,
String
type
)
{
JSONArray
stationSelectDefault
=(
JSONArray
)
redisUtils
.
get
(
"STATION_FIRST_SELECT"
);
// 场站信息列表 地图接口返回使用
List
<
StationInfoDto
>
stationInfoDtoList
=
new
LinkedList
<>();
//场站信息列表
...
...
@@ -338,6 +343,19 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
stationInfoDto
.
setTitlePos
(
doubleList
);
stationInfoDto
.
setIndicatorData
(
indicatorList
);
stationInfoDto
.
setRiskLevel
(
stationRecordInfo
.
getRiskLevel
());
//添加默认场站选中的值
if
(!
CollectionUtils
.
isEmpty
(
stationSelectDefault
)){
for
(
Object
o
:
stationSelectDefault
)
{
if
(
o
instanceof
JSONObject
){
JSONObject
jsonObject
=(
JSONObject
)
o
;
if
(
stationRecordInfo
.
getStationId
().
equals
(
jsonObject
.
getLong
(
"stationBasicId"
))){
stationInfoDto
.
setEquipmentNameDefault
(
jsonObject
.
getString
(
"equipmentNameDefault"
));
stationInfoDto
.
setSubSystemDefault
(
jsonObject
.
getString
(
"subSystemDefault"
));
stationInfoDto
.
setIndexAddressDefault
(
jsonObject
.
getString
(
"indexAddressDefault"
));
}
}
}
}
stationInfoDtoList
.
add
(
stationInfoDto
);
});
...
...
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