Commit 7e312555 authored by wdy's avatar wdy

Merge branch 'wangdingyi' into 'dev'

查询标准下检验项添加label值

See merge request !329
parents 1b27d10d fef2b8d5
...@@ -8,4 +8,6 @@ public class DictDataVO { ...@@ -8,4 +8,6 @@ public class DictDataVO {
private Long dictCode; private Long dictCode;
private String dictValue; private String dictValue;
private String dictLabel;
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<result property="dictCode" column="dict_code" jdbcType="BIGINT"/> <result property="dictCode" column="dict_code" jdbcType="BIGINT"/>
</resultMap> </resultMap>
<select id="getListByStandardId" resultType="com.ruoyi.domain.vo.DictDataVO"> <select id="getListByStandardId" resultType="com.ruoyi.domain.vo.DictDataVO">
SELECT sir.dict_code, dict_value as dictValue FROM t_standard_inspection_item_relation sir SELECT sir.dict_code, dict_value as dictValue, dict_label as dictLabel FROM t_standard_inspection_item_relation sir
LEFT JOIN sys_dict_data sdt on sdt.dict_code = sir.dict_code LEFT JOIN sys_dict_data sdt on sdt.dict_code = sir.dict_code
WHERE standard_id = #{standardId} WHERE standard_id = #{standardId}
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment