@ -24,6 +24,8 @@ public interface AuthRoleDao {
List<AuthRole> listCustomerRoles(@Param("isCustomer") Integer isCustomer);
List<AuthRole> getCustomerRoles(@Param("isCustomer") Integer isCustomer);
List<AuthRole> listAuthRoles2();
AuthRole findByName(String name);
@ -99,7 +99,7 @@ public class AuthRoleServiceImpl implements AuthRoleService {
limit = limit != null && limit > 0 && limit < 100 ? limit : 100;
int offset = (page - 1) * limit;
PageHelper.offsetPage(offset, limit);
List<AuthRole> list = authRoleDao.listCustomerRoles(isCustomer);
List<AuthRole> list = authRoleDao.getCustomerRoles(isCustomer);
return list;
}
@ -44,6 +44,13 @@
where `isCustomer` = #{isCustomer}
</select>
<select id="getCustomerRoles" parameterType="java.lang.Integer"
resultType="com.glxp.api.entity.auth.AuthRole">
SELECT role_id, role_name
FROM auth_role
where `isCustomer` = #{isCustomer} and status =1
<select id="listAuthRoles2" parameterType="java.lang.Integer" resultType="com.glxp.api.entity.auth.AuthRole">
SELECT irole_id, role_name