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
47109b33
Commit
47109b33
authored
Aug 22, 2023
by
ljb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善数据汇聚
parent
bb8bd40d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
25 deletions
+28
-25
dataoperation-server/src/main/java/com/zq/dataoperation/controller/DataCollectController.java
+3
-5
dataoperation-server/src/main/java/com/zq/dataoperation/dao/DataCollectDao.java
+2
-2
dataoperation-server/src/main/java/com/zq/dataoperation/dao/DataCollectTaskLogDao.java
+2
-2
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollectSetting.java
+2
-2
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollectTaskLog.java
+1
-1
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectLogService.java
+9
-8
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectService.java
+9
-5
No files found.
dataoperation-server/src/main/java/com/zq/dataoperation/controller/DataCollectController.java
View file @
47109b33
...
@@ -4,7 +4,7 @@ package com.zq.dataoperation.controller;
...
@@ -4,7 +4,7 @@ package com.zq.dataoperation.controller;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.common.vo.ResultVo
;
//import com.zq.dataoperation.service.DataCleanService;
//import com.zq.dataoperation.service.DataCleanService;
import
com.zq.dataoperation.entity.DataCollect
;
import
com.zq.dataoperation.entity.DataCollect
Setting
;
import
com.zq.dataoperation.service.DataCollectService
;
import
com.zq.dataoperation.service.DataCollectService
;
import
com.zq.dataoperation.vo.DataCollectReq
;
import
com.zq.dataoperation.vo.DataCollectReq
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -25,8 +25,6 @@ public class DataCollectController {
...
@@ -25,8 +25,6 @@ public class DataCollectController {
@Resource
@Resource
private
DataCollectService
dataCollectService
;
private
DataCollectService
dataCollectService
;
// @Resource
// private DataCleanService dataCleanService;
@ApiOperation
(
"获取数据汇聚任务列表"
)
@ApiOperation
(
"获取数据汇聚任务列表"
)
@GetMapping
(
value
=
"/getAll"
)
@GetMapping
(
value
=
"/getAll"
)
...
@@ -48,8 +46,8 @@ public class DataCollectController {
...
@@ -48,8 +46,8 @@ public class DataCollectController {
@ApiOperation
(
"新增或修改数据汇聚设置"
)
@ApiOperation
(
"新增或修改数据汇聚设置"
)
@PostMapping
(
value
=
"/update"
)
@PostMapping
(
value
=
"/update"
)
public
ResultVo
selectDataCleanList
(
@RequestBody
DataCollect
dataCollect
)
{
public
ResultVo
selectDataCleanList
(
@RequestBody
DataCollect
Setting
dataCollectSetting
)
{
boolean
b
=
dataCollectService
.
saveOrUpdate
(
dataCollect
);
boolean
b
=
dataCollectService
.
saveOrUpdate
(
dataCollect
Setting
);
AssertUtils
.
isTrue
(
b
,
"操作失败"
);
AssertUtils
.
isTrue
(
b
,
"操作失败"
);
return
ResultVo
.
success
(
"操作成功"
);
return
ResultVo
.
success
(
"操作成功"
);
}
}
...
...
dataoperation-server/src/main/java/com/zq/dataoperation/dao/DataCollectDao.java
View file @
47109b33
package
com
.
zq
.
dataoperation
.
dao
;
package
com
.
zq
.
dataoperation
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.dataoperation.entity.DataCollect
;
import
com.zq.dataoperation.entity.DataCollect
Setting
;
public
interface
DataCollectDao
extends
BaseMapper
<
DataCollect
>
{
public
interface
DataCollectDao
extends
BaseMapper
<
DataCollect
Setting
>
{
}
}
dataoperation-server/src/main/java/com/zq/dataoperation/dao/DataCollectLogDao.java
→
dataoperation-server/src/main/java/com/zq/dataoperation/dao/DataCollect
Task
LogDao.java
View file @
47109b33
package
com
.
zq
.
dataoperation
.
dao
;
package
com
.
zq
.
dataoperation
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.dataoperation.entity.DataCollectLog
;
import
com.zq.dataoperation.entity.DataCollect
Task
Log
;
public
interface
DataCollect
LogDao
extends
BaseMapper
<
DataCollect
Log
>
{
public
interface
DataCollect
TaskLogDao
extends
BaseMapper
<
DataCollectTask
Log
>
{
}
}
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollect.java
→
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollect
Setting
.java
View file @
47109b33
...
@@ -17,7 +17,7 @@ import java.util.Date;
...
@@ -17,7 +17,7 @@ import java.util.Date;
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
@TableName
(
value
=
"data_collect_setting"
)
@TableName
(
value
=
"data_collect_setting"
)
public
class
DataCollect
{
public
class
DataCollect
Setting
{
/**
/**
* 数据类型
* 数据类型
...
@@ -79,4 +79,3 @@ public class DataCollect {
...
@@ -79,4 +79,3 @@ public class DataCollect {
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
private
Date
updateTime
;
private
Date
updateTime
;
}
}
\ No newline at end of file
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollectLog.java
→
dataoperation-server/src/main/java/com/zq/dataoperation/entity/DataCollect
Task
Log.java
View file @
47109b33
...
@@ -13,7 +13,7 @@ import java.util.Date;
...
@@ -13,7 +13,7 @@ import java.util.Date;
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
@TableName
(
value
=
"data_collect_task_log"
)
@TableName
(
value
=
"data_collect_task_log"
)
public
class
DataCollectLog
{
public
class
DataCollect
Task
Log
{
/**
/**
* 数据汇聚表id
* 数据汇聚表id
...
...
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectLogService.java
View file @
47109b33
...
@@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.PageVo
;
import
com.zq.dataoperation.dao.DataCollectLogDao
;
import
com.zq.dataoperation.dao.DataCollect
Task
LogDao
;
import
com.zq.dataoperation.entity.DataCollectLog
;
import
com.zq.dataoperation.entity.DataCollect
Task
Log
;
import
com.zq.dataoperation.vo.DataCollectLogReq
;
import
com.zq.dataoperation.vo.DataCollectLogReq
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -13,13 +13,13 @@ import org.springframework.stereotype.Service;
...
@@ -13,13 +13,13 @@ import org.springframework.stereotype.Service;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
@Service
@Service
public
class
DataCollectLogService
extends
ServiceImpl
<
DataCollect
LogDao
,
DataCollect
Log
>
{
public
class
DataCollectLogService
extends
ServiceImpl
<
DataCollect
TaskLogDao
,
DataCollectTask
Log
>
{
@Resource
DataCollectLogDao
dataCollectLogDao
;
@Resource
DataCollectTaskLogDao
dataCollectTaskLogDao
;
public
PageVo
<
DataCollectLog
>
getPageDataCollectLog
(
DataCollectLogReq
req
)
{
LambdaQueryWrapper
<
DataCollectLog
>
wrapper
=
new
LambdaQueryWrapper
<>();
return
PagingUtils
.
paging
(
req
,
dataCollectLogDao
,
DataCollectLog
.
class
,
wrapper
);
public
PageVo
<
DataCollectTaskLog
>
getPageDataCollectLog
(
DataCollectLogReq
req
)
{
LambdaQueryWrapper
<
DataCollectTaskLog
>
wrapper
=
new
LambdaQueryWrapper
<>();
return
PagingUtils
.
paging
(
req
,
dataCollectTaskLogDao
,
DataCollectTaskLog
.
class
,
wrapper
);
}
}
}
}
\ No newline at end of file
dataoperation-server/src/main/java/com/zq/dataoperation/service/DataCollectService.java
View file @
47109b33
...
@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.PageVo
;
import
com.zq.dataoperation.dao.DataCollectDao
;
import
com.zq.dataoperation.dao.DataCollectDao
;
import
com.zq.dataoperation.entity.DataCollect
;
import
com.zq.dataoperation.entity.DataCollect
Setting
;
import
com.zq.dataoperation.vo.DataCollectReq
;
import
com.zq.dataoperation.vo.DataCollectReq
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -16,15 +16,18 @@ import javax.annotation.Resource;
...
@@ -16,15 +16,18 @@ import javax.annotation.Resource;
@Slf4j
@Slf4j
@RequiredArgsConstructor
@RequiredArgsConstructor
@Service
@Service
public
class
DataCollectService
extends
ServiceImpl
<
DataCollectDao
,
DataCollect
>
{
public
class
DataCollectService
extends
ServiceImpl
<
DataCollectDao
,
DataCollect
Setting
>
{
@Resource
@Resource
private
DataCollectDao
dataCollectDao
;
private
DataCollectDao
dataCollectDao
;
public
PageVo
<
DataCollect
>
getPageDataCollect
(
DataCollectReq
req
)
{
public
PageVo
<
DataCollect
Setting
>
getPageDataCollect
(
DataCollectReq
req
)
{
LambdaQueryWrapper
<
DataCollect
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
DataCollect
Setting
>
wrapper
=
new
LambdaQueryWrapper
<>();
return
PagingUtils
.
paging
(
req
,
dataCollectDao
,
DataCollect
.
class
,
wrapper
);
return
PagingUtils
.
paging
(
req
,
dataCollectDao
,
DataCollectSetting
.
class
,
wrapper
);
}
}
public
void
getAll
(
String
month
,
String
tableName
){
}
}
}
\ 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