init
This commit is contained in:
80
ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
Normal file
80
ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package com.ruoyi.quartz.task;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.ibs.draw.service.DrawGridCustService;
|
||||
import com.ruoyi.ibs.grid.service.RegionGridUtilsService;
|
||||
import com.ruoyi.ibs.list.service.impl.SysCustAppointSupplementServiceImpl;
|
||||
import com.ruoyi.ibs.task.service.WorkRecordService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 定时任务调度测试
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component("ryTask")
|
||||
public class RyTask
|
||||
{
|
||||
// @Resource
|
||||
// private RegionGridUtilsService regionGridUtilsService;
|
||||
//
|
||||
// @Resource
|
||||
// private DrawGridCustService drawGridCustService;
|
||||
//
|
||||
// @Resource
|
||||
// SysCustAppointSupplementServiceImpl sysCustAppointSupplementService;
|
||||
//
|
||||
// @Resource
|
||||
// private WorkRecordService workRecordService;
|
||||
|
||||
|
||||
public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
|
||||
{
|
||||
System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i));
|
||||
}
|
||||
|
||||
public void ryParams(String params)
|
||||
{
|
||||
System.out.println("执行有参方法:" + params);
|
||||
}
|
||||
|
||||
public void ryNoParams()
|
||||
{
|
||||
System.out.println("执行无参方法");
|
||||
}
|
||||
|
||||
// public void loadRegionCustCount(String params) {
|
||||
// Long[] array = Arrays.stream(params.split(",")).map(String::trim).map(Long::parseLong).toArray(Long[]::new);
|
||||
// regionGridUtilsService.loadRegionCustCount(array);
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// public void custAppointSupplement() {
|
||||
// sysCustAppointSupplementService.custAppointSupplement(new ArrayList<>());
|
||||
// }
|
||||
//
|
||||
// public void updateDrawShapeCust() {
|
||||
// drawGridCustService.updateShapeList();
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 定时根据频率类型生成工作清单
|
||||
// * @param frequencyType
|
||||
// */
|
||||
// public void generateWorkRecordScheduled(String frequencyType) {
|
||||
// workRecordService.generateWorkRecordScheduled(frequencyType);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 定时设置过期工作清单
|
||||
// */
|
||||
// public void setOverdue() {
|
||||
// workRecordService.setOverdue();
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user