From 61c00bb4ec95533990628724e32312599af32185 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Sat, 18 Oct 2025 15:24:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sql):=E4=BC=98=E5=8C=96=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E4=B8=BB=E8=A1=A8=E6=9F=A5=E8=AF=A2SQL=E5=88=AB?= =?UTF-8?q?=E5=90=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将oa_requirements表的别名从or改为req- 统一SQL查询中的表别名命名规范 - 避免与数据库关键字冲突的可能性 --- .../main/resources/mapper/oa/SysOaWarehouseMasterMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-oa/src/main/resources/mapper/oa/SysOaWarehouseMasterMapper.xml b/ruoyi-oa/src/main/resources/mapper/oa/SysOaWarehouseMasterMapper.xml index 63dab28..a20256b 100644 --- a/ruoyi-oa/src/main/resources/mapper/oa/SysOaWarehouseMasterMapper.xml +++ b/ruoyi-oa/src/main/resources/mapper/oa/SysOaWarehouseMasterMapper.xml @@ -57,10 +57,10 @@ sowm.is_like, ${ew.sqlSelect}, sop.project_name, - or.title AS requirementName + req.title AS requirementName FROM sys_oa_warehouse_master sowm LEFT JOIN sys_oa_project sop ON sop.project_id = sowm.project_id - LEFT JOIN oa_requirements or ON or.requirement_id = sowm.requirement_id + LEFT JOIN oa_requirements req ON req.requirement_id = sowm.requirement_id ${ew.getCustomSqlSegment}