value
2024-04-28 ecaf6326139d524e71c96b7fa459f452f8498065
inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -131,4 +131,14 @@
        where sto.specimen_name = #{sampleType}
        group by sto.specimen_name
    </select>
    <select id="selectStandardProductListByTree" resultType="com.yuanchu.mom.pojo.StandardProductList">
        select * from structure_item_parameter
        where sample is NULL
           OR sample = ''
           or sample = '[]'
           OR sample LIKE CONCAT('%["', #{tree1}, '"]%')
           <if test="tree2 != null and tree2 != ''">
               OR sample LIKE CONCAT('%["', #{tree2}, '"]%')
           </if>
    </select>
</mapper>