Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
111c11ef
Commit
111c11ef
authored
Apr 18, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化一下项目结构
parent
d715a013
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
9 deletions
+29
-9
src/main/java/cn/timer/api/bean/schedule/JobAndTrigger.java
+0
-0
src/main/java/cn/timer/api/controller/LoginController.java
+1
-1
src/main/java/cn/timer/api/controller/dzht/DzhtController.java
+1
-1
src/main/java/cn/timer/api/controller/oss/OSSController.java
+1
-1
src/main/java/cn/timer/api/utils/aliyun/AliyunSMS.java
+1
-1
src/main/java/cn/timer/api/utils/aliyun/OSSUtil.java
+3
-1
src/main/java/cn/timer/api/utils/query/QueryUtil.java
+1
-1
src/main/java/cn/timer/api/utils/schedule/RemindUtil.java
+17
-2
src/main/java/cn/timer/api/utils/schedule/TimerUtil.java
+1
-1
src/main/resources/application-dev.yml
+3
-0
No files found.
src/main/java/cn/timer/api/bean/
quartz
/JobAndTrigger.java
→
src/main/java/cn/timer/api/bean/
schedule
/JobAndTrigger.java
View file @
111c11ef
File moved
src/main/java/cn/timer/api/controller/LoginController.java
View file @
111c11ef
...
...
@@ -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
;
...
...
src/main/java/cn/timer/api/controller/dzht/DzhtController.java
View file @
111c11ef
...
...
@@ -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
;
...
...
src/main/java/cn/timer/api/controller/oss/OSSController.java
View file @
111c11ef
...
...
@@ -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
;
...
...
src/main/java/cn/timer/api/utils/AliyunSMS.java
→
src/main/java/cn/timer/api/utils/
aliyun/
AliyunSMS.java
View file @
111c11ef
package
cn
.
timer
.
api
.
utils
;
package
cn
.
timer
.
api
.
utils
.
aliyun
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
src/main/java/cn/timer/api/utils/OSSUtil.java
→
src/main/java/cn/timer/api/utils/
aliyun/
OSSUtil.java
View file @
111c11ef
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.下载文件
...
...
src/main/java/cn/timer/api/utils/QueryUtil.java
→
src/main/java/cn/timer/api/utils/
query/
QueryUtil.java
View file @
111c11ef
package
cn
.
timer
.
api
.
utils
;
package
cn
.
timer
.
api
.
utils
.
query
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
src/main/java/cn/timer/api/utils/RemindUtil.java
→
src/main/java/cn/timer/api/utils/
schedule/
RemindUtil.java
View file @
111c11ef
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"
);
...
...
src/main/java/cn/timer/api/utils/TimerUtil.java
→
src/main/java/cn/timer/api/utils/
schedule/
TimerUtil.java
View file @
111c11ef
package
cn
.
timer
.
api
.
utils
;
package
cn
.
timer
.
api
.
utils
.
schedule
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.cron.CronUtil
;
...
...
src/main/resources/application-dev.yml
View file @
111c11ef
...
...
@@ -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文件映射
...
...
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