From 0d0a028920745bcdc5d9ddbf0ab3cbccfe167c63 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 14:24:36 +0800 Subject: [PATCH] 568-供应商财务统计优化:查询速度慢 --- src/main/resources/mapper/supplier/SupplierMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/supplier/SupplierMapper.xml b/src/main/resources/mapper/supplier/SupplierMapper.xml index 1f21e2f..6c6a24e 100644 --- a/src/main/resources/mapper/supplier/SupplierMapper.xml +++ b/src/main/resources/mapper/supplier/SupplierMapper.xml @@ -40,6 +40,9 @@ <if test="dto.isEnabled!=null"> AND t.is_enabled = #{dto.isEnabled} </if> + <if test="dto.id!=null"> + AND t.id = #{dto.id} + </if> order by t.create_time desc </select> <select id="findSupplierDetail" resultType="com.mzl.flower.dto.response.supplier.SupplierDTO" -- Gitblit v1.9.3