Compare commits

...

2 Commits

Author SHA1 Message Date
sh
c0ce6236f3 添加清洗行业父级代码-添加描述 2025-12-02 11:25:22 +08:00
sh
e5e3c8723c 添加清洗行业父级代码-添加限制 2025-12-02 11:24:25 +08:00

View File

@@ -2,7 +2,6 @@ package com.ruoyi.cms.controller.cms;
import java.util.List;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.entity.Industry;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -36,7 +35,6 @@ import javax.servlet.http.HttpServletResponse;
@RestController
@RequestMapping("/cms/industry")
@Api(tags = "后台:行业管理")
@Anonymous
public class IndustryController extends BaseController
{
@Autowired
@@ -136,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)