cxlaike-example/cxlaike-sso-demo-by-code/.gitignore
@@ -20,7 +20,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-example/cxlaike-sso-demo-by-password/.gitignore
@@ -20,7 +20,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-framework/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-cxlaike/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-infra/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-infra/cxlaike-module-infra-biz/src/main/java/net/hzxzkj/cxlaike/module/infra/controller/admin/job/vo/log/JobLogBaseVO.java
New file @@ -0,0 +1,53 @@ package net.hzxzkj.cxlaike.module.infra.controller.admin.job.vo.log; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import javax.validation.constraints.NotNull; import java.time.LocalDateTime; import static net.hzxzkj.cxlaike.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; /** * 定时任务日志 Base VO,提供给添加、修改、详细的子 VO 使用 * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 */ @Data public class JobLogBaseVO { @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @NotNull(message = "任务编号不能为空") private Long jobId; @Schema(description = "处理器的名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "sysUserSessionTimeoutJob") @NotNull(message = "处理器的名字不能为空") private String handlerName; @Schema(description = "处理器的参数", example = "cxlaike") private String handlerParam; @Schema(description = "第几次执行", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "第几次执行不能为空") private Integer executeIndex; @Schema(description = "开始执行时间", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "开始执行时间不能为空") @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) private LocalDateTime beginTime; @Schema(description = "结束执行时间") @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) private LocalDateTime endTime; @Schema(description = "执行时长", example = "123") private Integer duration; @Schema(description = "任务状态,参见 JobLogStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "任务状态不能为空") private Integer status; @Schema(description = "结果数据", example = "执行成功") private String result; } cxlaike-module-infra/cxlaike-module-infra-biz/src/main/java/net/hzxzkj/cxlaike/module/infra/controller/admin/job/vo/log/JobLogExcelVO.java
New file @@ -0,0 +1,53 @@ package net.hzxzkj.cxlaike.module.infra.controller.admin.job.vo.log; import net.hzxzkj.cxlaike.framework.excel.core.annotations.DictFormat; import net.hzxzkj.cxlaike.framework.excel.core.convert.DictConvert; import net.hzxzkj.cxlaike.module.infra.enums.DictTypeConstants; import com.alibaba.excel.annotation.ExcelProperty; import lombok.Data; import java.time.LocalDateTime; /** * 定时任务 Excel VO * * @author 宵征 */ @Data public class JobLogExcelVO { @ExcelProperty("日志编号") private Long id; @ExcelProperty("任务编号") private Long jobId; @ExcelProperty("处理器的名字") private String handlerName; @ExcelProperty("处理器的参数") private String handlerParam; @ExcelProperty("第几次执行") private Integer executeIndex; @ExcelProperty("开始执行时间") private LocalDateTime beginTime; @ExcelProperty("结束执行时间") private LocalDateTime endTime; @ExcelProperty("执行时长") private Integer duration; @ExcelProperty(value = "任务状态", converter = DictConvert.class) @DictFormat(DictTypeConstants.JOB_STATUS) private Integer status; @ExcelProperty("结果数据") private String result; @ExcelProperty("创建时间") private LocalDateTime createTime; } cxlaike-module-infra/cxlaike-module-infra-biz/src/main/java/net/hzxzkj/cxlaike/module/infra/controller/admin/job/vo/log/JobLogExportReqVO.java
New file @@ -0,0 +1,32 @@ package net.hzxzkj.cxlaike.module.infra.controller.admin.job.vo.log; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; import static net.hzxzkj.cxlaike.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; @Schema(description = "管理后台 - 定时任务 Excel 导出 Request VO,参数和 JobLogPageReqVO 是一致的") @Data public class JobLogExportReqVO { @Schema(description = "任务编号", example = "10") private Long jobId; @Schema(description = "处理器的名字,模糊匹配") private String handlerName; @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @Schema(description = "开始执行时间") private LocalDateTime beginTime; @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @Schema(description = "结束执行时间") private LocalDateTime endTime; @Schema(description = "任务状态,参见 JobLogStatusEnum 枚举") private Integer status; } cxlaike-module-infra/cxlaike-module-infra-biz/src/main/java/net/hzxzkj/cxlaike/module/infra/controller/admin/job/vo/log/JobLogPageReqVO.java
New file @@ -0,0 +1,37 @@ package net.hzxzkj.cxlaike.module.infra.controller.admin.job.vo.log; import net.hzxzkj.cxlaike.framework.common.pojo.PageParam; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; import static net.hzxzkj.cxlaike.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; @Schema(description = "管理后台 - 定时任务日志分页 Request VO") @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) public class JobLogPageReqVO extends PageParam { @Schema(description = "任务编号", example = "10") private Long jobId; @Schema(description = "处理器的名字,模糊匹配") private String handlerName; @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @Schema(description = "开始执行时间") private LocalDateTime beginTime; @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @Schema(description = "结束执行时间") private LocalDateTime endTime; @Schema(description = "任务状态,参见 JobLogStatusEnum 枚举") private Integer status; } cxlaike-module-infra/cxlaike-module-infra-biz/src/main/java/net/hzxzkj/cxlaike/module/infra/controller/admin/job/vo/log/JobLogRespVO.java
New file @@ -0,0 +1,22 @@ package net.hzxzkj.cxlaike.module.infra.controller.admin.job.vo.log; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import java.time.LocalDateTime; @Schema(description = "管理后台 - 定时任务日志 Response VO") @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) public class JobLogRespVO extends JobLogBaseVO { @Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") private Long id; @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) private LocalDateTime createTime; } cxlaike-module-member/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-merchant/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-notify/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME) cxlaike-module-pay/.gitignore
@@ -21,7 +21,6 @@ /tmp/* /.idea/* logs/ log temp/ # Mobile Tools for Java (J2ME)