This commit is contained in:
zc
2026-06-12 15:07:01 +08:00
parent 7ea86a123c
commit 33540f7d10
321 changed files with 1068 additions and 1068 deletions

View File

@@ -2,13 +2,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>top.wms</groupId>
<artifactId>wms-plugin</artifactId>
<groupId>top.mes</groupId>
<artifactId>mes-plugin</artifactId>
<version>${revision}</version>
</parent>
<artifactId>wms-plugin-schedule</artifactId>
<artifactId>mes-plugin-schedule</artifactId>
<description>任务调度插件</description>
<dependencies>

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.api;
package top.mes.admin.schedule.api;
import com.aizuda.snailjob.common.core.model.Result;
import org.springframework.http.MediaType;
@@ -7,10 +7,10 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.*;
import top.wms.admin.schedule.model.JobPageResult;
import top.wms.admin.schedule.model.req.JobReq;
import top.wms.admin.schedule.model.req.JobStatusReq;
import top.wms.admin.schedule.model.resp.JobResp;
import top.mes.admin.schedule.model.JobPageResult;
import top.mes.admin.schedule.model.req.JobReq;
import top.mes.admin.schedule.model.req.JobStatusReq;
import top.mes.admin.schedule.model.resp.JobResp;
import java.util.List;
import java.util.Set;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.api;
package top.mes.admin.schedule.api;
import com.aizuda.snailjob.common.core.model.Result;
import org.springframework.http.MediaType;
@@ -8,10 +8,10 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import top.wms.admin.schedule.model.JobInstanceLogPageResult;
import top.wms.admin.schedule.model.JobPageResult;
import top.wms.admin.schedule.model.resp.JobInstanceResp;
import top.wms.admin.schedule.model.resp.JobLogResp;
import top.mes.admin.schedule.model.JobInstanceLogPageResult;
import top.mes.admin.schedule.model.JobPageResult;
import top.mes.admin.schedule.model.resp.JobInstanceResp;
import top.mes.admin.schedule.model.resp.JobLogResp;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.api;
package top.mes.admin.schedule.api;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateUtil;
@@ -16,8 +16,8 @@ import com.aizuda.snailjob.common.core.model.Result;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import top.wms.admin.schedule.constant.JobConstants;
import top.wms.admin.schedule.model.JobPageResult;
import top.mes.admin.schedule.constant.JobConstants;
import top.mes.admin.schedule.model.JobPageResult;
import top.continew.starter.cache.redisson.util.RedisUtils;
import top.continew.starter.extension.crud.model.resp.PageResp;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.config;
package top.mes.admin.schedule.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.netty.channel.ChannelOption;
@@ -20,10 +20,10 @@ import org.springframework.web.reactive.function.client.support.WebClientAdapter
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
import reactor.core.publisher.Mono;
import reactor.netty.http.client.HttpClient;
import top.wms.admin.schedule.api.JobApi;
import top.wms.admin.schedule.api.JobBatchApi;
import top.wms.admin.schedule.api.JobClient;
import top.wms.admin.schedule.constant.JobConstants;
import top.mes.admin.schedule.api.JobApi;
import top.mes.admin.schedule.api.JobBatchApi;
import top.mes.admin.schedule.api.JobClient;
import top.mes.admin.schedule.constant.JobConstants;
/**
* HTTP Exchange 配置

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.config;
package top.mes.admin.schedule.config;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.constant;
package top.mes.admin.schedule.constant;
/**
* 任务调度常量

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

View File

@@ -1,8 +1,8 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import top.wms.admin.common.constant.UiConstants;
import top.mes.admin.common.constant.UiConstants;
import top.continew.starter.core.enums.BaseEnum;
/**

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

View File

@@ -1,8 +1,8 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import top.wms.admin.common.constant.UiConstants;
import top.mes.admin.common.constant.UiConstants;
import top.continew.starter.core.enums.BaseEnum;
/**

View File

@@ -1,8 +1,8 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import top.wms.admin.common.constant.UiConstants;
import top.mes.admin.common.constant.UiConstants;
import top.continew.starter.core.enums.BaseEnum;
/**

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.enums;
package top.mes.admin.schedule.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model;
package top.mes.admin.schedule.model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model;
package top.mes.admin.schedule.model;
import com.aizuda.snailjob.common.core.model.Result;
import lombok.Data;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model.query;
package top.mes.admin.schedule.model.query;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model.query;
package top.mes.admin.schedule.model.query;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model.query;
package top.mes.admin.schedule.model.query;
import cn.hutool.core.date.DatePattern;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -7,7 +7,7 @@ import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;
import top.wms.admin.schedule.enums.JobExecuteStatusEnum;
import top.mes.admin.schedule.enums.JobExecuteStatusEnum;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,10 +1,10 @@
package top.wms.admin.schedule.model.query;
package top.mes.admin.schedule.model.query;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import top.wms.admin.schedule.enums.JobStatusEnum;
import top.mes.admin.schedule.enums.JobStatusEnum;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,11 +1,11 @@
package top.wms.admin.schedule.model.req;
package top.mes.admin.schedule.model.req;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import top.wms.admin.schedule.enums.*;
import top.mes.admin.schedule.enums.*;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,9 +1,9 @@
package top.wms.admin.schedule.model.req;
package top.mes.admin.schedule.model.req;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import top.wms.admin.schedule.enums.JobStatusEnum;
import top.mes.admin.schedule.enums.JobStatusEnum;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,4 +1,4 @@
package top.wms.admin.schedule.model.resp;
package top.mes.admin.schedule.model.resp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

View File

@@ -1,9 +1,9 @@
package top.wms.admin.schedule.model.resp;
package top.mes.admin.schedule.model.resp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.wms.admin.schedule.enums.JobExecuteReasonEnum;
import top.wms.admin.schedule.enums.JobExecuteStatusEnum;
import top.mes.admin.schedule.enums.JobExecuteReasonEnum;
import top.mes.admin.schedule.enums.JobExecuteStatusEnum;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,8 +1,8 @@
package top.wms.admin.schedule.model.resp;
package top.mes.admin.schedule.model.resp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.wms.admin.schedule.enums.*;
import top.mes.admin.schedule.enums.*;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -1,11 +1,11 @@
package top.wms.admin.schedule.service;
package top.mes.admin.schedule.service;
import top.wms.admin.schedule.model.JobInstanceLogPageResult;
import top.wms.admin.schedule.model.query.JobInstanceLogQuery;
import top.wms.admin.schedule.model.query.JobInstanceQuery;
import top.wms.admin.schedule.model.query.JobLogQuery;
import top.wms.admin.schedule.model.resp.JobInstanceResp;
import top.wms.admin.schedule.model.resp.JobLogResp;
import top.mes.admin.schedule.model.JobInstanceLogPageResult;
import top.mes.admin.schedule.model.query.JobInstanceLogQuery;
import top.mes.admin.schedule.model.query.JobInstanceQuery;
import top.mes.admin.schedule.model.query.JobLogQuery;
import top.mes.admin.schedule.model.resp.JobInstanceResp;
import top.mes.admin.schedule.model.resp.JobLogResp;
import top.continew.starter.extension.crud.model.resp.PageResp;
import java.util.List;

View File

@@ -1,9 +1,9 @@
package top.wms.admin.schedule.service;
package top.mes.admin.schedule.service;
import top.wms.admin.schedule.model.query.JobQuery;
import top.wms.admin.schedule.model.req.JobReq;
import top.wms.admin.schedule.model.req.JobStatusReq;
import top.wms.admin.schedule.model.resp.JobResp;
import top.mes.admin.schedule.model.query.JobQuery;
import top.mes.admin.schedule.model.req.JobReq;
import top.mes.admin.schedule.model.req.JobStatusReq;
import top.mes.admin.schedule.model.resp.JobResp;
import top.continew.starter.extension.crud.model.resp.PageResp;
import java.util.List;

View File

@@ -1,18 +1,18 @@
package top.wms.admin.schedule.service.impl;
package top.mes.admin.schedule.service.impl;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import top.wms.admin.schedule.api.JobBatchApi;
import top.wms.admin.schedule.api.JobClient;
import top.wms.admin.schedule.model.JobInstanceLogPageResult;
import top.wms.admin.schedule.model.query.JobInstanceLogQuery;
import top.wms.admin.schedule.model.query.JobInstanceQuery;
import top.wms.admin.schedule.model.query.JobLogQuery;
import top.wms.admin.schedule.model.resp.JobInstanceResp;
import top.wms.admin.schedule.model.resp.JobLogResp;
import top.wms.admin.schedule.service.JobLogService;
import top.mes.admin.schedule.api.JobBatchApi;
import top.mes.admin.schedule.api.JobClient;
import top.mes.admin.schedule.model.JobInstanceLogPageResult;
import top.mes.admin.schedule.model.query.JobInstanceLogQuery;
import top.mes.admin.schedule.model.query.JobInstanceQuery;
import top.mes.admin.schedule.model.query.JobLogQuery;
import top.mes.admin.schedule.model.resp.JobInstanceResp;
import top.mes.admin.schedule.model.resp.JobLogResp;
import top.mes.admin.schedule.service.JobLogService;
import top.continew.starter.extension.crud.model.resp.PageResp;
import java.time.LocalDateTime;

View File

@@ -1,14 +1,14 @@
package top.wms.admin.schedule.service.impl;
package top.mes.admin.schedule.service.impl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import top.wms.admin.schedule.api.JobApi;
import top.wms.admin.schedule.api.JobClient;
import top.wms.admin.schedule.model.query.JobQuery;
import top.wms.admin.schedule.model.req.JobReq;
import top.wms.admin.schedule.model.req.JobStatusReq;
import top.wms.admin.schedule.model.resp.JobResp;
import top.wms.admin.schedule.service.JobService;
import top.mes.admin.schedule.api.JobApi;
import top.mes.admin.schedule.api.JobClient;
import top.mes.admin.schedule.model.query.JobQuery;
import top.mes.admin.schedule.model.req.JobReq;
import top.mes.admin.schedule.model.req.JobStatusReq;
import top.mes.admin.schedule.model.resp.JobResp;
import top.mes.admin.schedule.service.JobService;
import top.continew.starter.extension.crud.model.resp.PageResp;
import java.util.Collections;