清理与ztcloud中重复的代码,改为 jar 包方式引用 ztcloud

This commit is contained in:
ranke
2026-02-03 15:23:43 +08:00
parent 47e2529b2b
commit 4d997d9b86
3397 changed files with 158 additions and 260291 deletions

View File

@@ -3,13 +3,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>zt</artifactId>
<artifactId>zt-dsc</artifactId>
<groupId>com.zt.plat</groupId>
<version>${revision}</version>
</parent>
<modules>
<module>zt-module-template-api</module>
<module>zt-module-template-server</module>
<module>zt-module-template-server-app</module>
</modules>
<modelVersion>4.0.0</modelVersion>

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>zt-module-template</artifactId>
<groupId>com.zt.plat</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>zt-module-template-api</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>
暴露给其它模块调用
</description>
<dependencies>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>zt-common</artifactId>
</dependency>
<!-- Web 相关 -->
<dependency>
<groupId>org.springdoc</groupId> <!-- 接口文档:使用最新版本的 Swagger 模型 -->
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- 参数校验 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<optional>true</optional>
</dependency>
<!-- RPC 远程调用相关 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -1,23 +0,0 @@
package com.zt.plat.module.template.enums;
import com.zt.plat.framework.common.exception.ErrorCode;
/**
* Template 错误码枚举类
* Template 系统,使用 1_100_000_000 段
*/
public interface ErrorCodeConstants {
// ========== 模板样例 1_100_000_000 ==========
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_100_000_000, "模板样例不存在");
// ========== 合同 补充编号 ==========
ErrorCode DEMO_CONTRACT_NOT_EXISTS = new ErrorCode(2_100_000_000, "合同不存在");
ErrorCode DEMO_CONTRACT_FILE_URL_NOT_EXISTS = new ErrorCode(2_100_000_001, "合同缺少文件地址,无法发起用印");
ErrorCode DEMO_CONTRACT_IWORK_CREATE_FAILED = new ErrorCode(2_100_000_002, "iWork 用印发起失败:{}");
ErrorCode DEMO_CONTRACT_IWORK_VOID_FAILED = new ErrorCode(2_100_000_003, "iWork 用印作废失败:{}");
// ========== 虚拟化表格 1_100_000_001 ==========
ErrorCode DEMO_VIRTUALIZED_TABLE_NOT_EXISTS = new ErrorCode(1_100_000_001, "虚拟化表格不存在");
}

View File

@@ -24,6 +24,13 @@
<version>${revision}</version>
</dependency>
<!-- Test 测试相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>zt-spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>

File diff suppressed because it is too large Load Diff

View File

@@ -1,59 +0,0 @@
package com.zt.plat.module.template.controller.admin.contract.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
/**
* 发起合同 iWork 用印请求 VO
*/
@Data
public class DemoContractIWorkCreateReqVO {
@Schema(description = "合同 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10086")
@NotNull(message = "合同 ID 不能为空")
private Long contractId;
@Schema(description = "用印申请人iWork 人员 ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "用印申请人不能为空")
private String jbr;
@Schema(description = "用印部门 ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "用印部门不能为空")
private String yybm;
@Schema(description = "用印单位(分部 ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "用印单位不能为空")
private String fb;
@Schema(description = "申请时间,格式 yyyy-MM-dd", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "申请时间不能为空")
private String sqsj;
@Schema(description = "用印去向")
private String yyqx;
@Schema(description = "用印依据附件 URL")
private String yyfkUrl;
@Schema(description = "用印事由或内容摘要", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "用印事由不能为空")
private String yysy;
@Schema(description = "用印事项", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "用印事项不能为空")
private String yysx;
@Schema(description = "业务系统单据编号(用于派生流程标题)")
private String ywxtdjbh;
@Schema(description = "配置的 iWork 凭证 appId为空时使用默认凭证")
private String appId;
@Schema(description = "iWork 操作人用户编号")
private String operatorUserId;
@Schema(description = "是否强制刷新 token")
private Boolean forceRefreshToken;
}

View File

@@ -1,36 +0,0 @@
package com.zt.plat.module.template.controller.admin.contract.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import java.util.Map;
/**
* 作废 / 干预 iWork 用印流程请求 VO
*/
@Data
public class DemoContractIWorkVoidReqVO {
@Schema(description = "流程请求编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "流程请求编号不能为空")
private String requestId;
@Schema(description = "作废原因")
private String reason;
@Schema(description = "额外参数")
private Map<String, Object> extraParams;
@Schema(description = "额外 Form 数据")
private Map<String, String> formExtras;
@Schema(description = "配置的 iWork 凭证 appId为空时使用默认凭证")
private String appId;
@Schema(description = "iWork 操作人用户编号")
private String operatorUserId;
@Schema(description = "是否强制刷新 token")
private Boolean forceRefreshToken;
}

View File

@@ -1,54 +0,0 @@
package com.zt.plat.module.template.controller.admin.contract.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - 合同分页 Request VO")
@Data
public class DemoContractPageReqVO extends PageParam {
@Schema(description = "合同编号")
private String code;
@Schema(description = "合同名称", example = "李四")
private String name;
@Schema(description = "合同状态", example = "1")
private Short status;
@Schema(description = "流程实例ID", example = "7282")
private Long processInstanceId;
@Schema(description = "签订日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] signDate;
@Schema(description = "合同开始日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] startDate;
@Schema(description = "合同结束日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] endDate;
@Schema(description = "合同金额")
private BigDecimal amount;
@Schema(description = "备注", example = "随便")
private String remark;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
@Schema(description = "岗位ID", example = "26779")
private Long postId;
}

View File

@@ -1,84 +0,0 @@
package com.zt.plat.module.template.controller.admin.contract.vo;
import com.zt.plat.module.infra.api.businessfile.dto.BusinessFileWithUrlRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
@Schema(description = "管理后台 - 合同 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DemoContractRespVO {
@Schema(description = "合同ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29614")
@ExcelProperty("合同ID")
private Long id;
@Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同编号")
private String code;
@Schema(description = "合同名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@ExcelProperty("合同名称")
private String name;
@Schema(description = "合同状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
@ExcelProperty("合同状态")
private Short status;
@Schema(description = "流程实例ID", example = "7282")
@ExcelProperty("流程实例ID")
private Long processInstanceId;
@Schema(description = "签订日期")
@ExcelProperty("签订日期")
private LocalDateTime signDate;
@Schema(description = "合同开始日期")
@ExcelProperty("合同开始日期")
private LocalDateTime startDate;
@Schema(description = "合同结束日期")
@ExcelProperty("合同结束日期")
private LocalDateTime endDate;
@Schema(description = "合同金额", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同金额")
private BigDecimal amount;
@Schema(description = "备注", example = "随便")
@ExcelProperty("备注")
private String remark;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")
private LocalDateTime createTime;
@Schema(description = "公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9176")
@ExcelProperty("公司ID")
private Long companyId;
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@ExcelProperty("公司名称")
private String companyName;
@Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23987")
@ExcelProperty("部门ID")
private Long deptId;
@Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT")
@ExcelProperty("部门名称")
private String deptName;
@Schema(description = "岗位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26779")
@ExcelProperty("岗位ID")
private Long postId;
@Schema(description = "附件列表")
private List<BusinessFileWithUrlRespDTO> files;
}

Some files were not shown because too many files have changed in this diff Show More