<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.eitc.modules.devtools.dao.TableFieldDao">

    <select id="getByTableName" resultType="com.eitc.modules.devtools.entity.TableFieldEntity">
        select * from gen_table_field where table_name = #{value} order by sort
    </select>

    <delete id="deleteByTableName">
        delete from gen_table_field where table_name = #{value}
    </delete>

    <delete id="deleteBatchTableIds">
        delete from gen_table_field where table_id in
        <foreach item="tableId" collection="array"  open="(" separator="," close=")">
            #{tableId}
        </foreach>
    </delete>
</mapper>