大屏获取试验室

This commit is contained in:
lhx
2025-11-12 16:42:07 +08:00
parent e1ae4b80b1
commit f963c9cfad
21 changed files with 3083 additions and 99 deletions

View File

@@ -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>