Sfoglia il codice sorgente

排程设置、定时任务查询接口

丁治程 2 mesi fa
parent
commit
c13a7f243f

+ 2 - 2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/quartz/controller/QuartzJobController.java

@@ -66,7 +66,7 @@ public class QuartzJobController {
 	public Result<?> queryPageList(QuartzJob quartzJob, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
 			@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
 		QueryWrapper<QuartzJob> queryWrapper = QueryGenerator.initQueryWrapper(quartzJob, req.getParameterMap());
-		queryWrapper.eq("parameter","day").or().eq("parameter","month").or().eq("parameter","year");
+		//queryWrapper.eq("parameter","day").or().eq("parameter","month").or().eq("parameter","year");
 		Page<QuartzJob> page = new Page<QuartzJob>(pageNo, pageSize);
 		IPage<QuartzJob> pageList = quartzJobService.page(page, queryWrapper);
         return Result.ok(pageList);
@@ -83,7 +83,7 @@ public class QuartzJobController {
 	public Result<?> queryPageList1(QuartzJob quartzJob, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
 								   @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
 		QueryWrapper<QuartzJob> queryWrapper = QueryGenerator.initQueryWrapper(quartzJob, req.getParameterMap());
-		//queryWrapper.eq("parameter","day").or().eq("parameter","month").or().eq("parameter","year");
+		queryWrapper.eq("parameter","day").or().eq("parameter","month").or().eq("parameter","year");
 		Page<QuartzJob> page = new Page<QuartzJob>(pageNo, pageSize);
 		IPage<QuartzJob> pageList = quartzJobService.page(page, queryWrapper);
 		return Result.ok(pageList);