| | |
| | | 'false' |
| | | END |
| | | ) as isOpen from sys_dept where 1=1 |
| | | <if test="type ==3 "> |
| | | and objectType =3 and objectId =#{id} |
| | | </if> |
| | | and objectType =#{type} and objectId =#{id} |
| | | </select> |
| | | |
| | | <select id="list" resultType="map"> |
| | | select * from sys_dept where 1=1 |
| | | <if test="condition != null and condition != ''"> |
| | | and simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') |
| | | </if> |
| | | <if test="objectType == 3"> |
| | | and objectType = 3 and objectId =#{objectId} |
| | | </if> |
| | | <if test="objectType == 1"> |
| | | and objectType = 1 |
| | | </if> |
| | | order by num ASC |
| | | <select id="list" resultType="java.util.Map"> |
| | | select * from sys_dept where 1=1 |
| | | <if test="condition != null and condition != ''"> |
| | | and simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') |
| | | </if> |
| | | <if test="objectType == 3"> |
| | | and objectType = 3 and objectId =#{objectId} |
| | | </if> |
| | | <if test="objectType == 1"> |
| | | and objectType = 1 |
| | | </if> |
| | | order by num ASC |
| | | </select> |
| | | |
| | | |
| | | </mapper> |