大屏获取试验室
This commit is contained in:
@@ -14,4 +14,26 @@
|
||||
<sql id="Base_Column_List">
|
||||
id,coordinate_a,coordinate_b,org_id
|
||||
</sql>
|
||||
|
||||
<select id="getList" resultType="com.dc.dc_project.model.pojo.Laboratory">
|
||||
select sl.* from sys_laboratory sl
|
||||
left join sys_org_laboratory_standard sols on sl.id = sols.laboratory_id
|
||||
<where>
|
||||
<if test="name != null">
|
||||
and sl.name like concat('%',#{name},'%')
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and sl.type = #{type}
|
||||
</if>
|
||||
<if test="standardId != null">
|
||||
and sols.standard_category_id = #{standardId}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and sl.id = #{id}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getCategoryIds" resultType="java.lang.Integer">
|
||||
select standard_category_id from sys_org_laboratory_standard where laboratory_id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user