|
@@ -28,7 +28,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="selectLabExitLineListVo">
|
|
<sql id="selectLabExitLineListVo">
|
|
|
select t.id,t.build_id, t.floor_id, t.relational_data, t.layout_data, t.layout_join_data, t.img_url, t.canvas_width, t.canvas_height, t.user_id, t.create_by, t.create_time,
|
|
select t.id,t.build_id, t.floor_id, t.relational_data, t.layout_data, t.layout_join_data, t.img_url, t.canvas_width, t.canvas_height, t.user_id, t.create_by, t.create_time,
|
|
|
- t.update_by, t.update_time, t.remark from lab_exit_line_vertex as t
|
|
|
|
|
|
|
+ t.update_by, t.update_time, t.remark,
|
|
|
|
|
+ (SELECT bf.name FROM lab_build_floor bf WHERE bf.type=2 AND bf.id = t.build_id) buildName,
|
|
|
|
|
+ (SELECT bf.name FROM lab_build_floor bf WHERE bf.type=3 AND bf.id = t.floor_id) floorName
|
|
|
|
|
+ from lab_exit_line_vertex as t
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectLabExitLineVertexList" parameterType="com.zd.laboratory.domain.LabExitLineVertex" resultMap="LabExitLineVertexResult">
|
|
<select id="selectLabExitLineVertexList" parameterType="com.zd.laboratory.domain.LabExitLineVertex" resultMap="LabExitLineVertexResult">
|
|
|
<include refid="selectLabExitLineVertexVo"/>
|
|
<include refid="selectLabExitLineVertexVo"/>
|
|
@@ -46,12 +49,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="getExitLineVertexList" parameterType="com.zd.laboratory.domain.LabExitLineVertex" resultMap="LabExitLineVertexResult">
|
|
|
|
|
- <include refid="selectLabExitLineVertexVo"/>
|
|
|
|
|
|
|
+ <select id="getExitLineVertexList" parameterType="com.zd.laboratory.domain.LabExitLineVertex" resultType="com.zd.laboratory.domain.vo.LabExitLineVertexDetailVo">
|
|
|
|
|
+ <include refid="selectLabExitLineListVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="id != null "> and id = #{id}</if>
|
|
|
|
|
- <if test="buildId != null "> and build_id = #{buildId}</if>
|
|
|
|
|
- <if test="floorId != null "> and floor_id = #{floorId}</if>
|
|
|
|
|
|
|
+ <if test="id != null "> and t.id = #{id}</if>
|
|
|
|
|
+ <if test="buildId != null "> and t.build_id = #{buildId}</if>
|
|
|
|
|
+ <if test="floorId != null "> and t.floor_id = #{floorId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|