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.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.gen.domain.GenTableColumn; import com.muyu.gen.domain.GenTableColumn;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -19,7 +18,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
* *
* @return * @return
*/ */
List<GenTableColumn> selectDbTableColumnsByName (@Param("tableName") String tableName); List<GenTableColumn> selectDbTableColumnsByName (String tableName);
/** /**
* *
@ -28,7 +27,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
* *
* @return * @return
*/ */
List<GenTableColumn> selectGenTableColumnListByTableId (@Param("tableId") Long tableId); List<GenTableColumn> selectGenTableColumnListByTableId (Long tableId);
/** /**
* *
@ -55,7 +54,7 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
* *
* @return * @return
*/ */
int deleteGenTableColumns (@Param("genTableColumns") List<GenTableColumn> genTableColumns); int deleteGenTableColumns (List<GenTableColumn> genTableColumns);
/** /**
* *
@ -64,5 +63,5 @@ public interface GenTableColumnMapper extends BaseMapper<GenTableColumn> {
* *
* @return * @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.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.gen.domain.GenTable; import com.muyu.gen.domain.GenTable;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -37,7 +36,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
* *
* @return * @return
*/ */
List<GenTable> selectDbTableListByNames (@Param("tableNames") String[] tableNames); List<GenTable> selectDbTableListByNames (String[] tableNames);
/** /**
* *
@ -53,7 +52,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
* *
* @return * @return
*/ */
GenTable selectGenTableById (@Param("id") Long id); GenTable selectGenTableById (Long id);
/** /**
* *
@ -62,7 +61,7 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
* *
* @return * @return
*/ */
GenTable selectGenTableByName (@Param("tableName") String tableName); GenTable selectGenTableByName (String tableName);
/** /**
* *
@ -89,5 +88,5 @@ public interface GenTableMapper extends BaseMapper<GenTable> {
* *
* @return * @return
*/ */
int deleteGenTableByIds (@Param("ids") Long[] ids); int deleteGenTableByIds (Long[] ids);
} }

View File

@ -142,14 +142,14 @@
<delete id="deleteGenTableColumnByIds" parameterType="Long"> <delete id="deleteGenTableColumnByIds" parameterType="Long">
delete from gen_table_column where table_id in 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} #{tableId}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteGenTableColumns"> <delete id="deleteGenTableColumns">
delete from gen_table_column where column_id in 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} #{item.columnId}
</foreach> </foreach>
</delete> </delete>

View File

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