mysql的函数(方法)和存储过程中使用if语句
解决方法:
IF sTempChd != rootId then
SET sTemp = CONCAT(sTemp,',',sTempChd);
elseif sTempChd = rootId then
SET sTemp = CONCAT(sTemp,',',sTempChd);
else
SET sTemp = CONCAT(sTemp,',',sTempChd);
end if;
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti