一、该问题的重现步骤是什么?
1. 配置了接口权限,不管用,然后自己手写了sql,正常使用了
2. 本地可以正常使用,部署到服务器上,就会自己在sql语句上,补全一段权限的sql语句
3.查询出来的数据也是错误的数据
二、你期待的结果是什么?实际看到的又是什么?
期待部署完了,和本地在控制台上打印一样的内容,实际部署完了和本地控制台不一样
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
boot版本的2.8.1 linux
四、请提供详细的错误堆栈信息,这很重要。
Execute SQL : select * from (SELECT * FROM (SELECT cc.*, c.customer_name AS customerName, d1.dict_value AS importanceHY, cu.principal_id AS principal_id, CASE WHEN cc.sex = 1 THEN '女' WHEN cc.sex = 0 THEN '男' ELSE '' END AS sexHY FROM blade_customer_contact AS cc LEFT JOIN blade_customer AS c ON cc.customer_id = c.id LEFT JOIN blade_dict_biz AS d1 ON cc.importance = d1.dict_key AND d1.tenant_id = '000000' LEFT JOIN blade_concent_user AS cu ON cu.contacts_id = cc.id LEFT JOIN blade_user AS u ON u.id = cc.principal WHERE cc.is_deleted = 0) socpe WHERE principal_id IN (WITH RECURSIVE temp AS (SELECT t.* FROM blade_user t WHERE id = ? UNION ALL SELECT t.* FROM blade_user t INNER JOIN temp ON t.parent_id = temp.id) SELECT id FROM temp) LIMIT ?, ?) scope where FIND_IN_SET (principal_id,(
WITH RECURSIVE temp as (
SELECT t.* FROM blade_user t WHERE id = 1234
UNION ALL
SELECT t.* FROM blade_user t INNER JOIN temp ON t.parent_id = temp.id
)
SELECT GROUP_CONCAT(id) FROM temp )
)
Execute Time: 7.204ms
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端