Commit 10f752da authored by maoying's avatar maoying

修改建筑树递归函数脚本

parent 391fc311
...@@ -50,14 +50,14 @@ ...@@ -50,14 +50,14 @@
END# END#
</sql> </sql>
</changeSet> </changeSet>
<changeSet author="suhuiguang" id="1623223065754-3" runAlways="true"> <changeSet author="suhuiguang" id="1623223065756-3" runAlways="true">
<comment>`getChildrenIdsByRootId`</comment> <comment>`getChildrenIdsByRootId`</comment>
<sql endDelimiter="#"> <sql endDelimiter="#">
DROP FUNCTION IF EXISTS `getChildrenIdsByRootId`# DROP FUNCTION IF EXISTS `getChildrenIdsByRootId`#
CREATE FUNCTION `getChildrenIdsByRootId` (`rootId` VARCHAR(100)) RETURNS varchar(1000) CREATE FUNCTION `getChildrenIdsByRootId` (`rootId` VARCHAR(100)) RETURNS text
BEGIN BEGIN
DECLARE ids VARCHAR(1000); DECLARE ids text;
DECLARE ptemp VARCHAR(1000); DECLARE ptemp text;
SELECT SELECT
GROUP_CONCAT(c.instanceId) INTO ids GROUP_CONCAT(c.instanceId) INTO ids
FROM 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