Commit 10f752da authored by maoying's avatar maoying

修改建筑树递归函数脚本

parent 391fc311
......@@ -50,14 +50,14 @@
END#
</sql>
</changeSet>
<changeSet author="suhuiguang" id="1623223065754-3" runAlways="true">
<changeSet author="suhuiguang" id="1623223065756-3" runAlways="true">
<comment>`getChildrenIdsByRootId`</comment>
<sql endDelimiter="#">
DROP FUNCTION IF EXISTS `getChildrenIdsByRootId`#
CREATE FUNCTION `getChildrenIdsByRootId` (`rootId` VARCHAR(100)) RETURNS varchar(1000)
CREATE FUNCTION `getChildrenIdsByRootId` (`rootId` VARCHAR(100)) RETURNS text
BEGIN
DECLARE ids VARCHAR(1000);
DECLARE ptemp VARCHAR(1000);
DECLARE ids text;
DECLARE ptemp text;
SELECT
GROUP_CONCAT(c.instanceId) INTO ids
FROM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment