123456789101112131415 |
- <?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.onemap.apply.mapper.table.TableFiledMapper">
- <select id="getFiledDTOByTableId" resultType="com.onemap.apply.domain.table.TableFiledDTO">
- select t1.id, t1.filed_name filedName, t1.filed_zh filedZh
- from t_table_filed_relation t
- left join t_table_filed t1 on t.filed_id = t1.id
- where t.table_id = #{tableId}
- <if test="isDisplay != null">
- and t.is_display = #{isDisplay}
- </if>
- order by t.sort
- </select>
- </mapper>
|