@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "createTime" column= "create_time" />
<result property= "updateUid" column= "update_uid" />
<result property= "updateTime" column= "update_time" />
<result property= "remark" column= "remark " />
<result property= "note" column= "note " />
<collection property= "columns" javaType= "java.util.List" resultMap= "GenTableColumnResult" />
</resultMap>
@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id= "selectGenTableVo" >
select id, table_name, table_comment, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_uid, create_time, update_uid, update_time, remark
select id, table_name, table_comment, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_uid, create_time, update_uid, update_time, note
from gen_table
</sql>
@ -134,7 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id= "selectGenTableById" parameterType= "String" resultMap= "GenTableResult" >
SELECT t.id, t.table_name, t.table_comment, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark ,
SELECT t.id, t.table_name, t.table_comment, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.note ,
c.id AS cid, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
FROM gen_table t
LEFT JOIN gen_table_column c ON t.id = c.table_id
@ -142,7 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id= "selectGenTableByName" parameterType= "String" resultMap= "GenTableResult" >
SELECT t.id, t.table_name, t.table_comment, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark ,
SELECT t.id, t.table_name, t.table_comment, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.note ,
c.id as cid, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
FROM gen_table t
LEFT JOIN gen_table_column c ON t.id = c.table_id
@ -163,7 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "functionAuthor != null and functionAuthor != ''" > function_author,</if>
<if test= "genType != null and genType != ''" > gen_type,</if>
<if test= "genPath != null and genPath != ''" > gen_path,</if>
<if test= "remark != null and remark != ''" > remark ,</if>
<if test= "note != null and note != ''" > note ,</if>
<if test= "createUid != null and createUid != ''" > create_uid,</if>
create_time
)values(
@ -179,7 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "functionAuthor != null and functionAuthor != ''" > #{functionAuthor},</if>
<if test= "genType != null and genType != ''" > #{genType},</if>
<if test= "genPath != null and genPath != ''" > #{genPath},</if>
<if test= "remark != null and remark != ''" > #{remark },</if>
<if test= "note != null and note != ''" > #{note },</if>
<if test= "createUid != null and createUid != ''" > #{createUid},</if>
sysdate()
)
@ -201,7 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "functionName != null and functionName != ''" > function_name = #{functionName},</if>
<if test= "options != null and options != ''" > options = #{options},</if>
<if test= "updateUid != null and updateUid != ''" > update_uid = #{updateUid},</if>
<if test= "remark != null" > remark = #{remark },</if>
<if test= "note != null" > note = #{note },</if>
update_time = sysdate()
</set>
where id = #{id}