| | |
| | | <if test="type==3"> |
| | | and objType =3 and objId =#{id} |
| | | </if> |
| | | <if test="type == 2"> |
| | | and (objType = 2 and objId =#{id} |
| | | or |
| | | <if test="storeIds != null and storeIds.size()>0"> |
| | | objId IN |
| | | <foreach collection="storeIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | ) |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="roleTreeListByRoleId" resultType="com.dsh.course.model.node.ZTreeNode"> |
| | |
| | | <if test="type==3"> |
| | | and objType =3 and objId =#{id} |
| | | </if> |
| | | <if test="type == 2"> |
| | | and (objType = 2 and objId =#{id} |
| | | or |
| | | <if test="storeIds != null and storeIds.size()>0"> |
| | | objId IN |
| | | <foreach collection="storeIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | ) |
| | | </if> |
| | | ) r1 ON r.ID = r1.ID |
| | | ORDER BY |
| | | pId, |