From 9687fd99fdf6208dbf747ea45c440f192a9af815 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 14 三月 2025 17:43:16 +0800 Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-after into dev --- basic-server/src/main/resources/mapper/StandardTreeMapper.xml | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml index e97a9cd..a011e82 100644 --- a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml +++ b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml @@ -322,6 +322,7 @@ <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> + order by send_time desc </select> <select id="selectIfsPage" resultType="com.ruoyi.basic.pojo.IfsInventoryQuantity"> @@ -329,6 +330,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 @@ -347,6 +349,7 @@ <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> + order by send_time desc </select> <select id="getIfsByOverList" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto"> select * from (<include refid="getIfsOrder"/> @@ -378,10 +381,20 @@ select model label, model value from standard_tree - where sample_type in - <foreach item="item" collection="sampleTypeValues" open="(" separator="," close=")"> - #{item} - </foreach> + 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> + + <select id="getStandardTree3" resultType="com.ruoyi.basic.dto.SampleDto"> + select model label, + model value + from standard_tree + where sample_type = #{sampleType} and sample is null </select> </mapper> -- Gitblit v1.9.3