|
@ -13,6 +13,7 @@ import com.yihu.wlyy.entity.education.HealthEduArticle;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.service.BaseService;
|
|
|
import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
|
import com.yihu.wlyy.service.app.label.SignPatientLabelInfoService;
|
|
|
import com.yihu.wlyy.service.app.team.AdminTeamService;
|
|
|
import com.yihu.wlyy.service.common.account.RoleService;
|
|
@ -64,6 +65,8 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
private CommonUtil commonUtil;
|
|
|
@Autowired
|
|
|
private SignPatientLabelInfoService signPatientLabelInfoService;
|
|
|
@Autowired
|
|
|
private DoctorInfoService doctorInfoService;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@ -970,8 +973,9 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
//当管理员具有审核权限时,添加文章不需认证,添加后自动认证,
|
|
|
Doctor doctor = doctorDao.findByCode(userCode);
|
|
|
if(doctor.getLevel()==10){
|
|
|
List<RoleWithAuthorityCheck> list = doctorDao.findEduAuthority(userCode,operatorRoleCode);
|
|
|
if(list.size()>0){
|
|
|
// List<RoleWithAuthorityCheck> list = doctorDao.findEduAuthority(userCode,operatorRoleCode);
|
|
|
List<Map<String, Object>> list = doctorInfoService.getDoctorManagerRole(userCode,"Manage_Article_Authentication");
|
|
|
if(list.size()>0&&!StringUtils.isEmpty(list.get(0).get("code"))){
|
|
|
isAuthentication = 1;
|
|
|
}
|
|
|
}
|