|
|
|
@ -40,7 +40,7 @@
|
|
|
|
|
</include> |
|
|
|
|
from t_ds_udfs udf |
|
|
|
|
where 1 = 1 |
|
|
|
|
<if test="ids != null and ids != ''"> |
|
|
|
|
<if test="ids != null and ids.length > 0"> |
|
|
|
|
and udf.id in |
|
|
|
|
<foreach collection="ids" item="i" open="(" close=")" separator=","> |
|
|
|
|
#{i} |
|
|
|
@ -107,7 +107,7 @@
|
|
|
|
|
where |
|
|
|
|
udf.id in (select udf_id from t_ds_relation_udfs_user where user_id=#{userId} |
|
|
|
|
union select id as udf_id from t_ds_udfs where user_id=#{userId}) |
|
|
|
|
<if test="udfIds != null and udfIds != ''"> |
|
|
|
|
<if test="udfIds != null and udfIds.length > 0"> |
|
|
|
|
and udf.id in |
|
|
|
|
<foreach collection="udfIds" item="i" open="(" close=")" separator=","> |
|
|
|
|
#{i} |
|
|
|
@ -121,7 +121,7 @@
|
|
|
|
|
</include> |
|
|
|
|
from t_ds_udfs udf |
|
|
|
|
where 1=1 |
|
|
|
|
<if test="resourceIds != null and resourceIds != ''"> |
|
|
|
|
<if test="resourceIds != null and resourceIds.length > 0"> |
|
|
|
|
and udf.resource_id in |
|
|
|
|
<foreach collection="resourceIds" item="i" open="(" close=")" separator=","> |
|
|
|
|
#{i} |
|
|
|
@ -137,7 +137,7 @@
|
|
|
|
|
where |
|
|
|
|
udf.id in (select udf_id from t_ds_relation_udfs_user where user_id=#{userId} |
|
|
|
|
union select id as udf_id from t_ds_udfs where user_id=#{userId}) |
|
|
|
|
<if test="resourceIds != null and resourceIds != ''"> |
|
|
|
|
<if test="resourceIds != null and resourceIds.length > 0"> |
|
|
|
|
and udf.resource_id in |
|
|
|
|
<foreach collection="resourceIds" item="i" open="(" close=")" separator=","> |
|
|
|
|
#{i} |
|
|
|
|