From 63211c9230aebb54370ba803f875f1e507eefe7c Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 22 Jul 2026 16:11:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(production):=20=E4=BF=AE=E5=A4=8D=E4=B8=B4?= =?UTF-8?q?=E6=9C=9F=E5=93=81=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除DISTINCT关键字优化查询性能 - 调整表连接顺序从LEFT JOIN改为INNER JOIN确保数据一致性 - 修改过期日期计算逻辑使用DATEADD函数替代原有过期天数判断 - 添加CDATA标签处理SQL中的特殊字符比较操作 --- .../production/PrintLabelRecordMapper.xml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/resources/mapper/production/PrintLabelRecordMapper.xml b/src/main/resources/mapper/production/PrintLabelRecordMapper.xml index 9be279f..11737f8 100644 --- a/src/main/resources/mapper/production/PrintLabelRecordMapper.xml +++ b/src/main/resources/mapper/production/PrintLabelRecordMapper.xml @@ -270,7 +270,7 @@