新增业务逻辑

This commit is contained in:
潘荣晟
2025-09-30 17:35:39 +08:00
parent db23f63cbf
commit e0f1cb58aa
28 changed files with 1635 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
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 TmplInscBsnRelPageReqVO extends PageParam {
@Schema(description = "业务主键", example = "30969")
private Long bsnId;
@Schema(description = "实例主键", example = "10551")
private String inscId;
@Schema(description = "文件内容")
private String cntt;
@Schema(description = "版本号,如v1.0")
private String ver;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
}

View File

@@ -0,0 +1,69 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import com.zt.plat.module.system.api.dept.dto.DeptRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
@Schema(description = "管理后台 - 模板实例与业务中间 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TmplInscBsnRelRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14132")
@ExcelProperty("主键")
private Long id;
@Schema(description = "业务主键", example = "30969")
@ExcelProperty("业务主键")
private Long bsnId;
@Schema(description = "实例主键", example = "10551")
@ExcelProperty("实例主键")
private String inscId;
@Schema(description = "文件内容")
@ExcelProperty("文件内容")
private String cntt;
@Schema(description = "版本号,如v1.0")
@ExcelProperty("版本号,如v1.0")
private String ver;
@Schema(description = "创建时间")
@ExcelProperty("创建时间")
private LocalDateTime createTime;
@Schema(description = "使用部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
private List<String> deptIds;
@Schema(description = "实例字段;这个是实例字段绑定的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
private List<TemplateInstanceDataRespVO> templateInstanceDataRespVOS;
@Schema(description = "实例条款;这个是实例条款绑定的条款;", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
private List<TemplateInstanceItemRespVO> instanceItemRespVOS;
@Schema(description = "使用部门编", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
private List<DeptRespDTO> DeptRespVOS;
@Schema(description = "模版实例名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试分类名称")
@ExcelProperty("模版实例名称")
private String inscName;
@Schema(description = "业务实例字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
@ExcelProperty("业务实例字段")
private List<TmplInscDatBsnRespVO> tmplInscDatBsnRespVOS;
@Schema(description = "业务实例条款", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
@ExcelProperty("业务实例条款")
private List<TmplInscItmBsnRespVO> tmplInscItmBsnRespVOS;
@Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建人")
private String creator;
}

View File

@@ -0,0 +1,27 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
@Schema(description = "管理后台 - 模板实例与业务中间新增/修改 Request VO")
@Data
public class TmplInscBsnRelSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14132")
private Long id;
@Schema(description = "业务主键", example = "30969")
private Long bsnId;
@Schema(description = "实例主键", example = "10551")
private String inscId;
@Schema(description = "文件内容")
private String cntt;
@Schema(description = "版本号,如v1.0")
private String ver;
}

View File

@@ -0,0 +1,30 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import lombok.*;
import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - 业务实例字段值分页 Request VO")
@Data
public class TmplInscDatBsnPageReqVO extends PageParam {
@Schema(description = "关联中间表业务主键", example = "4270")
private String bsnId;
@Schema(description = "字段标识,关联字段库")
private String inscFldId;
@Schema(description = "用户填写的值")
private String fldVal;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] createTime;
}

View File

@@ -0,0 +1,42 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDate;
import java.util.*;
import com.alibaba.excel.annotation.*;
@Schema(description = "管理后台 - 业务实例字段值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TmplInscDatBsnRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "8260")
@ExcelProperty("主键")
private String id;
@Schema(description = "关联中间表业务主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4270")
@ExcelProperty("关联中间表业务主键")
private String bsnId;
@Schema(description = "字段标识,关联实例字段库", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("字段主键,关联实例字段库")
private String inscFldId;
@Schema(description = "用户填写的值")
@ExcelProperty("用户填写的值")
private String fldVal;
@Schema(description = "字段标识")
@ExcelProperty("字段标识")
private String fldKy;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")
private LocalDate createTime;
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
@Schema(description = "管理后台 - 业务实例字段值新增/修改 Request VO")
@Data
public class TmplInscDatBsnSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "8260")
private String id;
@Schema(description = "关联中间表业务主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4270")
@NotEmpty(message = "关联中间表业务主键不能为空")
private String bsnId;
@Schema(description = "字段标识,关联实例字段库", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "字段标识,关联实例字段库不能为空")
private String inscFldId;
@Schema(description = "用户填写的值")
private String fldVal;
}

View File

@@ -0,0 +1,30 @@
package com.zt.plat.module.base.controller.admin.templtp.vo;
import lombok.*;
import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - 业务实例条款值分页 Request VO")
@Data
public class TmplInscItmBsnPageReqVO extends PageParam {
@Schema(description = "关联中间表业务主键", example = "17128")
private String bsnId;
@Schema(description = "实例条款主键,关联实例字段库", example = "15878")
private String instceItmId;
@Schema(description = "用户填写的值")
private String val;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] createTime;
}

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