Skip to content

Commit

Permalink
fix 修复定时任务调度查询页面出错
Browse files Browse the repository at this point in the history
  • Loading branch information
wyt1215819315 committed Dec 17, 2023
1 parent 3fadc6b commit f2ccb0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.github</groupId>
<artifactId>autoplan</artifactId>
<version>3.0.1-DEV</version>
<version>3.0.3-DEV</version>
<name>auto_plan</name>
<description>auto_plan project for Spring Boot</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class QuartzJobController {

@RequestMapping("/page")
@ApiOperation("定时任务调度分页查询")
public Page<SysQuartzJob> page(@RequestBody Page<SysQuartzJob> page, @RequestBody SysQuartzJobVo sysQuartzJobVo) {
public Page<SysQuartzJob> page(@RequestBody Page<SysQuartzJob> page, @RequestBody(required = false) SysQuartzJobVo sysQuartzJobVo) {
LambdaQueryWrapper<SysQuartzJob> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(StrUtil.isNotEmpty(sysQuartzJobVo.getJobName()), SysQuartzJob::getJobName, sysQuartzJobVo.getJobName());
lambdaQueryWrapper.eq(sysQuartzJobVo.getStatus() != null, SysQuartzJob::getStatus, sysQuartzJobVo.getStatus());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class QuartzJobLogController {

@RequestMapping("/page")
@ApiOperation("定时任务调度日志表集合查询")
public Page<SysQuartzJobLog> page(@RequestBody Page<SysQuartzJobLog> page, @RequestBody SysQuartzJobVo sysQuartzJobVo) {
public Page<SysQuartzJobLog> page(@RequestBody Page<SysQuartzJobLog> page, @RequestBody(required = false) SysQuartzJobVo sysQuartzJobVo) {
LambdaQueryWrapper<SysQuartzJobLog> lambdaQueryWrapper = new LambdaQueryWrapper<>();
List<String> excludeField = List.of("exceptionInfo");
lambdaQueryWrapper.select(SysQuartzJobLog.class, i -> !excludeField.contains(i.getProperty()));
Expand Down

0 comments on commit f2ccb0a

Please sign in to comment.