Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nnjcy-data-model
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljb
nnjcy-data-model
Commits
99e9fe58
Commit
99e9fe58
authored
Sep 14, 2023
by
ljb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善
parent
40d3d484
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
13 deletions
+9
-13
dataoperation-server/src/main/java/com/zq/dataoperation/controller/CommonQueryController.java
+2
-2
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollectSettingApi.java
+2
-2
dataoperation-server/src/main/java/com/zq/dataoperation/runner/DatabaseRunner.java
+1
-1
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectService.java
+0
-3
dataoperation-server/src/main/resources/application.yml
+2
-1
spider-flow-web/src/main/java/com/zq/spiderflow/controller/DataSourceController.java
+2
-4
No files found.
dataoperation-server/src/main/java/com/zq/dataoperation/controller/CommonQueryController.java
View file @
99e9fe58
...
@@ -31,9 +31,9 @@ public class CommonQueryController {
...
@@ -31,9 +31,9 @@ public class CommonQueryController {
@ApiOperation
(
"获取全部数据源"
)
@ApiOperation
(
"获取全部数据源"
)
@GetMapping
(
"/datasource"
)
@GetMapping
(
"/datasource"
)
public
List
<
QueryDb
>
getDatasource
()
{
public
ResultVo
getDatasource
()
{
List
<
QueryDb
>
datasource
=
commonQueryService
.
getDatasource
();
List
<
QueryDb
>
datasource
=
commonQueryService
.
getDatasource
();
return
datasource
;
return
ResultVo
.
success
(
datasource
)
;
}
}
@ApiOperation
(
"添加数据源"
)
@ApiOperation
(
"添加数据源"
)
...
...
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollectSettingApi.java
View file @
99e9fe58
...
@@ -27,7 +27,7 @@ public class DataCollectSettingApi {
...
@@ -27,7 +27,7 @@ public class DataCollectSettingApi {
private
Integer
dataCollectSettingId
;
private
Integer
dataCollectSettingId
;
/**
/**
*
A
pi接口名称
*
a
pi接口名称
*/
*/
private
String
apiName
;
private
String
apiName
;
...
@@ -37,7 +37,7 @@ public class DataCollectSettingApi {
...
@@ -37,7 +37,7 @@ public class DataCollectSettingApi {
private
String
apiUrl
;
private
String
apiUrl
;
/**
/**
* 数据请求方式
* 数据请求方式
(1.GET,2.POST)
*/
*/
private
Integer
requestType
;
private
Integer
requestType
;
...
...
dataoperation-server/src/main/java/com/zq/dataoperation/runner/DatabaseRunner.java
View file @
99e9fe58
...
@@ -59,7 +59,7 @@ public class DatabaseRunner implements ApplicationRunner {
...
@@ -59,7 +59,7 @@ public class DatabaseRunner implements ApplicationRunner {
connectionMap
.
put
(
ds
.
getId
(),
druidDataSource
.
getConnection
());
connectionMap
.
put
(
ds
.
getId
(),
druidDataSource
.
getConnection
());
}
}
ConnectionUtil
.
set
(
connectionMap
);
ConnectionUtil
.
set
(
connectionMap
);
log
.
info
(
"成功加载数据库
:"
+
connectionMap
.
size
());
log
.
info
(
"成功加载数据库
:{}个"
,
connectionMap
.
size
());
}
}
@PreDestroy
@PreDestroy
...
...
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectService.java
View file @
99e9fe58
package
com
.
zq
.
dataoperation
.
service
;
package
com
.
zq
.
dataoperation
.
service
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.json.JSONArray
;
import
cn.hutool.json.JSONUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
...
@@ -24,7 +22,6 @@ import org.springframework.stereotype.Service;
...
@@ -24,7 +22,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
...
dataoperation-server/src/main/resources/application.yml
View file @
99e9fe58
...
@@ -74,4 +74,4 @@ mybatis-plus:
...
@@ -74,4 +74,4 @@ mybatis-plus:
global-config
:
global-config
:
db-config
:
db-config
:
select-strategy
:
not_empty
select-strategy
:
not_empty
update-strategy
:
not_empty
update-strategy
:
not_empty
\ No newline at end of file
spider-flow-web/src/main/java/com/zq/spiderflow/controller/DataSourceController.java
View file @
99e9fe58
...
@@ -92,7 +92,4 @@ public class DataSourceController {
...
@@ -92,7 +92,4 @@ public class DataSourceController {
}
}
}
}
}
}
}
\ 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