DisScaleMapper.xml 680 B

1234567891011
  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.diagbot.mapper.DisScaleMapper">
  4. <select id="getDisScale" resultType="com.diagbot.dto.DisScaleDTO">
  5. SELECT a.lib_name name, a.id concept_id FROM `kl_concept` a, kl_relation b, kl_relation_order c
  6. where a.is_deleted = 'N' and b.is_deleted = 'N' and c.is_deleted = 'N'
  7. and a.id = b.end_id and b.start_id = (select id from kl_concept where lib_name = #{disName} and lib_type = 18)
  8. and b.relation_id = 17 and b.id = c.t_relation_id ORDER BY c.order_no;
  9. </select>
  10. </mapper>