|
@@ -26,14 +26,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="getUnitList" resultType="com.ruoyi.zdsz.domain.vo.ZUnitVo">
|
|
|
- select id as id,
|
|
|
- name as name
|
|
|
- from z_unit
|
|
|
- where del_flag = '0'
|
|
|
+ select a.id as id,
|
|
|
+ CONCAT(a.name,'-',b.dict_label) as name
|
|
|
+ from z_unit a
|
|
|
+ LEFT JOIN sys_dict_data b on b.dict_type = 'community_source' and b.dict_value = a.source
|
|
|
+ where a.del_flag = '0'
|
|
|
<if test="buildingId != null and buildingId != ''">
|
|
|
- and building_id = #{buildingId}
|
|
|
+ and a.building_id = #{buildingId}
|
|
|
</if>
|
|
|
- order by create_time desc
|
|
|
+ order by a.create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="getPageList" resultType="com.ruoyi.zdsz.domain.vo.ZUnitVo">
|