master
面包骑士 2024-08-21 17:00:00 +08:00
parent 687ee8006d
commit 4e887e2964
4 changed files with 10 additions and 10 deletions

View File

@ -28,7 +28,7 @@ public interface GenTableColumnMapper
* @param tableId
* @return
*/
public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId);
public List<GenTableColumn> selectGenTableColumnListByTableId(@Param("tableId") Long tableId);
/**
*
@ -52,7 +52,7 @@ public interface GenTableColumnMapper
* @param genTableColumns
* @return
*/
public int deleteGenTableColumns(List<GenTableColumn> genTableColumns);
public int deleteGenTableColumns(@Param("genTableColumns") List<GenTableColumn> genTableColumns);
/**
*
@ -60,5 +60,5 @@ public interface GenTableColumnMapper
* @param ids ID
* @return
*/
public int deleteGenTableColumnByIds(Long[] ids);
public int deleteGenTableColumnByIds(@Param("ids") Long[] ids);
}

View File

@ -50,7 +50,7 @@ public interface GenTableMapper
* @param id ID
* @return
*/
public GenTable selectGenTableById(Long id);
public GenTable selectGenTableById(@Param("id") Long id);
/**
*
@ -58,7 +58,7 @@ public interface GenTableMapper
* @param tableName
* @return
*/
public GenTable selectGenTableByName(String tableName);
public GenTable selectGenTableByName(@Param("tableName") String tableName);
/**
*
@ -82,7 +82,7 @@ public interface GenTableMapper
* @param ids ID
* @return
*/
public int deleteGenTableByIds(Long[] ids);
public int deleteGenTableByIds(@Param("ids") Long[] ids);
List<String> selDbNameAll();
}

View File

@ -114,7 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteGenTableColumnByIds" parameterType="Long">
delete from gen_table_column where table_id in (
<foreach collection="array" item="tableId" separator="," >
<foreach collection="ids" item="tableId" separator="," >
#{tableId}
</foreach>
)
@ -123,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteGenTableColumns">
delete from gen_table_column where column_id in (
<foreach collection="list" item="item" separator="," >
<foreach collection="genTableColumns" item="item" separator="," >
#{item.columnId}
</foreach>
)

View File

@ -129,7 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
c.column_id, 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.table_id = c.table_id
where t.table_id = #{tableId} order by c.sort
where t.table_id = #{id} order by c.sort
</select>
<select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
@ -215,7 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteGenTableByIds" parameterType="Long">
delete from gen_table where table_id in (
<foreach collection="array" item="tableId" separator="," >
<foreach collection="ids" item="tableId" separator="," >
#{tableId}
</foreach>
)