From 9b636ff5deb11123f27f1b19816f0147a9bf2335 Mon Sep 17 00:00:00 2001 From: syruan <15555146157@163.com> Date: Tue, 22 Jul 2025 10:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E4=BB=B6=E5=85=A5?= =?UTF-8?q?=E5=BA=93SQL=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mappers/bases/PaTypeMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mappers/bases/PaTypeMapper.xml b/src/main/resources/mappers/bases/PaTypeMapper.xml index 7178b44..084bf15 100644 --- a/src/main/resources/mappers/bases/PaTypeMapper.xml +++ b/src/main/resources/mappers/bases/PaTypeMapper.xml @@ -85,14 +85,14 @@ and pt.name like concat('%',#{model},'%') ORDER BY CASE - WHEN pt.nam REGEXP '^[0-9]+$' THEN 1 + WHEN pt.`name` REGEXP '^[0-9]+$' THEN 1 ELSE 0 END, CASE - WHEN pt.nam REGEXP '^[0-9]+$' THEN CAST(pt.nam AS UNSIGNED) + WHEN pt.`name` REGEXP '^[0-9]+$' THEN CAST(pt.`name` AS UNSIGNED) ELSE NULL END, - pt.nam ASC + pt.`name` ASC