h5 动态表单

This commit is contained in:
lizhengwei 2026-02-13 15:56:31 +08:00
parent ed15498a5d
commit f8502840ca
47 changed files with 418 additions and 5490 deletions

View File

@ -1,52 +1,36 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("form_print_config_tpl") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form")
public class Form implements Serializable { public class Form implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; 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; 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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,119 +1,66 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("form_print_config_tpl") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_dict")
public class FormDict implements Serializable { public class FormDict implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_dict.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; 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; 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; 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; 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; 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; 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; 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; private Date updateTime;
/** /**
* Database Column Remarks: * 是否删除(0:,1:)
* 是否删除(0:,1:)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_dict.deleted
*
* @mbg.generated
*/ */
private Integer deleted; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,174 +1,86 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("form_print_config_tpl") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_field_dict")
public class FormFieldDict implements Serializable { public class FormFieldDict implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_field_dict.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; 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; 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; 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; private String code;
/** /**
* Database Column Remarks: * 父级ID
* 父级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; 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; private Integer sortOrder;
/** /**
* Database Column Remarks: * 状态(1:启用,0:禁用)
* 状态(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; 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; 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; 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; 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; private Date updateTime;
/** /**
* Database Column Remarks: * 是否删除(0:,1:)
* 是否删除(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; private Integer deleted;
/** /**
* Database Column Remarks: * 其他字段(JSON格式)
* 其他字段(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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,284 +1,142 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("form_print_config_tpl") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_print_config")
public class FormPrintConfig implements Serializable { public class FormPrintConfig implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_print_config.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** /**
* Database Column Remarks: * 关联的表单ID
* 关联的表单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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; private String fileName;
/** /**
* Database Column Remarks: * 文件类型docexcel
* 文件类型docexcel
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_print_config.file_type
*
* @mbg.generated
*/ */
private String fileType; private String fileType;
/** /**
* Database Column Remarks: * file_wps_id
* 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; private String fileWpsId;
/** /**
* Database Column Remarks: * AI模板文件url
* 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; private String fileUrlAi;
/** /**
* Database Column Remarks: * 模板文件url
* 模板文件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; private String fileUrl;
/** /**
* Database Column Remarks: * 打印配置模式1默认模式2模板打印模式
* 打印配置模式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; 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; 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; 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; 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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,71 +0,0 @@
package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@TableName("form_print_config_tpl")
public class FormPrintConfigTpl implements Serializable {
private Long id;
/**
* 表单打印配置 ID
*/
private Long formPrintConfigId;
/**
* 模板文件url
*/
private String fileUrl;
/**
* 文件类型docexcel
*/
private String fileType;
/**
* file_wps_id
*/
private String fileWpsId;
/**
* 创建人
*/
private Long createdBy;
/**
* 更新人
*/
private Long updatedBy;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 打印字段
*/
private String printFields;
/**
* 扩展属性(JSON格式)
*/
private String ext;
/**
* 是否删除(0:,1:)
*/
private Integer deleted;
private static final long serialVersionUID = 1L;
}

View File

@ -1,110 +1,61 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import lombok.*;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table form_template
*/
@Data @Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_template")
public class FormTemplate implements Serializable { public class FormTemplate implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_template.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** /**
* Database Column Remarks: * 表单ID
* 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; 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; 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; 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; 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; 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; 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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,306 +1,151 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("form_print_config_tpl") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_template_field")
public class FormTemplateField implements Serializable { public class FormTemplateField implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_template_field.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** /**
* Database Column Remarks: * 模板ID
* 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; 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; private String code;
/** /**
* Database Column Remarks: * 父ID
* 父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; 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; 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; 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; 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; 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; 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; 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; private Integer line;
/** /**
* Database Column Remarks: * 字段类型
* 字段类型(groupstring...)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_template_field.type
*
* @mbg.generated
*/ */
private String type; 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; private Boolean fixed;
/** /**
* Database Column Remarks: * 格式约束
* 格式约束:intdoublestrbooleandateselect(下拉选择)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column form_template_field.fmt_constraint
*
* @mbg.generated
*/ */
private String fmtConstraint; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,196 +1,101 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("modify_log_record")
public class ModifyLogRecord implements Serializable { public class ModifyLogRecord implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column modify_log_record.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; 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; private String entityType;
/** /**
* Database Column Remarks: * 实体ID
* 实体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; 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; 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; 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; 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; 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; 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; private String newValue;
/** /**
* Database Column Remarks: * 操作人ID
* 操作人ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column modify_log_record.operator
*
* @mbg.generated
*/ */
private Long operator; 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; 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; 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; 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; 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; 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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -1,75 +1,46 @@
package com.pcloud.booksflow.form.mybatis.entity; package com.pcloud.booksflow.form.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
@Data @Data
@TableName("") @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tenant_init_status")
public class TenantInitStatus implements Serializable { public class TenantInitStatus implements Serializable {
/** /**
* Database Column Remarks: * 主键ID
* 主键ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tenant_init_status.id
*
* @mbg.generated
*/ */
@TableId(value = "id", type = IdType.AUTO)
private Long id; 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; 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; 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; private Date updateTime;
/** /**
* Database Column Remarks: * 租户ID
* 租户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; 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; private static final long serialVersionUID = 1L;
} }

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.FormDict; import com.pcloud.booksflow.form.mybatis.entity.FormDict;
import org.apache.ibatis.annotations.Mapper;
/**
* 表单字典Mapper接口
*
* @author lizhw
*/
@Mapper
public interface FormDictMapper extends BaseMapper<FormDict> { public interface FormDictMapper extends BaseMapper<FormDict> {
} }

View File

@ -4,19 +4,24 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.api.dto.DictCodesDTO; import com.pcloud.booksflow.form.api.dto.DictCodesDTO;
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict; import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample; import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample;
import com.pcloud.universe.commons.paging.BaseMapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
/**
* 表单字段字典Mapper接口
*
* @author lizhw
*/
@Mapper
public interface FormFieldDictMapper extends BaseMapper<FormFieldDict> { public interface FormFieldDictMapper extends BaseMapper<FormFieldDict> {
List<FormFieldDict> selectByExampleWithPagingBLOBs(@Param("example") FormFieldDictExample example, /**
@Param("offset") int offset, * 根据编码列表获取字典项
@Param("limit") int limit, *
@Param("queryStr") String queryStr); * @param dtos 编码DTO列表
* @return 字典项列表
long countByExampleExt(@Param("example") FormFieldDictExample example, @Param("queryStr") String queryStr); */
List<FormFieldDict> getByCodes(@Param("list") List<DictCodesDTO> dtos); List<FormFieldDict> getByCodes(@Param("list") List<DictCodesDTO> dtos);
} }

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.Form; import com.pcloud.booksflow.form.mybatis.entity.Form;
import org.apache.ibatis.annotations.Mapper;
/**
* 表单Mapper接口
*
* @author lizhw
*/
@Mapper
public interface FormMapper extends BaseMapper<Form> { public interface FormMapper extends BaseMapper<Form> {
} }

View File

@ -4,6 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfig; import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfig;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/**
* 表单打印配置Mapper接口
*
* @author lizhw
*/
@Mapper @Mapper
public interface FormPrintConfigMapper extends BaseMapper<FormPrintConfig> { public interface FormPrintConfigMapper extends BaseMapper<FormPrintConfig> {

View File

@ -1,8 +0,0 @@
package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.FormPrintConfigTpl;
public interface FormPrintConfigTplMapper extends BaseMapper<FormPrintConfigTpl> {
}

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.FormTemplateField; import com.pcloud.booksflow.form.mybatis.entity.FormTemplateField;
import org.apache.ibatis.annotations.Mapper;
/**
* 表单模板字段Mapper接口
*
* @author lizhw
*/
@Mapper
public interface FormTemplateFieldMapper extends BaseMapper<FormTemplateField> { public interface FormTemplateFieldMapper extends BaseMapper<FormTemplateField> {
} }

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.FormTemplate; import com.pcloud.booksflow.form.mybatis.entity.FormTemplate;
import org.apache.ibatis.annotations.Mapper;
/**
* 表单模板Mapper接口
*
* @author lizhw
*/
@Mapper
public interface FormTemplateMapper extends BaseMapper<FormTemplate> { public interface FormTemplateMapper extends BaseMapper<FormTemplate> {
} }

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord; import com.pcloud.booksflow.form.mybatis.entity.ModifyLogRecord;
import org.apache.ibatis.annotations.Mapper;
/**
* 修改日志记录Mapper接口
*
* @author lizhw
*/
@Mapper
public interface ModifyLogRecordMapper extends BaseMapper<ModifyLogRecord> { public interface ModifyLogRecordMapper extends BaseMapper<ModifyLogRecord> {
} }

View File

@ -2,7 +2,14 @@ package com.pcloud.booksflow.form.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus; import com.pcloud.booksflow.form.mybatis.entity.TenantInitStatus;
import org.apache.ibatis.annotations.Mapper;
/**
* 租户初始化状态Mapper接口
*
* @author lizhw
*/
@Mapper
public interface TenantInitStatusMapper extends BaseMapper<TenantInitStatus> { public interface TenantInitStatusMapper extends BaseMapper<TenantInitStatus> {
} }

View File

@ -1,385 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!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"> <mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormDictMapperExt">
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormDict"> <resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormDict">
<!-- <id column="id" jdbcType="BIGINT" property="id"/>
WARNING - @mbg.generated <result column="name" jdbcType="VARCHAR" property="name"/>
This element is automatically generated by MyBatis Generator, do not modify. <result column="code" jdbcType="VARCHAR" property="code"/>
--> <result column="remarks" jdbcType="VARCHAR" property="remarks"/>
<id column="id" jdbcType="BIGINT" property="id" /> <result column="created_by" jdbcType="BIGINT" property="createdBy"/>
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="updated_by" jdbcType="BIGINT" property="updatedBy"/>
<result column="code" jdbcType="VARCHAR" property="code" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="remarks" jdbcType="VARCHAR" property="remarks" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> <result column="deleted" jdbcType="TINYINT" property="deleted"/>
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" /> </resultMap>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <sql id="Base_Column_List">
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> id, `name`, code, remarks, created_by, updated_by, create_time, update_time, deleted
<result column="deleted" jdbcType="TINYINT" property="deleted" /> </sql>
</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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -1,547 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!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"> <mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapper">
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict"> <resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id"/>
<result column="config_type" jdbcType="VARCHAR" property="configType" /> <result column="config_type" jdbcType="VARCHAR" property="configType"/>
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name"/>
<result column="code" jdbcType="VARCHAR" property="code" /> <result column="code" jdbcType="VARCHAR" property="code"/>
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> <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="sort_order" jdbcType="INTEGER" property="sortOrder" /> <result column="status" jdbcType="TINYINT" property="status"/>
<result column="status" jdbcType="TINYINT" property="status" /> <result column="created_by" jdbcType="BIGINT" property="createdBy"/>
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> <result column="updated_by" jdbcType="BIGINT" property="updatedBy"/>
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="deleted" jdbcType="TINYINT" property="deleted"/>
<result column="deleted" jdbcType="TINYINT" property="deleted" /> </resultMap>
</resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict"> type="com.pcloud.booksflow.form.mybatis.entity.FormFieldDict">
<!-- <result column="other_fields" jdbcType="LONGVARCHAR" property="otherFields"/>
WARNING - @mbg.generated </resultMap>
This element is automatically generated by MyBatis Generator, do not modify. <sql id="Base_Column_List">
--> id
<result column="other_fields" jdbcType="LONGVARCHAR" property="otherFields" /> , config_type, `name`, code, parent_id, check_ids, sort_order, `status`, created_by,
</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 updated_by, create_time, update_time, deleted
</sql> </sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated <select id="getByCodes" resultMap="ResultMapWithBLOBs">
This element is automatically generated by MyBatis Generator, do not modify. select
--> <include refid="Base_Column_List"/>
other_fields ,
</sql> <include refid="Blob_Column_List"/>
<select id="selectByExampleWithBLOBs" parameterType="com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample" resultMap="ResultMapWithBLOBs"> from form_field_dict
<!-- <where>
WARNING - @mbg.generated deleted = 0 and
This element is automatically generated by MyBatis Generator, do not modify. <foreach item="item" index="index" collection="list" open="(" separator="or" close=")">
--> config_type = #{item.configType}
select AND code in
<if test="distinct"> <foreach item="item2" index="index" collection="item.codes" open="(" separator="," close=")">
distinct #{item2}
</if> </foreach>
<include refid="Base_Column_List" /> </foreach>
, </where>
<include refid="Blob_Column_List" /> </select>
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> </mapper>

View File

@ -1,84 +0,0 @@
<?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>

View File

@ -1,287 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!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"> <mapper namespace="com.pcloud.booksflow.form.mybatis.mapper.FormMapperExt">
<resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.Form"> <resultMap id="BaseResultMap" type="com.pcloud.booksflow.form.mybatis.entity.Form">
<!-- <id column="id" jdbcType="BIGINT" property="id"/>
WARNING - @mbg.generated <result column="name" jdbcType="VARCHAR" property="name"/>
This element is automatically generated by MyBatis Generator, do not modify. <result column="code" jdbcType="VARCHAR" property="code"/>
--> </resultMap>
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" /> <sql id="Base_Column_List">
<result column="code" jdbcType="VARCHAR" property="code" /> id
</resultMap> , `name`, code
<sql id="Example_Where_Clause"> </sql>
<!--
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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -39,729 +39,14 @@
<result column="print_fields" jdbcType="LONGVARCHAR" property="printFields" /> <result column="print_fields" jdbcType="LONGVARCHAR" property="printFields" />
<result column="ext" jdbcType="LONGVARCHAR" property="ext" /> <result column="ext" jdbcType="LONGVARCHAR" property="ext" />
</resultMap> </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"> <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, 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, 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, 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 `mode`, created_by, updated_by, create_time, update_time
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
print_fields, ext print_fields, ext
</sql> </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.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 (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.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
<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.FormPrintConfigTpl">
<!--
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.FormPrintConfigTpl">
<!--
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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -1,403 +0,0 @@
<?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>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -33,737 +33,17 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.pcloud.booksflow.form.mybatis.entity.FormTemplateField"> <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" /> <result column="ext" jdbcType="LONGVARCHAR" property="ext" />
</resultMap> </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"> <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`, 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, 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, edit_disabled_msg, edit_disabled, show_cascade, created_by, updated_by, create_time,
update_time update_time
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ext ext
</sql> </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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -15,356 +15,8 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </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"> <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 id, form_id, version, content_encoding, created_by, updated_by, create_time, update_time
</sql> </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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -23,482 +23,9 @@
<result column="service_name" jdbcType="VARCHAR" property="serviceName" /> <result column="service_name" jdbcType="VARCHAR" property="serviceName" />
<result column="deleted" jdbcType="TINYINT" property="deleted" /> <result column="deleted" jdbcType="TINYINT" property="deleted" />
</resultMap> </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"> <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, 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, old_value, new_value, `operator`, operator_name, operation_time, create_time, update_time,
service_name, deleted service_name, deleted
</sql> </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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -12,310 +12,7 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="agent_id" jdbcType="BIGINT" property="agentId" /> <result column="agent_id" jdbcType="BIGINT" property="agentId" />
</resultMap> </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"> <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 id, initialized, create_time, update_time, agent_id
</sql> </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> </mapper>

View File

@ -1,3 +0,0 @@
<?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" />

View File

@ -1,46 +0,0 @@
<?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>

View File

@ -1,110 +0,0 @@
<?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配置文件
1cmd切换至该xml所在项目根目录即pom所在目录
2mvn 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下
1ANNOTATEDMAPPER会生成使用Mapper接口+Annotation的方式创建SQL生成在annotation中不会生成对应的XML
2MIXEDMAPPER使用混合配置会生成Mapper接口并适当添加合适的Annotation但是XML会生成在XML中
3XMLMAPPER会生成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>

View File

@ -1,23 +0,0 @@
<?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>

View File

@ -10,16 +10,6 @@
<artifactId>booksflow-form-service</artifactId> <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> <dependencies>
<dependency> <dependency>
<groupId>org.dromara</groupId> <groupId>org.dromara</groupId>
@ -37,14 +27,17 @@
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mapstruct</groupId> <groupId>com.baomidou</groupId>
<artifactId>mapstruct</artifactId> <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>${org.mapstruct.version}</version> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mybatis</groupId> <groupId>org.dromara</groupId>
<artifactId>mybatis</artifactId> <artifactId>ruoyi-common-core</artifactId>
<version>3.5.7</version> </dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-json</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -66,7 +66,7 @@ public class FormTemplateController {
@ApiParam(value = "tree") @ApiParam(value = "tree")
@RequestParam(required = false) Boolean tree) { @RequestParam(required = false) Boolean tree) {
if (formId == null && formCode == null) { if (formId == null && formCode == null) {
throw new BizException("formId or formCode is required"); throw new ServiceException("formId or formCode is required");
} }
if (formCode != null) { if (formCode != null) {
return new ResponseDto<>(formTemplateService.getVOMaxVersion(formCode, show, tree)); return new ResponseDto<>(formTemplateService.getVOMaxVersion(formCode, show, tree));

View File

@ -2,10 +2,14 @@ package com.pcloud.booksflow.form.service;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pcloud.booksflow.form.api.dto.FormDictDTO; import com.pcloud.booksflow.form.api.dto.FormDictDTO;
import com.pcloud.booksflow.form.mybatis.entity.FormDict; import com.pcloud.booksflow.form.mybatis.entity.FormDict;
import com.pcloud.booksflow.form.mybatis.entity.FormDictExample; import com.pcloud.booksflow.form.mybatis.entity.FormDictExample;
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
import com.pcloud.booksflow.form.mybatis.mapper.FormDictMapper;
import com.pcloud.booksflow.form.mybatis.mapper.FormDictMapperExt; import com.pcloud.booksflow.form.mybatis.mapper.FormDictMapperExt;
import com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapper;
import com.pcloud.booksflow.form.utils.UserUtils; import com.pcloud.booksflow.form.utils.UserUtils;
import com.pcloud.common.exceptions.BizException; import com.pcloud.common.exceptions.BizException;
import com.pcloud.common.page.PageBeanNew; import com.pcloud.common.page.PageBeanNew;
@ -22,10 +26,7 @@ import java.util.stream.Collectors;
*/ */
@Slf4j @Slf4j
@Service @Service
public class FormDictService { public class FormDictService extends ServiceImpl<FormDictMapper, FormDict> {
@Autowired
private FormDictMapperExt formDictMapperExt;
@Autowired @Autowired
private FormFieldDictService formFieldDictService; private FormFieldDictService formFieldDictService;
@ -39,10 +40,10 @@ public class FormDictService {
public Long createOrUpdate(FormDictDTO dto) { public Long createOrUpdate(FormDictDTO dto) {
// 检查code是否已存在排除自己 // 检查code是否已存在排除自己
if (countByCode(dto.getCode(), dto.getId()) > 0) { if (countByCode(dto.getCode(), dto.getId()) > 0) {
throw new BizException("编码已存在: " + dto.getCode()); throw new ServiceException("编码已存在: " + dto.getCode());
} }
if (countByName(dto.getName(), dto.getId()) > 0) { if (countByName(dto.getName(), dto.getId()) > 0) {
throw new BizException("名称已存在: " + dto.getName()); throw new ServiceException("名称已存在: " + dto.getName());
} }
if (dto.getId() == null) { if (dto.getId() == null) {
@ -52,7 +53,7 @@ public class FormDictService {
entity.setDeleted(0); entity.setDeleted(0);
entity.setCreatedBy(UserUtils.getUserId()); entity.setCreatedBy(UserUtils.getUserId());
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
formDictMapperExt.insertSelective(entity); baseMapper.insertSelective(entity);
return entity.getId(); return entity.getId();
} else { } else {
// 更新现有的表单字典 // 更新现有的表单字典
@ -61,7 +62,7 @@ public class FormDictService {
entity.setId(dto.getId()); entity.setId(dto.getId());
entity.setUpdatedBy(UserUtils.getUserId()); entity.setUpdatedBy(UserUtils.getUserId());
entity.setUpdateTime(new Date()); entity.setUpdateTime(new Date());
formDictMapperExt.updateByPrimaryKeySelective(entity); baseMapper.updateByPrimaryKeySelective(entity);
return entity.getId(); return entity.getId();
} }
} }
@ -73,7 +74,7 @@ public class FormDictService {
* @return 表单字典对象 * @return 表单字典对象
*/ */
public FormDict getById(Long id) { public FormDict getById(Long id) {
return formDictMapperExt.selectByPrimaryKey(id); return baseMapper.selectByPrimaryKey(id);
} }
/** /**
@ -97,7 +98,7 @@ public class FormDictService {
entity.setDeleted(1); entity.setDeleted(1);
entity.setUpdatedBy(UserUtils.getUserId()); entity.setUpdatedBy(UserUtils.getUserId());
entity.setUpdateTime(new Date()); entity.setUpdateTime(new Date());
return formDictMapperExt.updateByPrimaryKeySelective(entity); return baseMapper.updateByPrimaryKeySelective(entity);
} }
/** /**
@ -112,7 +113,7 @@ public class FormDictService {
if (name != null && !name.isEmpty()) { if (name != null && !name.isEmpty()) {
criteria.andNameLike(name + "%"); criteria.andNameLike(name + "%");
} }
return formDictMapperExt.selectByExample(example); return baseMapper.selectByExample(example);
} }
/** /**
@ -137,8 +138,8 @@ public class FormDictService {
} }
example.setOrderByClause("id desc"); example.setOrderByClause("id desc");
int count = (int) formDictMapperExt.countByExample(example); int count = (int) baseMapper.countByExample(example);
List<FormDict> records = formDictMapperExt.selectByExampleWithPaging(example, currentPage * numPerPage, numPerPage); List<FormDict> records = baseMapper.selectByExampleWithPaging(example, currentPage * numPerPage, numPerPage);
return new PageBeanNew<>(currentPage, numPerPage, count, records); return new PageBeanNew<>(currentPage, numPerPage, count, records);
} }
@ -157,7 +158,7 @@ public class FormDictService {
if (notId != null) { if (notId != null) {
criteria.andIdNotEqualTo(notId); criteria.andIdNotEqualTo(notId);
} }
return formDictMapperExt.countByExample(example); return baseMapper.countByExample(example);
} }
private long countByName(String name, Long notId) { private long countByName(String name, Long notId) {
@ -168,7 +169,7 @@ public class FormDictService {
if (notId != null) { if (notId != null) {
criteria.andIdNotEqualTo(notId); criteria.andIdNotEqualTo(notId);
} }
return formDictMapperExt.countByExample(example); return baseMapper.countByExample(example);
} }
public List<FormDict> list(List<String> configTypes) { public List<FormDict> list(List<String> configTypes) {
@ -176,7 +177,7 @@ public class FormDictService {
example.createCriteria() example.createCriteria()
.andCodeIn(configTypes) .andCodeIn(configTypes)
.andDeletedEqualTo(0); .andDeletedEqualTo(0);
return formDictMapperExt.selectByExample(example); return baseMapper.selectByExample(example);
} }
@Transactional @Transactional
@ -184,7 +185,7 @@ public class FormDictService {
for (FormDict dict : dicts) { for (FormDict dict : dicts) {
dict.setId(null); dict.setId(null);
} }
return formDictMapperExt.batchInsert(dicts); return baseMapper.batchInsert(dicts);
} }
/** /**
@ -200,7 +201,7 @@ public class FormDictService {
example.createCriteria() example.createCriteria()
.andCodeIn(new ArrayList<>(codes)) .andCodeIn(new ArrayList<>(codes))
.andDeletedEqualTo(0); .andDeletedEqualTo(0);
List<FormDict> list = formDictMapperExt.selectByExample(example); List<FormDict> list = baseMapper.selectByExample(example);
if (list.isEmpty()) { if (list.isEmpty()) {
return codes; return codes;
} }

View File

@ -1,24 +1,20 @@
package com.pcloud.booksflow.form.service; package com.pcloud.booksflow.form.service;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pcloud.booksflow.form.api.constant.FormFieldDictType; import com.pcloud.booksflow.form.api.constant.FormFieldDictType;
import com.pcloud.booksflow.form.api.dto.DictCodesDTO;
import com.pcloud.booksflow.form.api.dto.FormFieldDictDTO; import com.pcloud.booksflow.form.api.dto.FormFieldDictDTO;
import com.pcloud.booksflow.form.api.dto.FormFieldDictQ; import com.pcloud.booksflow.form.api.dto.FormFieldDictQ;
import com.pcloud.booksflow.form.api.vo.FormFieldDictDifyVo; import com.pcloud.booksflow.form.api.vo.FormFieldDictDifyVo;
import com.pcloud.booksflow.form.api.dto.DictCodesDTO;
import com.pcloud.booksflow.form.api.vo.FormFieldDictVO; import com.pcloud.booksflow.form.api.vo.FormFieldDictVO;
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict; import com.pcloud.booksflow.form.mybatis.entity.FormFieldDict;
import com.pcloud.booksflow.form.mybatis.entity.FormFieldDictExample; import com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapper;
import com.pcloud.booksflow.form.mybatis.mapper.FormFieldDictMapperExt;
import com.pcloud.booksflow.form.utils.UserUtils; import com.pcloud.booksflow.form.utils.UserUtils;
import com.pcloud.common.exceptions.BizException;
import com.pcloud.common.page.PageBeanNew;
import com.pcloud.common.utils.string.StringUtil;
import com.pcloud.universe.commons.utils.JsonUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.json.utils.JsonUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert; import org.springframework.util.Assert;
@ -31,10 +27,7 @@ import java.util.stream.Collectors;
*/ */
@Slf4j @Slf4j
@Service @Service
public class FormFieldDictService { public class FormFieldDictService extends ServiceImpl<FormFieldDictMapper, FormFieldDict> {
@Autowired
private FormFieldDictMapperExt formFieldDictMapperExt;
/** /**
* 创建新的表单字段配置 * 创建新的表单字段配置
@ -44,23 +37,20 @@ public class FormFieldDictService {
*/ */
public Long createOrUpdate(FormFieldDictDTO dto) { public Long createOrUpdate(FormFieldDictDTO dto) {
if (countByCode(dto.getConfigType(), dto.getCode(), dto.getId()) > 0) { if (countByCode(dto.getConfigType(), dto.getCode(), dto.getId()) > 0) {
throw new BizException("已存在相同的编码:" + dto.getCode()); throw new ServiceException("已存在相同的编码:" + dto.getCode());
} }
if (countByName(dto.getConfigType(), dto.getName(), dto.getId()) > 0) { if (countByName(dto.getConfigType(), dto.getName(), dto.getId()) > 0) {
throw new BizException("已存在相同的名称:" + dto.getName()); throw new ServiceException("已存在相同的名称:" + dto.getName());
} }
if (dto.getId() != null && dto.getId().equals(dto.getParentId())) { if (dto.getId() != null && dto.getId().equals(dto.getParentId())) {
throw new BizException("不能设置自己为父级"); throw new ServiceException("不能设置自己为父级");
} }
if (dto.getParentId() != null) { if (dto.getParentId() != null) {
FormFieldDict parentE = formFieldDictMapperExt.selectByPrimaryKey(dto.getParentId()); FormFieldDict parentE = baseMapper.selectById(dto.getParentId());
Assert.notNull(parentE, "无效的 parentId"); Assert.notNull(parentE, "无效的 parentId");
Assert.isTrue(parentE.getConfigType().equals(dto.getConfigType()), "configType 和 parent字典项的 configType不一样"); Assert.isTrue(parentE.getConfigType().equals(dto.getConfigType()), "configType 和 parent字典项的 configType不一样");
} }
//获取关联的Id在删除时做校验用
Set<Long> ids = getDelCheckIds(dto);
if (dto.getId() == null) { if (dto.getId() == null) {
//新增 //新增
FormFieldDict entity = new FormFieldDict(); FormFieldDict entity = new FormFieldDict();
@ -69,14 +59,9 @@ public class FormFieldDictService {
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
entity.setCreatedBy(UserUtils.getUserId()); entity.setCreatedBy(UserUtils.getUserId());
if (dto.getOtherFields() != null) { if (dto.getOtherFields() != null) {
entity.setOtherFields(JsonUtils.serialize(dto.getOtherFields())); entity.setOtherFields(JsonUtils.toJsonString(dto.getOtherFields()));
} }
if (!ids.isEmpty()) { baseMapper.insert(entity);
entity.setCheckIds(StrUtil.join(",", ids));
} else {
entity.setCheckIds("");
}
formFieldDictMapperExt.insertSelective(entity);
return entity.getId(); return entity.getId();
} else { } else {
//更新 //更新
@ -85,14 +70,9 @@ public class FormFieldDictService {
entity.setUpdateTime(new Date()); entity.setUpdateTime(new Date());
entity.setUpdatedBy(UserUtils.getUserId()); entity.setUpdatedBy(UserUtils.getUserId());
if (dto.getOtherFields() != null) { if (dto.getOtherFields() != null) {
entity.setOtherFields(JsonUtils.serialize(dto.getOtherFields())); entity.setOtherFields(JsonUtils.toJsonString(dto.getOtherFields()));
} }
if (!ids.isEmpty()) { baseMapper.updateById(entity);
entity.setCheckIds(StrUtil.join(",", ids));
} else {
entity.setCheckIds("");
}
formFieldDictMapperExt.updateByPrimaryKeySelective(entity);
return entity.getId(); return entity.getId();
} }
} }
@ -270,7 +250,7 @@ public class FormFieldDictService {
return 0; return 0;
} }
if (item.getDeleted() == 1) { if (item.getDeleted() == 1) {
throw new BizException("已删除的表单字段配置不能修改状态"); throw new ServiceException("已删除的表单字段配置不能修改状态");
} }
//如果有子节点也要全部修改状态 //如果有子节点也要全部修改状态
updateStatusChildren(item.getConfigType(), Collections.singletonList(item.getId()), status, 0, userId); updateStatusChildren(item.getConfigType(), Collections.singletonList(item.getId()), status, 0, userId);
@ -286,7 +266,7 @@ public class FormFieldDictService {
private void updateStatusChildren(String configType, List<Long> pids, Integer status, int depth, Long userId) { private void updateStatusChildren(String configType, List<Long> pids, Integer status, int depth, Long userId) {
// 限制递归深度防止死循环 // 限制递归深度防止死循环
if (depth >= 10) { if (depth >= 10) {
throw new BizException("树形层级过深超过10层无法继续更新状态"); throw new ServiceException("树形层级过深超过10层无法继续更新状态");
} }
// 查找所有直接子节点 // 查找所有直接子节点
@ -568,10 +548,10 @@ public class FormFieldDictService {
List<DictCodesDTO> list = new ArrayList<>(); List<DictCodesDTO> list = new ArrayList<>();
q.forEach((configType, itemCodes) -> { q.forEach((configType, itemCodes) -> {
if (CollUtil.isEmpty(itemCodes)) { if (CollUtil.isEmpty(itemCodes)) {
throw new BizException("请指定字典项编码!"); throw new ServiceException("请指定字典项编码!");
} }
if (StrUtil.isBlank(configType)) { if (StrUtil.isBlank(configType)) {
throw new BizException("请指定字典编码!"); throw new ServiceException("请指定字典编码!");
} }
list.add(new DictCodesDTO(configType, itemCodes)); list.add(new DictCodesDTO(configType, itemCodes));
}); });

View File

@ -47,14 +47,8 @@ import java.util.Map;
@Service @Service
public class FormPrintConfigService { public class FormPrintConfigService {
@Autowired
private FormPrintConfigMapperExt formPrintConfigMapperExt;
@Autowired @Autowired
private FormService formService; private FormService formService;
@Autowired
private WpsWebOfficeService wpsWebOfficeService;
@Autowired
private DifyClient difyClient;
/** /**
* 创建或更新表单打印配置 * 创建或更新表单打印配置
@ -189,7 +183,7 @@ public class FormPrintConfigService {
public Integer updateFileWpsId(Long userId, FormPrintConfig entity) { public Integer updateFileWpsId(Long userId, FormPrintConfig entity) {
if (!"docx".equals(entity.getFileType())) { if (!"docx".equals(entity.getFileType())) {
throw new BizException("请上传docx文件"); throw new ServiceException("请上传docx文件");
} }
CreateFileRequest rq = new CreateFileRequest(); CreateFileRequest rq = new CreateFileRequest();
rq.setFileUrl(entity.getFileUrl()); rq.setFileUrl(entity.getFileUrl());
@ -257,21 +251,21 @@ public class FormPrintConfigService {
config = getEntityByFormId(dto.getFormId()); config = getEntityByFormId(dto.getFormId());
} }
if (config == null) { if (config == null) {
throw new BizException("未找到打印配置"); throw new ServiceException("未找到打印配置");
} }
if (StringUtil.isBlank(config.getFileWpsId())) { if (StringUtil.isBlank(config.getFileWpsId())) {
throw new BizException("未找到wpsId打印文件"); throw new ServiceException("未找到wpsId打印文件");
} }
String fileName = config.getFileName(); String fileName = config.getFileName();
String fileType = config.getFileType(); String fileType = config.getFileType();
if (StringUtil.isBlank(fileName)) { if (StringUtil.isBlank(fileName)) {
throw new BizException("未找到文件名"); throw new ServiceException("未找到文件名");
} }
if (StringUtil.isBlank(fileType)) { if (StringUtil.isBlank(fileType)) {
throw new BizException("未找到文件类型"); throw new ServiceException("未找到文件类型");
} }
if (!fileType.trim().equalsIgnoreCase("docx")) { if (!fileType.trim().equalsIgnoreCase("docx")) {
throw new BizException("只支持docx文件"); throw new ServiceException("只支持docx文件");
} }
String exportUrl = wpsWebOfficeService.getExportUrl(config.getFileWpsId()); String exportUrl = wpsWebOfficeService.getExportUrl(config.getFileWpsId());

View File

@ -31,10 +31,10 @@ public class FormService {
public Form create(Form form) { public Form create(Form form) {
// 检查code是否已存在排除自己 // 检查code是否已存在排除自己
if (countByCode(form.getCode(), null) > 0) { if (countByCode(form.getCode(), null) > 0) {
throw new BizException("编码已存在: " + form.getCode()); throw new ServiceException("编码已存在: " + form.getCode());
} }
if (countByName(form.getName(), null) > 0) { if (countByName(form.getName(), null) > 0) {
throw new BizException("名称已存在: " + form.getName()); throw new ServiceException("名称已存在: " + form.getName());
} }
form.setId(null); form.setId(null);
formMapperExt.insertSelective(form); formMapperExt.insertSelective(form);
@ -61,10 +61,10 @@ public class FormService {
public Form update(Long id, Form form) { public Form update(Long id, Form form) {
// 检查code是否已存在排除自己 // 检查code是否已存在排除自己
if (countByCode(form.getCode(), id) > 0) { if (countByCode(form.getCode(), id) > 0) {
throw new BizException("编码已存在: " + form.getCode()); throw new ServiceException("编码已存在: " + form.getCode());
} }
if (countByName(form.getName(), id) > 0) { if (countByName(form.getName(), id) > 0) {
throw new BizException("名称已存在: " + form.getName()); throw new ServiceException("名称已存在: " + form.getName());
} }
form.setId(id); form.setId(id);
formMapperExt.updateByPrimaryKeySelective(form); formMapperExt.updateByPrimaryKeySelective(form);

View File

@ -85,7 +85,7 @@ public class FormTemplateService {
//***** 检验内容是否和最新版一致 //***** 检验内容是否和最新版一致
String md5 = DigestUtil.md5Hex(JsonUtils.serialize(dto)); String md5 = DigestUtil.md5Hex(JsonUtils.serialize(dto));
if (StrUtil.isBlank(md5)) { if (StrUtil.isBlank(md5)) {
throw new BizException("md5生成错误"); throw new ServiceException("md5生成错误");
} }
if (checkContentEncoding(maxVersionEntity, md5)) { if (checkContentEncoding(maxVersionEntity, md5)) {
log.info("表单和上次保存的一致,模板不用更新"); log.info("表单和上次保存的一致,模板不用更新");
@ -156,7 +156,7 @@ public class FormTemplateService {
private FormTemplate create(Long formId, String md5) { private FormTemplate create(Long formId, String md5) {
if (formId == null) { if (formId == null) {
throw new BizException("表单ID不能为空"); throw new ServiceException("表单ID不能为空");
} }
FormTemplate entity = new FormTemplate(); FormTemplate entity = new FormTemplate();
entity.setFormId(formId); entity.setFormId(formId);
@ -324,11 +324,11 @@ public class FormTemplateService {
} }
for (FormTemplateDTO.FieldDTO field : templateFields) { for (FormTemplateDTO.FieldDTO field : templateFields) {
if (!fieldCodes.add(field.getCode())) { if (!fieldCodes.add(field.getCode())) {
throw new BizException("字段编码不能重复: " + field.getCode()); throw new ServiceException("字段编码不能重复: " + field.getCode());
} }
if (CollUtil.isNotEmpty(field.getChildren())) { if (CollUtil.isNotEmpty(field.getChildren())) {
if (!formTemplateFieldService.isGroup(field.getType())) { if (!formTemplateFieldService.isGroup(field.getType())) {
throw new BizException("字段类型不支持children有值字段类型错误" + field.getType()); throw new ServiceException("字段类型不支持children有值字段类型错误" + field.getType());
} }
checkDTO(field.getChildren(), fieldCodes); checkDTO(field.getChildren(), fieldCodes);
} }

View File

@ -37,14 +37,14 @@ public class ModifyLogRecordService {
} }
// 限制一次最多1000条记录 // 限制一次最多1000条记录
if (dtos.size() > 1000) { if (dtos.size() > 1000) {
throw new BizException("批量保存记录数不能超过1000条"); throw new ServiceException("批量保存记录数不能超过1000条");
} }
Date date = new Date(); Date date = new Date();
List<ModifyLogRecord> modifyLogRecords = dtos.stream() List<ModifyLogRecord> modifyLogRecords = dtos.stream()
.map(dto -> { .map(dto -> {
if (StrUtil.isBlank(dto.getEntityId())) { if (StrUtil.isBlank(dto.getEntityId())) {
throw new BizException("实体ID不能为空"); throw new ServiceException("实体ID不能为空");
} }
ModifyLogRecord record = new ModifyLogRecord(); ModifyLogRecord record = new ModifyLogRecord();
BeanUtils.copyProperties(dto, record); BeanUtils.copyProperties(dto, record);