Commit 443d3e61 authored by lisong's avatar lisong

修改bug

parent 2c0e0d90
......@@ -551,11 +551,15 @@ AND field_name =#{name}
<select id="selectChildListdate" resultType="java.lang.String">
SELECT distinct a.instance_id FROM
(select wl_form_instance.instance_id ,wl_form_instance.field_value
from wl_form_instance where wl_form_instance.group_type in('building','room','floor') and field_name='parentId'
) a
where
a.field_value = #{id}
GROUP BY a.instance_id
(select instance_id ,field_value from wl_form_instance where group_type in('building','room','floor') and field_name='parentId') a
WHERE a.field_value = #{id} union all SELECT distinct b.instance_id FROM
(select instance_id ,field_value from wl_form_instance where group_type in('building','room','floor') and field_name='parentId') b
WHERE b.field_value in (SELECT distinct c.instance_id FROM
(select instance_id ,field_value from wl_form_instance where group_type in('building','room','floor') and field_name='parentId') c
WHERE c.field_value = #{id})
</select>
</mapper>
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