| | |
| | | sys_menu m1 |
| | | LEFT join sys_menu m2 ON m1.pcode = m2. CODE |
| | | where m1.`status` = 1 |
| | | <if test="null != ids and ids.size() > 0"> |
| | | and m1.id in |
| | | <foreach collection="ids" separator="," item="item" open="(" index="index" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY |
| | | m1.id ASC |
| | | </select> |
| | |
| | | </foreach> |
| | | ) m3 on m1.id = m3.id |
| | | where m1.`status` = 1 |
| | | <if test="null != ids and ids.size() > 0"> |
| | | and m1.id in |
| | | <foreach collection="ids" separator="," item="item" open="(" index="index" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY |
| | | m1.id ASC |
| | | </select> |