chenrui
2025-02-27 894e2c6d4d9a6a1d5b8906e83d82c6e190d28f3a
basic-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -378,10 +378,12 @@
        select model label,
               model value
        from standard_tree
        where sample_type in
        <foreach item="item" collection="sampleTypeValues" open="(" separator="," close=")">
            #{item}
        </foreach>
          and sample is null
        where sample is null
        <if test="sampleTypeValues != null and sampleTypeValues.size() > 0">
            and sample_type in
            <foreach item="item" collection="sampleTypeValues" open="(" separator="," close=")">
                #{item}
            </foreach>
        </if>
    </select>
</mapper>