优化pdd自动任务

This commit is contained in:
启航 2026-01-21 10:45:52 +08:00
parent 1149fb8c1e
commit 5c3ad78293
2 changed files with 6 additions and 6 deletions

View File

@ -53,8 +53,8 @@ public class PddOrderApiService {
LocalDateTime endTime = null;
OShopPullLasttime lasttime = pullLasttimeService.getLasttimeByShop(shopId, "ORDER");
if(lasttime == null){
endTime = LocalDateTime.now();
startTime = endTime.minusDays(1);
startTime = LocalDateTime.now().minusDays(90);//从90天前开始
endTime = startTime.plusHours(24);
}else {
startTime = lasttime.getLasttime().minusHours(1);//取上次结束一个小时前
Duration duration = Duration.between(startTime, LocalDateTime.now());

View File

@ -22,13 +22,13 @@
<el-table v-loading="loading" :data="noticeList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" prop="id" width="100" />
<el-table-column label="任务名称" align="left" prop="taskName" />
<el-table-column label="序号" align="center" prop="id" width="60" />
<el-table-column label="任务名称" align="left" prop="taskName" width="220"/>
<el-table-column label="表达式(-表示不运行)" align="center" prop="cron" />
<el-table-column label="执行函数" align="center" prop="method" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="创建时间" align="center" prop="createTime" width="150">
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
@ -151,7 +151,7 @@ export default {
//
queryParams: {
pageNum: 1,
pageSize: 10,
pageSize: 50,
noticeTitle: undefined,
createBy: undefined,
status: undefined