From c0ce6236f3291d6314e28bd71cfc3dcbee24814f Mon Sep 17 00:00:00 2001 From: sh Date: Tue, 2 Dec 2025 11:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=85=E6=B4=97=E8=A1=8C?= =?UTF-8?q?=E4=B8=9A=E7=88=B6=E7=BA=A7=E4=BB=A3=E7=A0=81-=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/cms/controller/cms/IndustryController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/controller/cms/IndustryController.java b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/controller/cms/IndustryController.java index bef602f..db5e103 100644 --- a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/controller/cms/IndustryController.java +++ b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/controller/cms/IndustryController.java @@ -134,6 +134,10 @@ public class IndustryController extends BaseController /** * 修改行业父级代码 + * select * from industry where length(remark)=1 order by order_num; + * select * from industry where length(remark)=3 and remark like 'A%' order by order_num; + * select * from industry where length(remark)=4 and remark like 'A01%' order by order_num; + * select * from industry where length(remark)=5 and remark like 'A011%' order by order_num; */ @PostMapping("/updateParentHierarchy") @Transactional(rollbackFor = Exception.class)