| | |
| | | <select id="selectCountByMap" parameterType="map" resultType="integer"> |
| | | select count(*) from sys_user t <include refid="where_map" /> |
| | | </select> |
| | | |
| | | <select id="findAppointUsers" parameterType="Integer" resultType="com.kidgrow.common.model.SysUser"> |
| | | SELECT |
| | | USERS.id, |
| | | USERS.nickname, |
| | | USERS.mobile |
| | | FROM |
| | | `sys_role_user` RU |
| | | LEFT JOIN sys_user USERS ON RU.user_id = USERS.id |
| | | LEFT JOIN sys_role ROLE ON RU.role_id = ROLE.id |
| | | WHERE |
| | | USERS.is_del = 0 |
| | | <if test="type == 0"> |
| | | AND ROLE.`code` IN ( |
| | | 'salemanager', |
| | | 'sale') |
| | | </if> |
| | | <if test="type == 1"> |
| | | AND ROLE.`code` IN ( |
| | | 'oprationmanager', |
| | | 'opration') |
| | | </if> |
| | | </select> |
| | | </mapper> |