|
|
@ -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> |