Commit 443d3e61 authored by lisong's avatar lisong

修改bug

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