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
b78f49f8
Commit
b78f49f8
authored
Jul 03, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中间表相关操作提交
parent
90a36c7c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
3 deletions
+39
-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
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 @
b78f49f8
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
...
@@ -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.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
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.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.StationBasicServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.TestServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.TestServiceImpl
;
import
com.yeejoin.amos.component.influxdb.InfluxDbConnection
;
import
com.yeejoin.amos.component.influxdb.InfluxDbConnection
;
...
@@ -36,8 +38,11 @@ public class DemoController extends BaseController {
...
@@ -36,8 +38,11 @@ public class DemoController extends BaseController {
@Autowired
@Autowired
InfluxDbConnection
influxDbConnection
;
InfluxDbConnection
influxDbConnection
;
@Autowired
SjglZsjZsbtzServiceImpl
sjglZsjZsbtzServiceImpl
;
@Autowired
DataSynchronizationImpl
dataSynchronizationImpl
;
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"demo测试prodcutcion 库"
)
@ApiOperation
(
value
=
"demo测试prodcutcion 库"
)
@GetMapping
(
"/test"
)
@GetMapping
(
"/test"
)
...
@@ -68,4 +73,11 @@ public class DemoController extends BaseController {
...
@@ -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 @
b78f49f8
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
org.joda.time.DateTime
;
import
org.joda.time.DateTime
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -20,7 +21,7 @@ import java.util.Date;
...
@@ -20,7 +21,7 @@ import java.util.Date;
@Data
@Data
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"sjgl_zsj_zsbtz"
)
@TableName
(
"sjgl_zsj_zsbtz"
)
public
class
SjglZsjZsbtz
{
public
class
SjglZsjZsbtz
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
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 @
b78f49f8
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -17,7 +19,7 @@ import java.util.Date;
...
@@ -17,7 +19,7 @@ import java.util.Date;
@Data
@Data
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tpri_dmp_databook"
)
@TableName
(
"tpri_dmp_databook"
)
public
class
TpriDmpDatabook
{
public
class
TpriDmpDatabook
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
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 @
b78f49f8
...
@@ -36,5 +36,25 @@ public class SjglZsjZsbtzServiceImpl {
...
@@ -36,5 +36,25 @@ public class SjglZsjZsbtzServiceImpl {
sjglZsjZsbtzList
=
sjglZsjZsbtzMapper
.
selectList
(
new
QueryWrapper
<
SjglZsjZsbtz
>().
eq
(
"MACHGENRE"
,
MACHGENRE
).
eq
(
"WERKS"
,
WERKS
));
sjglZsjZsbtzList
=
sjglZsjZsbtzMapper
.
selectList
(
new
QueryWrapper
<
SjglZsjZsbtz
>().
eq
(
"MACHGENRE"
,
MACHGENRE
).
eq
(
"WERKS"
,
WERKS
));
return
sjglZsjZsbtzList
;
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
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