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
21f41e44
Commit
21f41e44
authored
Jul 03, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
9f1b36c1
67788460
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
3 deletions
+99
-3
DemoController.java
...amos/boot/module/jxiop/biz/controller/DemoController.java
+13
-1
SjglZsjZsbtz.java
...ejoin/amos/boot/module/jxiop/biz/entity/SjglZsjZsbtz.java
+2
-1
TpriDmpDatabook.java
...in/amos/boot/module/jxiop/biz/entity/TpriDmpDatabook.java
+3
-1
SjglZsjZsbtzServiceImpl.java
...odule/jxiop/biz/service/impl/SjglZsjZsbtzServiceImpl.java
+21
-0
StationDataTaskImpl.java
...ot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
+60
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DemoController.java
View file @
21f41e44
...
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.Test
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.DataSynchronizationImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.SjglZsjZsbtzServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.StationBasicServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.TestServiceImpl
;
import
com.yeejoin.amos.component.influxdb.InfluxDbConnection
;
...
...
@@ -36,8 +38,11 @@ public class DemoController extends BaseController {
@Autowired
InfluxDbConnection
influxDbConnection
;
@Autowired
SjglZsjZsbtzServiceImpl
sjglZsjZsbtzServiceImpl
;
@Autowired
DataSynchronizationImpl
dataSynchronizationImpl
;
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"demo测试prodcutcion 库"
)
@GetMapping
(
"/test"
)
...
...
@@ -68,4 +73,11 @@ public class DemoController extends BaseController {
}
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"测试数据同步逻辑"
)
@GetMapping
(
"/test4"
)
public
void
demoTest3
()
{
dataSynchronizationImpl
.
cacheSjglZsjZsbtz
();
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/SjglZsjZsbtz.java
View file @
21f41e44
...
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
org.joda.time.DateTime
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
...
...
@@ -20,7 +21,7 @@ import java.util.Date;
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"sjgl_zsj_zsbtz"
)
public
class
SjglZsjZsbtz
{
public
class
SjglZsjZsbtz
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/TpriDmpDatabook.java
View file @
21f41e44
...
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
...
...
@@ -17,7 +19,7 @@ import java.util.Date;
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"tpri_dmp_databook"
)
public
class
TpriDmpDatabook
{
public
class
TpriDmpDatabook
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
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 @
21f41e44
...
...
@@ -36,5 +36,25 @@ public class SjglZsjZsbtzServiceImpl {
sjglZsjZsbtzList
=
sjglZsjZsbtzMapper
.
selectList
(
new
QueryWrapper
<
SjglZsjZsbtz
>().
eq
(
"MACHGENRE"
,
MACHGENRE
).
eq
(
"WERKS"
,
WERKS
));
return
sjglZsjZsbtzList
;
}
/**
* @deprecated 根据场站编号获取基础设备信息
* @param WERKS 场站编号
* @return 基础设别列表
*/
public
List
<
SjglZsjZsbtz
>
getSjglZsjZsbtzListByWerks
(
String
WERKS
){
List
<
SjglZsjZsbtz
>
sjglZsjZsbtzList
=
new
ArrayList
<>();
sjglZsjZsbtzList
=
sjglZsjZsbtzMapper
.
selectList
(
new
QueryWrapper
<
SjglZsjZsbtz
>().
eq
(
"WERKS"
,
WERKS
));
return
sjglZsjZsbtzList
;
}
/**
* @deprecated 根据场站编号获取基础设备信息
* @param WERKS 场站编号
* @return 基础设别列表
*/
public
List
<
SjglZsjZsbtz
>
getSjglZsjZsbtzList
(){
List
<
SjglZsjZsbtz
>
sjglZsjZsbtzList
=
new
ArrayList
<>();
sjglZsjZsbtzList
=
sjglZsjZsbtzMapper
.
selectList
(
new
QueryWrapper
<
SjglZsjZsbtz
>().
isNotNull
(
"DBID"
));
return
sjglZsjZsbtzList
;
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
0 → 100644
View file @
21f41e44
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.DeviceDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationTaksDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IStationDataTask
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.SjglZsjZsbtz
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.TpriDmpDatabook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
StationDataTaskImpl
implements
IStationDataTask
{
@Autowired
StationBasicServiceImpl
stationBasicServiceImpl
;
@Autowired
SjglZsjZsbtzServiceImpl
sjglZsjZsbtzServiceImpl
;
@Autowired
TpriDmpDatabookServiceImpl
tpriDmpDatabookServiceImpl
;
@Override
public
List
<
StationTaksDto
>
getListStationBasic
()
{
List
<
StationTaksDto
>
stationTaksDtoList
=
new
ArrayList
<>();
List
<
StationBasic
>
stationBasicList
=
stationBasicServiceImpl
.
list
();
stationBasicList
.
forEach
(
stationBasic
->
{
StationTaksDto
stationTaksDto
=
new
StationTaksDto
();
stationTaksDto
.
setStationNumber
(
stationBasic
.
getStationNumber
());
stationTaksDto
.
setGateway
(
stationBasic
.
getGatewayId
());
stationTaksDtoList
.
add
(
stationTaksDto
);
});
return
stationTaksDtoList
;
}
@Override
public
List
<
DeviceDto
>
getListDevice
(
StationTaksDto
stationTaksDto
)
{
List
<
DeviceDto
>
deviceDtoList
=
new
ArrayList
<>();
TpriDmpDatabook
tpriDmpDatabook
=
tpriDmpDatabookServiceImpl
.
getTpriDmpDatabookByDataName
(
"风机"
);
List
<
SjglZsjZsbtz
>
sjglZsjZsbtzList
=
sjglZsjZsbtzServiceImpl
.
getSjglZsjZsbtzList
(
tpriDmpDatabook
.
getDataid
(),
stationTaksDto
.
getStationNumber
());
sjglZsjZsbtzList
.
forEach
(
sjglZsjZsbtz
->
{
DeviceDto
deviceDto
=
new
DeviceDto
();
deviceDto
.
setGateway
(
stationTaksDto
.
getGateway
());
deviceDto
.
setNumberName
(
""
);
});
return
deviceDtoList
;
}
@Override
public
List
<
IndexDto
>
getIndexDto
(
DeviceDto
deviceDto
)
{
return
null
;
}
@Override
public
void
setMonitorFanIndicator
(
List
<
IndexDto
>
list
)
{
}
}
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