|
|
@@ -175,15 +175,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<select id="selectAddrrByLayoutIds" resultType="com.zd.laboratory.api.entity.SubAddrr">
|
|
|
- select t.id, t.room, t.floor_id,
|
|
|
- lb.name as floor_name ,
|
|
|
- sd.dept_name as build_name
|
|
|
- from lab_subject_layout as t
|
|
|
- left join lab_building lb on lb.id = t.floor_id
|
|
|
- left join sys_dept sd on sd.dept_id = lb.dept_id
|
|
|
+ <!--select t.id, t.room, t.floor_id,-->
|
|
|
+ <!--lb.name as floor_name ,-->
|
|
|
+ <!--sd.dept_name as build_name-->
|
|
|
+ <!--from lab_subject_layout as t-->
|
|
|
+ <!--left join lab_building lb on lb.id = t.floor_id-->
|
|
|
+ <!--left join sys_dept sd on sd.dept_id = lb.dept_id-->
|
|
|
+ <!--where t.id in-->
|
|
|
+ <!--<foreach item="id" collection="array" open="(" separator="," close=")">-->
|
|
|
+ <!--#{id}-->
|
|
|
+ <!--</foreach>-->
|
|
|
+ SELECT t.id, t.room_num room, t.`floor_id`,
|
|
|
+ (SELECT bf.`name` FROM lab_build_floor bf WHERE bf.id = t.`floor_id`) AS floor_name ,
|
|
|
+ (SELECT bf.`name` FROM lab_build_floor bf WHERE bf.type = 2 AND bf.id = t.`build_id` ) AS build_name
|
|
|
+ FROM lab_build_floor_layout AS t
|
|
|
where t.id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
+ #{id}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
<select id="selectLayoutListByIds" resultType="com.zd.laboratory.domain.vo.LabSubjectLayoutVo">
|