From dc117073451537b5142ffc00fda2fa9a37ff5e48 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期一, 10 三月 2025 10:08:41 +0800 Subject: [PATCH] 修改报告编制查询bug修改 --- basic-server/src/main/resources/mapper/StandardTreeMapper.xml | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml index e97a9cd..7eafed8 100644 --- a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml +++ b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml @@ -329,6 +329,7 @@ <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> + ORDER BY declare_date DESC </select> <select id="selectIfsInventoryQuantity" resultType="com.ruoyi.basic.dto.IfsInventoryQuantityCheckDto"> SELECT * from ifs_inventory_quantity ifs @@ -378,10 +379,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> -- Gitblit v1.9.3