From a680563f53b7b5db7507dd0ff6027f724567ea2b Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期四, 20 六月 2024 11:21:27 +0800 Subject: [PATCH] 标准库支持无型号 --- inspect-server/src/main/resources/mapper/StandardTreeMapper.xml | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml index e0590ad..b461dc1 100644 --- a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml +++ b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml @@ -275,5 +275,14 @@ <if test="itemChild != null and itemChild != ''"> and inspection_item_subclass = #{itemChild} </if> + <if test="itemChild == null or itemChild == ''"> + and (inspection_item_subclass is null or inspection_item_subclass = '') + </if> + </select> + <select id="selectPList" resultType="com.yuanchu.mom.dto.ProductDto"> + select p.name from structure_test_object sto + left join product p on p.object_id = sto.id + where sto.specimen_name = #{name} + order by p.id </select> </mapper> -- Gitblit v1.9.3