Browse Source

重新生成form_field

master
陈裕财 3 years ago
parent
commit
7fb2b66a73
  1. 8
      mdp-form/src/main/java/com/mdp/form/entity/FormDef.java
  2. 16
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDefMapper.xml

8
mdp-form/src/main/java/com/mdp/form/entity/FormDef.java

@ -8,7 +8,7 @@ import java.util.Date;
/** /**
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br> * 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormDef所有属性名: <br> * 实体 FormDef所有属性名: <br>
* "id","主键","tableName","表名","tableOwner","表名拥有者","isCreateTable","是否已经创建库表","formName","表单名称","userid","创建人","deptid","创建部门","formType","表单类型","isTemplate","是否为模板","bizType","业务分类","ctime","创建日期","branchId","机构编号","categoryId","分类编号","tagIds","标签编号列表","tagNames","标签名字列表","username","创建人姓名","deptName","创建部门";<br>
* "id","主键","tableName","表名","tableOwner","表名拥有者","isCreateTable","是否已经创建库表","formName","表单名称","userid","创建人","deptid","创建部门","formType","表单类型","isTemplate","是否为模板","bizType","业务分类","ctime","创建日期","branchId","机构编号","categoryId","分类编号","tagIds","标签编号列表","tagNames","标签名字列表","username","创建人姓名","deptName","创建部门","groupsJson","表单元素分组","pks","主键列表,逗号分割";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -70,6 +70,12 @@ public class FormDef implements java.io.Serializable {
@ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="")
String deptName; String deptName;
@ApiModelProperty(notes="表单元素分组",allowEmptyValue=true,example="",allowableValues="")
String groupsJson;
@ApiModelProperty(notes="主键列表,逗号分割",allowEmptyValue=true,example="",allowableValues="")
String pks;
/** /**
*主键 *主键
**/ **/

16
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDefMapper.xml

@ -80,7 +80,7 @@
insert into form_def( insert into form_def(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{tableName},#{tableOwner},#{isCreateTable},#{formName},#{userid},#{deptid},#{formType},#{isTemplate},#{bizType},#{ctime},#{branchId},#{categoryId},#{tagIds},#{tagNames},#{username},#{deptName}
#{id},#{tableName},#{tableOwner},#{isCreateTable},#{formName},#{userid},#{deptid},#{formType},#{isTemplate},#{bizType},#{ctime},#{branchId},#{categoryId},#{tagIds},#{tagNames},#{username},#{deptName},#{groupsJson},#{pks}
) )
</insert> </insert>
@ -155,7 +155,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,table_name,table_owner,is_create_table,form_name,userid,deptid,form_type,is_template,biz_type,ctime,branch_id,category_id,tag_ids,tag_names,username,dept_name
id,table_name,table_owner,is_create_table,form_name,userid,deptid,form_type,is_template,biz_type,ctime,branch_id,category_id,tag_ids,tag_names,username,dept_name,groups_json,pks
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -177,6 +177,8 @@
<if test="tagNames != null and tagNames != ''"> and res.tag_names = #{tagNames} </if> <if test="tagNames != null and tagNames != ''"> and res.tag_names = #{tagNames} </if>
<if test="username != null and username != ''"> and res.username = #{username} </if> <if test="username != null and username != ''"> and res.username = #{username} </if>
<if test="deptName != null and deptName != ''"> and res.dept_name = #{deptName} </if> <if test="deptName != null and deptName != ''"> and res.dept_name = #{deptName} </if>
<if test="groupsJson != null and groupsJson != ''"> and res.groups_json = #{groupsJson} </if>
<if test="pks != null and pks != ''"> and res.pks = #{pks} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -195,7 +197,9 @@
tag_ids = #{tagIds}, tag_ids = #{tagIds},
tag_names = #{tagNames}, tag_names = #{tagNames},
username = #{username}, username = #{username},
dept_name = #{deptName}
dept_name = #{deptName},
groups_json = #{groupsJson},
pks = #{pks}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="tableName != null and tableName != ''"> table_name = #{tableName}, </if> <if test="tableName != null and tableName != ''"> table_name = #{tableName}, </if>
@ -214,6 +218,8 @@
<if test="tagNames != null and tagNames != ''"> tag_names = #{tagNames}, </if> <if test="tagNames != null and tagNames != ''"> tag_names = #{tagNames}, </if>
<if test="username != null and username != ''"> username = #{username}, </if> <if test="username != null and username != ''"> username = #{username}, </if>
<if test="deptName != null and deptName != ''"> dept_name = #{deptName}, </if> <if test="deptName != null and deptName != ''"> dept_name = #{deptName}, </if>
<if test="groupsJson != null and groupsJson != ''"> groups_json = #{groupsJson}, </if>
<if test="pks != null and pks != ''"> pks = #{pks}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -232,6 +238,8 @@
tag_ids = #{item.tagIds}, tag_ids = #{item.tagIds},
tag_names = #{item.tagNames}, tag_names = #{item.tagNames},
username = #{item.username}, username = #{item.username},
dept_name = #{item.deptName}
dept_name = #{item.deptName},
groups_json = #{item.groupsJson},
pks = #{item.pks}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save