and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( cids2 ,#{modelType}))
and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( cids2 ,#{modelType}))
</if>
</if>
<iftest="pid !=null">
<iftest="pid !=null">
and v_auth_model.pid = #{pid}
and v_auth_model.pid = #{pid}
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
</if>
</if>
<iftest="name != null and name !='' and withExtend == 'parent'">
<iftest="name != null and name !='' and withExtend == 'parent'">
and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( (select GROUP_CONCAT(id) from v_auth_model where model_type = #{modelType} and `name` like CONCAT('%', #{name},'%')) ,#{modelType}))
and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( (select GROUP_CONCAT(id) from
v_auth_model where model_type = #{modelType} and `name` like CONCAT('%', #{name},'%')) ,#{modelType}))
</if>
</if>
<iftest="name != null and name =='' and withExtend == 'parent'">
<iftest="name != null and name =='' and withExtend == 'parent'">
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
<where>
<where>
model_type = #{modelType}
model_type = #{modelType}
<iftest="1== withAuth">
<iftest="1== withAuth">
and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( cids3 ,#{modelType}))
and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( cids3 ,#{modelType}))