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
ae2e105c
Commit
ae2e105c
authored
Aug 15, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.智能分析平台修改表后业务代码更新
parent
0ae077cf
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
13 deletions
+9
-13
IdxBizC80c.java
...yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizC80c.java
+1
-1
IdxBizUxfv.java
...yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizUxfv.java
+1
-1
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+4
-8
application-dev.properties
...analyse-biz/src/main/resources/application-dev.properties
+1
-1
IdxBizC80cMapper.xml
...iz/src/main/resources/mapper/cluster/IdxBizC80cMapper.xml
+1
-1
IdxBizUxfvMapper.xml
...iz/src/main/resources/mapper/cluster/IdxBizUxfvMapper.xml
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizC80c.java
View file @
ae2e105c
...
...
@@ -18,7 +18,7 @@ import java.util.Date;
@Data
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"idx_biz_
c80c
"
,
autoResultMap
=
true
)
@TableName
(
value
=
"idx_biz_
fan_point_var_correlation
"
,
autoResultMap
=
true
)
public
class
IdxBizC80c
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizUxfv.java
View file @
ae2e105c
...
...
@@ -17,7 +17,7 @@ import java.util.Date;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"idx_biz_
uxfv
"
,
autoResultMap
=
true
)
@TableName
(
value
=
"idx_biz_
fan_point_process_variable_classification
"
,
autoResultMap
=
true
)
public
class
IdxBizUxfv
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
ae2e105c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
cn.hutool.http.HttpUtil
;
import
cn.hutool.log.LogFactory
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.sun.org.apache.xalan.internal.xsltc.compiler.util.ResultTreeType
;
import
com.yeejoin.amos.AmosJxiopAnalyseApplication
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizC80c
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizHjev
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizUxfv
;
...
...
@@ -33,7 +30,7 @@ public class CommonServiceImpl {
@Value
(
"${base.url:http://36.40.66.175:30009/maas/maas/processes/api/}"
)
String
baseUrl
;
//----------------工况变量工况变量划分请求属性配置------------------------
@Value
(
"${gkblhf.url:
901b4627-4fb0-4527-ab2d-f6ea936c9b9d
}"
)
@Value
(
"${gkblhf.url:
71ed06a2-4f09-44b5-a667-8547e4019525
}"
)
String
gkqjhfurl
;
@Value
(
"${gkblhf.key:input 1}"
)
String
gkqjhfkey
;
...
...
@@ -390,9 +387,8 @@ public class CommonServiceImpl {
return
resultList
;
}
public
List
<
Map
<
String
,
Object
>>
getInfluxdbDataByConditon
()
{
String
sql
=
"select * from %s"
;
List
<
Map
<
String
,
Object
>>
result
=
influxdbUtil
.
query
(
sql
);
return
result
;
public
List
<
Map
<
String
,
Object
>>
getInfluxdbDataByConditon
(
String
gateaway
,
String
indictorName
,
String
startTime
,
String
endTime
)
{
String
sql
=
String
.
format
(
"select * from iot_data_%s where indictorName='%s' and time > '%s' and time < 'endTime' )"
,
gateaway
,
indictorName
,
startTime
,
endTime
);
return
influxdbUtil
.
query
(
sql
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/application-dev.properties
View file @
ae2e105c
...
...
@@ -7,7 +7,7 @@ spring.db1.datasource.password=Yeejoin@2020
spring.db1.datasource.driver-class-name
:
com.mysql.cj.jdbc.Driver
## db2-sync_data
spring.db2.datasource.type
:
com.alibaba.druid.pool.DruidDataSource
spring.db2.datasource.url
=
jdbc:mysql://
172.16.10.220
:3306/yeeamos_amos_idx_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.db2.datasource.url
=
jdbc:mysql://
36.40.66.175
:3306/yeeamos_amos_idx_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.db2.datasource.username
=
root
spring.db2.datasource.password
=
Yeejoin@2020
spring.db2.datasource.driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizC80cMapper.xml
View file @
ae2e105c
...
...
@@ -2,6 +2,6 @@
<!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.IdxBizC80cMapper"
>
<select
id=
"gateWayIdListFan"
resultType=
"java.lang.String"
>
select ANALYSIS_GATEWAY_ID from idx_biz_
c80c
group by ANALYSIS_GATEWAY_ID;
select ANALYSIS_GATEWAY_ID from idx_biz_
fan_point_var_correlation
group by ANALYSIS_GATEWAY_ID;
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizUxfvMapper.xml
View file @
ae2e105c
...
...
@@ -51,6 +51,6 @@
</select>
<select
id=
"gateWayIdListFan"
resultType=
"java.lang.String"
>
select GATEWAY_ID from idx_biz_
uxfv
group by GATEWAY_ID;
select GATEWAY_ID from idx_biz_
fan_point_process_variable_classification
group by GATEWAY_ID;
</select>
</mapper>
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