|
@ -11,9 +11,11 @@ import com.yihu.wlyy.entity.doctor.profile.DoctorRoleRealm;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorRoleRealmDao;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorRoleDao;
|
|
|
import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springside.modules.utils.Clock;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@ -39,6 +41,8 @@ public class RoleService extends TokenService {
|
|
|
|
|
|
@Autowired
|
|
|
private DoctorDao doctorDao;
|
|
|
@Autowired
|
|
|
private DoctorInfoService doctorInfoService;
|
|
|
|
|
|
/**
|
|
|
* 获取用户角色列表
|
|
@ -148,13 +152,15 @@ public class RoleService extends TokenService {
|
|
|
}
|
|
|
map.put("areas", areaString);
|
|
|
map.put("level",roleConverse(role.getCode())+"");
|
|
|
if(resultLevel==roleConverse(role.getCode())){
|
|
|
map.put("isManage", "1");
|
|
|
}else{
|
|
|
map.put("isManage", "0");
|
|
|
}
|
|
|
List<RoleWithAuthorityCheck> list = doctorDao.findEduAuthority(user,role.getCode());
|
|
|
if(list.size()>0){
|
|
|
map.put("isManage", "1");
|
|
|
// if(resultLevel==roleConverse(role.getCode())){
|
|
|
// map.put("isManage", "1");
|
|
|
// }else{
|
|
|
// map.put("isManage", "0");
|
|
|
// }
|
|
|
|
|
|
List<Map<String, Object>> list = doctorInfoService.getDoctorManagerRole(user,"Manage_Article_Authentication");
|
|
|
if(list.size()>0&&!StringUtils.isEmpty(list.get(0).get("code"))){
|
|
|
map.put("authOperate", "1");
|
|
|
}else{
|
|
|
map.put("authOperate", "0");
|