master
Cui YongXing 2024-08-23 01:54:42 +08:00
parent aef7c4d74e
commit e24c38c652
4 changed files with 12 additions and 14 deletions

View File

@ -2,7 +2,6 @@ package com.muyu.gen.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.gen.domain.GenTableColumn;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -19,7 +18,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
*
* @return
*/
List<GenTableColumn> selectDbTableColumnsByName (@Param("tableName") String tableName);
List<GenTableColumn> selectDbTableColumnsByName (String tableName);
/**
*
@ -28,7 +27,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
*
* @return
*/
List<GenTableColumn> selectGenTableColumnListByTableId (@Param("tableId") Long tableId);
List<GenTableColumn> selectGenTableColumnListByTableId (Long tableId);
/**
*
@ -55,7 +54,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
*
* @return
*/
int deleteGenTableColumns (@Param("genTableColumns") List<GenTableColumn> genTableColumns);
int deleteGenTableColumns (List<GenTableColumn> genTableColumns);
/**
*
@ -64,5 +63,5 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
*
* @return
*/
int deleteGenTableColumnByIds (@Param("ids") Long[] ids);
int deleteGenTableColumnByIds (Long[] ids);
}

View File

@ -2,7 +2,6 @@ package com.muyu.gen.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.gen.domain.GenTable;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -37,7 +36,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
*
* @return
*/
List<GenTable> selectDbTableListByNames (@Param("tableNames") String[] tableNames);
List<GenTable> selectDbTableListByNames (String[] tableNames);
/**
*
@ -53,7 +52,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
*
* @return
*/
GenTable selectGenTableById (@Param("id") Long id);
GenTable selectGenTableById (Long id);
/**
*
@ -62,7 +61,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
*
* @return
*/
GenTable selectGenTableByName (@Param("tableName") String tableName);
GenTable selectGenTableByName (String tableName);
/**
*
@ -89,5 +88,5 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
*
* @return
*/
int deleteGenTableByIds (@Param("ids") Long[] ids);
int deleteGenTableByIds (Long[] ids);
}

View File

@ -142,14 +142,14 @@
<delete id="deleteGenTableColumnByIds" parameterType="Long">
delete from gen_table_column where table_id in
<foreach collection="ids" item="tableId" open="(" separator="," close=")">
<foreach collection="array" item="tableId" open="(" separator="," close=")">
#{tableId}
</foreach>
</delete>
<delete id="deleteGenTableColumns">
delete from gen_table_column where column_id in
<foreach collection="genTableColumns" item="item" open="(" separator="," close=")">
<foreach collection="list" item="item" open="(" separator="," close=")">
#{item.columnId}
</foreach>
</delete>

View File

@ -119,7 +119,7 @@
select table_name, table_comment, create_time, update_time from information_schema.tables
where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database())
and table_name in
<foreach collection="tableNames" item="name" open="(" separator="," close=")">
<foreach collection="array" item="name" open="(" separator="," close=")">
#{name}
</foreach>
</select>
@ -309,7 +309,7 @@
<delete id="deleteGenTableByIds" parameterType="Long">
delete from gen_table where table_id in
<foreach collection="ids" item="tableId" open="(" separator="," close=")">
<foreach collection="array" item="tableId" open="(" separator="," close=")">
#{tableId}
</foreach>
</delete>