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
a6a655fe
Commit
a6a655fe
authored
Jul 05, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘地图接口调整
parent
d6894817
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
6 deletions
+11
-6
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+1
-1
ClusterDbConfig.java
...in/amos/boot/module/jxiop/biz/config/ClusterDbConfig.java
+2
-2
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+3
-1
SjglZsjZsbtzServiceImpl.java
...odule/jxiop/biz/service/impl/SjglZsjZsbtzServiceImpl.java
+2
-1
SjglZsjZsbtzMapper.xml
.../src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
+3
-1
TestMapper.xml
...itor-biz/src/main/resources/mapper/cluster/TestMapper.xml
+0
-0
TpriDmpDatabookMapper.xml
...c/main/resources/mapper/cluster/TpriDmpDatabookMapper.xml
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
a6a655fe
...
...
@@ -143,7 +143,7 @@
WHERE
station_basic.sequence_nbr = #{sequence_nbr}
</select>
<select
id=
"getStationBasicDtoList"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.Station
Basic
Dto"
>
<select
id=
"getStationBasicDtoList"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.Station
Taks
Dto"
>
SELECT
station_number stationNumber,
gateway_id gateway
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/config/ClusterDbConfig.java
View file @
a6a655fe
...
...
@@ -43,7 +43,7 @@ public class ClusterDbConfig {
private
String
driverClassName
;
@Bean
(
name
=
"clusterDataSource"
)
//声明其为Bean实例
@Bean
(
name
=
"clusterDataSource
2
"
)
//声明其为Bean实例
public
DataSource
clusterDataSource
()
{
DruidDataSource
datasource
=
new
DruidDataSource
();
...
...
@@ -60,7 +60,7 @@ public class ClusterDbConfig {
}
@Bean
(
name
=
"clusterSqlSessionFactory"
)
public
SqlSessionFactory
clusterSqlSessionFactory
(
@Qualifier
(
"clusterDataSource"
)
DataSource
culsterDataSource
)
public
SqlSessionFactory
clusterSqlSessionFactory
(
@Qualifier
(
"clusterDataSource
2
"
)
DataSource
culsterDataSource
)
throws
Exception
{
final
MybatisSqlSessionFactoryBean
sessionFactory
=
new
MybatisSqlSessionFactoryBean
();
sessionFactory
.
setDataSource
(
culsterDataSource
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
a6a655fe
...
...
@@ -80,6 +80,8 @@ public class MonitoringServiceImpl {
});
regionNationWideDto
.
setFengdian
(
fengdian
.
toString
());
regionNationWideDto
.
setGuangfu
(
guangfu
.
toString
());
regionNationWideDto
.
setGuangfuMW
(
guangfuMW
.
toString
());
regionNationWideDto
.
setFengdianMV
(
fengdianMW
.
toString
());
regionNationWideDto
.
setName
(
region
.
getRegionName
());
regionNationWideDtoList
.
add
(
regionNationWideDto
);
}
...
...
@@ -94,7 +96,7 @@ public class MonitoringServiceImpl {
regionNationWideDto
.
setStaitionType
(
stationBasic
.
getStationType
());
String
speendOrirradiate
=
""
;
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
)){
speendOrirradiate
=
(
String
)
getIndicatoralueAvage
(
stationBasic
.
getGatewayId
(),
"30秒平均风速"
);
speendOrirradiate
=
String
.
valueOf
(
getIndicatoralueAvage
(
stationBasic
.
getGatewayId
(),
"30秒平均风速"
)
);
regionNationWideDto
.
setSpeendOrirradiate
(
speendOrirradiate
);
}
else
{
regionNationWideDto
.
setSpeendOrirradiate
(
String
.
valueOf
(
Math
.
random
()*
1000
));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/SjglZsjZsbtzServiceImpl.java
View file @
a6a655fe
...
...
@@ -57,6 +57,6 @@ public class SjglZsjZsbtzServiceImpl {
return
sjglZsjZsbtzList
;
}
public
Double
getStationCapactityByStationWerks
(
String
WERKS
){
return
this
.
sjglZsjZsbtzMapper
.
getStationCapactityByStationWerks
(
WERKS
);
return
sjglZsjZsbtzMapper
.
getStationCapactityByStationWerks
(
WERKS
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
.
cluster/SjglZsjZsbtzMapper.xml
→
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
/
cluster/SjglZsjZsbtzMapper.xml
View file @
a6a655fe
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.biz.mapper2.SjglZsjZsbtzMapper"
>
<select
id=
"getStationCapactityByStationWerks"
resultType=
"Double"
>
select SUM(CAPACITYL) from sjgl_zsj_zsbtz where WERKS = #{WERKS}
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
.
cluster/TestMapper.xml
→
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
/
cluster/TestMapper.xml
View file @
a6a655fe
File moved
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
.
cluster/TpriDmpDatabookMapper.xml
→
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper
/
cluster/TpriDmpDatabookMapper.xml
View file @
a6a655fe
File moved
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