TableFiledMapper.xml 654 B

123456789101112131415
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.onemap.apply.mapper.table.TableFiledMapper">
  4. <select id="getFiledDTOByTableId" resultType="com.onemap.apply.domain.table.TableFiledDTO">
  5. select t1.id, t1.filed_name filedName, t1.filed_zh filedZh
  6. from t_table_filed_relation t
  7. left join t_table_filed t1 on t.filed_id = t1.id
  8. where t.table_id = #{tableId}
  9. <if test="isDisplay != null">
  10. and t.is_display = #{isDisplay}
  11. </if>
  12. order by t.sort
  13. </select>
  14. </mapper>