Commit 111c11ef by 邓实川 Committed by chenzg

优化一下项目结构

parent d715a013
......@@ -39,11 +39,11 @@ import cn.timer.api.dao.qyzx.QyzxEmpLoginMapper;
import cn.timer.api.dao.zzgl.ZzglBmgwMMapper;
import cn.timer.api.dto.login.QysDto;
import cn.timer.api.dto.qyzx.EntRegisterDto;
import cn.timer.api.utils.AliyunSMS;
import cn.timer.api.utils.Md5;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.UserIp;
import cn.timer.api.utils.aliyun.AliyunSMS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......
......@@ -45,9 +45,9 @@ import cn.timer.api.controller.dzht.cn.tign.hz.constant.ConfigConstant;
import cn.timer.api.controller.dzht.cn.tign.hz.enums.RequestType;
import cn.timer.api.controller.dzht.cn.tign.hz.exception.DefineException;
import cn.timer.api.dto.dzht.DzhtRzDto;
import cn.timer.api.utils.QueryUtil;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.query.QueryUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......
......@@ -14,9 +14,9 @@ import org.springframework.web.multipart.MultipartFile;
import cn.timer.api.config.annotation.CurrentUser;
import cn.timer.api.config.annotation.UserBean;
import cn.timer.api.utils.OSSUtil;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.aliyun.OSSUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......
package cn.timer.api.utils;
package cn.timer.api.utils.aliyun;
import org.springframework.web.bind.annotation.RequestParam;
......
package cn.timer.api.utils;
package cn.timer.api.utils.aliyun;
import java.io.BufferedReader;
import java.io.File;
......@@ -21,6 +21,8 @@ import com.aliyun.oss.model.OSSObject;
import com.aliyun.oss.model.PutObjectRequest;
import cn.hutool.core.util.StrUtil;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
/**
* OSS接口操作示例 1.创建空间 2.上传文件 3.下载文件
......
package cn.timer.api.utils;
package cn.timer.api.utils.query;
import java.util.HashMap;
import java.util.Map;
......
package cn.timer.api.utils;
package cn.timer.api.utils.schedule;
import java.text.SimpleDateFormat;
import java.util.Date;
......@@ -7,6 +7,8 @@ import java.util.List;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.scheduling.support.CronTrigger;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
......@@ -15,6 +17,7 @@ import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.timer.api.bean.htzz.HtzzAdminZzda;
import cn.timer.api.bean.htzz.HtzzAssoHtgx;
import cn.timer.api.utils.aliyun.AliyunSMS;
/**
* 记录当前时间循环输出 遍历合同提醒关系表,每天固定时间(8点)查询是否提醒
......@@ -25,7 +28,19 @@ import cn.timer.api.bean.htzz.HtzzAssoHtgx;
@Component
@Lazy(false)
@EnableScheduling
public class RemindUtil {
public class RemindUtil extends SpringDynamicCronTask{
@Override
public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
taskRegistrar.addTriggerTask(() -> {
//TODO 任务逻辑
reportCurrentTime();
}, triggerContext -> {
CronTrigger cronTrigger = new CronTrigger(CronUtil.getCron()); //TODO
return cronTrigger.nextExecutionTime(triggerContext);
});
}
private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
......
package cn.timer.api.utils;
package cn.timer.api.utils.schedule;
import cn.hutool.core.date.DateTime;
import cn.hutool.cron.CronUtil;
......
......@@ -88,6 +88,8 @@ spring:
######### Spring boot应用健康监控
management:
server:
port: 9090 # 如果设置端口号为-1,则隐藏监控短点
endpoints:
web:
exposure:
......@@ -107,6 +109,7 @@ info:
git:
mode: full
##############################
# mybatis-plus
mybatis-plus:
mapper-locations: classpath:mapping/**/*Mapper.xml # dao到xml文件映射
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment