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
05ed8c82
Commit
05ed8c82
authored
Sep 20, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级tdengine
parent
2ecbea5a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
9 deletions
+26
-9
pom.xml
amos-boot-system-jxiop/amos-boot-module-hygf-api/pom.xml
+1
-1
TdHygfJpInverterWarnDto.java
...mos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
+1
-1
TdHygfJpInverterWarn.java
...mos/boot/module/hygf/api/entity/TdHygfJpInverterWarn.java
+1
-1
TDengineServerConfig.java
...mos/boot/module/hygf/biz/config/TDengineServerConfig.java
+1
-1
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+20
-3
application-dev.properties
...le-hygf-biz/src/main/resources/application-dev.properties
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/pom.xml
View file @
05ed8c82
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<dependency>
<dependency>
<groupId>
com.taosdata.jdbc
</groupId>
<groupId>
com.taosdata.jdbc
</groupId>
<artifactId>
taos-jdbcdriver
</artifactId>
<artifactId>
taos-jdbcdriver
</artifactId>
<version>
2.0.30
</version>
<version>
3.2.4
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
View file @
05ed8c82
...
@@ -47,7 +47,7 @@ public class TdHygfJpInverterWarnDto {
...
@@ -47,7 +47,7 @@ public class TdHygfJpInverterWarnDto {
private
String
thirdCode
;
private
String
thirdCode
;
@ApiModelProperty
(
value
=
"状态"
)
@ApiModelProperty
(
value
=
"状态"
)
private
int
state
;
private
String
state
;
@ApiModelProperty
(
value
=
"时间"
)
@ApiModelProperty
(
value
=
"时间"
)
private
Long
time
;
private
Long
time
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/TdHygfJpInverterWarn.java
View file @
05ed8c82
...
@@ -87,7 +87,7 @@ public class TdHygfJpInverterWarn {
...
@@ -87,7 +87,7 @@ public class TdHygfJpInverterWarn {
* 状态
* 状态
*/
*/
@TableField
(
"state"
)
@TableField
(
"state"
)
private
int
state
;
private
String
state
;
/**
/**
* 时间
* 时间
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/config/TDengineServerConfig.java
View file @
05ed8c82
...
@@ -25,7 +25,7 @@ import java.util.Properties;
...
@@ -25,7 +25,7 @@ import java.util.Properties;
* @createDate: 2023/9/19
* @createDate: 2023/9/19
*/
*/
@Configuration
@Configuration
@MapperScan
(
basePackages
=
"com.
xiaotian.datatrans.mapper
.tdenginemapper"
,
sqlSessionTemplateRef
=
"tdengineSqlSessionTemplate"
)
@MapperScan
(
basePackages
=
"com.
yeejoin.amos.boot.module.hygf.api
.tdenginemapper"
,
sqlSessionTemplateRef
=
"tdengineSqlSessionTemplate"
)
public
class
TDengineServerConfig
{
public
class
TDengineServerConfig
{
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
View file @
05ed8c82
...
@@ -5,10 +5,14 @@ import java.util.List;
...
@@ -5,10 +5,14 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ITdHygfJpInverterWarnService
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ITdHygfJpInverterWarnService
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarnMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarnMapper
;
...
@@ -28,9 +32,22 @@ public class TdHygfJpInverterWarnServiceImpl
...
@@ -28,9 +32,22 @@ public class TdHygfJpInverterWarnServiceImpl
*/
*/
public
Page
<
TdHygfJpInverterWarnDto
>
queryForTdHygfJpInverterWarnPage
(
Page
<
TdHygfJpInverterWarnDto
>
page
,
public
Page
<
TdHygfJpInverterWarnDto
>
queryForTdHygfJpInverterWarnPage
(
Page
<
TdHygfJpInverterWarnDto
>
page
,
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
)
{
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Page
<
TdHygfJpInverterWarn
>
entiryPage
=
new
Page
<>(
page
.
getCurrent
(),
page
.
getSize
());
params
.
put
(
"state"
,
tdHygfJpInverterWarnDto
.
getState
());
LambdaQueryWrapper
<
TdHygfJpInverterWarn
>
wrapper
=
new
LambdaQueryWrapper
<>();
return
this
.
queryForPage
(
page
,
null
,
false
,
params
);
if
(
tdHygfJpInverterWarnDto
.
getState
()
!=
null
)
{
wrapper
.
eq
(
TdHygfJpInverterWarn:
:
getState
,
tdHygfJpInverterWarnDto
.
getState
());
}
entiryPage
=
(
Page
<
TdHygfJpInverterWarn
>)
this
.
page
(
entiryPage
,
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
entiryPage
.
getRecords
()))
{
page
.
setTotal
(
entiryPage
.
getTotal
());
page
.
setPages
(
entiryPage
.
getPages
());
page
.
setCurrent
(
entiryPage
.
getCurrent
());
page
.
setSize
(
entiryPage
.
getSize
());
if
(!
ValidationUtil
.
isEmpty
(
entiryPage
.
getRecords
()))
page
.
setRecords
(
Bean
.
toModels
(
entiryPage
.
getRecords
(),
this
.
getModelClass
()));
}
return
page
;
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-dev.properties
View file @
05ed8c82
...
@@ -22,8 +22,8 @@ spring.datasource.mysql-service.connection-timeout: 30000
...
@@ -22,8 +22,8 @@ spring.datasource.mysql-service.connection-timeout: 30000
spring.datasource.tdengine-service.driver-class-name
=
com.taosdata.jdbc.
TSDB
Driver
spring.datasource.tdengine-service.driver-class-name
=
com.taosdata.jdbc.
rs.Restful
Driver
spring.datasource.tdengine-service.jdbc-url
=
jdbc:TAOS://139.9.170.47:6041/house_pv_data?user=root&password=taosdata&timezone=GMT+8
spring.datasource.tdengine-service.jdbc-url
=
jdbc:TAOS
-RS
://139.9.170.47:6041/house_pv_data?user=root&password=taosdata&timezone=GMT+8
spring.datasource.tdengine-service.username
=
root
spring.datasource.tdengine-service.username
=
root
spring.datasource.tdengine-service.password
=
taosdata
spring.datasource.tdengine-service.password
=
taosdata
spring.datasource.tdengine-service.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.tdengine-service.type
=
com.zaxxer.hikari.HikariDataSource
...
...
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