|
|
@@ -8,7 +8,9 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import com.xintong.visualinspection.bean.Permission;
|
|
|
import com.xintong.visualinspection.bean.Role;
|
|
|
+import com.xintong.visualinspection.dao.master.PermissionDao;
|
|
|
import com.xintong.visualinspection.dao.master.RoleDao;
|
|
|
import com.xintong.visualinspection.pojo.RoleData;
|
|
|
import com.xintong.visualinspection.service.BaseService;
|
|
|
@@ -26,6 +28,9 @@ public class RoleServiceImpl extends BaseService implements RoleService {
|
|
|
|
|
|
@Autowired
|
|
|
private RoleDao roleDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PermissionDao permissionDao;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -112,5 +117,12 @@ public class RoleServiceImpl extends BaseService implements RoleService {
|
|
|
return roleDao.getRolesCount(role);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void roleUnBindUser(Integer userId) {
|
|
|
+ roleDao.roleUnBindUser(userId);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|