|
|
|
|
@ -16,8 +16,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
select id, year_name, rate, type from base_qi
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseQiList1" resultMap="BaseQiResult">
|
|
|
|
|
select id, year_name, rate, sdd.DICT_LABEL
|
|
|
|
|
<resultMap id="MTKBeen" type="com.ruoyi.system.domain.MTKBeen">
|
|
|
|
|
<result column="code" property="code"/>
|
|
|
|
|
<collection property="list" javaType="java.util.List" resultMap="BoxOutputBeen"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap id="BoxOutputBeen" type="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
<result column="name" property="name"/>
|
|
|
|
|
<result column="qty" property="qty"/>
|
|
|
|
|
<result column="rate" property="rate"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<select id="selectBaseQiList1" resultMap="MTKBeen">
|
|
|
|
|
select year_name as name , rate , sdd.DICT_LABEL as code
|
|
|
|
|
from base_qi bq
|
|
|
|
|
left join SYS_DICT_DATA sdd on TYPE = sdd.DICT_VALUE
|
|
|
|
|
and sdd.DICT_TYPE = 'quality_improvement_name'
|
|
|
|
|
|