From e3c586caadf2282e710013d2fb2852f04b40e91c Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Tue, 28 Apr 2026 10:29:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(port):=20=E4=BF=AE=E5=A4=8D=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=9F=A5=E8=AF=A2=E5=92=8C=E6=9B=B4=E6=96=B0=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=B4=BB=E5=8A=A8=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复查询条件中active字段的错误引用,将id = '${query.active}'改为active = '${query.active}' - 添加对active参数空值的校验条件 - 在更新语句中添加active字段的设置 --- src/main/resources/mapper/port/PortInfoMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/port/PortInfoMapper.xml b/src/main/resources/mapper/port/PortInfoMapper.xml index e456453..d67d7e7 100644 --- a/src/main/resources/mapper/port/PortInfoMapper.xml +++ b/src/main/resources/mapper/port/PortInfoMapper.xml @@ -49,7 +49,7 @@ and update_by like '%${query.updateBy}%' and update_date like '%${query.updateDate}%' and id = '${query.id}' - and id = '${query.active}' + and active = '${query.active}' order by id desc @@ -70,6 +70,7 @@ SET port_name = #{portName}, remark = #{remark}, + active = #{active}, update_by = #{updateBy}, update_date = GETDATE() WHERE port_code = #{portCode}