|
@ -6,10 +6,12 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.DoctorRole;
|
|
import com.yihu.wlyy.entity.doctor.profile.DoctorRole;
|
|
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
import com.yihu.wlyy.entity.organization.HospitalMapping;
|
|
import com.yihu.wlyy.entity.organization.HospitalMapping;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorRoleDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorRoleDao;
|
|
|
|
import com.yihu.wlyy.repository.organization.HospitalDao;
|
|
import com.yihu.wlyy.repository.organization.HospitalMappingDao;
|
|
import com.yihu.wlyy.repository.organization.HospitalMappingDao;
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.service.BaseService;
|
|
import com.yihu.wlyy.service.BaseService;
|
|
@ -68,6 +70,8 @@ public class ThirdJkEduArticleService extends BaseService {
|
|
private HospitalMappingDao hospitalMappingDao;
|
|
private HospitalMappingDao hospitalMappingDao;
|
|
@Autowired
|
|
@Autowired
|
|
private DoctorRoleDao doctorRoleDao;
|
|
private DoctorRoleDao doctorRoleDao;
|
|
|
|
@Autowired
|
|
|
|
private HospitalDao hospitalDao;
|
|
|
|
|
|
// private String baseUrl = "http://service.yihu.com:8085/WsPlatform/rest";
|
|
// private String baseUrl = "http://service.yihu.com:8085/WsPlatform/rest";
|
|
// private String baseUrl = "http://172.17.110.230:83/WsPlatform/rest";
|
|
// private String baseUrl = "http://172.17.110.230:83/WsPlatform/rest";
|
|
@ -435,6 +439,10 @@ public class ThirdJkEduArticleService extends BaseService {
|
|
param.put("firstLevelCategoryName", firstLevelCategoryName);
|
|
param.put("firstLevelCategoryName", firstLevelCategoryName);
|
|
param.put("content", content);
|
|
param.put("content", content);
|
|
param.put("newUrl", newUrl);
|
|
param.put("newUrl", newUrl);
|
|
|
|
Hospital hospital = hospitalDao.findByCode(operatorRoleCode);
|
|
|
|
if(hospital!=null&&hospital.getLevel()==3){
|
|
|
|
operatorRoleCode = hospital.getTown();
|
|
|
|
}
|
|
param.put("operatorRoleCode", operatorRoleCode);
|
|
param.put("operatorRoleCode", operatorRoleCode);
|
|
param.put("opertorRoleLevel", opertorRoleLevel);
|
|
param.put("opertorRoleLevel", opertorRoleLevel);
|
|
param.put("userScope", userScope);
|
|
param.put("userScope", userScope);
|
|
@ -501,6 +509,11 @@ public class ThirdJkEduArticleService extends BaseService {
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("userCode", userCode);
|
|
param.put("userCode", userCode);
|
|
param.put("isAuthentication", isAuthentication);
|
|
param.put("isAuthentication", isAuthentication);
|
|
|
|
|
|
|
|
Hospital hospital = hospitalDao.findByCode(currentUserRole);
|
|
|
|
if(hospital!=null&&hospital.getLevel()==3){
|
|
|
|
currentUserRole = hospital.getTown();
|
|
|
|
}
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("page", page+"");
|
|
param.put("page", page+"");
|
|
@ -550,6 +563,11 @@ public class ThirdJkEduArticleService extends BaseService {
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("userCode", userCode);
|
|
param.put("userCode", userCode);
|
|
param.put("isAuthentication", isAuthentication);
|
|
param.put("isAuthentication", isAuthentication);
|
|
|
|
|
|
|
|
Hospital hospital = hospitalDao.findByCode(currentUserRole);
|
|
|
|
if(hospital!=null&&hospital.getLevel()==3){
|
|
|
|
currentUserRole = hospital.getTown();
|
|
|
|
}
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("page", page+"");
|
|
param.put("page", page+"");
|
|
@ -597,6 +615,10 @@ public class ThirdJkEduArticleService extends BaseService {
|
|
param.put("insertTimeEnd", insertTimeEnd);
|
|
param.put("insertTimeEnd", insertTimeEnd);
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("articleTitle", articleTitle);
|
|
param.put("isAuthentication", isAuthentication);
|
|
param.put("isAuthentication", isAuthentication);
|
|
|
|
Hospital hospital = hospitalDao.findByCode(currentUserRole);
|
|
|
|
if(hospital!=null&&hospital.getLevel()==3){
|
|
|
|
currentUserRole = hospital.getTown();
|
|
|
|
}
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRole", currentUserRole);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("currentUserRoleLevel", currentUserRoleLevel);
|
|
param.put("page", page+"");
|
|
param.put("page", page+"");
|