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
1b4b0861
Commit
1b4b0861
authored
Sep 27, 2023
by
ljb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存返回id、提高日志输出级别
parent
8fbf4e8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
model-server/src/main/java/com.zq.model/controller/QzylController.java
+0
-6
spider-flow-core/src/main/java/com/zq/spiderflow/core/service/SpiderFlowService.java
+5
-2
spider-flow-web/src/main/resources/logback-spring.xml
+3
-1
No files found.
model-server/src/main/java/com.zq.model/controller/QzylController.java
View file @
1b4b0861
...
...
@@ -9,12 +9,6 @@ import org.springframework.web.multipart.MultipartFile;
import
javax.annotation.Resource
;
/**
* @program: instrument-cloud
* @description: 强制医疗数据模型
* @author: xiaoliang
* @create: 2023-05-06 15:13
*/
@RestController
@RequestMapping
(
"/model/qzyl"
)
public
class
QzylController
{
...
...
spider-flow-core/src/main/java/com/zq/spiderflow/core/service/SpiderFlowService.java
View file @
1b4b0861
...
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
...
...
@@ -136,7 +137,7 @@ public class SpiderFlowService extends ServiceImpl<SpiderFlowMapper, SpiderFlow>
}
catch
(
IOException
e
)
{
logger
.
error
(
"保存历史记录出错"
,
e
);
}
return
ResultVo
.
success
();
return
ResultVo
.
success
(
spiderFlow
.
getId
()
);
}
// SpiderFlow byId = sfMapper.selectById(spiderFlow.getId());
...
...
@@ -189,6 +190,7 @@ public class SpiderFlowService extends ServiceImpl<SpiderFlowMapper, SpiderFlow>
public
void
resetExecuteCount
(
String
id
){
sfMapper
.
resetExecuteCount
(
id
);
}
public
void
remove
(
String
id
){
sfMapper
.
deleteById
(
id
);
spiderJobManager
.
remove
(
id
);
...
...
@@ -257,6 +259,7 @@ public class SpiderFlowService extends ServiceImpl<SpiderFlowMapper, SpiderFlow>
public
PageVo
<
SpiderFlow
>
getPageList
(
SpiderFlowVo
vo
)
{
LambdaQueryWrapper
<
SpiderFlow
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
return
PagingUtils
.
paging
(
vo
,
sfMapper
,
queryWrapper
,
SpiderFlow
.
class
);
queryWrapper
.
orderByDesc
(
SpiderFlow:
:
getCreateDate
);
return
PagingUtils
.
paging
(
vo
,
sfMapper
,
queryWrapper
,
SpiderFlow
.
class
);
}
}
spider-flow-web/src/main/resources/logback-spring.xml
View file @
1b4b0861
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<springProperty
scope=
"context"
name=
"LOG_LEVEL"
source=
"logging.level.root"
defaultValue=
"DEBUG"
/>
<logger
name=
"org.apache"
level=
"WARN"
/>
<logger
name=
"com.netflix"
level=
"WARN"
/>
<springProperty
scope=
"context"
name=
"LOG_LEVEL"
source=
"logging.level.root"
defaultValue=
"INFO"
/>
<springProperty
scope=
"context"
name=
"WORKSPACE"
source=
"spider.workspace"
defaultValue=
"/data/spider/logs"
/>
<!-- 控制台输出 -->
<appender
name=
"Stdout"
class=
"ch.qos.logback.core.ConsoleAppender"
>
...
...
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