修复配件入库SQL查询问题

This commit is contained in:
syruan 2025-07-22 10:27:53 +08:00
parent 9c5284cc58
commit 9b636ff5de
1 changed files with 3 additions and 3 deletions

View File

@ -85,14 +85,14 @@
and pt.name like concat('%',#{model},'%')
</if>
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
</select>
<select id="getVendList" resultType="com.bonus.gzgqj.business.bases.entity.VendVo">