From ba3def3d558e0c9020b9a674e33132942e15cf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 7 Oct 2023 01:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A72.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mdp/form/entity/FormData.java | 14 ++-- .../java/com/mdp/form/entity/FormDef.java | 18 ++--- .../java/com/mdp/form/entity/FormField.java | 77 ++++++++----------- 3 files changed, 48 insertions(+), 61 deletions(-) diff --git a/mdp-form/src/main/java/com/mdp/form/entity/FormData.java b/mdp-form/src/main/java/com/mdp/form/entity/FormData.java index 7775019..2df3db4 100644 --- a/mdp-form/src/main/java/com/mdp/form/entity/FormData.java +++ b/mdp-form/src/main/java/com/mdp/form/entity/FormData.java @@ -12,7 +12,7 @@ import java.util.Date; /** * @author code-gen - * @since 2023-9-18 + * @since 2023-10-7 */ @Data @TableName("form_data") @@ -63,7 +63,7 @@ public class FormData implements java.io.Serializable { @ApiModelProperty(notes="最后更新日期",allowEmptyValue=true,example="",allowableValues="") - Date lastTime; + Date ltime; @ApiModelProperty(notes="属性一",allowEmptyValue=true,example="",allowableValues="") @@ -107,11 +107,11 @@ public class FormData implements java.io.Serializable { @ApiModelProperty(notes="附件url多个",allowEmptyValue=true,example="",allowableValues="") - String attachmentUrls; + String attUrls; @ApiModelProperty(notes="附件名称多个",allowEmptyValue=true,example="",allowableValues="") - String attachmentNames; + String attNames; @ApiModelProperty(notes="机构编号",allowEmptyValue=true,example="",allowableValues="") @@ -127,11 +127,11 @@ public class FormData implements java.io.Serializable { @ApiModelProperty(notes="0初始1审批中2结束审批",allowEmptyValue=true,example="",allowableValues="") - String flowState; + String fstate; @ApiModelProperty(notes="创建时间",allowEmptyValue=true,example="",allowableValues="") - Date createTime; + Date ctime; @ApiModelProperty(notes="数据权限码",allowEmptyValue=true,example="",allowableValues="") @@ -158,7 +158,7 @@ public class FormData implements java.io.Serializable { String deptName; - @ApiModelProperty(notes="扩展字段",allowEmptyValue=true,example="",allowableValues="") + @ApiModelProperty(notes="扩展字段json",allowEmptyValue=true,example="",allowableValues="") String extInfos; /** diff --git a/mdp-form/src/main/java/com/mdp/form/entity/FormDef.java b/mdp-form/src/main/java/com/mdp/form/entity/FormDef.java index 6034d21..f49f628 100644 --- a/mdp-form/src/main/java/com/mdp/form/entity/FormDef.java +++ b/mdp-form/src/main/java/com/mdp/form/entity/FormDef.java @@ -12,7 +12,7 @@ import java.util.Date; /** * @author code-gen - * @since 2023-9-18 + * @since 2023-10-7 */ @Data @TableName("form_def") @@ -34,10 +34,6 @@ public class FormDef implements java.io.Serializable { String tableOwner; - @ApiModelProperty(notes="是否已经创建库表",allowEmptyValue=true,example="",allowableValues="") - String isCreateTable; - - @ApiModelProperty(notes="表单名称",allowEmptyValue=true,example="",allowableValues="") String formName; @@ -55,7 +51,7 @@ public class FormDef implements java.io.Serializable { @ApiModelProperty(notes="是否为模板",allowEmptyValue=true,example="",allowableValues="") - String isTemplate; + String tpl; @ApiModelProperty(notes="业务分类",allowEmptyValue=true,example="",allowableValues="") @@ -90,10 +86,6 @@ public class FormDef implements java.io.Serializable { String deptName; - @ApiModelProperty(notes="表单元素分组",allowEmptyValue=true,example="",allowableValues="") - String groupsJson; - - @ApiModelProperty(notes="主键列表,逗号分割",allowEmptyValue=true,example="",allowableValues="") String pks; @@ -102,13 +94,17 @@ public class FormDef implements java.io.Serializable { String dataType; - @ApiModelProperty(notes="数据存储字段,当data_type=1时必填,默认ext_infos",allowEmptyValue=true,example="",allowableValues="") + @ApiModelProperty(notes="数据存储字段,当data_type=2时必填,默认ext_infos",allowEmptyValue=true,example="",allowableValues="") String dataField; @ApiModelProperty(notes="扩展字段",allowEmptyValue=true,example="",allowableValues="") String extInfos; + + @ApiModelProperty(notes="函数列表",allowEmptyValue=true,example="",allowableValues="") + String funcs; + /** *主键 **/ diff --git a/mdp-form/src/main/java/com/mdp/form/entity/FormField.java b/mdp-form/src/main/java/com/mdp/form/entity/FormField.java index 87c2d90..2e0abdc 100644 --- a/mdp-form/src/main/java/com/mdp/form/entity/FormField.java +++ b/mdp-form/src/main/java/com/mdp/form/entity/FormField.java @@ -8,11 +8,10 @@ import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; /** * @author code-gen - * @since 2023-9-18 + * @since 2023-10-7 */ @Data @TableName("form_field") @@ -20,85 +19,66 @@ import java.math.BigDecimal; public class FormField implements java.io.Serializable { private static final long serialVersionUID = 1L; - @TableId(type = IdType.ASSIGN_ID) - @ApiModelProperty(notes="主键,主键",allowEmptyValue=true,example="",allowableValues="") - String id; - - @TableId(type = IdType.ASSIGN_ID) - @ApiModelProperty(notes="表单编号",allowEmptyValue=true,example="",allowableValues="") - String formId; - + @TableIds + + @ApiModelProperty(notes="表单编号,主键",allowEmptyValue=true,example="",allowableValues="") + String formId; + @TableIds - @ApiModelProperty(notes="字段编号对应数据库",allowEmptyValue=true,example="",allowableValues="") - String fieldId; + @ApiModelProperty(notes="主键-字段编号对应数据库,主键",allowEmptyValue=true,example="",allowableValues="") + String id; @ApiModelProperty(notes="字段显示内容",allowEmptyValue=true,example="",allowableValues="") - String fieldTitle; + String title; @ApiModelProperty(notes="下拉时候关联的分组",allowEmptyValue=true,example="",allowableValues="") - String dictCode; + String dict; @ApiModelProperty(notes="字段类型",allowEmptyValue=true,example="",allowableValues="") - String fieldType; + String typ; @ApiModelProperty(notes="字段长度",allowEmptyValue=true,example="",allowableValues="") - BigDecimal fieldLength; + Integer len; @ApiModelProperty(notes="默认值",allowEmptyValue=true,example="",allowableValues="") - String defaultValue; + String dval; @ApiModelProperty(notes="是否多选",allowEmptyValue=true,example="",allowableValues="") - String isMultiple; - - - @ApiModelProperty(notes="输入框占位文本",allowEmptyValue=true,example="",allowableValues="") - String placeholder; + String mul; @ApiModelProperty(notes="是否必输",allowEmptyValue=true,example="",allowableValues="") - String isRequired; - - - @ApiModelProperty(notes="是否关联基础数据",allowEmptyValue=true,example="",allowableValues="") - String isDict; + String req; @ApiModelProperty(notes="字段驼峰命名",allowEmptyValue=true,example="",allowableValues="") - String fieldIdCamel; + String idCamel; @ApiModelProperty(notes="字段备注",allowEmptyValue=true,example="",allowableValues="") String remark; - @ApiModelProperty(notes="扩展信息",allowEmptyValue=true,example="",allowableValues="") - String extFieldType; - - @ApiModelProperty(notes="是否提交到工作流",allowEmptyValue=true,example="",allowableValues="") String toFlow; - @ApiModelProperty(notes="提交到工作流的变量编号",allowEmptyValue=true,example="",allowableValues="") - String flowFieldId; - - @ApiModelProperty(notes="是否是业务主键111前面两个1代表创建人及创建部门,后面一个1代表字段本身,0为不是主键,如000代表该表单不设置主键,001代表字段本身作为主键,创建人创建部门不是主键,100代表创建人为唯一主键,110代表创建人创建部门为主键,其它字段联合主键的话,按字段顺序排序",allowEmptyValue=true,example="",allowableValues="") - String isBizKey; + String bkey; @ApiModelProperty(notes="显示顺序",allowEmptyValue=true,example="",allowableValues="") - BigDecimal seqNo; + Integer seq; @ApiModelProperty(notes="归属组编号-用于解决多个tab页,或者多个子页面的问题",allowEmptyValue=true,example="",allowableValues="") - String groupId; + String pid; @ApiModelProperty(notes="展示风格origin-原生、tag-标签、x-综合",allowEmptyValue=true,example="",allowableValues="") @@ -108,16 +88,27 @@ public class FormField implements java.io.Serializable { @ApiModelProperty(notes="样式json",allowEmptyValue=true,example="",allowableValues="") String styleObj; - @ApiModelProperty(notes="字段权限",allowEmptyValue=true,example="",allowableValues="") - String fieldQx; @ApiModelProperty(notes="扩展json字符串",allowEmptyValue=true,example="",allowableValues="") String extInfos; + + @ApiModelProperty(notes="字段权限",allowEmptyValue=true,example="",allowableValues="") + String qx; + + + @ApiModelProperty(notes="如果上级是row布局,存方span属性",allowEmptyValue=true,example="",allowableValues="") + Integer span; + + + @ApiModelProperty(notes="验证器列表",allowEmptyValue=true,example="",allowableValues="") + String vrules; + /** - *主键 + *表单编号,主键-字段编号对应数据库 **/ - public FormField(String id) { + public FormField(String formId,String id) { + this.formId = formId; this.id = id; }