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