mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 09:35:29 +08:00
h5 动态表单
This commit is contained in:
parent
ddfd697ff9
commit
22efab39b0
@ -12,10 +12,11 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<!-- <module>ruoyi-demo</module>-->
|
<!-- <module>ruoyi-demo</module>-->
|
||||||
<module>ruoyi-generator</module>
|
<module>ruoyi-generator</module>
|
||||||
<!-- <module>ruoyi-job</module>-->
|
<module>ruoyi-job</module>
|
||||||
<module>ruoyi-system</module>
|
<module>ruoyi-system</module>
|
||||||
<module>ruoyi-system-saas</module>
|
<module>ruoyi-system-saas</module>
|
||||||
<!-- <module>ruoyi-workflow</module>-->
|
<module>ruoyi-workflow</module>
|
||||||
|
<module>ruoyi-form</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<artifactId>ruoyi-modules</artifactId>
|
<artifactId>ruoyi-modules</artifactId>
|
||||||
|
|||||||
42
ruoyi-modules/ruoyi-form/.gitignore
vendored
Normal file
42
ruoyi-modules/ruoyi-form/.gitignore
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
target/
|
||||||
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
!**/src/main/**/target/
|
||||||
|
!**/src/test/**/target/
|
||||||
|
|
||||||
|
.idea/modules.xml
|
||||||
|
.idea/jarRepositories.xml
|
||||||
|
.idea/compiler.xml
|
||||||
|
.idea/libraries/
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
.flattened-pom.xml
|
||||||
|
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
build/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
**/logs/
|
||||||
|
.idea/
|
||||||
|
**/*.iml
|
||||||
|
|
||||||
|
nacos/
|
||||||
|
logs/
|
||||||
|
temp/
|
||||||
47
ruoyi-modules/ruoyi-form/README.md
Normal file
47
ruoyi-modules/ruoyi-form/README.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# 动态表单
|
||||||
|
|
||||||
|
核心点:表单支持版本管理、表单修改后历史表单内容同步修改吗、表单的页面样式有什么要求、打印的按钮在哪
|
||||||
|
|
||||||
|
## 问题点
|
||||||
|
|
||||||
|
表单支持版本管理?表单修改后,会新增一条记录、并且版本号会+1,避免覆盖历史表单模板;
|
||||||
|
表单的要求?:数字、字符串、时间、多选、单选、宽度、自定义必填提示词、字段备注 等等表单相关的
|
||||||
|
打印的按钮在哪?有公共的报表打印平台吗?是在前端打印,还是后端打印,后端的话不支持复杂的样式渲染。
|
||||||
|
模板是否有暂存和发布状态?:如果每次更改
|
||||||
|
表单中的保存后的数据不存在表单系统里面存在业务数据中?
|
||||||
|
|
||||||
|
## 开发接口
|
||||||
|
[FormController.http](docs/http/FormController.http) <br>
|
||||||
|
[FormFieldDictController.http](docs/http/FormFieldDictController.http)<br>
|
||||||
|
[FormTemplateController.http](docs/http/FormTemplateController.http)<br>
|
||||||
|
[FormTemplateFieldController.http](docs/http/FormTemplateFieldController.http)<br>
|
||||||
|
|
||||||
|
## 表结构
|
||||||
|
[init_table.sql](docs/init_table.sql)
|
||||||
|
|
||||||
|
# 字段下拉选项
|
||||||
|
|
||||||
|
## 需求
|
||||||
|
|
||||||
|
有一个字段选项配置,主要分为3个核心模块,配置的字段是给表单用的,设计出合适的mysql表结构,满足需求。其实和数据字典很像
|
||||||
|
|
||||||
|
### 往来单位
|
||||||
|
|
||||||
|
里面包含2个子配置模块:
|
||||||
|
单位类型设置 包含属性:单位/个人名称 单位/个人编码 排序 显示状态;
|
||||||
|
往来单位设置 包含属性:单位/个人名称 单位/个人简称 单位/个人编码 单位类型 所在地区 证件类型 证件号码 排序 显示状态;
|
||||||
|
|
||||||
|
### 费用科目
|
||||||
|
|
||||||
|
里面包含3个子配置模块:
|
||||||
|
税率设置 包含属性:税率名称 税率编码 税率 排序 显示状态;
|
||||||
|
费用分类设置 包含属性:费用分类名称 费用分类编码 排序 显示状态;
|
||||||
|
费用科目设置 包含属性:费用科目 费用科目编码 费用分类 企业税率 个人税率 排序 显示状态;
|
||||||
|
|
||||||
|
### 仓库管理
|
||||||
|
|
||||||
|
里面包含1个配置模块:
|
||||||
|
包含属性:仓库名称、仓库名称编码、仓库地址、排序、显示状态
|
||||||
|
|
||||||
|
## 开发
|
||||||
|
[init_table.sql](docs/init_table.sql)
|
||||||
33
ruoyi-modules/ruoyi-form/booksflow-form-api/pom.xml
Normal file
33
ruoyi-modules/ruoyi-form/booksflow-form-api/pom.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>ruoyi-form</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>booksflow-form-api</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.validation</groupId>
|
||||||
|
<artifactId>jakarta.validation-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.swagger</groupId>
|
||||||
|
<artifactId>swagger-annotations</artifactId>
|
||||||
|
<version>1.5.13</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
|
<artifactId>jackson-annotations</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.constant;
|
||||||
|
|
||||||
|
public interface BaseConstant {
|
||||||
|
/**
|
||||||
|
* 微服务上下文路径
|
||||||
|
*/
|
||||||
|
String CONTEXT_PATH = "/booksflow/form/v1.0/";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微服务名称
|
||||||
|
*/
|
||||||
|
String ServiceName = "booksflow-form-service";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板租户ID
|
||||||
|
*/
|
||||||
|
String TplTenantId = "-1";
|
||||||
|
}
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.constant;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum FormFieldDictType {
|
||||||
|
|
||||||
|
unitContact("单位类型"),
|
||||||
|
contactUnit("往来单位"),
|
||||||
|
expense("税率"),
|
||||||
|
expenseCategory("办公费用"),
|
||||||
|
expenseSubject("费用科目"),
|
||||||
|
warehouse("仓库管理");
|
||||||
|
|
||||||
|
private final String desc;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有枚举返map
|
||||||
|
* @return map
|
||||||
|
*/
|
||||||
|
public static Map<String, String> getMap() {
|
||||||
|
FormFieldDictType[] values = FormFieldDictType.values();
|
||||||
|
|
||||||
|
Map<String, String> map = new HashMap<>();
|
||||||
|
for (int i = 0; i < values.length; i++) {
|
||||||
|
map.put(values[i].name(), values[i].desc);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getByName
|
||||||
|
* @param name name
|
||||||
|
* @return FormFieldDictType
|
||||||
|
*/
|
||||||
|
public static FormFieldDictType getByName(String name) {
|
||||||
|
for (FormFieldDictType value : FormFieldDictType.values()) {
|
||||||
|
if (value.name().equals(name)) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.constant;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum FormTemplateFieldType {
|
||||||
|
|
||||||
|
group("字段分组"),
|
||||||
|
table("表格分组");
|
||||||
|
private final String desc;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有枚举返map
|
||||||
|
*
|
||||||
|
* @return map
|
||||||
|
*/
|
||||||
|
public static Map<String, String> getMap() {
|
||||||
|
FormTemplateFieldType[] values = FormTemplateFieldType.values();
|
||||||
|
|
||||||
|
Map<String, String> map = new HashMap<>();
|
||||||
|
for (int i = 0; i < values.length; i++) {
|
||||||
|
map.put(values[i].name(), values[i].desc);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getByName
|
||||||
|
*
|
||||||
|
* @param name name
|
||||||
|
* @return FormFieldDictType
|
||||||
|
*/
|
||||||
|
public static FormTemplateFieldType getByName(String name) {
|
||||||
|
for (FormTemplateFieldType value : FormTemplateFieldType.values()) {
|
||||||
|
if (value.name().equals(name)) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class DictCodesDTO {
|
||||||
|
private String configType;
|
||||||
|
private Set<String> codes;
|
||||||
|
}
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单字典DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单字典DTO")
|
||||||
|
public class FormDictDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键ID")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@NotBlank(message = "名称不能为空")
|
||||||
|
@ApiModelProperty(value = "名称", required = true)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@NotBlank(message = "编码不能为空")
|
||||||
|
@ApiModelProperty(value = "编码", required = true)
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "备注", required = false)
|
||||||
|
private String remarks;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,177 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段配置DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "字段配置DTO", discriminator = "configType")
|
||||||
|
public class FormFieldDictDTO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键ID")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@NotBlank(message = "配置类型不能为空")
|
||||||
|
@ApiModelProperty(value = "配置类型", required = true, example = "contactUnit")
|
||||||
|
private String configType;
|
||||||
|
|
||||||
|
@NotBlank(message = "配置名称不能为空")
|
||||||
|
@ApiModelProperty(value = "配置名称", required = true)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@NotBlank(message = "编码不能为空")
|
||||||
|
@ApiModelProperty(value = "编码", required = true)
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "父级ID")
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "其他字段(JSON格式)")
|
||||||
|
@JsonTypeInfo(
|
||||||
|
use = JsonTypeInfo.Id.NAME,
|
||||||
|
include = JsonTypeInfo.As.EXTERNAL_PROPERTY,
|
||||||
|
property = "configType",
|
||||||
|
defaultImpl = FormFieldDictDTO.OtherFields.class
|
||||||
|
)//类型:单位类型、往来单位、税率 、费用分类、费用科目、仓库管理
|
||||||
|
@JsonSubTypes({
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.OtherFields.class, name = "unitContact"),
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.ContactUnitDTO.class, name = "contactUnit"),
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.TaxRateDTO.class, name = "expense"),
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.OtherFields.class, name = "expenseCategory"),
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.ExpenseSubjectDTO.class, name = "expenseSubject"),
|
||||||
|
@JsonSubTypes.Type(value = FormFieldDictDTO.WarehouseDTO.class, name = "warehouse"),
|
||||||
|
})
|
||||||
|
private OtherFields otherFields;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "排序", required = true)
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
@NotNull(message = "状态不能为空")
|
||||||
|
@ApiModelProperty(value = "状态(1:启用,0:禁用)", required = true)
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
private LocalDateTime createdTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
private LocalDateTime updatedTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扩展其他属性
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class OtherFields {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 往来单位设置DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "往来单位设置DTO")
|
||||||
|
public static class ContactUnitDTO extends OtherFields {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "单位/个人简称")
|
||||||
|
@NotBlank(message = "单位/个人简称不能为空")
|
||||||
|
private String shortName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "所在地区")
|
||||||
|
private String region;
|
||||||
|
@ApiModelProperty(value = "所在地区adcode")
|
||||||
|
private String adcode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "证件类型:社会信用代码-socialCreditCode、身份证-idCard、营业执照-businessLicense、组织机构代码-organizationCode")
|
||||||
|
private String idTypeId;
|
||||||
|
@ApiModelProperty(value = "证件类型title")
|
||||||
|
private String idTypeTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "证件号码")
|
||||||
|
private String idNumber;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "联系人")
|
||||||
|
private String contact;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "联系电话")
|
||||||
|
private String phoneNumber;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "开户行名称")
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "开户行账号")
|
||||||
|
private String bankAccountNumber;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "开户行名称")
|
||||||
|
private String bankBranchName;
|
||||||
|
|
||||||
|
// @ApiModelProperty(value = "社会信用代码")
|
||||||
|
// private String socialCreditCode;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 税率设置DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "税率设置DTO")
|
||||||
|
public static class TaxRateDTO extends OtherFields {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "税率")
|
||||||
|
private Double rate;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 费用科目设置DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "费用科目设置DTO")
|
||||||
|
public static class ExpenseSubjectDTO extends OtherFields {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "费用分类")
|
||||||
|
private Long categoryId;
|
||||||
|
@ApiModelProperty(value = "费用分类Code")
|
||||||
|
private String categoryCode;
|
||||||
|
@ApiModelProperty(value = "费用分类title")
|
||||||
|
private String categoryTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "个人税率")
|
||||||
|
private Long personalTaxRateId;
|
||||||
|
@ApiModelProperty(value = "个人税率Code")
|
||||||
|
private String personalTaxRateCode;
|
||||||
|
@ApiModelProperty(value = "个人税率title")
|
||||||
|
private String personalTaxRateTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "企业税率")
|
||||||
|
private Long corporateTaxRateId;
|
||||||
|
@ApiModelProperty(value = "企业税率Code")
|
||||||
|
private String corporateTaxRateCode;
|
||||||
|
@ApiModelProperty(value = "企业税率title")
|
||||||
|
private String corporateTaxRateTitle;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓库管理DTO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "仓库管理DTO")
|
||||||
|
public static class WarehouseDTO extends OtherFields {
|
||||||
|
@ApiModelProperty(value = "仓库地址")
|
||||||
|
private String address;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class FormFieldDictQ {
|
||||||
|
@ApiModelProperty(value = "是否树形结构")
|
||||||
|
private Boolean tree = false;
|
||||||
|
@ApiModelProperty(value = "父类id")
|
||||||
|
private Long parentId;
|
||||||
|
@ApiModelProperty(value = "查询所有状态,true查询所有状态,false|null 查询显示状态的字典项")
|
||||||
|
private Boolean allStatus;
|
||||||
|
@ApiModelProperty(value = "父类code")
|
||||||
|
private String parentCode;
|
||||||
|
@ApiModelProperty(value = "父类codes")
|
||||||
|
private Set<String> parentCodes;
|
||||||
|
@ApiModelProperty(value = "层级")
|
||||||
|
private Integer level;
|
||||||
|
}
|
||||||
@ -0,0 +1,126 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单打印配置DTO
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单打印配置DTO")
|
||||||
|
public class FormPrintConfigDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联的表单ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "关联的表单ID")
|
||||||
|
@NotNull(message = "关联的表单ID不能为空")
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主标题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "主标题")
|
||||||
|
@NotBlank(message = "主标题不能为空")
|
||||||
|
private String mainTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 副标题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "副标题")
|
||||||
|
private String subTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示格式:简洁、标准、完整
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "显示格式:简洁、标准、完整")
|
||||||
|
private String displayFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单据编号前缀(如CG-)
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "单据编号前缀(如CG-)")
|
||||||
|
private String documentNoPrefix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否显示单据编号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否显示单据编号")
|
||||||
|
private Boolean showDocumentNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打印日期格式
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "打印日期格式")
|
||||||
|
private String printDateFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否显示打印日期
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否显示打印日期")
|
||||||
|
private Boolean showPrintDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否显示页码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否显示页码")
|
||||||
|
private Boolean showPageNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列宽模式:固定宽度或自适应
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "列宽模式:固定宽度或自适应")
|
||||||
|
private String columnWidthMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表格样式:有边框或无边框
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "表格样式:有边框或无边框")
|
||||||
|
private String tableStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据行高
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "数据行高")
|
||||||
|
private String rowHeight;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "打印配置模式(1、默认模式;2、模板打印模式)")
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打印字段
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "打印字段")
|
||||||
|
private List<PrintField> printFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扩展属性(JSON格式)
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "扩展属性(JSON格式)")
|
||||||
|
private String ext;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public static class PrintField {
|
||||||
|
private String code;
|
||||||
|
private String showTitle;
|
||||||
|
private Integer order;
|
||||||
|
private Boolean line;
|
||||||
|
private Boolean print;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单打印配置DTO
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单打印配置DTO")
|
||||||
|
public class FormPrintConfigModeDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "formId")
|
||||||
|
@NotNull
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "打印配置模式(1、默认模式;2、模板打印模式)")
|
||||||
|
@NotNull
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单打印配置DTO
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单打印模板上传")
|
||||||
|
public class FormPrintConfigUploadDTO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "表单打印配置ID")
|
||||||
|
@NotNull(message = "formId不能为空")
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileName")
|
||||||
|
@NotNull(message = "fileName不能为空")
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileUrl")
|
||||||
|
@NotNull(message = "fileUrl不能为空")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileSize")
|
||||||
|
@NotNull(message = "fileSize不能为空")
|
||||||
|
private Integer fileSize;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileType")
|
||||||
|
@NotNull(message = "fileType不能为空")
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单打印配置DTO
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单打印模板上传")
|
||||||
|
public class FormPrintDTO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "表单ID")
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "表单code")
|
||||||
|
private String formCode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "表单ID")
|
||||||
|
@NotEmpty(message = "数据")
|
||||||
|
private Map<String, Object> data;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,168 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单定义DTO
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Api("表单模板数据传输对象")
|
||||||
|
public class FormTemplateDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单ID
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
@ApiModelProperty(value = "表单ID", required = true, example = "1001")
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单项列表
|
||||||
|
*/
|
||||||
|
@NotEmpty(message = "表单项列表不能为空")
|
||||||
|
@Valid
|
||||||
|
@ApiModelProperty(value = "表单项列表", required = true)
|
||||||
|
private List<FieldDTO> templateFields;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单项DTO
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ApiModel(description = "表单项数据传输对象")
|
||||||
|
public static class FieldDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段编码")
|
||||||
|
@NotNull
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* show标题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "显示标题")
|
||||||
|
private String showTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库中关联字段
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "数据库关联字段")
|
||||||
|
private String dbField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型:group、table、input、inputNumber、radio、rate、switch、select、date、button、checkbox
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段控件类型")
|
||||||
|
@NotNull(message = "字段控件类型不能为空:group、table、input、inputNumber、radio、rate、switch、select、date、button、checkbox")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否必填", example = "true")
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否显示", example = "true")
|
||||||
|
private Boolean show;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "字典code")
|
||||||
|
private String dcode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "占行数量(0-不占一行,其他-占的行数)")
|
||||||
|
private Integer line;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 固定(0不固定,1固定)
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否固定字段", example = "false")
|
||||||
|
@Deprecated
|
||||||
|
private Boolean fixed;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "格式约束(int、double、str、boolean、date、select(下拉选择)")
|
||||||
|
private String fmtConstraint;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否可编辑")
|
||||||
|
private Boolean edit;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "排序", example = "999")
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示关")
|
||||||
|
private String cascadeClose;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示开")
|
||||||
|
private String cascadeOpen;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可编辑按钮禁用")
|
||||||
|
private Boolean editDisabled;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可编辑按钮禁用提示")
|
||||||
|
private String editDisabledMsg;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示")
|
||||||
|
private String showCascade;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扩展、暂时没用
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "扩展")
|
||||||
|
private ExtDTO ext;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "子项")
|
||||||
|
private List<FieldDTO> children;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证规则DTO
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ApiModel(description = "扩展验证规则数据传输对象")
|
||||||
|
public static class ExtDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
// /**
|
||||||
|
// * 提示信息
|
||||||
|
// */
|
||||||
|
// @ApiModelProperty(value = "提示信息")
|
||||||
|
// private String hint;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 正则表达式
|
||||||
|
// */
|
||||||
|
// @ApiModelProperty(value = "正则表达式验证规则")
|
||||||
|
// private String pattern;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* true时隐藏分组名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否隐藏分组名称")
|
||||||
|
private Boolean disabledShowTitle;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,107 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改日志记录DTO
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "修改日志记录DTO")
|
||||||
|
public class ModifyLogRecordDTO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 实体类型,如:FormFieldDict, FormTemplate, FormTemplateField等
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "实体类型")
|
||||||
|
private String entityType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 实体ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "实体ID")
|
||||||
|
@NotBlank(message = "实体ID不能为空")
|
||||||
|
private String entityId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* formCode
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "formCode")
|
||||||
|
private String formCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "描述")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 字段中文名
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段中文名")
|
||||||
|
private String fieldChineseName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 字段英文名
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "字段英文名")
|
||||||
|
private String fieldEnglishName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 修改前值
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "修改前值")
|
||||||
|
private String oldValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 修改后值
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "修改后值")
|
||||||
|
private String newValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 操作人ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "操作人ID")
|
||||||
|
private Long operator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 操作人ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "操作人姓名")
|
||||||
|
private String operatorName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 操作时间
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "操作时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date operationTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库列说明:
|
||||||
|
* 服务名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "服务名称")
|
||||||
|
private String serviceName;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用的表单字典VO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(description = "表单字典VO")
|
||||||
|
public class FormDictVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remarks;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否删除(0:否,1:是)")
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "字典项列表")
|
||||||
|
private List<FormFieldDictVO> items;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class FormFieldDictDifyVo {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class FormFieldDictVO {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String configType;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
private String otherFields;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
private List<FormFieldDictVO> children;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class FormPrintConfigVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
private String mainTitle;
|
||||||
|
|
||||||
|
private String subTitle;
|
||||||
|
|
||||||
|
private String displayFormat;
|
||||||
|
|
||||||
|
private String documentNoPrefix;
|
||||||
|
|
||||||
|
private Boolean showDocumentNo;
|
||||||
|
|
||||||
|
private String printDateFormat;
|
||||||
|
|
||||||
|
private Boolean showPrintDate;
|
||||||
|
|
||||||
|
private Boolean showPageNumber;
|
||||||
|
|
||||||
|
private String columnWidthMode;
|
||||||
|
|
||||||
|
private String tableStyle;
|
||||||
|
|
||||||
|
private String rowHeight;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "打印配置模式(1、默认模式;2、模板打印模式)")
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileName")
|
||||||
|
private String fileName;
|
||||||
|
@ApiModelProperty(value = "fileUrl")
|
||||||
|
private String fileUrl;
|
||||||
|
@ApiModelProperty(value = "fileSize")
|
||||||
|
private Integer fileSize;
|
||||||
|
@ApiModelProperty(value = "fileType")
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileUrlAi")
|
||||||
|
private String fileUrlAi;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "fileWpsId")
|
||||||
|
private String fileWpsId;
|
||||||
|
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
private String printFields;
|
||||||
|
|
||||||
|
private String ext;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,163 @@
|
|||||||
|
package com.pcloud.booksflow.form.api.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class FormTemplateVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 表单名称
|
||||||
|
*/
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单名称
|
||||||
|
*/
|
||||||
|
private String formName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单名称
|
||||||
|
*/
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单项列表
|
||||||
|
*/
|
||||||
|
private List<FieldVO> templateFields;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单项VO
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public static class FieldVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private Long templateId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编码
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* show标题
|
||||||
|
*/
|
||||||
|
private String showTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库中关联字段
|
||||||
|
*/
|
||||||
|
private String dbField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否显示
|
||||||
|
*/
|
||||||
|
private Boolean show;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "字典code")
|
||||||
|
private String dcode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "占行数量(0-不占一行,1、2、3-占的行数)")
|
||||||
|
private Integer line;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
/**
|
||||||
|
* 固定(0不固定,1固定)
|
||||||
|
*/
|
||||||
|
private Boolean fixed;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "格式约束")
|
||||||
|
private String fmtConstraint;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否可编辑")
|
||||||
|
private Boolean edit;
|
||||||
|
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示关")
|
||||||
|
private String cascadeClose;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示开")
|
||||||
|
private String cascadeOpen;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可编辑按钮禁用")
|
||||||
|
private Boolean editDisabled;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可编辑按钮禁用提示")
|
||||||
|
private String editDisabledMsg;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "级联显示")
|
||||||
|
private String showCascade;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证规则
|
||||||
|
*/
|
||||||
|
private ExtVO ext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子项
|
||||||
|
*/
|
||||||
|
private List<FieldVO> children;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证规则VO
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public static class ExtVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 提示信息
|
||||||
|
// */
|
||||||
|
// private String hint;
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 正则表达式
|
||||||
|
// */
|
||||||
|
// private String pattern;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否隐藏分组名称")
|
||||||
|
private Boolean disabledShowTitle;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
31
ruoyi-modules/ruoyi-form/booksflow-form-feign/pom.xml
Normal file
31
ruoyi-modules/ruoyi-form/booksflow-form-feign/pom.xml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>ruoyi-form</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>booksflow-form-feign</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>booksflow-form-api</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,87 @@
|
|||||||
|
package com.pcloud.booksflow.form.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictDifyVo;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表单字段配置 Feign 客户端
|
||||||
|
*/
|
||||||
|
@Api(tags = "openfeign-字典项-有租户")
|
||||||
|
@FeignClient(name = BaseConstant.ServiceName, path = BaseConstant.CONTEXT_PATH + "formService/field-dict")
|
||||||
|
public interface FormFieldDictFeignClient {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据配置类型获取表单字段配置列表
|
||||||
|
*
|
||||||
|
* @param query 配置类型
|
||||||
|
* @return 表单字段配置列表
|
||||||
|
*/
|
||||||
|
@PostMapping("get")
|
||||||
|
Map<String, List<FormFieldDictVO>> get(@RequestParam Long agentId,
|
||||||
|
@RequestBody Map<String, FormFieldDictQ> query);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量获取 字典项
|
||||||
|
*/
|
||||||
|
@PostMapping("dict")
|
||||||
|
Map<String, List<FormFieldDictVO>> dict(@RequestParam Long agentId,
|
||||||
|
@RequestBody List<String> configTypes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* items
|
||||||
|
*/
|
||||||
|
@PostMapping("getByIds")
|
||||||
|
List<FormFieldDictVO> getByIds(@RequestParam Long agentId,
|
||||||
|
@RequestBody List<Long> ids,
|
||||||
|
@RequestParam(required = false) Integer deleted);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据code查询字典项,不过滤状态,禁用和显示的都会查,删除的不查
|
||||||
|
*
|
||||||
|
* @param agentId agentId
|
||||||
|
* @param configType configType
|
||||||
|
* @param itemCodes itemCodes
|
||||||
|
* @return list
|
||||||
|
*/
|
||||||
|
@PostMapping("getByCodes")
|
||||||
|
List<FormFieldDictVO> getByCodes(@RequestParam Long agentId,
|
||||||
|
@RequestParam String configType,
|
||||||
|
@RequestBody List<String> itemCodes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据code查询字典项,不过滤状态,禁用和显示的都会查,删除的不查
|
||||||
|
*
|
||||||
|
* @param agentId agentId
|
||||||
|
* @param q key->configType, value->itemCodes
|
||||||
|
* @return list
|
||||||
|
*/
|
||||||
|
@PostMapping("getByCodesPlus")
|
||||||
|
Map<String, List<FormFieldDictVO>> getByCodes(@RequestParam Long agentId, @RequestBody Map<String, Set<String>> q);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据code查询字典项
|
||||||
|
* 默认只查询第一级别
|
||||||
|
* @param agentId agentId
|
||||||
|
* @param configType configType
|
||||||
|
* @return list
|
||||||
|
*/
|
||||||
|
@GetMapping("getByCodesByLevel")
|
||||||
|
List<FormFieldDictDifyVo> getByCodesByLevel(@RequestParam Long agentId,
|
||||||
|
@RequestParam String configType,
|
||||||
|
@RequestParam(required = false) List<Long> parentIds);
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
package com.pcloud.booksflow.form.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormPrintConfigVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "openfeign-表单打印配置")
|
||||||
|
@FeignClient(name = BaseConstant.ServiceName, path = BaseConstant.CONTEXT_PATH + "formService/form-print-config")
|
||||||
|
public interface FormPrintConfigFeignClient {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建修改日志记录
|
||||||
|
*
|
||||||
|
* @return 创建条数
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据表单ID获取表单打印配置")
|
||||||
|
@GetMapping("get")
|
||||||
|
FormPrintConfigVO get(@RequestParam Long agentId, @RequestParam String formCode);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
package com.pcloud.booksflow.form.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormTemplateVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "openfeign-表单模板")
|
||||||
|
@FeignClient(name = BaseConstant.ServiceName, path = BaseConstant.CONTEXT_PATH + "formService/template")
|
||||||
|
public interface FormTemplateFeignClient {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建修改日志记录
|
||||||
|
*
|
||||||
|
* @return 创建条数
|
||||||
|
*/
|
||||||
|
@GetMapping("get/maxVersion")
|
||||||
|
FormTemplateVO getMaxVersion(@RequestParam Long agentId, @RequestParam String formCode);
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("get/maxVersionPlus")
|
||||||
|
FormTemplateVO getMaxVersion(@RequestParam Long agentId,
|
||||||
|
@RequestParam String formCode,
|
||||||
|
@RequestParam(required = false) Boolean show,
|
||||||
|
@RequestParam(required = false) Boolean tree);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* templateId 查询所有字段
|
||||||
|
*
|
||||||
|
* @param agentId agentId
|
||||||
|
* @param id templateId
|
||||||
|
* @param show 是否显示
|
||||||
|
* @param tree 返回树状结构
|
||||||
|
* @return FormTemplateVO
|
||||||
|
*/
|
||||||
|
@GetMapping("get")
|
||||||
|
FormTemplateVO getById(@RequestParam Long agentId,
|
||||||
|
@RequestParam Long id,
|
||||||
|
@RequestParam(required = false) Boolean show,
|
||||||
|
@RequestParam(required = false) Boolean tree);
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
package com.pcloud.booksflow.form.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.ModifyLogRecordDTO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改日志记录 Feign 客户端
|
||||||
|
*/
|
||||||
|
@Api(tags = "openfeign-修改日志记录")
|
||||||
|
@FeignClient(name = BaseConstant.ServiceName, path = BaseConstant.CONTEXT_PATH + "formService/modify-log-record")
|
||||||
|
public interface ModifyLogRecordFeignClient {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建修改日志记录
|
||||||
|
*
|
||||||
|
* @param dtos 修改日志记录DTO对象列表
|
||||||
|
* @return 创建条数
|
||||||
|
*/
|
||||||
|
@PostMapping("/batchCreate")
|
||||||
|
Integer batchCreate(@RequestParam("agent_id") Long agentId, @RequestBody List<ModifyLogRecordDTO> dtos);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package com.pcloud.booksflow.form.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Api(tags = "openfeign-字典项-无租户【所有租户看到的字典都一样】")
|
||||||
|
@FeignClient(name = BaseConstant.ServiceName, path = BaseConstant.CONTEXT_PATH + "formService/not-agent/field-dict")
|
||||||
|
public interface SystemDictFeignClient {
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取表单字段配置,根据configType")
|
||||||
|
@PostMapping("get")
|
||||||
|
Map<String, List<FormFieldDictVO>> get(@RequestBody Map<String, FormFieldDictQ> q);
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取表单字段配置,根据id")
|
||||||
|
@PostMapping("getByIds")
|
||||||
|
List<FormFieldDictVO> getByIds(@RequestBody List<Long> ids, @RequestParam Integer deleted);
|
||||||
|
|
||||||
|
}
|
||||||
20
ruoyi-modules/ruoyi-form/booksflow-form-mapper/pom.xml
Normal file
20
ruoyi-modules/ruoyi-form/booksflow-form-mapper/pom.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>ruoyi-form</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>booksflow-form-mapper</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>booksflow-form-api</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Form implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 表单名称
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form.name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* code
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form.code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,130 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_dict
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormDict implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 名称
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 值
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 备注
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.remarks
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String remarks;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否删除(0:否,1:是)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_dict.deleted
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,872 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class FormDictExample {
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public FormDictExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Long value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIsNull() {
|
||||||
|
addCriterion("`name` is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIsNotNull() {
|
||||||
|
addCriterion("`name` is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameEqualTo(String value) {
|
||||||
|
addCriterion("`name` =", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotEqualTo(String value) {
|
||||||
|
addCriterion("`name` <>", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameGreaterThan(String value) {
|
||||||
|
addCriterion("`name` >", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("`name` >=", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLessThan(String value) {
|
||||||
|
addCriterion("`name` <", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("`name` <=", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLike(String value) {
|
||||||
|
addCriterion("`name` like", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotLike(String value) {
|
||||||
|
addCriterion("`name` not like", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIn(List<String> values) {
|
||||||
|
addCriterion("`name` in", values, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotIn(List<String> values) {
|
||||||
|
addCriterion("`name` not in", values, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameBetween(String value1, String value2) {
|
||||||
|
addCriterion("`name` between", value1, value2, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("`name` not between", value1, value2, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIsNull() {
|
||||||
|
addCriterion("code is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIsNotNull() {
|
||||||
|
addCriterion("code is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeEqualTo(String value) {
|
||||||
|
addCriterion("code =", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotEqualTo(String value) {
|
||||||
|
addCriterion("code <>", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeGreaterThan(String value) {
|
||||||
|
addCriterion("code >", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("code >=", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLessThan(String value) {
|
||||||
|
addCriterion("code <", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("code <=", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLike(String value) {
|
||||||
|
addCriterion("code like", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotLike(String value) {
|
||||||
|
addCriterion("code not like", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIn(List<String> values) {
|
||||||
|
addCriterion("code in", values, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotIn(List<String> values) {
|
||||||
|
addCriterion("code not in", values, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeBetween(String value1, String value2) {
|
||||||
|
addCriterion("code between", value1, value2, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("code not between", value1, value2, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksIsNull() {
|
||||||
|
addCriterion("remarks is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksIsNotNull() {
|
||||||
|
addCriterion("remarks is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksEqualTo(String value) {
|
||||||
|
addCriterion("remarks =", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksNotEqualTo(String value) {
|
||||||
|
addCriterion("remarks <>", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksGreaterThan(String value) {
|
||||||
|
addCriterion("remarks >", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("remarks >=", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksLessThan(String value) {
|
||||||
|
addCriterion("remarks <", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("remarks <=", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksLike(String value) {
|
||||||
|
addCriterion("remarks like", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksNotLike(String value) {
|
||||||
|
addCriterion("remarks not like", value, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksIn(List<String> values) {
|
||||||
|
addCriterion("remarks in", values, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksNotIn(List<String> values) {
|
||||||
|
addCriterion("remarks not in", values, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksBetween(String value1, String value2) {
|
||||||
|
addCriterion("remarks between", value1, value2, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarksNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("remarks not between", value1, value2, "remarks");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNull() {
|
||||||
|
addCriterion("created_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNotNull() {
|
||||||
|
addCriterion("created_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByEqualTo(Long value) {
|
||||||
|
addCriterion("created_by =", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <>", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("created_by >", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by >=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThan(Long value) {
|
||||||
|
addCriterion("created_by <", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIn(List<Long> values) {
|
||||||
|
addCriterion("created_by in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("created_by not in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by not between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNull() {
|
||||||
|
addCriterion("updated_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNotNull() {
|
||||||
|
addCriterion("updated_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by =", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <>", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("updated_by >", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by >=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThan(Long value) {
|
||||||
|
addCriterion("updated_by <", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by not in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by not between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNull() {
|
||||||
|
addCriterion("create_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNotNull() {
|
||||||
|
addCriterion("create_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("create_time =", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <>", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("create_time >", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time >=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThan(Date value) {
|
||||||
|
addCriterion("create_time <", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("create_time in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("create_time not in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time not between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNull() {
|
||||||
|
addCriterion("update_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNotNull() {
|
||||||
|
addCriterion("update_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("update_time =", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <>", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("update_time >", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time >=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThan(Date value) {
|
||||||
|
addCriterion("update_time <", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("update_time in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("update_time not in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIsNull() {
|
||||||
|
addCriterion("deleted is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIsNotNull() {
|
||||||
|
addCriterion("deleted is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted =", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted <>", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedGreaterThan(Integer value) {
|
||||||
|
addCriterion("deleted >", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted >=", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedLessThan(Integer value) {
|
||||||
|
addCriterion("deleted <", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted <=", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIn(List<Integer> values) {
|
||||||
|
addCriterion("deleted in", values, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotIn(List<Integer> values) {
|
||||||
|
addCriterion("deleted not in", values, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("deleted between", value1, value2, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("deleted not between", value1, value2, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated do_not_delete_during_merge
|
||||||
|
*/
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,501 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class FormExample {
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public FormExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Long value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIsNull() {
|
||||||
|
addCriterion("`name` is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIsNotNull() {
|
||||||
|
addCriterion("`name` is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameEqualTo(String value) {
|
||||||
|
addCriterion("`name` =", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotEqualTo(String value) {
|
||||||
|
addCriterion("`name` <>", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameGreaterThan(String value) {
|
||||||
|
addCriterion("`name` >", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("`name` >=", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLessThan(String value) {
|
||||||
|
addCriterion("`name` <", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("`name` <=", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameLike(String value) {
|
||||||
|
addCriterion("`name` like", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotLike(String value) {
|
||||||
|
addCriterion("`name` not like", value, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameIn(List<String> values) {
|
||||||
|
addCriterion("`name` in", values, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotIn(List<String> values) {
|
||||||
|
addCriterion("`name` not in", values, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameBetween(String value1, String value2) {
|
||||||
|
addCriterion("`name` between", value1, value2, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andNameNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("`name` not between", value1, value2, "name");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIsNull() {
|
||||||
|
addCriterion("code is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIsNotNull() {
|
||||||
|
addCriterion("code is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeEqualTo(String value) {
|
||||||
|
addCriterion("code =", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotEqualTo(String value) {
|
||||||
|
addCriterion("code <>", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeGreaterThan(String value) {
|
||||||
|
addCriterion("code >", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("code >=", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLessThan(String value) {
|
||||||
|
addCriterion("code <", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("code <=", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeLike(String value) {
|
||||||
|
addCriterion("code like", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotLike(String value) {
|
||||||
|
addCriterion("code not like", value, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeIn(List<String> values) {
|
||||||
|
addCriterion("code in", values, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotIn(List<String> values) {
|
||||||
|
addCriterion("code not in", values, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeBetween(String value1, String value2) {
|
||||||
|
addCriterion("code between", value1, value2, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCodeNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("code not between", value1, value2, "code");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated do_not_delete_during_merge
|
||||||
|
*/
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,185 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_field_dict
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormFieldDict implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 类型:单位类型、往来单位、税率、费用分类、费用科目、仓库管理
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.config_type
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String configType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 名称
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 值
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 父级ID,也可以是关联的id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.parent_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 检查ids:当删除里面的id时,进行校验是否有相关联
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.check_ids
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String checkIds;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 排序
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.sort_order
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 状态(1:启用,0:禁用)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否删除(0:否,1:是)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.deleted
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 其他字段(JSON格式)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_field_dict.other_fields
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String otherFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,295 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormPrintConfig implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 关联的表单ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.form_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主标题
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.main_title
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String mainTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 副标题
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.sub_title
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String subTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 显示格式:简洁、标准、完整
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.display_format
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String displayFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 单据编号前缀(如CG-)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.document_no_prefix
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String documentNoPrefix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否显示单据编号
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.show_document_no
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean showDocumentNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 打印日期格式
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.print_date_format
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String printDateFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否显示打印日期
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.show_print_date
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean showPrintDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否显示页码
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.show_page_number
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean showPageNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 列宽模式:固定宽度或自适应
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.column_width_mode
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String columnWidthMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 表格样式:有边框或无边框
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.table_style
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String tableStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 数据行高
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.row_height
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String rowHeight;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 模板文件大小
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_size
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer fileSize;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 模板文件name
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 文件类型:doc、excel
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_type
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* file_wps_id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_wps_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileWpsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* ai模板文件url
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_url_ai
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileUrlAi;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 模板文件url
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.file_url
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 打印配置模式(1、默认模式;2、模板打印模式)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.mode
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,141 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config_tpl
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormPrintConfigTpl implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 表单打印配置 ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.form_print_config_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long formPrintConfigId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 模板文件url
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.file_url
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 文件类型:doc、excel
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.file_type
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* file_wps_id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.file_wps_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fileWpsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否删除(0:否,1:是)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config_tpl.deleted
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,932 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class FormPrintConfigTplExample {
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public FormPrintConfigTplExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Long value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdIsNull() {
|
||||||
|
addCriterion("form_print_config_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdIsNotNull() {
|
||||||
|
addCriterion("form_print_config_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdEqualTo(Long value) {
|
||||||
|
addCriterion("form_print_config_id =", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("form_print_config_id <>", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdGreaterThan(Long value) {
|
||||||
|
addCriterion("form_print_config_id >", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("form_print_config_id >=", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdLessThan(Long value) {
|
||||||
|
addCriterion("form_print_config_id <", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("form_print_config_id <=", value, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdIn(List<Long> values) {
|
||||||
|
addCriterion("form_print_config_id in", values, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("form_print_config_id not in", values, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("form_print_config_id between", value1, value2, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormPrintConfigIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("form_print_config_id not between", value1, value2, "formPrintConfigId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlIsNull() {
|
||||||
|
addCriterion("file_url is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlIsNotNull() {
|
||||||
|
addCriterion("file_url is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlEqualTo(String value) {
|
||||||
|
addCriterion("file_url =", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlNotEqualTo(String value) {
|
||||||
|
addCriterion("file_url <>", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlGreaterThan(String value) {
|
||||||
|
addCriterion("file_url >", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_url >=", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlLessThan(String value) {
|
||||||
|
addCriterion("file_url <", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_url <=", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlLike(String value) {
|
||||||
|
addCriterion("file_url like", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlNotLike(String value) {
|
||||||
|
addCriterion("file_url not like", value, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlIn(List<String> values) {
|
||||||
|
addCriterion("file_url in", values, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlNotIn(List<String> values) {
|
||||||
|
addCriterion("file_url not in", values, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_url between", value1, value2, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileUrlNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_url not between", value1, value2, "fileUrl");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeIsNull() {
|
||||||
|
addCriterion("file_type is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeIsNotNull() {
|
||||||
|
addCriterion("file_type is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeEqualTo(String value) {
|
||||||
|
addCriterion("file_type =", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeNotEqualTo(String value) {
|
||||||
|
addCriterion("file_type <>", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeGreaterThan(String value) {
|
||||||
|
addCriterion("file_type >", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_type >=", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeLessThan(String value) {
|
||||||
|
addCriterion("file_type <", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_type <=", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeLike(String value) {
|
||||||
|
addCriterion("file_type like", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeNotLike(String value) {
|
||||||
|
addCriterion("file_type not like", value, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeIn(List<String> values) {
|
||||||
|
addCriterion("file_type in", values, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeNotIn(List<String> values) {
|
||||||
|
addCriterion("file_type not in", values, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_type between", value1, value2, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileTypeNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_type not between", value1, value2, "fileType");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdIsNull() {
|
||||||
|
addCriterion("file_wps_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdIsNotNull() {
|
||||||
|
addCriterion("file_wps_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdEqualTo(String value) {
|
||||||
|
addCriterion("file_wps_id =", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdNotEqualTo(String value) {
|
||||||
|
addCriterion("file_wps_id <>", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdGreaterThan(String value) {
|
||||||
|
addCriterion("file_wps_id >", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_wps_id >=", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdLessThan(String value) {
|
||||||
|
addCriterion("file_wps_id <", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("file_wps_id <=", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdLike(String value) {
|
||||||
|
addCriterion("file_wps_id like", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdNotLike(String value) {
|
||||||
|
addCriterion("file_wps_id not like", value, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdIn(List<String> values) {
|
||||||
|
addCriterion("file_wps_id in", values, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdNotIn(List<String> values) {
|
||||||
|
addCriterion("file_wps_id not in", values, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_wps_id between", value1, value2, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFileWpsIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("file_wps_id not between", value1, value2, "fileWpsId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNull() {
|
||||||
|
addCriterion("created_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNotNull() {
|
||||||
|
addCriterion("created_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByEqualTo(Long value) {
|
||||||
|
addCriterion("created_by =", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <>", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("created_by >", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by >=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThan(Long value) {
|
||||||
|
addCriterion("created_by <", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIn(List<Long> values) {
|
||||||
|
addCriterion("created_by in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("created_by not in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by not between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNull() {
|
||||||
|
addCriterion("updated_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNotNull() {
|
||||||
|
addCriterion("updated_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by =", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <>", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("updated_by >", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by >=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThan(Long value) {
|
||||||
|
addCriterion("updated_by <", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by not in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by not between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNull() {
|
||||||
|
addCriterion("create_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNotNull() {
|
||||||
|
addCriterion("create_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("create_time =", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <>", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("create_time >", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time >=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThan(Date value) {
|
||||||
|
addCriterion("create_time <", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("create_time in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("create_time not in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time not between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNull() {
|
||||||
|
addCriterion("update_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNotNull() {
|
||||||
|
addCriterion("update_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("update_time =", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <>", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("update_time >", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time >=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThan(Date value) {
|
||||||
|
addCriterion("update_time <", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("update_time in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("update_time not in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIsNull() {
|
||||||
|
addCriterion("deleted is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIsNotNull() {
|
||||||
|
addCriterion("deleted is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted =", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted <>", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedGreaterThan(Integer value) {
|
||||||
|
addCriterion("deleted >", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted >=", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedLessThan(Integer value) {
|
||||||
|
addCriterion("deleted <", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("deleted <=", value, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedIn(List<Integer> values) {
|
||||||
|
addCriterion("deleted in", values, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotIn(List<Integer> values) {
|
||||||
|
addCriterion("deleted not in", values, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("deleted between", value1, value2, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDeletedNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("deleted not between", value1, value2, "deleted");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated do_not_delete_during_merge
|
||||||
|
*/
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_print_config
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormPrintConfigWithBLOBs extends FormPrintConfig implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 打印字段
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.print_fields
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String printFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 扩展属性(JSON格式)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_print_config.ext
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String ext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,119 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_template
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormTemplate implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* form id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.form_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long formId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 版本
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.version
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 内容编码,保存时和上次的编码是否一致,一致时则不进行更新
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.content_encoding
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String contentEncoding;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,792 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class FormTemplateExample {
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public FormTemplateExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Long value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdIsNull() {
|
||||||
|
addCriterion("form_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdIsNotNull() {
|
||||||
|
addCriterion("form_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdEqualTo(Long value) {
|
||||||
|
addCriterion("form_id =", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("form_id <>", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdGreaterThan(Long value) {
|
||||||
|
addCriterion("form_id >", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("form_id >=", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdLessThan(Long value) {
|
||||||
|
addCriterion("form_id <", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("form_id <=", value, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdIn(List<Long> values) {
|
||||||
|
addCriterion("form_id in", values, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("form_id not in", values, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("form_id between", value1, value2, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andFormIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("form_id not between", value1, value2, "formId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionIsNull() {
|
||||||
|
addCriterion("version is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionIsNotNull() {
|
||||||
|
addCriterion("version is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionEqualTo(Integer value) {
|
||||||
|
addCriterion("version =", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionNotEqualTo(Integer value) {
|
||||||
|
addCriterion("version <>", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionGreaterThan(Integer value) {
|
||||||
|
addCriterion("version >", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("version >=", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionLessThan(Integer value) {
|
||||||
|
addCriterion("version <", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("version <=", value, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionIn(List<Integer> values) {
|
||||||
|
addCriterion("version in", values, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionNotIn(List<Integer> values) {
|
||||||
|
addCriterion("version not in", values, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("version between", value1, value2, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andVersionNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("version not between", value1, value2, "version");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingIsNull() {
|
||||||
|
addCriterion("content_encoding is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingIsNotNull() {
|
||||||
|
addCriterion("content_encoding is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingEqualTo(String value) {
|
||||||
|
addCriterion("content_encoding =", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingNotEqualTo(String value) {
|
||||||
|
addCriterion("content_encoding <>", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingGreaterThan(String value) {
|
||||||
|
addCriterion("content_encoding >", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("content_encoding >=", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingLessThan(String value) {
|
||||||
|
addCriterion("content_encoding <", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("content_encoding <=", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingLike(String value) {
|
||||||
|
addCriterion("content_encoding like", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingNotLike(String value) {
|
||||||
|
addCriterion("content_encoding not like", value, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingIn(List<String> values) {
|
||||||
|
addCriterion("content_encoding in", values, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingNotIn(List<String> values) {
|
||||||
|
addCriterion("content_encoding not in", values, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingBetween(String value1, String value2) {
|
||||||
|
addCriterion("content_encoding between", value1, value2, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andContentEncodingNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("content_encoding not between", value1, value2, "contentEncoding");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNull() {
|
||||||
|
addCriterion("created_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIsNotNull() {
|
||||||
|
addCriterion("created_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByEqualTo(Long value) {
|
||||||
|
addCriterion("created_by =", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <>", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("created_by >", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by >=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThan(Long value) {
|
||||||
|
addCriterion("created_by <", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("created_by <=", value, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByIn(List<Long> values) {
|
||||||
|
addCriterion("created_by in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("created_by not in", values, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("created_by not between", value1, value2, "createdBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNull() {
|
||||||
|
addCriterion("updated_by is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIsNotNull() {
|
||||||
|
addCriterion("updated_by is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by =", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <>", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThan(Long value) {
|
||||||
|
addCriterion("updated_by >", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by >=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThan(Long value) {
|
||||||
|
addCriterion("updated_by <", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("updated_by <=", value, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotIn(List<Long> values) {
|
||||||
|
addCriterion("updated_by not in", values, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdatedByNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("updated_by not between", value1, value2, "updatedBy");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNull() {
|
||||||
|
addCriterion("create_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNotNull() {
|
||||||
|
addCriterion("create_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("create_time =", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <>", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("create_time >", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time >=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThan(Date value) {
|
||||||
|
addCriterion("create_time <", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("create_time in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("create_time not in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time not between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNull() {
|
||||||
|
addCriterion("update_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNotNull() {
|
||||||
|
addCriterion("update_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("update_time =", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <>", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("update_time >", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time >=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThan(Date value) {
|
||||||
|
addCriterion("update_time <", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("update_time in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("update_time not in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated do_not_delete_during_merge
|
||||||
|
*/
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,317 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table form_template_field
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FormTemplateField implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* form_template 的id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.template_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long templateId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 编码
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 父id
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.parent_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 标题
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.title
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* show标题
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.show_title
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String showTitle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 数据库中关联字段(目前用作流程流转时数据判断)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.db_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String dbField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否必填
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.required
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否显示
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.show
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean show;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 字典code
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.dcode
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String dcode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 占行数量(0-不占一行,其他-占的行数)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.line
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer line;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 字段类型(group、string...)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.type
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 固定(0不固定,1固定)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.fixed
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean fixed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 格式约束:int、double、str、boolean、date、select(下拉选择)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.fmt_constraint
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fmtConstraint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否可编辑
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.edit
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean edit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 排序
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.sort_order
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer sortOrder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 级联显示关
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.cascade_close
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String cascadeClose;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 级联显示开
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.cascade_open
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String cascadeOpen;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 可编辑按钮禁用提示
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.edit_disabled_msg
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String editDisabledMsg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 可编辑按钮禁用
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.edit_disabled
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Boolean editDisabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 字典级联显示
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.show_cascade
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String showCascade;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.created_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long createdBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新人
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.updated_by
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long updatedBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 扩展属性(JSON格式)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column form_template_field.ext
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String ext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,207 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table modify_log_record
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class ModifyLogRecord implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 实体类型,如:FormFieldDict, FormTemplate, FormTemplateField等
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.entity_type
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String entityType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 实体ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.entity_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String entityId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* form_code
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.form_code
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String formCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 描述
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.description
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 字段中文名
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.field_chinese_name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fieldChineseName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 字段英文名
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.field_english_name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String fieldEnglishName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 修改前值
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.old_value
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String oldValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 修改后值
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.new_value
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String newValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 操作人ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.operator
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long operator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 操作人ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.operator_name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String operatorName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 操作时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.operation_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date operationTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 服务名称
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.service_name
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private String serviceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 是否删除(0:否,1:是)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column modify_log_record.deleted
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,86 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table tenant_init_status
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class TenantInitStatus implements Serializable {
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 主键ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column tenant_init_status.id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 初始化状态(0:未初始化,1:已初始化)
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column tenant_init_status.initialized
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Integer initialized;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 创建时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column tenant_init_status.create_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 更新时间
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column tenant_init_status.update_time
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Column Remarks:
|
||||||
|
* 租户ID
|
||||||
|
*
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column tenant_init_status.agent_id
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private Long agentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
@ -0,0 +1,602 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class TenantInitStatusExample {
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public TenantInitStatusExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(Long value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedIsNull() {
|
||||||
|
addCriterion("initialized is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedIsNotNull() {
|
||||||
|
addCriterion("initialized is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedEqualTo(Integer value) {
|
||||||
|
addCriterion("initialized =", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedNotEqualTo(Integer value) {
|
||||||
|
addCriterion("initialized <>", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedGreaterThan(Integer value) {
|
||||||
|
addCriterion("initialized >", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("initialized >=", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedLessThan(Integer value) {
|
||||||
|
addCriterion("initialized <", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("initialized <=", value, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedIn(List<Integer> values) {
|
||||||
|
addCriterion("initialized in", values, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedNotIn(List<Integer> values) {
|
||||||
|
addCriterion("initialized not in", values, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("initialized between", value1, value2, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andInitializedNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("initialized not between", value1, value2, "initialized");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNull() {
|
||||||
|
addCriterion("create_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIsNotNull() {
|
||||||
|
addCriterion("create_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("create_time =", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <>", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("create_time >", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time >=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThan(Date value) {
|
||||||
|
addCriterion("create_time <", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("create_time <=", value, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("create_time in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("create_time not in", values, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("create_time not between", value1, value2, "createTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNull() {
|
||||||
|
addCriterion("update_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIsNotNull() {
|
||||||
|
addCriterion("update_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||||
|
addCriterion("update_time =", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <>", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("update_time >", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time >=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThan(Date value) {
|
||||||
|
addCriterion("update_time <", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("update_time <=", value, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||||
|
addCriterion("update_time in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("update_time not in", values, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdIsNull() {
|
||||||
|
addCriterion("agent_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdIsNotNull() {
|
||||||
|
addCriterion("agent_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdEqualTo(Long value) {
|
||||||
|
addCriterion("agent_id =", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("agent_id <>", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdGreaterThan(Long value) {
|
||||||
|
addCriterion("agent_id >", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("agent_id >=", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdLessThan(Long value) {
|
||||||
|
addCriterion("agent_id <", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("agent_id <=", value, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdIn(List<Long> values) {
|
||||||
|
addCriterion("agent_id in", values, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("agent_id not in", values, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("agent_id between", value1, value2, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andAgentIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("agent_id not between", value1, value2, "agentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated do_not_delete_during_merge
|
||||||
|
*/
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class was generated by MyBatis Generator.
|
||||||
|
* This class corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormDict;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormDictExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormDictMapper extends PaginationMapper<FormDict, FormDictExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormDict> selectByExample(FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormDict selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormDict record, @Param("example") FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormDict record, @Param("example") FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormDict> selectByExampleWithPaging(@Param("example") FormDictExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormDict selectOneByExample(FormDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormDict> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormDictMapperExt extends FormDictMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,145 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormFieldDictMapper extends PaginationMapper<FormFieldDict, FormFieldDictExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormFieldDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormFieldDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormFieldDict> selectByExampleWithBLOBs(FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormFieldDict> selectByExample(FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormFieldDict selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormFieldDict record, @Param("example") FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleWithBLOBs(@Param("record") FormFieldDict record, @Param("example") FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormFieldDict record, @Param("example") FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormFieldDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeyWithBLOBs(FormFieldDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormFieldDict record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormFieldDict> selectByExampleWithPaging(@Param("example") FormFieldDictExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormFieldDict selectOneByExample(FormFieldDictExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_field_dict
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormFieldDict> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.dto.DictCodesDTO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface FormFieldDictMapperExt extends FormFieldDictMapper {
|
||||||
|
|
||||||
|
List<FormFieldDict> selectByExampleWithPagingBLOBs(@Param("example") FormFieldDictExample example,
|
||||||
|
@Param("offset") int offset,
|
||||||
|
@Param("limit") int limit,
|
||||||
|
@Param("queryStr") String queryStr);
|
||||||
|
|
||||||
|
long countByExampleExt(@Param("example") FormFieldDictExample example, @Param("queryStr") String queryStr);
|
||||||
|
|
||||||
|
List<FormFieldDict> getByCodes(@Param("list") List<DictCodesDTO> dtos);
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.Form;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormMapper extends PaginationMapper<Form, FormExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(Form record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(Form record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<Form> selectByExample(FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
Form selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") Form record, @Param("example") FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") Form record, @Param("example") FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(Form record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(Form record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<Form> selectByExampleWithPaging(@Param("example") FormExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
Form selectOneByExample(FormExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<Form> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormMapperExt extends FormMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,146 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfig;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormPrintConfigMapper extends PaginationMapper<FormPrintConfig, FormPrintConfigExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormPrintConfigWithBLOBs record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormPrintConfigWithBLOBs record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormPrintConfigWithBLOBs> selectByExampleWithBLOBs(FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormPrintConfig> selectByExample(FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormPrintConfigWithBLOBs selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormPrintConfigWithBLOBs record, @Param("example") FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleWithBLOBs(@Param("record") FormPrintConfigWithBLOBs record, @Param("example") FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormPrintConfig record, @Param("example") FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormPrintConfigWithBLOBs record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeyWithBLOBs(FormPrintConfigWithBLOBs record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormPrintConfig record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormPrintConfig> selectByExampleWithPaging(@Param("example") FormPrintConfigExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormPrintConfig selectOneByExample(FormPrintConfigExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormPrintConfig> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormPrintConfigMapperExt extends FormPrintConfigMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormPrintConfigTplMapper extends PaginationMapper<FormPrintConfigTpl, FormPrintConfigTplExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormPrintConfigTpl record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormPrintConfigTpl record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormPrintConfigTpl> selectByExample(FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormPrintConfigTpl selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormPrintConfigTpl record, @Param("example") FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormPrintConfigTpl record, @Param("example") FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormPrintConfigTpl record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormPrintConfigTpl record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormPrintConfigTpl> selectByExampleWithPaging(@Param("example") FormPrintConfigTplExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormPrintConfigTpl selectOneByExample(FormPrintConfigTplExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_print_config_tpl
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormPrintConfigTpl> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormPrintConfigTplMapperExt extends FormPrintConfigTplMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,145 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateField;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormTemplateFieldMapper extends PaginationMapper<FormTemplateField, FormTemplateFieldExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormTemplateField record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormTemplateField record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormTemplateField> selectByExampleWithBLOBs(FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormTemplateField> selectByExample(FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormTemplateField selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormTemplateField record, @Param("example") FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleWithBLOBs(@Param("record") FormTemplateField record, @Param("example") FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormTemplateField record, @Param("example") FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormTemplateField record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeyWithBLOBs(FormTemplateField record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormTemplateField record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormTemplateField> selectByExampleWithPaging(@Param("example") FormTemplateFieldExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormTemplateField selectOneByExample(FormTemplateFieldExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template_field
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormTemplateField> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormTemplateFieldMapperExt extends FormTemplateFieldMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplate;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface FormTemplateMapper extends PaginationMapper<FormTemplate, FormTemplateExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(FormTemplate record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(FormTemplate record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormTemplate> selectByExample(FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormTemplate selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") FormTemplate record, @Param("example") FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") FormTemplate record, @Param("example") FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(FormTemplate record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(FormTemplate record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<FormTemplate> selectByExampleWithPaging(@Param("example") FormTemplateExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
FormTemplate selectOneByExample(FormTemplateExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table form_template
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<FormTemplate> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface FormTemplateMapperExt extends FormTemplateMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface ModifyLogRecordMapper extends PaginationMapper<ModifyLogRecord, ModifyLogRecordExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(ModifyLogRecord record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(ModifyLogRecord record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<ModifyLogRecord> selectByExample(ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
ModifyLogRecord selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") ModifyLogRecord record, @Param("example") ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") ModifyLogRecord record, @Param("example") ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(ModifyLogRecord record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(ModifyLogRecord record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<ModifyLogRecord> selectByExampleWithPaging(@Param("example") ModifyLogRecordExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
ModifyLogRecord selectOneByExample(ModifyLogRecordExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table modify_log_record
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<ModifyLogRecord> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface ModifyLogRecordMapperExt extends ModifyLogRecordMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample;
|
||||||
|
import com.pcloud.universe.commons.paging.PaginationMapper;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface TenantInitStatusMapper extends PaginationMapper<TenantInitStatus, TenantInitStatusExample> {
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
long countByExample(TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByExample(TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insert(TenantInitStatus record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int insertSelective(TenantInitStatus record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<TenantInitStatus> selectByExample(TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
TenantInitStatus selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExampleSelective(@Param("record") TenantInitStatus record, @Param("example") TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByExample(@Param("record") TenantInitStatus record, @Param("example") TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(TenantInitStatus record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(TenantInitStatus record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
List<TenantInitStatus> selectByExampleWithPaging(@Param("example") TenantInitStatusExample example, @Param("offset") int offset, @Param("limit") int limit);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
TenantInitStatus selectOneByExample(TenantInitStatusExample example);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table tenant_init_status
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<TenantInitStatus> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.pcloud.booksflow.form.mybatis.mapper;
|
||||||
|
|
||||||
|
public interface TenantInitStatusMapperExt extends TenantInitStatusMapper {
|
||||||
|
}
|
||||||
@ -0,0 +1,385 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormDictMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="deleted" jdbcType="TINYINT" property="deleted" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, `name`, code, remarks, created_by, updated_by, create_time, update_time, deleted
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_dict
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_dict
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDictExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_dict (`name`, code, remarks,
|
||||||
|
created_by, updated_by, create_time,
|
||||||
|
update_time, deleted)
|
||||||
|
values (#{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
|
||||||
|
#{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_dict
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code,
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null">
|
||||||
|
remarks,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
#{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null">
|
||||||
|
#{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
#{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDictExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_dict
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.name != null">
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.code != null">
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.remarks != null">
|
||||||
|
remarks = #{record.remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.deleted != null">
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_dict
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
remarks = #{record.remarks,jdbcType=VARCHAR},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_dict
|
||||||
|
<set>
|
||||||
|
<if test="name != null">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null">
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_dict
|
||||||
|
set `name` = #{name,jdbcType=VARCHAR},
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_dict
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_dict (`name`,
|
||||||
|
code, remarks, created_by,
|
||||||
|
updated_by, create_time, update_time,
|
||||||
|
deleted)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.name,jdbcType=VARCHAR},
|
||||||
|
#{item.code,jdbcType=VARCHAR}, #{item.remarks,jdbcType=VARCHAR}, #{item.createdBy,jdbcType=BIGINT},
|
||||||
|
#{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.deleted,jdbcType=TINYINT})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormDictMapperExt" />
|
||||||
@ -0,0 +1,547 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="config_type" jdbcType="VARCHAR" property="configType" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
||||||
|
<result column="check_ids" jdbcType="VARCHAR" property="checkIds" />
|
||||||
|
<result column="sort_order" jdbcType="INTEGER" property="sortOrder" />
|
||||||
|
<result column="status" jdbcType="TINYINT" property="status" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="deleted" jdbcType="TINYINT" property="deleted" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<result column="other_fields" jdbcType="LONGVARCHAR" property="otherFields" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, config_type, `name`, code, parent_id, check_ids, sort_order, `status`, created_by,
|
||||||
|
updated_by, create_time, update_time, deleted
|
||||||
|
</sql>
|
||||||
|
<sql id="Blob_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
other_fields
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExampleWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_field_dict
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_field_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_field_dict (config_type, `name`, code,
|
||||||
|
parent_id, check_ids, sort_order,
|
||||||
|
`status`, created_by, updated_by,
|
||||||
|
create_time, update_time, deleted,
|
||||||
|
other_fields)
|
||||||
|
values (#{configType,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
|
||||||
|
#{parentId,jdbcType=BIGINT}, #{checkIds,jdbcType=VARCHAR}, #{sortOrder,jdbcType=INTEGER},
|
||||||
|
#{status,jdbcType=TINYINT}, #{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT},
|
||||||
|
#{otherFields,jdbcType=LONGVARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_field_dict
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="configType != null">
|
||||||
|
config_type,
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code,
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id,
|
||||||
|
</if>
|
||||||
|
<if test="checkIds != null">
|
||||||
|
check_ids,
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
sort_order,
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status`,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted,
|
||||||
|
</if>
|
||||||
|
<if test="otherFields != null">
|
||||||
|
other_fields,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="configType != null">
|
||||||
|
#{configType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
#{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
#{parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="checkIds != null">
|
||||||
|
#{checkIds,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
#{sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
#{status,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
#{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="otherFields != null">
|
||||||
|
#{otherFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_field_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.configType != null">
|
||||||
|
config_type = #{record.configType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.name != null">
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.code != null">
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.parentId != null">
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.checkIds != null">
|
||||||
|
check_ids = #{record.checkIds,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.sortOrder != null">
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.status != null">
|
||||||
|
`status` = #{record.status,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.deleted != null">
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.otherFields != null">
|
||||||
|
other_fields = #{record.otherFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
config_type = #{record.configType,jdbcType=VARCHAR},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
check_ids = #{record.checkIds,jdbcType=VARCHAR},
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
`status` = #{record.status,jdbcType=TINYINT},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT},
|
||||||
|
other_fields = #{record.otherFields,jdbcType=LONGVARCHAR}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
config_type = #{record.configType,jdbcType=VARCHAR},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
check_ids = #{record.checkIds,jdbcType=VARCHAR},
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
`status` = #{record.status,jdbcType=TINYINT},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
<set>
|
||||||
|
<if test="configType != null">
|
||||||
|
config_type = #{configType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="checkIds != null">
|
||||||
|
check_ids = #{checkIds,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status` = #{status,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="otherFields != null">
|
||||||
|
other_fields = #{otherFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
set config_type = #{configType,jdbcType=VARCHAR},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
check_ids = #{checkIds,jdbcType=VARCHAR},
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
`status` = #{status,jdbcType=TINYINT},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT},
|
||||||
|
other_fields = #{otherFields,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_field_dict
|
||||||
|
set config_type = #{configType,jdbcType=VARCHAR},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
check_ids = #{checkIds,jdbcType=VARCHAR},
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
`status` = #{status,jdbcType=TINYINT},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_field_dict (config_type,
|
||||||
|
`name`, code, parent_id,
|
||||||
|
check_ids, sort_order, `status`,
|
||||||
|
created_by, updated_by, create_time,
|
||||||
|
update_time, deleted, other_fields
|
||||||
|
)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.configType,jdbcType=VARCHAR},
|
||||||
|
#{item.name,jdbcType=VARCHAR}, #{item.code,jdbcType=VARCHAR}, #{item.parentId,jdbcType=BIGINT},
|
||||||
|
#{item.checkIds,jdbcType=VARCHAR}, #{item.sortOrder,jdbcType=INTEGER}, #{item.status,jdbcType=TINYINT},
|
||||||
|
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=TINYINT}, #{item.otherFields,jdbcType=LONGVARCHAR}
|
||||||
|
)</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapperExt" >
|
||||||
|
<sql id="Example_Where_Clause_Not_Where">
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByExampleWithPagingBLOBs" resultMap="ResultMapWithBLOBs">
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_field_dict
|
||||||
|
<where>
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Example_Where_Clause_Not_Where" />
|
||||||
|
</if>
|
||||||
|
<if test="queryStr != null and queryStr != ''">
|
||||||
|
and (name like concat(#{queryStr}, '%') or code like concat(#{queryStr}, '%'))
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="countByExampleExt" resultType="java.lang.Long">
|
||||||
|
select count(id) from form_field_dict
|
||||||
|
<where>
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Example_Where_Clause_Not_Where"/>
|
||||||
|
</if>
|
||||||
|
<if test="queryStr != null and queryStr != ''">
|
||||||
|
and (name like concat(#{queryStr}, '%') or code like concat(#{queryStr}, '%'))
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="getByCodes" resultMap="ResultMapWithBLOBs">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List"/>
|
||||||
|
from form_field_dict
|
||||||
|
<where>
|
||||||
|
deleted = 0 and
|
||||||
|
<foreach item="item" index="index" collection="list" open="(" separator="or" close=")">
|
||||||
|
config_type = #{item.configType}
|
||||||
|
AND code in
|
||||||
|
<foreach item="item2" index="index" collection="item.codes" open="(" separator="," close=")">
|
||||||
|
#{item2}
|
||||||
|
</foreach>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,287 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.Form">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, `name`, code
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.Form">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form (`name`, code)
|
||||||
|
values (#{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.Form">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
#{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.name != null">
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.code != null">
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
`name` = #{record.name,jdbcType=VARCHAR},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.Form">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form
|
||||||
|
<set>
|
||||||
|
<if test="name != null">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.Form">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form
|
||||||
|
set `name` = #{name,jdbcType=VARCHAR},
|
||||||
|
code = #{code,jdbcType=VARCHAR}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form (`name`,
|
||||||
|
code)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.name,jdbcType=VARCHAR},
|
||||||
|
#{item.code,jdbcType=VARCHAR})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormMapperExt" />
|
||||||
@ -0,0 +1,767 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormPrintConfigMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfig">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="form_id" jdbcType="BIGINT" property="formId" />
|
||||||
|
<result column="main_title" jdbcType="VARCHAR" property="mainTitle" />
|
||||||
|
<result column="sub_title" jdbcType="VARCHAR" property="subTitle" />
|
||||||
|
<result column="display_format" jdbcType="VARCHAR" property="displayFormat" />
|
||||||
|
<result column="document_no_prefix" jdbcType="VARCHAR" property="documentNoPrefix" />
|
||||||
|
<result column="show_document_no" jdbcType="BIT" property="showDocumentNo" />
|
||||||
|
<result column="print_date_format" jdbcType="VARCHAR" property="printDateFormat" />
|
||||||
|
<result column="show_print_date" jdbcType="BIT" property="showPrintDate" />
|
||||||
|
<result column="show_page_number" jdbcType="BIT" property="showPageNumber" />
|
||||||
|
<result column="column_width_mode" jdbcType="VARCHAR" property="columnWidthMode" />
|
||||||
|
<result column="table_style" jdbcType="VARCHAR" property="tableStyle" />
|
||||||
|
<result column="row_height" jdbcType="VARCHAR" property="rowHeight" />
|
||||||
|
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
||||||
|
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||||
|
<result column="file_type" jdbcType="VARCHAR" property="fileType" />
|
||||||
|
<result column="file_wps_id" jdbcType="VARCHAR" property="fileWpsId" />
|
||||||
|
<result column="file_url_ai" jdbcType="VARCHAR" property="fileUrlAi" />
|
||||||
|
<result column="file_url" jdbcType="VARCHAR" property="fileUrl" />
|
||||||
|
<result column="mode" jdbcType="INTEGER" property="mode" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<result column="print_fields" jdbcType="LONGVARCHAR" property="printFields" />
|
||||||
|
<result column="ext" jdbcType="LONGVARCHAR" property="ext" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, form_id, main_title, sub_title, display_format, document_no_prefix, show_document_no,
|
||||||
|
print_date_format, show_print_date, show_page_number, column_width_mode, table_style,
|
||||||
|
row_height, file_size, file_name, file_type, file_wps_id, file_url_ai, file_url,
|
||||||
|
`mode`, created_by, updated_by, create_time, update_time
|
||||||
|
</sql>
|
||||||
|
<sql id="Blob_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
print_fields, ext
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExampleWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_print_config
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_print_config
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_print_config
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_print_config
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_print_config (form_id, main_title, sub_title,
|
||||||
|
display_format, document_no_prefix, show_document_no,
|
||||||
|
print_date_format, show_print_date, show_page_number,
|
||||||
|
column_width_mode, table_style, row_height,
|
||||||
|
file_size, file_name, file_type,
|
||||||
|
file_wps_id, file_url_ai, file_url,
|
||||||
|
`mode`, created_by, updated_by,
|
||||||
|
create_time, update_time, print_fields,
|
||||||
|
ext)
|
||||||
|
values (#{formId,jdbcType=BIGINT}, #{mainTitle,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR},
|
||||||
|
#{displayFormat,jdbcType=VARCHAR}, #{documentNoPrefix,jdbcType=VARCHAR}, #{showDocumentNo,jdbcType=BIT},
|
||||||
|
#{printDateFormat,jdbcType=VARCHAR}, #{showPrintDate,jdbcType=BIT}, #{showPageNumber,jdbcType=BIT},
|
||||||
|
#{columnWidthMode,jdbcType=VARCHAR}, #{tableStyle,jdbcType=VARCHAR}, #{rowHeight,jdbcType=VARCHAR},
|
||||||
|
#{fileSize,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR},
|
||||||
|
#{fileWpsId,jdbcType=VARCHAR}, #{fileUrlAi,jdbcType=VARCHAR}, #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
#{mode,jdbcType=INTEGER}, #{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{printFields,jdbcType=LONGVARCHAR},
|
||||||
|
#{ext,jdbcType=LONGVARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_print_config
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formId != null">
|
||||||
|
form_id,
|
||||||
|
</if>
|
||||||
|
<if test="mainTitle != null">
|
||||||
|
main_title,
|
||||||
|
</if>
|
||||||
|
<if test="subTitle != null">
|
||||||
|
sub_title,
|
||||||
|
</if>
|
||||||
|
<if test="displayFormat != null">
|
||||||
|
display_format,
|
||||||
|
</if>
|
||||||
|
<if test="documentNoPrefix != null">
|
||||||
|
document_no_prefix,
|
||||||
|
</if>
|
||||||
|
<if test="showDocumentNo != null">
|
||||||
|
show_document_no,
|
||||||
|
</if>
|
||||||
|
<if test="printDateFormat != null">
|
||||||
|
print_date_format,
|
||||||
|
</if>
|
||||||
|
<if test="showPrintDate != null">
|
||||||
|
show_print_date,
|
||||||
|
</if>
|
||||||
|
<if test="showPageNumber != null">
|
||||||
|
show_page_number,
|
||||||
|
</if>
|
||||||
|
<if test="columnWidthMode != null">
|
||||||
|
column_width_mode,
|
||||||
|
</if>
|
||||||
|
<if test="tableStyle != null">
|
||||||
|
table_style,
|
||||||
|
</if>
|
||||||
|
<if test="rowHeight != null">
|
||||||
|
row_height,
|
||||||
|
</if>
|
||||||
|
<if test="fileSize != null">
|
||||||
|
file_size,
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null">
|
||||||
|
file_name,
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
file_type,
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
file_wps_id,
|
||||||
|
</if>
|
||||||
|
<if test="fileUrlAi != null">
|
||||||
|
file_url_ai,
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
file_url,
|
||||||
|
</if>
|
||||||
|
<if test="mode != null">
|
||||||
|
`mode`,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="printFields != null">
|
||||||
|
print_fields,
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
ext,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formId != null">
|
||||||
|
#{formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="mainTitle != null">
|
||||||
|
#{mainTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="subTitle != null">
|
||||||
|
#{subTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="displayFormat != null">
|
||||||
|
#{displayFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="documentNoPrefix != null">
|
||||||
|
#{documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showDocumentNo != null">
|
||||||
|
#{showDocumentNo,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="printDateFormat != null">
|
||||||
|
#{printDateFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showPrintDate != null">
|
||||||
|
#{showPrintDate,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="showPageNumber != null">
|
||||||
|
#{showPageNumber,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="columnWidthMode != null">
|
||||||
|
#{columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="tableStyle != null">
|
||||||
|
#{tableStyle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="rowHeight != null">
|
||||||
|
#{rowHeight,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileSize != null">
|
||||||
|
#{fileSize,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null">
|
||||||
|
#{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
#{fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
#{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrlAi != null">
|
||||||
|
#{fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
#{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="mode != null">
|
||||||
|
#{mode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="printFields != null">
|
||||||
|
#{printFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
#{ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_print_config
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.formId != null">
|
||||||
|
form_id = #{record.formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.mainTitle != null">
|
||||||
|
main_title = #{record.mainTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.subTitle != null">
|
||||||
|
sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.displayFormat != null">
|
||||||
|
display_format = #{record.displayFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.documentNoPrefix != null">
|
||||||
|
document_no_prefix = #{record.documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.showDocumentNo != null">
|
||||||
|
show_document_no = #{record.showDocumentNo,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.printDateFormat != null">
|
||||||
|
print_date_format = #{record.printDateFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.showPrintDate != null">
|
||||||
|
show_print_date = #{record.showPrintDate,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.showPageNumber != null">
|
||||||
|
show_page_number = #{record.showPageNumber,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.columnWidthMode != null">
|
||||||
|
column_width_mode = #{record.columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.tableStyle != null">
|
||||||
|
table_style = #{record.tableStyle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.rowHeight != null">
|
||||||
|
row_height = #{record.rowHeight,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileSize != null">
|
||||||
|
file_size = #{record.fileSize,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileName != null">
|
||||||
|
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileType != null">
|
||||||
|
file_type = #{record.fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileWpsId != null">
|
||||||
|
file_wps_id = #{record.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileUrlAi != null">
|
||||||
|
file_url_ai = #{record.fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileUrl != null">
|
||||||
|
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.mode != null">
|
||||||
|
`mode` = #{record.mode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.printFields != null">
|
||||||
|
print_fields = #{record.printFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.ext != null">
|
||||||
|
ext = #{record.ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
form_id = #{record.formId,jdbcType=BIGINT},
|
||||||
|
main_title = #{record.mainTitle,jdbcType=VARCHAR},
|
||||||
|
sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
||||||
|
display_format = #{record.displayFormat,jdbcType=VARCHAR},
|
||||||
|
document_no_prefix = #{record.documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
show_document_no = #{record.showDocumentNo,jdbcType=BIT},
|
||||||
|
print_date_format = #{record.printDateFormat,jdbcType=VARCHAR},
|
||||||
|
show_print_date = #{record.showPrintDate,jdbcType=BIT},
|
||||||
|
show_page_number = #{record.showPageNumber,jdbcType=BIT},
|
||||||
|
column_width_mode = #{record.columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
table_style = #{record.tableStyle,jdbcType=VARCHAR},
|
||||||
|
row_height = #{record.rowHeight,jdbcType=VARCHAR},
|
||||||
|
file_size = #{record.fileSize,jdbcType=INTEGER},
|
||||||
|
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||||
|
file_type = #{record.fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{record.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
file_url_ai = #{record.fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||||
|
`mode` = #{record.mode,jdbcType=INTEGER},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
print_fields = #{record.printFields,jdbcType=LONGVARCHAR},
|
||||||
|
ext = #{record.ext,jdbcType=LONGVARCHAR}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
form_id = #{record.formId,jdbcType=BIGINT},
|
||||||
|
main_title = #{record.mainTitle,jdbcType=VARCHAR},
|
||||||
|
sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
||||||
|
display_format = #{record.displayFormat,jdbcType=VARCHAR},
|
||||||
|
document_no_prefix = #{record.documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
show_document_no = #{record.showDocumentNo,jdbcType=BIT},
|
||||||
|
print_date_format = #{record.printDateFormat,jdbcType=VARCHAR},
|
||||||
|
show_print_date = #{record.showPrintDate,jdbcType=BIT},
|
||||||
|
show_page_number = #{record.showPageNumber,jdbcType=BIT},
|
||||||
|
column_width_mode = #{record.columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
table_style = #{record.tableStyle,jdbcType=VARCHAR},
|
||||||
|
row_height = #{record.rowHeight,jdbcType=VARCHAR},
|
||||||
|
file_size = #{record.fileSize,jdbcType=INTEGER},
|
||||||
|
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||||
|
file_type = #{record.fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{record.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
file_url_ai = #{record.fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||||
|
`mode` = #{record.mode,jdbcType=INTEGER},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
<set>
|
||||||
|
<if test="formId != null">
|
||||||
|
form_id = #{formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="mainTitle != null">
|
||||||
|
main_title = #{mainTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="subTitle != null">
|
||||||
|
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="displayFormat != null">
|
||||||
|
display_format = #{displayFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="documentNoPrefix != null">
|
||||||
|
document_no_prefix = #{documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showDocumentNo != null">
|
||||||
|
show_document_no = #{showDocumentNo,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="printDateFormat != null">
|
||||||
|
print_date_format = #{printDateFormat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showPrintDate != null">
|
||||||
|
show_print_date = #{showPrintDate,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="showPageNumber != null">
|
||||||
|
show_page_number = #{showPageNumber,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="columnWidthMode != null">
|
||||||
|
column_width_mode = #{columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="tableStyle != null">
|
||||||
|
table_style = #{tableStyle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="rowHeight != null">
|
||||||
|
row_height = #{rowHeight,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileSize != null">
|
||||||
|
file_size = #{fileSize,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null">
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
file_type = #{fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
file_wps_id = #{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrlAi != null">
|
||||||
|
file_url_ai = #{fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="mode != null">
|
||||||
|
`mode` = #{mode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="printFields != null">
|
||||||
|
print_fields = #{printFields,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
ext = #{ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
set form_id = #{formId,jdbcType=BIGINT},
|
||||||
|
main_title = #{mainTitle,jdbcType=VARCHAR},
|
||||||
|
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||||
|
display_format = #{displayFormat,jdbcType=VARCHAR},
|
||||||
|
document_no_prefix = #{documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
show_document_no = #{showDocumentNo,jdbcType=BIT},
|
||||||
|
print_date_format = #{printDateFormat,jdbcType=VARCHAR},
|
||||||
|
show_print_date = #{showPrintDate,jdbcType=BIT},
|
||||||
|
show_page_number = #{showPageNumber,jdbcType=BIT},
|
||||||
|
column_width_mode = #{columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
table_style = #{tableStyle,jdbcType=VARCHAR},
|
||||||
|
row_height = #{rowHeight,jdbcType=VARCHAR},
|
||||||
|
file_size = #{fileSize,jdbcType=INTEGER},
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
file_type = #{fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
file_url_ai = #{fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
`mode` = #{mode,jdbcType=INTEGER},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
print_fields = #{printFields,jdbcType=LONGVARCHAR},
|
||||||
|
ext = #{ext,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfig">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config
|
||||||
|
set form_id = #{formId,jdbcType=BIGINT},
|
||||||
|
main_title = #{mainTitle,jdbcType=VARCHAR},
|
||||||
|
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||||
|
display_format = #{displayFormat,jdbcType=VARCHAR},
|
||||||
|
document_no_prefix = #{documentNoPrefix,jdbcType=VARCHAR},
|
||||||
|
show_document_no = #{showDocumentNo,jdbcType=BIT},
|
||||||
|
print_date_format = #{printDateFormat,jdbcType=VARCHAR},
|
||||||
|
show_print_date = #{showPrintDate,jdbcType=BIT},
|
||||||
|
show_page_number = #{showPageNumber,jdbcType=BIT},
|
||||||
|
column_width_mode = #{columnWidthMode,jdbcType=VARCHAR},
|
||||||
|
table_style = #{tableStyle,jdbcType=VARCHAR},
|
||||||
|
row_height = #{rowHeight,jdbcType=VARCHAR},
|
||||||
|
file_size = #{fileSize,jdbcType=INTEGER},
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
file_type = #{fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
file_url_ai = #{fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
`mode` = #{mode,jdbcType=INTEGER},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_print_config (form_id,
|
||||||
|
main_title, sub_title, display_format,
|
||||||
|
document_no_prefix, show_document_no,
|
||||||
|
print_date_format, show_print_date, show_page_number,
|
||||||
|
column_width_mode, table_style,
|
||||||
|
row_height, file_size, file_name,
|
||||||
|
file_type, file_wps_id, file_url_ai,
|
||||||
|
file_url, `mode`, created_by,
|
||||||
|
updated_by, create_time, update_time,
|
||||||
|
print_fields, ext)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.formId,jdbcType=BIGINT},
|
||||||
|
#{item.mainTitle,jdbcType=VARCHAR}, #{item.subTitle,jdbcType=VARCHAR}, #{item.displayFormat,jdbcType=VARCHAR},
|
||||||
|
#{item.documentNoPrefix,jdbcType=VARCHAR}, #{item.showDocumentNo,jdbcType=BIT},
|
||||||
|
#{item.printDateFormat,jdbcType=VARCHAR}, #{item.showPrintDate,jdbcType=BIT}, #{item.showPageNumber,jdbcType=BIT},
|
||||||
|
#{item.columnWidthMode,jdbcType=VARCHAR}, #{item.tableStyle,jdbcType=VARCHAR},
|
||||||
|
#{item.rowHeight,jdbcType=VARCHAR}, #{item.fileSize,jdbcType=INTEGER}, #{item.fileName,jdbcType=VARCHAR},
|
||||||
|
#{item.fileType,jdbcType=VARCHAR}, #{item.fileWpsId,jdbcType=VARCHAR}, #{item.fileUrlAi,jdbcType=VARCHAR},
|
||||||
|
#{item.fileUrl,jdbcType=VARCHAR}, #{item.mode,jdbcType=INTEGER}, #{item.createdBy,jdbcType=BIGINT},
|
||||||
|
#{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.printFields,jdbcType=LONGVARCHAR}, #{item.ext,jdbcType=LONGVARCHAR})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormPrintConfigMapperExt" />
|
||||||
@ -0,0 +1,403 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormPrintConfigTplMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="form_print_config_id" jdbcType="BIGINT" property="formPrintConfigId" />
|
||||||
|
<result column="file_url" jdbcType="VARCHAR" property="fileUrl" />
|
||||||
|
<result column="file_type" jdbcType="VARCHAR" property="fileType" />
|
||||||
|
<result column="file_wps_id" jdbcType="VARCHAR" property="fileWpsId" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="deleted" jdbcType="TINYINT" property="deleted" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, form_print_config_id, file_url, file_type, file_wps_id, created_by, updated_by,
|
||||||
|
create_time, update_time, deleted
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config_tpl
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config_tpl
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_print_config_tpl
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_print_config_tpl
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_print_config_tpl (form_print_config_id, file_url, file_type,
|
||||||
|
file_wps_id, created_by, updated_by,
|
||||||
|
create_time, update_time, deleted
|
||||||
|
)
|
||||||
|
values (#{formPrintConfigId,jdbcType=BIGINT}, #{fileUrl,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR},
|
||||||
|
#{fileWpsId,jdbcType=VARCHAR}, #{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_print_config_tpl
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formPrintConfigId != null">
|
||||||
|
form_print_config_id,
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
file_url,
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
file_type,
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
file_wps_id,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formPrintConfigId != null">
|
||||||
|
#{formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
#{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
#{fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
#{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
#{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_print_config_tpl
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config_tpl
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.formPrintConfigId != null">
|
||||||
|
form_print_config_id = #{record.formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileUrl != null">
|
||||||
|
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileType != null">
|
||||||
|
file_type = #{record.fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fileWpsId != null">
|
||||||
|
file_wps_id = #{record.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.deleted != null">
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config_tpl
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
form_print_config_id = #{record.formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||||
|
file_type = #{record.fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{record.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config_tpl
|
||||||
|
<set>
|
||||||
|
<if test="formPrintConfigId != null">
|
||||||
|
form_print_config_id = #{formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null">
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
file_type = #{fileType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileWpsId != null">
|
||||||
|
file_wps_id = #{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_print_config_tpl
|
||||||
|
set form_print_config_id = #{formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
file_type = #{fileType,jdbcType=VARCHAR},
|
||||||
|
file_wps_id = #{fileWpsId,jdbcType=VARCHAR},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config_tpl
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTplExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_print_config_tpl
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_print_config_tpl (form_print_config_id,
|
||||||
|
file_url, file_type, file_wps_id,
|
||||||
|
created_by, updated_by, create_time,
|
||||||
|
update_time, deleted)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.formPrintConfigId,jdbcType=BIGINT},
|
||||||
|
#{item.fileUrl,jdbcType=VARCHAR}, #{item.fileType,jdbcType=VARCHAR}, #{item.fileWpsId,jdbcType=VARCHAR},
|
||||||
|
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=TINYINT})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormPrintConfigTplMapperExt" />
|
||||||
@ -0,0 +1,769 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormTemplateFieldMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="template_id" jdbcType="BIGINT" property="templateId" />
|
||||||
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||||
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
||||||
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
||||||
|
<result column="show_title" jdbcType="VARCHAR" property="showTitle" />
|
||||||
|
<result column="db_field" jdbcType="VARCHAR" property="dbField" />
|
||||||
|
<result column="required" jdbcType="BIT" property="required" />
|
||||||
|
<result column="show" jdbcType="BIT" property="show" />
|
||||||
|
<result column="dcode" jdbcType="VARCHAR" property="dcode" />
|
||||||
|
<result column="line" jdbcType="TINYINT" property="line" />
|
||||||
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||||
|
<result column="fixed" jdbcType="BIT" property="fixed" />
|
||||||
|
<result column="fmt_constraint" jdbcType="VARCHAR" property="fmtConstraint" />
|
||||||
|
<result column="edit" jdbcType="BIT" property="edit" />
|
||||||
|
<result column="sort_order" jdbcType="INTEGER" property="sortOrder" />
|
||||||
|
<result column="cascade_close" jdbcType="VARCHAR" property="cascadeClose" />
|
||||||
|
<result column="cascade_open" jdbcType="VARCHAR" property="cascadeOpen" />
|
||||||
|
<result column="edit_disabled_msg" jdbcType="VARCHAR" property="editDisabledMsg" />
|
||||||
|
<result column="edit_disabled" jdbcType="BIT" property="editDisabled" />
|
||||||
|
<result column="show_cascade" jdbcType="VARCHAR" property="showCascade" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<result column="ext" jdbcType="LONGVARCHAR" property="ext" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, template_id, code, parent_id, title, show_title, db_field, required, `show`,
|
||||||
|
dcode, line, `type`, fixed, fmt_constraint, edit, sort_order, cascade_close, cascade_open,
|
||||||
|
edit_disabled_msg, edit_disabled, show_cascade, created_by, updated_by, create_time,
|
||||||
|
update_time
|
||||||
|
</sql>
|
||||||
|
<sql id="Blob_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
ext
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExampleWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_template_field
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template_field
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from form_template_field
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_template_field
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_template_field
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_template_field (template_id, code, parent_id,
|
||||||
|
title, show_title, db_field,
|
||||||
|
required, `show`, dcode, line,
|
||||||
|
`type`, fixed, fmt_constraint,
|
||||||
|
edit, sort_order, cascade_close,
|
||||||
|
cascade_open, edit_disabled_msg, edit_disabled,
|
||||||
|
show_cascade, created_by, updated_by,
|
||||||
|
create_time, update_time, ext
|
||||||
|
)
|
||||||
|
values (#{templateId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT},
|
||||||
|
#{title,jdbcType=VARCHAR}, #{showTitle,jdbcType=VARCHAR}, #{dbField,jdbcType=VARCHAR},
|
||||||
|
#{required,jdbcType=BIT}, #{show,jdbcType=BIT}, #{dcode,jdbcType=VARCHAR}, #{line,jdbcType=TINYINT},
|
||||||
|
#{type,jdbcType=VARCHAR}, #{fixed,jdbcType=BIT}, #{fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
#{edit,jdbcType=BIT}, #{sortOrder,jdbcType=INTEGER}, #{cascadeClose,jdbcType=VARCHAR},
|
||||||
|
#{cascadeOpen,jdbcType=VARCHAR}, #{editDisabledMsg,jdbcType=VARCHAR}, #{editDisabled,jdbcType=BIT},
|
||||||
|
#{showCascade,jdbcType=VARCHAR}, #{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{ext,jdbcType=LONGVARCHAR}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_template_field
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="templateId != null">
|
||||||
|
template_id,
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code,
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id,
|
||||||
|
</if>
|
||||||
|
<if test="title != null">
|
||||||
|
title,
|
||||||
|
</if>
|
||||||
|
<if test="showTitle != null">
|
||||||
|
show_title,
|
||||||
|
</if>
|
||||||
|
<if test="dbField != null">
|
||||||
|
db_field,
|
||||||
|
</if>
|
||||||
|
<if test="required != null">
|
||||||
|
required,
|
||||||
|
</if>
|
||||||
|
<if test="show != null">
|
||||||
|
`show`,
|
||||||
|
</if>
|
||||||
|
<if test="dcode != null">
|
||||||
|
dcode,
|
||||||
|
</if>
|
||||||
|
<if test="line != null">
|
||||||
|
line,
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
`type`,
|
||||||
|
</if>
|
||||||
|
<if test="fixed != null">
|
||||||
|
fixed,
|
||||||
|
</if>
|
||||||
|
<if test="fmtConstraint != null">
|
||||||
|
fmt_constraint,
|
||||||
|
</if>
|
||||||
|
<if test="edit != null">
|
||||||
|
edit,
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
sort_order,
|
||||||
|
</if>
|
||||||
|
<if test="cascadeClose != null">
|
||||||
|
cascade_close,
|
||||||
|
</if>
|
||||||
|
<if test="cascadeOpen != null">
|
||||||
|
cascade_open,
|
||||||
|
</if>
|
||||||
|
<if test="editDisabledMsg != null">
|
||||||
|
edit_disabled_msg,
|
||||||
|
</if>
|
||||||
|
<if test="editDisabled != null">
|
||||||
|
edit_disabled,
|
||||||
|
</if>
|
||||||
|
<if test="showCascade != null">
|
||||||
|
show_cascade,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
ext,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="templateId != null">
|
||||||
|
#{templateId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
#{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
#{parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="title != null">
|
||||||
|
#{title,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showTitle != null">
|
||||||
|
#{showTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="dbField != null">
|
||||||
|
#{dbField,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="required != null">
|
||||||
|
#{required,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="show != null">
|
||||||
|
#{show,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="dcode != null">
|
||||||
|
#{dcode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="line != null">
|
||||||
|
#{line,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
#{type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fixed != null">
|
||||||
|
#{fixed,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="fmtConstraint != null">
|
||||||
|
#{fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="edit != null">
|
||||||
|
#{edit,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
#{sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cascadeClose != null">
|
||||||
|
#{cascadeClose,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cascadeOpen != null">
|
||||||
|
#{cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="editDisabledMsg != null">
|
||||||
|
#{editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="editDisabled != null">
|
||||||
|
#{editDisabled,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="showCascade != null">
|
||||||
|
#{showCascade,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
#{ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_template_field
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.templateId != null">
|
||||||
|
template_id = #{record.templateId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.code != null">
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.parentId != null">
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.title != null">
|
||||||
|
title = #{record.title,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.showTitle != null">
|
||||||
|
show_title = #{record.showTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.dbField != null">
|
||||||
|
db_field = #{record.dbField,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.required != null">
|
||||||
|
required = #{record.required,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.show != null">
|
||||||
|
`show` = #{record.show,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.dcode != null">
|
||||||
|
dcode = #{record.dcode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.line != null">
|
||||||
|
line = #{record.line,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.type != null">
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fixed != null">
|
||||||
|
fixed = #{record.fixed,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.fmtConstraint != null">
|
||||||
|
fmt_constraint = #{record.fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.edit != null">
|
||||||
|
edit = #{record.edit,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.sortOrder != null">
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.cascadeClose != null">
|
||||||
|
cascade_close = #{record.cascadeClose,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.cascadeOpen != null">
|
||||||
|
cascade_open = #{record.cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.editDisabledMsg != null">
|
||||||
|
edit_disabled_msg = #{record.editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.editDisabled != null">
|
||||||
|
edit_disabled = #{record.editDisabled,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="record.showCascade != null">
|
||||||
|
show_cascade = #{record.showCascade,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.ext != null">
|
||||||
|
ext = #{record.ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
template_id = #{record.templateId,jdbcType=BIGINT},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
title = #{record.title,jdbcType=VARCHAR},
|
||||||
|
show_title = #{record.showTitle,jdbcType=VARCHAR},
|
||||||
|
db_field = #{record.dbField,jdbcType=VARCHAR},
|
||||||
|
required = #{record.required,jdbcType=BIT},
|
||||||
|
`show` = #{record.show,jdbcType=BIT},
|
||||||
|
dcode = #{record.dcode,jdbcType=VARCHAR},
|
||||||
|
line = #{record.line,jdbcType=TINYINT},
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
fixed = #{record.fixed,jdbcType=BIT},
|
||||||
|
fmt_constraint = #{record.fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
edit = #{record.edit,jdbcType=BIT},
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
cascade_close = #{record.cascadeClose,jdbcType=VARCHAR},
|
||||||
|
cascade_open = #{record.cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
edit_disabled_msg = #{record.editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
edit_disabled = #{record.editDisabled,jdbcType=BIT},
|
||||||
|
show_cascade = #{record.showCascade,jdbcType=VARCHAR},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
ext = #{record.ext,jdbcType=LONGVARCHAR}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
template_id = #{record.templateId,jdbcType=BIGINT},
|
||||||
|
code = #{record.code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
||||||
|
title = #{record.title,jdbcType=VARCHAR},
|
||||||
|
show_title = #{record.showTitle,jdbcType=VARCHAR},
|
||||||
|
db_field = #{record.dbField,jdbcType=VARCHAR},
|
||||||
|
required = #{record.required,jdbcType=BIT},
|
||||||
|
`show` = #{record.show,jdbcType=BIT},
|
||||||
|
dcode = #{record.dcode,jdbcType=VARCHAR},
|
||||||
|
line = #{record.line,jdbcType=TINYINT},
|
||||||
|
`type` = #{record.type,jdbcType=VARCHAR},
|
||||||
|
fixed = #{record.fixed,jdbcType=BIT},
|
||||||
|
fmt_constraint = #{record.fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
edit = #{record.edit,jdbcType=BIT},
|
||||||
|
sort_order = #{record.sortOrder,jdbcType=INTEGER},
|
||||||
|
cascade_close = #{record.cascadeClose,jdbcType=VARCHAR},
|
||||||
|
cascade_open = #{record.cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
edit_disabled_msg = #{record.editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
edit_disabled = #{record.editDisabled,jdbcType=BIT},
|
||||||
|
show_cascade = #{record.showCascade,jdbcType=VARCHAR},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
<set>
|
||||||
|
<if test="templateId != null">
|
||||||
|
template_id = #{templateId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="title != null">
|
||||||
|
title = #{title,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="showTitle != null">
|
||||||
|
show_title = #{showTitle,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="dbField != null">
|
||||||
|
db_field = #{dbField,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="required != null">
|
||||||
|
required = #{required,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="show != null">
|
||||||
|
`show` = #{show,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="dcode != null">
|
||||||
|
dcode = #{dcode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="line != null">
|
||||||
|
line = #{line,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fixed != null">
|
||||||
|
fixed = #{fixed,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="fmtConstraint != null">
|
||||||
|
fmt_constraint = #{fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="edit != null">
|
||||||
|
edit = #{edit,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="sortOrder != null">
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cascadeClose != null">
|
||||||
|
cascade_close = #{cascadeClose,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="cascadeOpen != null">
|
||||||
|
cascade_open = #{cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="editDisabledMsg != null">
|
||||||
|
edit_disabled_msg = #{editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="editDisabled != null">
|
||||||
|
edit_disabled = #{editDisabled,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="showCascade != null">
|
||||||
|
show_cascade = #{showCascade,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="ext != null">
|
||||||
|
ext = #{ext,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
set template_id = #{templateId,jdbcType=BIGINT},
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
title = #{title,jdbcType=VARCHAR},
|
||||||
|
show_title = #{showTitle,jdbcType=VARCHAR},
|
||||||
|
db_field = #{dbField,jdbcType=VARCHAR},
|
||||||
|
required = #{required,jdbcType=BIT},
|
||||||
|
`show` = #{show,jdbcType=BIT},
|
||||||
|
dcode = #{dcode,jdbcType=VARCHAR},
|
||||||
|
line = #{line,jdbcType=TINYINT},
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
fixed = #{fixed,jdbcType=BIT},
|
||||||
|
fmt_constraint = #{fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
edit = #{edit,jdbcType=BIT},
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
cascade_close = #{cascadeClose,jdbcType=VARCHAR},
|
||||||
|
cascade_open = #{cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
edit_disabled_msg = #{editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
edit_disabled = #{editDisabled,jdbcType=BIT},
|
||||||
|
show_cascade = #{showCascade,jdbcType=VARCHAR},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
ext = #{ext,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template_field
|
||||||
|
set template_id = #{templateId,jdbcType=BIGINT},
|
||||||
|
code = #{code,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{parentId,jdbcType=BIGINT},
|
||||||
|
title = #{title,jdbcType=VARCHAR},
|
||||||
|
show_title = #{showTitle,jdbcType=VARCHAR},
|
||||||
|
db_field = #{dbField,jdbcType=VARCHAR},
|
||||||
|
required = #{required,jdbcType=BIT},
|
||||||
|
`show` = #{show,jdbcType=BIT},
|
||||||
|
dcode = #{dcode,jdbcType=VARCHAR},
|
||||||
|
line = #{line,jdbcType=TINYINT},
|
||||||
|
`type` = #{type,jdbcType=VARCHAR},
|
||||||
|
fixed = #{fixed,jdbcType=BIT},
|
||||||
|
fmt_constraint = #{fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
edit = #{edit,jdbcType=BIT},
|
||||||
|
sort_order = #{sortOrder,jdbcType=INTEGER},
|
||||||
|
cascade_close = #{cascadeClose,jdbcType=VARCHAR},
|
||||||
|
cascade_open = #{cascadeOpen,jdbcType=VARCHAR},
|
||||||
|
edit_disabled_msg = #{editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
edit_disabled = #{editDisabled,jdbcType=BIT},
|
||||||
|
show_cascade = #{showCascade,jdbcType=VARCHAR},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template_field
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateFieldExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template_field
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_template_field (template_id,
|
||||||
|
code, parent_id, title,
|
||||||
|
show_title, db_field, required,
|
||||||
|
`show`, dcode, line,
|
||||||
|
`type`, fixed, fmt_constraint,
|
||||||
|
edit, sort_order, cascade_close,
|
||||||
|
cascade_open, edit_disabled_msg,
|
||||||
|
edit_disabled, show_cascade, created_by,
|
||||||
|
updated_by, create_time, update_time,
|
||||||
|
ext)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.templateId,jdbcType=BIGINT},
|
||||||
|
#{item.code,jdbcType=VARCHAR}, #{item.parentId,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR},
|
||||||
|
#{item.showTitle,jdbcType=VARCHAR}, #{item.dbField,jdbcType=VARCHAR}, #{item.required,jdbcType=BIT},
|
||||||
|
#{item.show,jdbcType=BIT}, #{item.dcode,jdbcType=VARCHAR}, #{item.line,jdbcType=TINYINT},
|
||||||
|
#{item.type,jdbcType=VARCHAR}, #{item.fixed,jdbcType=BIT}, #{item.fmtConstraint,jdbcType=VARCHAR},
|
||||||
|
#{item.edit,jdbcType=BIT}, #{item.sortOrder,jdbcType=INTEGER}, #{item.cascadeClose,jdbcType=VARCHAR},
|
||||||
|
#{item.cascadeOpen,jdbcType=VARCHAR}, #{item.editDisabledMsg,jdbcType=VARCHAR},
|
||||||
|
#{item.editDisabled,jdbcType=BIT}, #{item.showCascade,jdbcType=VARCHAR}, #{item.createdBy,jdbcType=BIGINT},
|
||||||
|
#{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.ext,jdbcType=LONGVARCHAR})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormTemplateFieldMapperExt" />
|
||||||
@ -0,0 +1,370 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormTemplateMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormTemplate">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="form_id" jdbcType="BIGINT" property="formId" />
|
||||||
|
<result column="version" jdbcType="INTEGER" property="version" />
|
||||||
|
<result column="content_encoding" jdbcType="VARCHAR" property="contentEncoding" />
|
||||||
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
|
||||||
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, form_id, version, content_encoding, created_by, updated_by, create_time, update_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_template
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from form_template
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplate">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_template (form_id, version, content_encoding,
|
||||||
|
created_by, updated_by, create_time,
|
||||||
|
update_time)
|
||||||
|
values (#{formId,jdbcType=BIGINT}, #{version,jdbcType=INTEGER}, #{contentEncoding,jdbcType=VARCHAR},
|
||||||
|
#{createdBy,jdbcType=BIGINT}, #{updatedBy,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplate">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into form_template
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formId != null">
|
||||||
|
form_id,
|
||||||
|
</if>
|
||||||
|
<if test="version != null">
|
||||||
|
version,
|
||||||
|
</if>
|
||||||
|
<if test="contentEncoding != null">
|
||||||
|
content_encoding,
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by,
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="formId != null">
|
||||||
|
#{formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="version != null">
|
||||||
|
#{version,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="contentEncoding != null">
|
||||||
|
#{contentEncoding,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
#{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
#{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from form_template
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.formId != null">
|
||||||
|
form_id = #{record.formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.version != null">
|
||||||
|
version = #{record.version,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.contentEncoding != null">
|
||||||
|
content_encoding = #{record.contentEncoding,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.createdBy != null">
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.updatedBy != null">
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
form_id = #{record.formId,jdbcType=BIGINT},
|
||||||
|
version = #{record.version,jdbcType=INTEGER},
|
||||||
|
content_encoding = #{record.contentEncoding,jdbcType=VARCHAR},
|
||||||
|
created_by = #{record.createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{record.updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplate">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template
|
||||||
|
<set>
|
||||||
|
<if test="formId != null">
|
||||||
|
form_id = #{formId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="version != null">
|
||||||
|
version = #{version,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="contentEncoding != null">
|
||||||
|
content_encoding = #{contentEncoding,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createdBy != null">
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="updatedBy != null">
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplate">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update form_template
|
||||||
|
set form_id = #{formId,jdbcType=BIGINT},
|
||||||
|
version = #{version,jdbcType=INTEGER},
|
||||||
|
content_encoding = #{contentEncoding,jdbcType=VARCHAR},
|
||||||
|
created_by = #{createdBy,jdbcType=BIGINT},
|
||||||
|
updated_by = #{updatedBy,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormTemplateExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from form_template
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into form_template (form_id,
|
||||||
|
version, content_encoding, created_by,
|
||||||
|
updated_by, create_time, update_time
|
||||||
|
)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.formId,jdbcType=BIGINT},
|
||||||
|
#{item.version,jdbcType=INTEGER}, #{item.contentEncoding,jdbcType=VARCHAR}, #{item.createdBy,jdbcType=BIGINT},
|
||||||
|
#{item.updatedBy,jdbcType=BIGINT}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}
|
||||||
|
)</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormTemplateMapperExt" />
|
||||||
@ -0,0 +1,504 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.ModifyLogRecordMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="entity_type" jdbcType="VARCHAR" property="entityType" />
|
||||||
|
<result column="entity_id" jdbcType="VARCHAR" property="entityId" />
|
||||||
|
<result column="form_code" jdbcType="VARCHAR" property="formCode" />
|
||||||
|
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||||
|
<result column="field_chinese_name" jdbcType="VARCHAR" property="fieldChineseName" />
|
||||||
|
<result column="field_english_name" jdbcType="VARCHAR" property="fieldEnglishName" />
|
||||||
|
<result column="old_value" jdbcType="VARCHAR" property="oldValue" />
|
||||||
|
<result column="new_value" jdbcType="VARCHAR" property="newValue" />
|
||||||
|
<result column="operator" jdbcType="BIGINT" property="operator" />
|
||||||
|
<result column="operator_name" jdbcType="VARCHAR" property="operatorName" />
|
||||||
|
<result column="operation_time" jdbcType="TIMESTAMP" property="operationTime" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="service_name" jdbcType="VARCHAR" property="serviceName" />
|
||||||
|
<result column="deleted" jdbcType="TINYINT" property="deleted" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, entity_type, entity_id, form_code, description, field_chinese_name, field_english_name,
|
||||||
|
old_value, new_value, `operator`, operator_name, operation_time, create_time, update_time,
|
||||||
|
service_name, deleted
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from modify_log_record
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from modify_log_record
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from modify_log_record
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from modify_log_record
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into modify_log_record (entity_type, entity_id, form_code,
|
||||||
|
description, field_chinese_name, field_english_name,
|
||||||
|
old_value, new_value, `operator`,
|
||||||
|
operator_name, operation_time, create_time,
|
||||||
|
update_time, service_name, deleted
|
||||||
|
)
|
||||||
|
values (#{entityType,jdbcType=VARCHAR}, #{entityId,jdbcType=VARCHAR}, #{formCode,jdbcType=VARCHAR},
|
||||||
|
#{description,jdbcType=VARCHAR}, #{fieldChineseName,jdbcType=VARCHAR}, #{fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
#{oldValue,jdbcType=VARCHAR}, #{newValue,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT},
|
||||||
|
#{operatorName,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP}, #{serviceName,jdbcType=VARCHAR}, #{deleted,jdbcType=TINYINT}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into modify_log_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="entityType != null">
|
||||||
|
entity_type,
|
||||||
|
</if>
|
||||||
|
<if test="entityId != null">
|
||||||
|
entity_id,
|
||||||
|
</if>
|
||||||
|
<if test="formCode != null">
|
||||||
|
form_code,
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description,
|
||||||
|
</if>
|
||||||
|
<if test="fieldChineseName != null">
|
||||||
|
field_chinese_name,
|
||||||
|
</if>
|
||||||
|
<if test="fieldEnglishName != null">
|
||||||
|
field_english_name,
|
||||||
|
</if>
|
||||||
|
<if test="oldValue != null">
|
||||||
|
old_value,
|
||||||
|
</if>
|
||||||
|
<if test="newValue != null">
|
||||||
|
new_value,
|
||||||
|
</if>
|
||||||
|
<if test="operator != null">
|
||||||
|
`operator`,
|
||||||
|
</if>
|
||||||
|
<if test="operatorName != null">
|
||||||
|
operator_name,
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
operation_time,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="serviceName != null">
|
||||||
|
service_name,
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="entityType != null">
|
||||||
|
#{entityType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="entityId != null">
|
||||||
|
#{entityId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="formCode != null">
|
||||||
|
#{formCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
#{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fieldChineseName != null">
|
||||||
|
#{fieldChineseName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fieldEnglishName != null">
|
||||||
|
#{fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="oldValue != null">
|
||||||
|
#{oldValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="newValue != null">
|
||||||
|
#{newValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operator != null">
|
||||||
|
#{operator,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="operatorName != null">
|
||||||
|
#{operatorName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
#{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="serviceName != null">
|
||||||
|
#{serviceName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
#{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from modify_log_record
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update modify_log_record
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.entityType != null">
|
||||||
|
entity_type = #{record.entityType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.entityId != null">
|
||||||
|
entity_id = #{record.entityId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.formCode != null">
|
||||||
|
form_code = #{record.formCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.description != null">
|
||||||
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fieldChineseName != null">
|
||||||
|
field_chinese_name = #{record.fieldChineseName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.fieldEnglishName != null">
|
||||||
|
field_english_name = #{record.fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.oldValue != null">
|
||||||
|
old_value = #{record.oldValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.newValue != null">
|
||||||
|
new_value = #{record.newValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.operator != null">
|
||||||
|
`operator` = #{record.operator,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.operatorName != null">
|
||||||
|
operator_name = #{record.operatorName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.operationTime != null">
|
||||||
|
operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.serviceName != null">
|
||||||
|
service_name = #{record.serviceName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.deleted != null">
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update modify_log_record
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
entity_type = #{record.entityType,jdbcType=VARCHAR},
|
||||||
|
entity_id = #{record.entityId,jdbcType=VARCHAR},
|
||||||
|
form_code = #{record.formCode,jdbcType=VARCHAR},
|
||||||
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
|
field_chinese_name = #{record.fieldChineseName,jdbcType=VARCHAR},
|
||||||
|
field_english_name = #{record.fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
old_value = #{record.oldValue,jdbcType=VARCHAR},
|
||||||
|
new_value = #{record.newValue,jdbcType=VARCHAR},
|
||||||
|
`operator` = #{record.operator,jdbcType=BIGINT},
|
||||||
|
operator_name = #{record.operatorName,jdbcType=VARCHAR},
|
||||||
|
operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
service_name = #{record.serviceName,jdbcType=VARCHAR},
|
||||||
|
deleted = #{record.deleted,jdbcType=TINYINT}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update modify_log_record
|
||||||
|
<set>
|
||||||
|
<if test="entityType != null">
|
||||||
|
entity_type = #{entityType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="entityId != null">
|
||||||
|
entity_id = #{entityId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="formCode != null">
|
||||||
|
form_code = #{formCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fieldChineseName != null">
|
||||||
|
field_chinese_name = #{fieldChineseName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fieldEnglishName != null">
|
||||||
|
field_english_name = #{fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="oldValue != null">
|
||||||
|
old_value = #{oldValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="newValue != null">
|
||||||
|
new_value = #{newValue,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operator != null">
|
||||||
|
`operator` = #{operator,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="operatorName != null">
|
||||||
|
operator_name = #{operatorName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="serviceName != null">
|
||||||
|
service_name = #{serviceName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update modify_log_record
|
||||||
|
set entity_type = #{entityType,jdbcType=VARCHAR},
|
||||||
|
entity_id = #{entityId,jdbcType=VARCHAR},
|
||||||
|
form_code = #{formCode,jdbcType=VARCHAR},
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
field_chinese_name = #{fieldChineseName,jdbcType=VARCHAR},
|
||||||
|
field_english_name = #{fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
old_value = #{oldValue,jdbcType=VARCHAR},
|
||||||
|
new_value = #{newValue,jdbcType=VARCHAR},
|
||||||
|
`operator` = #{operator,jdbcType=BIGINT},
|
||||||
|
operator_name = #{operatorName,jdbcType=VARCHAR},
|
||||||
|
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
service_name = #{serviceName,jdbcType=VARCHAR},
|
||||||
|
deleted = #{deleted,jdbcType=TINYINT}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from modify_log_record
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecordExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from modify_log_record
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into modify_log_record (entity_type,
|
||||||
|
entity_id, form_code, description,
|
||||||
|
field_chinese_name, field_english_name,
|
||||||
|
old_value, new_value, `operator`,
|
||||||
|
operator_name, operation_time,
|
||||||
|
create_time, update_time, service_name,
|
||||||
|
deleted)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.entityType,jdbcType=VARCHAR},
|
||||||
|
#{item.entityId,jdbcType=VARCHAR}, #{item.formCode,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR},
|
||||||
|
#{item.fieldChineseName,jdbcType=VARCHAR}, #{item.fieldEnglishName,jdbcType=VARCHAR},
|
||||||
|
#{item.oldValue,jdbcType=VARCHAR}, #{item.newValue,jdbcType=VARCHAR}, #{item.operator,jdbcType=BIGINT},
|
||||||
|
#{item.operatorName,jdbcType=VARCHAR}, #{item.operationTime,jdbcType=TIMESTAMP},
|
||||||
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.serviceName,jdbcType=VARCHAR},
|
||||||
|
#{item.deleted,jdbcType=TINYINT})</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.ModifyLogRecordMapperExt" />
|
||||||
@ -0,0 +1,321 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.TenantInitStatusMapperExt">
|
||||||
|
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="initialized" jdbcType="TINYINT" property="initialized" />
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
|
<result column="agent_id" jdbcType="BIGINT" property="agentId" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
id, initialized, create_time, update_time, agent_id
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from tenant_init_status
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from tenant_init_status
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from tenant_init_status
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
delete from tenant_init_status
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into tenant_init_status (initialized, create_time, update_time,
|
||||||
|
agent_id)
|
||||||
|
values (#{initialized,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{agentId,jdbcType=BIGINT})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into tenant_init_status
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="initialized != null">
|
||||||
|
initialized,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
<if test="agentId != null">
|
||||||
|
agent_id,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="initialized != null">
|
||||||
|
#{initialized,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="agentId != null">
|
||||||
|
#{agentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample" resultType="java.lang.Long">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select count(*) from tenant_init_status
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update tenant_init_status
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.initialized != null">
|
||||||
|
initialized = #{record.initialized,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="record.createTime != null">
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.updateTime != null">
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.agentId != null">
|
||||||
|
agent_id = #{record.agentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update tenant_init_status
|
||||||
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
|
initialized = #{record.initialized,jdbcType=TINYINT},
|
||||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||||
|
agent_id = #{record.agentId,jdbcType=BIGINT}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update tenant_init_status
|
||||||
|
<set>
|
||||||
|
<if test="initialized != null">
|
||||||
|
initialized = #{initialized,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="agentId != null">
|
||||||
|
agent_id = #{agentId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update tenant_init_status
|
||||||
|
set initialized = #{initialized,jdbcType=TINYINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
agent_id = #{agentId,jdbcType=BIGINT}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<select id="selectByExampleWithPaging" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="example.distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from tenant_init_status
|
||||||
|
<if test="example != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="example.orderByClause != null">
|
||||||
|
order by ${example.orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT #{offset}, #{limit}
|
||||||
|
</select>
|
||||||
|
<select id="selectOneByExample" parameterType="com.pcloud.booksflow.form.mybatis.entity.TenantInitStatusExample" resultMap="BaseResultMap">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from tenant_init_status
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
insert into tenant_init_status (initialized,
|
||||||
|
create_time, update_time, agent_id
|
||||||
|
)
|
||||||
|
values <foreach collection="list" item="item" separator=","> (#{item.initialized,jdbcType=TINYINT},
|
||||||
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.agentId,jdbcType=BIGINT}
|
||||||
|
)</foreach>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.TenantInitStatusMapperExt" />
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!-- Copyright 2009-2012 The MyBatis Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License
|
||||||
|
at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||||
|
CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
|
||||||
|
<!DOCTYPE configuration
|
||||||
|
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<settings>
|
||||||
|
<!-- 这个配置使全局的映射器启用或禁用 缓存 -->
|
||||||
|
<setting name="cacheEnabled" value="true" />
|
||||||
|
<!-- 全局启用或禁用延迟加载。当禁用时, 所有关联对象都会即时加载 -->
|
||||||
|
<setting name="lazyLoadingEnabled" value="true" />
|
||||||
|
<!-- 允许或不允许多种结果集从一个单独 的语句中返回(需要适合的驱动) -->
|
||||||
|
<setting name="multipleResultSetsEnabled" value="true" />
|
||||||
|
<!-- 使用列标签代替列名。 不同的驱动在这 方便表现不同。 参考驱动文档或充分测 试两种方法来决定所使用的驱动 -->
|
||||||
|
<setting name="useColumnLabel" value="true" />
|
||||||
|
<!-- 允许 JDBC 支持生成的键。 需要适合的 驱动。 如果设置为 true 则这个设置强制 生成的键被使用, 尽管一些驱动拒绝兼 容但仍然有效(比如 Derby) -->
|
||||||
|
<setting name="useGeneratedKeys" value="false" />
|
||||||
|
<!-- 配置默认的执行器。SIMPLE 执行器没 有什么特别之处。REUSE 执行器重用 预处理语句。BATCH 执行器重用语句 和批量更新 -->
|
||||||
|
<setting name="defaultExecutorType" value="SIMPLE" />
|
||||||
|
<!-- 设置超时时间, 它决定驱动等待一个数 据库响应的时间 -->
|
||||||
|
<setting name="defaultStatementTimeout" value="100" />
|
||||||
|
<setting name="safeRowBoundsEnabled" value="false" />
|
||||||
|
<setting name="mapUnderscoreToCamelCase" value="false" />
|
||||||
|
<setting name="localCacheScope" value="SESSION" />
|
||||||
|
<setting name="jdbcTypeForNull" value="OTHER" />
|
||||||
|
<setting name="lazyLoadTriggerMethods" value="equals,clone,hashCode,toString" />
|
||||||
|
<!-- 打印查询语句 -->
|
||||||
|
<!-- <setting name="logImpl" value="STDOUT_LOGGING" /> -->
|
||||||
|
</settings>
|
||||||
|
|
||||||
|
<!-- 在mappers定义之前 -->
|
||||||
|
<typeHandlers>
|
||||||
|
<typeHandler javaType="Boolean" jdbcType="SMALLINT" handler="com.pcloud.common.core.mybatis.BooleanTypeHandler" />
|
||||||
|
</typeHandlers>
|
||||||
|
|
||||||
|
<!-- 数据库适配器 -->
|
||||||
|
<plugins>
|
||||||
|
<plugin interceptor="com.pcloud.common.core.mybatis.interceptor.ExecutorInterceptor">
|
||||||
|
<property name="dialectClass" value="${dialectClass}" />
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
@ -0,0 +1,110 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE generatorConfiguration
|
||||||
|
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
||||||
|
<!--
|
||||||
|
Mybatis生成Mapper配置文件
|
||||||
|
1,cmd切换至该xml所在项目根目录,即pom所在目录
|
||||||
|
2,mvn mybatis-generator:generate
|
||||||
|
-->
|
||||||
|
<generatorConfiguration>
|
||||||
|
<!--targetRuntime:代码风格;(MyBatis3、MyBatis3Simple、MyBatis3DynamicSql)-->
|
||||||
|
<context id="default" targetRuntime="MyBatis3">
|
||||||
|
<property name="autoDelimitKeywords" value="true"/>
|
||||||
|
<property name="beginningDelimiter"
|
||||||
|
value="`"/><!-- beginningDelimiter和endingDelimiter:指明数据库的用于标记数据库对象名的符号,比如ORACLE就是双引号,MYSQL默认是`反引号; -->
|
||||||
|
<property name="endingDelimiter" value="`"/>
|
||||||
|
<property name="javaFileEncoding" value="UTF-8"/>
|
||||||
|
<!--实体类序列化插件-->
|
||||||
|
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"/>
|
||||||
|
<!--MapperExt接口生成插件-->
|
||||||
|
<plugin type="com.pcloud.plugins.mybatis.generator.MapperExtPluginAdapter"/>
|
||||||
|
<!--实体类Lombok插件-->
|
||||||
|
<plugin type="com.pcloud.plugins.mybatis.generator.LombokPlugin"/>
|
||||||
|
|
||||||
|
<commentGenerator>
|
||||||
|
<property name="suppressDate" value="true"/><!--阻止生成的注释包含时间戳-->
|
||||||
|
<property name="suppressAllComments" value="false"/><!--是否不生成任何注解-->
|
||||||
|
<property name="addRemarkComments" value="true"/><!--注释中添加数据库的注释-->
|
||||||
|
</commentGenerator>
|
||||||
|
|
||||||
|
<!--数据库相关设置-->
|
||||||
|
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
|
||||||
|
connectionURL="jdbc:mysql://192.168.92.41:3306/booksflow_form"
|
||||||
|
userId="root"
|
||||||
|
password="LGSC2016.lgsc">
|
||||||
|
<property name="nullCatalogMeansCurrent" value="true"/>
|
||||||
|
</jdbcConnection>
|
||||||
|
|
||||||
|
<!--是否强制DECIMAL和NUMERIC类型的字段转换为Java类型的java.math.BigDecimal-->
|
||||||
|
<javaTypeResolver type="com.pcloud.plugins.mybatis.generator.TinyintTypeResolver">
|
||||||
|
<property name="forceBigDecimals" value="false"/>
|
||||||
|
</javaTypeResolver>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
targetPackage:实体类包名;(生成的类要放的包,真实的包受enableSubPackages属性控制)
|
||||||
|
targetProject:实体类位置;(目标项目,指定一个存在的目录下,生成的内容会放到指定目录中,如果目录不存在,MBG不会自动建目录)
|
||||||
|
-->
|
||||||
|
<javaModelGenerator targetPackage="com.pcloud.booksflow.form.mybatis.entity"
|
||||||
|
targetProject="src/main/java">
|
||||||
|
<property name="enableSubPackages"
|
||||||
|
value="true"/><!-- 在targetPackage的基础上,根据数据库的schema再生成一层package,最终生成的类放在这个package下,默认为false -->
|
||||||
|
<property name="trimStrings" value="false"/><!-- 设置是否在getter方法中,对String类型字段调用trim()方法 -->
|
||||||
|
</javaModelGenerator>
|
||||||
|
|
||||||
|
<!-- 生成SQL map的XML文件生成器,
|
||||||
|
注意,在Mybatis3之后,我们可以使用mapper.xml文件+Mapper接口(或者不用mapper接口),
|
||||||
|
或者只使用Mapper接口+Annotation,所以,如果 javaClientGenerator 配置中配置了需要生成XML的话,这个元素就必须配置
|
||||||
|
targetPackage/targetProject:同 javaModelGenerator
|
||||||
|
-->
|
||||||
|
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
|
||||||
|
<property name="enableSubPackages" value="true"/>
|
||||||
|
</sqlMapGenerator>
|
||||||
|
|
||||||
|
<!-- 对于mybatis来说,即生成Mapper接口,注意,如果没有配置该元素,那么默认不会生成Mapper接口
|
||||||
|
targetPackage/targetProject:同javaModelGenerator
|
||||||
|
type:选择怎么生成mapper接口(在MyBatis3/MyBatis3Simple下):
|
||||||
|
1,ANNOTATEDMAPPER:会生成使用Mapper接口+Annotation的方式创建(SQL生成在annotation中),不会生成对应的XML;
|
||||||
|
2,MIXEDMAPPER:使用混合配置,会生成Mapper接口,并适当添加合适的Annotation,但是XML会生成在XML中;
|
||||||
|
3,XMLMAPPER:会生成Mapper接口,接口完全依赖XML;
|
||||||
|
注意,如果context是MyBatis3Simple:只支持ANNOTATEDMAPPER和XMLMAPPER
|
||||||
|
-->
|
||||||
|
<javaClientGenerator type="XMLMAPPER" targetPackage="com.pcloud.booksflow.form.mybatis.mapper"
|
||||||
|
targetProject="src/main/java">
|
||||||
|
<property name="enableSubPackages" value="true"/>
|
||||||
|
<!-- 可以为所有生成的接口添加一个父接口,但是MBG只负责生成,不负责检查
|
||||||
|
<property name="rootInterface" value=""/>
|
||||||
|
-->
|
||||||
|
</javaClientGenerator>
|
||||||
|
|
||||||
|
<!-- <table tableName="form">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- <ignoreColumn column="agent_id"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<!-- <table tableName="form_field_dict">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- <ignoreColumn column="agent_id"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<!-- <table tableName="form_template">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- <ignoreColumn column="agent_id"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<!-- <table tableName="form_template_field">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- <ignoreColumn column="agent_id"/>-->
|
||||||
|
<!-- <ignoreColumn column="d_code"/>-->
|
||||||
|
<!-- <ignoreColumn column="dt_code"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<!-- <table tableName="modify_log_record">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- <ignoreColumn column="agent_id"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<!-- <table tableName="tenant_init_status">-->
|
||||||
|
<!-- <generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
|
||||||
|
<!-- </table>-->
|
||||||
|
<table tableName="form_print_config">
|
||||||
|
<generatedKey column="id" sqlStatement="Mysql" identity="true"/>
|
||||||
|
<ignoreColumn column="agent_id"/>
|
||||||
|
</table>
|
||||||
|
</context>
|
||||||
|
</generatorConfiguration>
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration scan="true" scanPeriod="3 seconds">
|
||||||
|
<!-- 控制台调试输出 -->
|
||||||
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||||
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
<!--日志级别过滤-->
|
||||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||||
|
<level>DEBUG</level>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- INFO级别以上的日志全部都输出,不同的级别输出在不同的文件里面 -->
|
||||||
|
<root>
|
||||||
|
<level value="INFO"/>
|
||||||
|
<appender-ref ref="STDOUT" />
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<logger name="com.pcloud.booksflow.form.mybatis.mapper" level="DEBUG"/>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
51
ruoyi-modules/ruoyi-form/booksflow-form-service/pom.xml
Normal file
51
ruoyi-modules/ruoyi-form/booksflow-form-service/pom.xml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<?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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>ruoyi-form</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>booksflow-form-service</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.deploy.skip>true</maven.deploy.skip>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<org.mapstruct.version>1.5.3.Final</org.mapstruct.version>
|
||||||
|
<javacv.version>1.5.7</javacv.version>
|
||||||
|
<opencv.version>4.5.5-1.5.7</opencv.version>
|
||||||
|
<forest-spring-boot-starter.version>1.5.2-BETA3</forest-spring-boot-starter.version>
|
||||||
|
<xstream.version>1.4.18</xstream.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>booksflow-form-api</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>booksflow-form-mapper</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>booksflow-form-feign</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct</artifactId>
|
||||||
|
<version>${org.mapstruct.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mybatis</groupId>
|
||||||
|
<artifactId>mybatis</artifactId>
|
||||||
|
<version>3.5.7</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
||||||
@ -0,0 +1,145 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.Form;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplate;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateField;
|
||||||
|
import com.pcloud.booksflow.form.service.FormService;
|
||||||
|
import com.pcloud.booksflow.form.service.FormTemplateFieldService;
|
||||||
|
import com.pcloud.booksflow.form.service.FormTemplateService;
|
||||||
|
import com.pcloud.booksflow.form.service.TenantInitializationService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import com.pcloud.booksflow.form.utils.UserUtils;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Api(tags = "表单")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form")
|
||||||
|
public class FormController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormService formService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormTemplateService formTemplateService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormTemplateFieldService formTemplateFieldService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TenantInitializationService tenantInitializationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 后端自用-勿动!!!-设置成模板
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "后端自用-勿动!!!-设置成模板")
|
||||||
|
@PostMapping("/copy")
|
||||||
|
public Boolean copy(@RequestParam Long sourceTenantId, @RequestParam(required = false) Long targetTenantId) {
|
||||||
|
Long targetId;
|
||||||
|
if (targetTenantId == null) {
|
||||||
|
targetId = Long.parseLong(BaseConstant.TplTenantId);
|
||||||
|
} else {
|
||||||
|
targetId = targetTenantId;
|
||||||
|
}
|
||||||
|
return tenantInitializationService.copyForm(sourceTenantId, targetId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置,恢复
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "重置表单")
|
||||||
|
@GetMapping("/reset")
|
||||||
|
public ResponseDto<Long> reset(@RequestParam Long formId) {
|
||||||
|
//查询模板中最大版本号的模板数据,根据这个数据还原
|
||||||
|
Form _formOld = formService.getById(formId);
|
||||||
|
if (_formOld == null) {
|
||||||
|
return new ResponseDto<>(null);
|
||||||
|
}
|
||||||
|
Form _formTpl = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formService.getByCode(_formOld.getCode()));
|
||||||
|
if (_formTpl == null) {
|
||||||
|
return new ResponseDto<>(null);
|
||||||
|
}
|
||||||
|
FormTemplate maxTemplate = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formTemplateService.getMaxVersion(_formTpl.getId()));
|
||||||
|
if (maxTemplate == null) {
|
||||||
|
return new ResponseDto<>(null);
|
||||||
|
}
|
||||||
|
List<FormTemplateField> tplFields = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formTemplateFieldService.getByTemplateId(maxTemplate.getId(), null));
|
||||||
|
FormTemplate newTemplate = formTemplateService.saveUpVersion(formId, maxTemplate, tplFields);
|
||||||
|
return new ResponseDto<>(newTemplate.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建表单
|
||||||
|
*
|
||||||
|
* @param form 表单对象
|
||||||
|
* @return 创建后的表单对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/create")
|
||||||
|
public ResponseDto<Form> create(@RequestBody Form form) {
|
||||||
|
return new ResponseDto<>(formService.create(form));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单
|
||||||
|
*
|
||||||
|
* @param id 表单ID
|
||||||
|
* @return 表单对象
|
||||||
|
*/
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<Form> getById(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单信息
|
||||||
|
*
|
||||||
|
* @param id 表单ID
|
||||||
|
* @param form 更新的表单对象
|
||||||
|
* @return 更新后的表单对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/update")
|
||||||
|
public ResponseDto<Form> update(@RequestParam Long id, @RequestBody Form form) {
|
||||||
|
return new ResponseDto<>(formService.update(id, form));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单
|
||||||
|
*
|
||||||
|
* @param id 表单ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formService.delete(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表单列表
|
||||||
|
*
|
||||||
|
* @param name 表单名称
|
||||||
|
* @return 表单列表
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
public ResponseDto<List<Form>> listByName(@RequestParam(required = false) String name) {
|
||||||
|
Long tenantId = UserUtils.getTenantId();
|
||||||
|
boolean b = tenantInitializationService.initializeTenant(tenantId);
|
||||||
|
log.info("初始化结果:{} {}", tenantId, b);
|
||||||
|
|
||||||
|
return new ResponseDto<>(formService.listByName(name));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,262 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormDictDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormDictVO;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormDict;
|
||||||
|
import com.pcloud.booksflow.form.service.FormDictService;
|
||||||
|
import com.pcloud.booksflow.form.service.FormFieldDictService;
|
||||||
|
import com.pcloud.booksflow.form.service.TenantInitializationService;
|
||||||
|
import com.pcloud.booksflow.form.utils.UserUtils;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.page.PageBeanNew;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormDict Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Api(tags = "字典-有租户")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/dict")
|
||||||
|
@Slf4j
|
||||||
|
public class FormDictController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormDictService formDictService;
|
||||||
|
@Autowired
|
||||||
|
private FormFieldDictService formFieldDictService;
|
||||||
|
@Autowired
|
||||||
|
private TenantInitializationService tenantInitializationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 后端自用-勿动!!!-设置成模板
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "后端自用-勿动!!!-设置成模板")
|
||||||
|
@PostMapping("/copy")
|
||||||
|
public ResponseDto<Boolean> copy(@RequestParam Long sourceTenantId, @RequestParam(required = false) Long targetTenantId,
|
||||||
|
@RequestBody List<String> configTypes) {
|
||||||
|
Long targetId;
|
||||||
|
if (targetTenantId == null) {
|
||||||
|
targetId = Long.parseLong(BaseConstant.TplTenantId);
|
||||||
|
} else {
|
||||||
|
targetId = targetTenantId;
|
||||||
|
}
|
||||||
|
return new ResponseDto<>(tenantInitializationService.copyDict(sourceTenantId, targetId, configTypes));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建或更新表单字典
|
||||||
|
*
|
||||||
|
* @param dto 表单字典DTO对象
|
||||||
|
* @return 表单字典ID
|
||||||
|
*/
|
||||||
|
@ApiOperation("创建或更新表单字典")
|
||||||
|
@PostMapping("/createOrUpdate")
|
||||||
|
public ResponseDto<Long> createOrUpdate(@Validated @RequestBody FormDictDTO dto) {
|
||||||
|
return new ResponseDto<>(formDictService.createOrUpdate(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单字典
|
||||||
|
*
|
||||||
|
* @param id 表单字典ID
|
||||||
|
* @return 表单字典对象
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据ID获取表单字典")
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<FormDict> getById(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formDictService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单字典
|
||||||
|
*
|
||||||
|
* @param id 表单字典ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除表单字典")
|
||||||
|
@PostMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formDictService.delete(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表单字典列表
|
||||||
|
*
|
||||||
|
* @param name 表单字典名称
|
||||||
|
* @param code 表单字典编码
|
||||||
|
* @param currentPage 当前页码
|
||||||
|
* @param numPerPage 每页数量
|
||||||
|
* @return 表单字典列表
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取表单字典列表")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public ResponseDto<PageBeanNew<FormDict>> listByNameAndCode(@RequestParam(required = false) String name,
|
||||||
|
@RequestParam(required = false) String code,
|
||||||
|
@RequestParam(value = "currentPage", defaultValue = "0") Integer currentPage,
|
||||||
|
@RequestParam(value = "numPerPage", defaultValue = "10") Integer numPerPage) {
|
||||||
|
Long tenantId = UserUtils.getTenantId();
|
||||||
|
boolean b = tenantInitializationService.initializeTenant(tenantId);
|
||||||
|
log.info("初始化结果:{} {}", tenantId, b);
|
||||||
|
|
||||||
|
return new ResponseDto<>(formDictService.listByNameAndCode(name, code, currentPage, numPerPage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出字典数据为JSON
|
||||||
|
*
|
||||||
|
* @param configTypes 字典类型集合
|
||||||
|
* @return 包含字典数据的响应
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出字典数据")
|
||||||
|
@PostMapping("/exportDicts")
|
||||||
|
public ResponseDto<List<FormDictVO>> exportDicts(@RequestBody List<String> configTypes) {
|
||||||
|
if (configTypes == null || configTypes.isEmpty()) {
|
||||||
|
return new ResponseDto<>(Collections.emptyList());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取字典基本信息
|
||||||
|
List<FormDict> formDicts = formDictService.list(configTypes);
|
||||||
|
List<FormDictVO> result = new ArrayList<>();
|
||||||
|
|
||||||
|
// 为每个字典类型查询并组装字典项数据
|
||||||
|
for (FormDict formDict : formDicts) {
|
||||||
|
FormDictVO dictVO = new FormDictVO();
|
||||||
|
dictVO.setName(formDict.getName());
|
||||||
|
dictVO.setCode(formDict.getCode());
|
||||||
|
dictVO.setRemarks(formDict.getRemarks());
|
||||||
|
dictVO.setCreatedBy(formDict.getCreatedBy());
|
||||||
|
dictVO.setUpdatedBy(formDict.getUpdatedBy());
|
||||||
|
dictVO.setCreateTime(formDict.getCreateTime());
|
||||||
|
dictVO.setUpdateTime(formDict.getUpdateTime());
|
||||||
|
dictVO.setDeleted(formDict.getDeleted());
|
||||||
|
|
||||||
|
// 查询该字典类型的字典项数据
|
||||||
|
FormFieldDictQ query = new FormFieldDictQ();
|
||||||
|
query.setTree(true); // 返回树形结构
|
||||||
|
Map<String, FormFieldDictQ> q = new HashMap<>();
|
||||||
|
q.put(formDict.getCode(), query);
|
||||||
|
|
||||||
|
Map<String, List<FormFieldDictVO>> dictData = formFieldDictService.get(q);
|
||||||
|
List<FormFieldDictVO> dictItems = dictData.get(formDict.getCode());
|
||||||
|
dictVO.setItems(dictItems != null ? dictItems : new ArrayList<>());
|
||||||
|
|
||||||
|
result.add(dictVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
return new ResponseDto<>(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导入字典数据
|
||||||
|
*
|
||||||
|
* @param formDictVOs 导入的字典数据列表
|
||||||
|
* @return 导入结果,包括忽略的字典信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导入字典数据")
|
||||||
|
@PostMapping("/importDicts")
|
||||||
|
public ResponseDto<Map<String, Object>> importDicts(@RequestBody List<FormDictVO> formDictVOs) {
|
||||||
|
Map<String, Object> result = new HashMap<>();
|
||||||
|
|
||||||
|
if (formDictVOs == null || formDictVOs.isEmpty()) {
|
||||||
|
result.put("success", false);
|
||||||
|
result.put("message", "导入数据为空");
|
||||||
|
return new ResponseDto<>(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 收集所有要导入的字典类型
|
||||||
|
Set<String> importConfigTypes = formDictVOs.stream()
|
||||||
|
.filter(item -> item != null && item.getCode() != null && item.getName() != null)
|
||||||
|
.map(FormDictVO::getCode)
|
||||||
|
.collect(Collectors.toSet());
|
||||||
|
|
||||||
|
// 检查要导入的字典类型是否已存在
|
||||||
|
importConfigTypes = formDictService.getNotExistConfigCode(importConfigTypes);
|
||||||
|
|
||||||
|
// 导入不存在的字典类型
|
||||||
|
List<String> importedConfigTypes = new ArrayList<>();
|
||||||
|
List<String> ignoredConfigTypes = new ArrayList<>();
|
||||||
|
|
||||||
|
for (FormDictVO formDictVO : formDictVOs) {
|
||||||
|
if (formDictVO == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (importConfigTypes.contains(formDictVO.getCode())) {
|
||||||
|
importedConfigTypes.add(formDictVO.getCode());
|
||||||
|
// 字典类型不存在,可以创建
|
||||||
|
FormDictDTO dto = new FormDictDTO();
|
||||||
|
dto.setName(formDictVO.getName());
|
||||||
|
dto.setCode(formDictVO.getCode());
|
||||||
|
dto.setRemarks(formDictVO.getRemarks());
|
||||||
|
// 导入字典项
|
||||||
|
formDictService.createOrUpdate(dto);
|
||||||
|
|
||||||
|
List<FormFieldDictVO> itemsToImport = formDictVO.getItems();
|
||||||
|
if (itemsToImport != null && !itemsToImport.isEmpty()) {
|
||||||
|
importFormFieldDicts(itemsToImport, formDictVO.getCode());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 字典类型已存在,跳过
|
||||||
|
ignoredConfigTypes.add(formDictVO.getCode() + " (因字典类型已存在而忽略)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 构建返回结果
|
||||||
|
result.put("success", true);
|
||||||
|
result.put("message", "字典数据导入完成");
|
||||||
|
result.put("importedConfigTypes", importedConfigTypes);
|
||||||
|
result.put("ignoredConfigTypes", ignoredConfigTypes);
|
||||||
|
|
||||||
|
return new ResponseDto<>(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导入字典项数据 TODO 导入性能优化
|
||||||
|
*
|
||||||
|
* @param itemsToImport 要导入的字典项列表
|
||||||
|
* @param configType 字典类型
|
||||||
|
*/
|
||||||
|
private void importFormFieldDicts(List<FormFieldDictVO> itemsToImport, String configType) {
|
||||||
|
if (itemsToImport == null || itemsToImport.isEmpty()) return;
|
||||||
|
|
||||||
|
for (FormFieldDictVO item : itemsToImport) {
|
||||||
|
|
||||||
|
// 创建DTO对象并导入
|
||||||
|
FormFieldDictDTO dto = new FormFieldDictDTO();
|
||||||
|
dto.setName(item.getName());
|
||||||
|
dto.setCode(item.getCode());
|
||||||
|
dto.setConfigType(configType);
|
||||||
|
dto.setStatus(item.getStatus() == null ? 1 : item.getStatus());
|
||||||
|
dto.setSortOrder(item.getSortOrder());
|
||||||
|
dto.setParentId(item.getParentId());
|
||||||
|
|
||||||
|
//TODO 导入这里还有问题
|
||||||
|
// dto.setOtherFields(item.getOtherFields());
|
||||||
|
|
||||||
|
Long newItemId = formFieldDictService.createOrUpdate(dto);
|
||||||
|
|
||||||
|
// 递归处理子节点
|
||||||
|
if (item.getChildren() != null && !item.getChildren().isEmpty()) {
|
||||||
|
// 更新子节点的父ID为新创建的ID
|
||||||
|
for (FormFieldDictVO child : item.getChildren()) {
|
||||||
|
child.setParentId(newItemId);
|
||||||
|
}
|
||||||
|
importFormFieldDicts(item.getChildren(), configType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,149 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.constant.FormFieldDictType;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
|
||||||
|
import com.pcloud.booksflow.form.service.FormDictService;
|
||||||
|
import com.pcloud.booksflow.form.service.FormFieldDictService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.page.PageBeanNew;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormFieldDict Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Api(tags = "字典项-有租户")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/field-dict")
|
||||||
|
public class FormFieldDictController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormFieldDictService formFieldDictService;
|
||||||
|
@Autowired
|
||||||
|
private FormDictService formDictService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建新的表单字段配置
|
||||||
|
*
|
||||||
|
* @param dto 表单字段配置对象
|
||||||
|
* @return 创建后的表单字段配置对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/createOrUpdate")
|
||||||
|
public ResponseDto<Long> createOrUpdate(@RequestBody FormFieldDictDTO dto) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.createOrUpdate(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据configType获取表单字段配置
|
||||||
|
*
|
||||||
|
* @param configType 表单字段配置ID
|
||||||
|
* @return 表单字段配置对象
|
||||||
|
*/
|
||||||
|
@GetMapping("/getList")
|
||||||
|
public ResponseDto<List<FormFieldDict>> getList(@RequestParam String configType,
|
||||||
|
@RequestParam(required = false) Long parentId,
|
||||||
|
@RequestParam(required = false) Integer status,
|
||||||
|
@RequestParam(required = false) Integer level) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.getByConfigType(configType, parentId, status,level));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
public ResponseDto<PageBeanNew<FormFieldDictVO>> page(@RequestParam String configType,
|
||||||
|
@RequestParam(required = false) String queryStr,
|
||||||
|
@RequestParam(required = false) Integer status,
|
||||||
|
@RequestParam(value = "currentPage", defaultValue = "0") Integer currentPage,
|
||||||
|
@RequestParam(value = "numPerPage", defaultValue = "10") Integer numPerPage) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.page(configType, queryStr,status, currentPage, numPerPage));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取 表单字段配置,根据configType")
|
||||||
|
@PostMapping("get")
|
||||||
|
public ResponseDto<Map<String, List<FormFieldDictVO>>> get(@RequestBody Map<String, FormFieldDictQ> q) {
|
||||||
|
Map<String, List<FormFieldDictVO>> map1 = formFieldDictService.get(q);
|
||||||
|
//比较 q在data中不存在的key
|
||||||
|
Map<String, FormFieldDictQ> q2 = new HashMap<>();
|
||||||
|
Set<String> configCodes = formDictService.getNotExistConfigCode(q.keySet());
|
||||||
|
q.forEach((key, value) -> {
|
||||||
|
if (configCodes.contains(key)) {
|
||||||
|
q2.put(key, q.get(key));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//查询 通用字典,不区分租户
|
||||||
|
Map<String, List<FormFieldDictVO>> map2 = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.get(q2));
|
||||||
|
map1.putAll(map2);
|
||||||
|
return new ResponseDto<>(map1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取 表单字段配置,根据configType")
|
||||||
|
@PostMapping("dict")
|
||||||
|
public ResponseDto<Map<String, List<FormFieldDictVO>>> dict(@RequestBody List<String> q) {
|
||||||
|
if (q == null) {
|
||||||
|
return new ResponseDto<>(new HashMap<>());
|
||||||
|
}
|
||||||
|
Map<String, FormFieldDictQ> map = new HashMap<>();
|
||||||
|
q.stream().distinct().forEach(key -> map.put(key, null));
|
||||||
|
return get(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单字段配置,删除的时候会校验是否被其他字典关联
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.delete(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单字段配置排序
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @param sortOrder 排序值
|
||||||
|
* @return 更新结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/update-sort")
|
||||||
|
public ResponseDto<Integer> updateSortOrder(@RequestParam Long id, @RequestParam Integer sortOrder) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.updateSortOrder(id, sortOrder));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新状态字段
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @param status 排序值
|
||||||
|
* @return 更新结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/update-status")
|
||||||
|
public ResponseDto<Integer> updateStatus(@RequestParam Long id, @RequestParam Integer status) {
|
||||||
|
return new ResponseDto<>(formFieldDictService.updateStatus(id, status));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表单列表
|
||||||
|
*
|
||||||
|
* @return allConfigType
|
||||||
|
*/
|
||||||
|
@GetMapping("allConfigType")
|
||||||
|
public ResponseDto<Map<String, String>> allConfigType() {
|
||||||
|
return new ResponseDto<>(FormFieldDictType.getMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,92 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormPrintConfigDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormPrintConfigModeDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormPrintConfigUploadDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormPrintDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormPrintConfigVO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigWithBLOBs;
|
||||||
|
import com.pcloud.booksflow.form.service.FormPrintConfigService;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.entity.UploadResultInfo;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormPrintConfig Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author your-name
|
||||||
|
*/
|
||||||
|
@Api(tags = "表单打印配置")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form-print-config")
|
||||||
|
public class FormPrintConfigController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormPrintConfigService formPrintConfigService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建或更新表单打印配置
|
||||||
|
*
|
||||||
|
* @param dto 表单打印配置DTO对象
|
||||||
|
* @return 创建或更新后的表单打印配置对象
|
||||||
|
*/
|
||||||
|
@ApiOperation("创建或更新表单打印配置")
|
||||||
|
@PostMapping("/createOrUpdate")
|
||||||
|
public ResponseDto<FormPrintConfigWithBLOBs> createOrUpdate(@Validated @RequestBody FormPrintConfigDTO dto) {
|
||||||
|
return new ResponseDto<>(formPrintConfigService.createOrUpdate(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新模式
|
||||||
|
*
|
||||||
|
* @param dto 表单打印配置DTO对象
|
||||||
|
* @return 创建或更新后的表单打印配置对象
|
||||||
|
*/
|
||||||
|
@ApiOperation("更新模式")
|
||||||
|
@PostMapping("updateMode")
|
||||||
|
public ResponseDto<Integer> updateMode(@Validated @RequestBody FormPrintConfigModeDTO dto) {
|
||||||
|
return new ResponseDto<>(formPrintConfigService.updateMode(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据表单ID获取表单打印配置
|
||||||
|
*
|
||||||
|
* @param formId 表单ID
|
||||||
|
* @return 表单打印配置对象
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据表单ID获取表单打印配置")
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<FormPrintConfigVO> getByFormId(@RequestParam Long formId) {
|
||||||
|
return new ResponseDto<>(formPrintConfigService.getByFormId(formId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("ai解析word")
|
||||||
|
@GetMapping("/aiParsesWord")
|
||||||
|
public ResponseDto<Integer> aiParsesWord(@RequestParam Long formId) {
|
||||||
|
return new ResponseDto<>(formPrintConfigService.aiParsesWord(formId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("上传word模板")
|
||||||
|
@PostMapping("uploadFile")
|
||||||
|
public ResponseDto<?> updateFile(@Validated @RequestBody FormPrintConfigUploadDTO dto) {
|
||||||
|
formPrintConfigService.createOrUpdate(dto);
|
||||||
|
return new ResponseDto<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取打印url")
|
||||||
|
@PostMapping("print")
|
||||||
|
public ResponseDto<UploadResultInfo> print(@Validated @RequestBody FormPrintDTO dto) throws IOException {
|
||||||
|
return new ResponseDto<>(formPrintConfigService.print(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,78 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormTemplateDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormTemplateVO;
|
||||||
|
import com.pcloud.booksflow.form.service.FormTemplateService;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.exceptions.BizException;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormTemplate Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Api(tags = "表单模板")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/template")
|
||||||
|
public class FormTemplateController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormTemplateService formTemplateService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单模板信息,新增记录,版本 + 1
|
||||||
|
*
|
||||||
|
* @param dto 更新的表单模板对象
|
||||||
|
* @return 更新后的表单模板对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/saveByVersion")
|
||||||
|
public ResponseDto<Long> saveByVersion(@Validated @RequestBody FormTemplateDTO dto) {
|
||||||
|
return new ResponseDto<>(formTemplateService.saveUpVersion(dto).getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单模板
|
||||||
|
*
|
||||||
|
* @param id 表单模板ID
|
||||||
|
* @return 表单模板对象
|
||||||
|
*/
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<FormTemplateVO> getById(@RequestParam Long id,
|
||||||
|
@RequestParam(required = false) Boolean show,
|
||||||
|
@RequestParam(required = false) Boolean tree) {
|
||||||
|
return new ResponseDto<>(formTemplateService.getVOById(id, show, tree));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询相同formId下的最新的form模板
|
||||||
|
*
|
||||||
|
* @return 表单模板列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取最新版本表单模板", notes = "根据formId或formCode 获取最新版本的表单模板")
|
||||||
|
@GetMapping("/get/maxVersion")
|
||||||
|
public ResponseDto<FormTemplateVO> getMaxVersion(@ApiParam(value = "表单编码,参数二选一")
|
||||||
|
@RequestParam(required = false) String formCode,
|
||||||
|
@ApiParam(value = "表单id,参数二选一")
|
||||||
|
@RequestParam(required = false) Long formId,
|
||||||
|
@ApiParam(value = "是否显示")
|
||||||
|
@RequestParam(required = false) Boolean show,
|
||||||
|
@ApiParam(value = "tree")
|
||||||
|
@RequestParam(required = false) Boolean tree) {
|
||||||
|
if (formId == null && formCode == null) {
|
||||||
|
throw new BizException("formId or formCode is required");
|
||||||
|
}
|
||||||
|
if (formCode != null) {
|
||||||
|
return new ResponseDto<>(formTemplateService.getVOMaxVersion(formCode, show, tree));
|
||||||
|
} else {
|
||||||
|
return new ResponseDto<>(formTemplateService.getVOMaxVersion(formId, show, tree));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateField;
|
||||||
|
import com.pcloud.booksflow.form.service.FormTemplateFieldService;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormTemplateField Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Api(tags = "表单模板字段")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/template-field")
|
||||||
|
public class FormTemplateFieldController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormTemplateFieldService formTemplateFieldService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建新的表单模板字段
|
||||||
|
*
|
||||||
|
* @param formTemplateField 表单模板字段对象
|
||||||
|
* @return 创建后的表单模板字段对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/create")
|
||||||
|
public ResponseDto<FormTemplateField> create(@RequestBody FormTemplateField formTemplateField) {
|
||||||
|
return new ResponseDto<>(formTemplateFieldService.create(formTemplateField));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单模板字段
|
||||||
|
*
|
||||||
|
* @param id 表单模板字段ID
|
||||||
|
* @return 表单模板字段对象
|
||||||
|
*/
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<FormTemplateField> getById(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formTemplateFieldService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单模板字段信息
|
||||||
|
*
|
||||||
|
* @param id 表单模板字段ID
|
||||||
|
* @param formTemplateField 更新的表单模板字段对象
|
||||||
|
* @return 更新后的表单模板字段对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/update")
|
||||||
|
public ResponseDto<Integer> update(@RequestParam Long id, @RequestBody FormTemplateField formTemplateField) {
|
||||||
|
return new ResponseDto<>(formTemplateFieldService.update(id, formTemplateField));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单模板字段
|
||||||
|
*
|
||||||
|
* @param id 表单模板字段ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(formTemplateFieldService.delete(id));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,58 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.ModifyLogRecordDTO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord;
|
||||||
|
import com.pcloud.booksflow.form.service.ModifyLogRecordService;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.page.PageBeanNew;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ModifyLogRecord Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Api(tags = "修改日志记录")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "modify-log-record")
|
||||||
|
public class ModifyLogRecordController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ModifyLogRecordService modifyLogRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建修改日志记录
|
||||||
|
*
|
||||||
|
* @param modifyLogRecordDTOs 修改日志记录DTO对象列表
|
||||||
|
* @return 创建条数
|
||||||
|
*/
|
||||||
|
@ApiOperation("批量创建修改日志记录,最大1000条")
|
||||||
|
@PostMapping("/batchCreate")
|
||||||
|
public ResponseDto<Integer> batchCreate(@Validated @RequestBody List<ModifyLogRecordDTO> modifyLogRecordDTOs) {
|
||||||
|
return new ResponseDto<>(modifyLogRecordService.batchCreate(modifyLogRecordDTOs));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取修改日志记录列表
|
||||||
|
*
|
||||||
|
* @param entityType 实体类型
|
||||||
|
* @return 修改日志记录列表
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取修改日志记录列表")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public ResponseDto<PageBeanNew<ModifyLogRecord>> page(@RequestParam(required = false, defaultValue = "project") String entityType,
|
||||||
|
@RequestParam String entityId,
|
||||||
|
@RequestParam(required = false) String formCode,
|
||||||
|
@RequestParam(value = "currentPage", defaultValue = "0") Integer currentPage,
|
||||||
|
@RequestParam(value = "numPerPage", defaultValue = "10") Integer numPerPage) {
|
||||||
|
return new ResponseDto<>(modifyLogRecordService.listByEntityType(entityType, entityId, formCode,currentPage, numPerPage));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormDictDTO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormDict;
|
||||||
|
import com.pcloud.booksflow.form.service.FormDictService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.page.PageBeanNew;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormDict Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Api(tags = "字典-无租户【所有租户看到的字典都一样】")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/not-agent/dict")
|
||||||
|
public class SysFormDictController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormDictService formDictService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建或更新表单字典
|
||||||
|
*
|
||||||
|
* @param dto 表单字典DTO对象
|
||||||
|
* @return 表单字典ID
|
||||||
|
*/
|
||||||
|
@ApiOperation("创建或更新表单字典")
|
||||||
|
@PostMapping("/createOrUpdate")
|
||||||
|
public ResponseDto<Long> createOrUpdate(@Validated @RequestBody FormDictDTO dto) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formDictService.createOrUpdate(dto))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单字典
|
||||||
|
*
|
||||||
|
* @param id 表单字典ID
|
||||||
|
* @return 表单字典对象
|
||||||
|
*/
|
||||||
|
@ApiOperation("根据ID获取表单字典")
|
||||||
|
@GetMapping("/get")
|
||||||
|
public ResponseDto<FormDict> getById(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formDictService.getById(id))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单字典
|
||||||
|
*
|
||||||
|
* @param id 表单字典ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除表单字典")
|
||||||
|
@GetMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formDictService.delete(id))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表单字典列表
|
||||||
|
*
|
||||||
|
* @param name 表单字典名称
|
||||||
|
* @param code 表单字典编码
|
||||||
|
* @param currentPage 当前页码
|
||||||
|
* @param numPerPage 每页数量
|
||||||
|
* @return 表单字典列表
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取表单字典列表")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public ResponseDto<PageBeanNew<FormDict>> listByNameAndCode(@RequestParam(required = false) String name,
|
||||||
|
@RequestParam(required = false) String code,
|
||||||
|
@RequestParam(value = "currentPage", defaultValue = "0") Integer currentPage,
|
||||||
|
@RequestParam(value = "numPerPage", defaultValue = "10") Integer numPerPage) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formDictService.listByNameAndCode(name, code, currentPage, numPerPage))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,151 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictDTO;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictDifyVo;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
|
||||||
|
import com.pcloud.booksflow.form.service.FormFieldDictService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import com.pcloud.common.dto.ResponseDto;
|
||||||
|
import com.pcloud.common.page.PageBeanNew;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormFieldDict Controller
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@Api(tags = "字典项-无租户【所有租户看到的字典都一样】")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "form/not-agent/field-dict")
|
||||||
|
public class SysFormFieldDictController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormFieldDictService formFieldDictService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建新的表单字段配置
|
||||||
|
*
|
||||||
|
* @param dto 表单字段配置对象
|
||||||
|
* @return 创建后的表单字段配置对象
|
||||||
|
*/
|
||||||
|
@PostMapping("/createOrUpdate")
|
||||||
|
public ResponseDto<Long> createOrUpdate(@RequestBody FormFieldDictDTO dto) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.createOrUpdate(dto))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据 configType 获取表单字段配置
|
||||||
|
*
|
||||||
|
* @param configType 表单字段配置ID
|
||||||
|
* @return 表单字段配置对象
|
||||||
|
*/
|
||||||
|
@GetMapping("/getList")
|
||||||
|
public ResponseDto<List<FormFieldDict>> getList(@RequestParam String configType,
|
||||||
|
@RequestParam(required = false) Long parentId,
|
||||||
|
@RequestParam(required = false) Integer status,
|
||||||
|
@RequestParam(required = false) Integer level) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.getByConfigType(configType, parentId, status, level))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
public ResponseDto<PageBeanNew<FormFieldDictVO>> page(@RequestParam String configType,
|
||||||
|
@RequestParam(required = false) String queryStr,
|
||||||
|
@RequestParam(required = false) Integer status,
|
||||||
|
@RequestParam(value = "currentPage", defaultValue = "0") Integer currentPage,
|
||||||
|
@RequestParam(value = "numPerPage", defaultValue = "10") Integer numPerPage) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.page(configType, queryStr, status, currentPage, numPerPage))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/listByCode")
|
||||||
|
public ResponseDto<List<FormFieldDict>> listByCode(@RequestParam("code") String code) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.getByConfigType(code, null, 1, null))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除表单字段配置,删除的时候会校验是否被其他字典关联
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@GetMapping("/delete")
|
||||||
|
public ResponseDto<Integer> delete(@RequestParam Long id) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.delete(id))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单字段配置排序
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @param sortOrder 排序值
|
||||||
|
* @return 更新结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/update-sort")
|
||||||
|
public ResponseDto<Integer> updateSortOrder(@RequestParam Long id, @RequestParam Integer sortOrder) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.updateSortOrder(id, sortOrder))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新表单字段配置排序
|
||||||
|
*
|
||||||
|
* @return 更新结果
|
||||||
|
*/
|
||||||
|
@GetMapping("/getByCodesByLevel")
|
||||||
|
public ResponseDto<List<FormFieldDictDifyVo>> getByCodesByLevel(@RequestParam Long agentId, @RequestParam String configType, @RequestParam(required = false) List<Long> parentIds) {
|
||||||
|
return new ResponseDto<>(TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.getByCodesByLevel( agentId, configType, parentIds)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新状态字段
|
||||||
|
*
|
||||||
|
* @param id 表单字段配置ID
|
||||||
|
* @param status 排序值
|
||||||
|
* @return 更新结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/update-status")
|
||||||
|
public ResponseDto<Integer> updateStatus(@RequestParam Long id, @RequestParam Integer status) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.updateStatus(id, status))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取表单字段配置,根据configType")
|
||||||
|
@PostMapping("get")
|
||||||
|
public ResponseDto<Map<String, List<FormFieldDictVO>>> get(@RequestBody Map<String, FormFieldDictQ> q) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.get(q))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量获取表单字段具体项,根据id")
|
||||||
|
@PostMapping("getByIds")
|
||||||
|
public ResponseDto<List<FormFieldDictVO>> getByIds(@RequestBody List<Long> ids, @RequestParam(required = false) Integer deleted) {
|
||||||
|
return new ResponseDto<>(
|
||||||
|
TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.getByIds(ids, deleted))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,118 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller.feign;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictDifyVo;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
|
||||||
|
import com.pcloud.booksflow.form.feign.FormFieldDictFeignClient;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
|
||||||
|
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample;
|
||||||
|
import com.pcloud.booksflow.form.service.FormDictService;
|
||||||
|
import com.pcloud.booksflow.form.service.FormFieldDictService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import com.pcloud.common.utils.string.StringUtil;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormFieldDict Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "formService/field-dict")
|
||||||
|
public class FormFieldDictFeignController implements FormFieldDictFeignClient {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormFieldDictService formFieldDictService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormDictService formDictService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, List<FormFieldDictVO>> get(Long agentId, Map<String, FormFieldDictQ> q) {
|
||||||
|
Map<String, List<FormFieldDictVO>> map1 = TenantHelper.dynamic(agentId.toString(), () -> formFieldDictService.get(q));
|
||||||
|
//比较 q在data中不存在的key
|
||||||
|
Map<String, FormFieldDictQ> q2 = new HashMap<>();
|
||||||
|
Set<String> configCodes = TenantHelper.dynamic(agentId.toString(), () -> formDictService.getNotExistConfigCode(q.keySet()));
|
||||||
|
q.forEach((key, value) -> {
|
||||||
|
if (configCodes.contains(key)) {
|
||||||
|
q2.put(key, q.get(key));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//查询 通用字典,不区分租户
|
||||||
|
Map<String, List<FormFieldDictVO>> map2 = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.get(q2));
|
||||||
|
map1.putAll(map2);
|
||||||
|
return map1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, List<FormFieldDictVO>> dict(Long agentId, List<String> q) {
|
||||||
|
if (q == null) {
|
||||||
|
return new HashMap<>();
|
||||||
|
}
|
||||||
|
Map<String, FormFieldDictQ> map = new HashMap<>();
|
||||||
|
q.stream().distinct().forEach(key -> map.put(key, null));
|
||||||
|
return get(agentId, map);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FormFieldDictVO> getByIds(Long agentId, List<Long> ids, Integer deleted) {
|
||||||
|
return TenantHelper.ignore(() -> formFieldDictService.getByIds(ids, deleted));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FormFieldDictVO> getByCodes(Long agentId, String configType, List<String> itemCodes) {
|
||||||
|
if (StringUtil.isEmpty(configType)) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
if (CollUtil.isEmpty(itemCodes)) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
Map<String, Set<String>> map = new HashMap<>();
|
||||||
|
map.put(configType, new HashSet<>(itemCodes));
|
||||||
|
Map<String, List<FormFieldDictVO>> byCodes = getByCodes(agentId, map);
|
||||||
|
List<FormFieldDictVO> data = byCodes.get(configType);
|
||||||
|
if (data == null) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FormFieldDictDifyVo> getByCodesByLevel(Long agentId, String configType, List<Long> parentIds) {
|
||||||
|
if (StringUtil.isEmpty(configType)) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
return TenantHelper.dynamic(BaseConstant.TplTenantId,()->formFieldDictService.getByCodesByLevel(agentId,configType,parentIds));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, List<FormFieldDictVO>> getByCodes(Long agentId, Map<String, Set<String>> q) {
|
||||||
|
if (q == null) {
|
||||||
|
return new HashMap<>();
|
||||||
|
}
|
||||||
|
Map<String, List<FormFieldDictVO>> map1 = TenantHelper.dynamic(agentId.toString(), () -> formFieldDictService.getByCodes(q));
|
||||||
|
//比较 q在data中不存在的key
|
||||||
|
Map<String, Set<String>> q2 = new HashMap<>();
|
||||||
|
Set<String> configCodes = TenantHelper.dynamic(agentId.toString(), () -> formDictService.getNotExistConfigCode(q.keySet()));
|
||||||
|
q.forEach((key, value) -> {
|
||||||
|
if (configCodes.contains(key)) {
|
||||||
|
q2.put(key, q.get(key));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!q2.isEmpty()) {
|
||||||
|
//查询 通用字典,不区分租户
|
||||||
|
Map<String, List<FormFieldDictVO>> map2 = TenantHelper.dynamic(BaseConstant.TplTenantId, () -> formFieldDictService.getByCodes(q2));
|
||||||
|
map1.putAll(map2);
|
||||||
|
}
|
||||||
|
return map1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormPrintConfigVO;
|
||||||
|
import com.pcloud.booksflow.form.feign.FormPrintConfigFeignClient;
|
||||||
|
import com.pcloud.booksflow.form.service.FormPrintConfigService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "formService/form-print-config")
|
||||||
|
public class FormPrintConfigFeignController implements FormPrintConfigFeignClient {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormPrintConfigService formPrintConfigService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据表单ID获取表单打印配置
|
||||||
|
*
|
||||||
|
* @param formCode 表单code
|
||||||
|
* @return 表单打印配置对象
|
||||||
|
*/
|
||||||
|
@GetMapping("get")
|
||||||
|
@Override
|
||||||
|
public FormPrintConfigVO get(@RequestParam Long agentId, @RequestParam String formCode) {
|
||||||
|
return TenantHelper.dynamic(agentId.toString(), () -> formPrintConfigService.getByFormCode(formCode));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,58 @@
|
|||||||
|
package com.pcloud.booksflow.form.controller.feign;
|
||||||
|
|
||||||
|
import com.pcloud.booksflow.form.api.constant.BaseConstant;
|
||||||
|
import com.pcloud.booksflow.form.api.vo.FormTemplateVO;
|
||||||
|
import com.pcloud.booksflow.form.feign.FormTemplateFeignClient;
|
||||||
|
import com.pcloud.booksflow.form.service.FormTemplateService;
|
||||||
|
import com.pcloud.booksflow.form.utils.TenantHelper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormTemplate Controller 实现增删改查接口
|
||||||
|
*
|
||||||
|
* @author 李郑伟
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(BaseConstant.CONTEXT_PATH + "formService/template")
|
||||||
|
public class FormTemplateFeignController implements FormTemplateFeignClient {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormTemplateService formTemplateService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return 表单模板列表
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public FormTemplateVO getMaxVersion(Long agentId, String formCode) {
|
||||||
|
return TenantHelper.dynamic(agentId.toString(), () -> formTemplateService.getVOMaxVersion(formCode, null, true));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return 表单模板列表
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public FormTemplateVO getMaxVersion(Long agentId, String formCode, Boolean show, Boolean tree) {
|
||||||
|
return TenantHelper.dynamic(agentId.toString(), () -> formTemplateService.getVOMaxVersion(formCode, show, tree));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取表单模板
|
||||||
|
*
|
||||||
|
* @param id 表单模板ID
|
||||||
|
* @return 表单模板对象
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public FormTemplateVO getById(Long agentId,
|
||||||
|
Long id,
|
||||||
|
Boolean show,
|
||||||
|
Boolean tree) {
|
||||||
|
return TenantHelper.dynamic(agentId.toString(), () -> formTemplateService.getVOById(id, show, tree));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user