|
@ -114,7 +114,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
// }
|
|
|
|
|
|
StringBuffer sql2 = new StringBuffer("select * from " + esType +
|
|
|
" where doctorCode='" + sendCode + "' and userType = 2");
|
|
|
" where doctorCode='" + sendCode + "' and userType = 2 and currentUserRoleCode='"+currentUserRole+"' and sendType="+sendType);
|
|
|
// if(sendType==1){
|
|
|
//
|
|
|
// sql2.append(" and sendType='"+sendType+"' ");
|
|
@ -155,7 +155,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
for (HealthEduArticleES one : esList) {
|
|
|
|
|
|
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"");
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"","");
|
|
|
// if (result.get(one.getArticleId()) != null) {
|
|
|
// heapm = result.get(one.getArticleId());
|
|
|
//
|
|
@ -254,7 +254,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
String currentUserRoleLevel,String articleTitle,String sendTimeStart,String sendTimeEnd) throws Exception {
|
|
|
|
|
|
StringBuffer sql2 = new StringBuffer("select * from " + esType +
|
|
|
" where doctorCode='" + sendCode + "' and userType = 2" );
|
|
|
" where doctorCode='" + sendCode + "' and userType = 2 and currentUserRoleCode='"+currentUserRole+"' and sendType="+sendType );
|
|
|
// if(sendType==1){
|
|
|
//
|
|
|
// sql2.append(" and sendType='"+sendType+"' ");
|
|
@ -383,7 +383,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
roleVo.setCode(ones.getCode());
|
|
|
roleVoLists.add(roleVo);
|
|
|
}
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"");
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"","");
|
|
|
Date createTime = new Date();
|
|
|
for (String patient : patientSet) {
|
|
|
|
|
@ -416,6 +416,10 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
}else{
|
|
|
|
|
|
List<Object> results = teamDao.findAdminTeamByPatientSignTeam(patient, new PageRequest(0, 1));
|
|
|
//没有签约的团队的患者不推送
|
|
|
if(results.size()<=0){
|
|
|
continue;
|
|
|
}
|
|
|
Object[] result = (Object[]) results.get(0);
|
|
|
healthEduArticleES.setAdminTeamName(result[1].toString());
|
|
|
healthEduArticleES.setAdminTeamCode(Long.parseLong(result[0].toString()));
|
|
@ -464,7 +468,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
return healthEduArticleESList;
|
|
|
}
|
|
|
public JSONObject pushArticleConfirm(String articleId, String labelUnit, String labelSex, String labelServe, String labelDisease, String labelHealth,String userCode,String currentUserRole, String currentUserRoleLevel) throws Exception {
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"");
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"","");
|
|
|
Set<String> patientSet = new HashSet<>();
|
|
|
initPatient(patientSet, labelUnit, labelSex, labelServe, labelDisease, labelHealth,userCode,currentUserRole,currentUserRoleLevel);
|
|
|
long num = patientSet.size();
|
|
@ -697,7 +701,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONObject pushArticleConfirm(String userCode,String[] groups,String group,String labelType,long teamCode,String[] patients,String articleId) throws Exception{
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"");
|
|
|
JSONObject article = thirdJkEduArticleService.getArticalById(articleId,"","");
|
|
|
Set<String> patientSet = new HashSet<>();
|
|
|
initPatients(userCode,groups,group,labelType,teamCode,patients,patientSet);
|
|
|
long num = patientSet.size();
|
|
@ -862,7 +866,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
List<HealthEduArticlePatientModel> result = new ArrayList<>();
|
|
|
Doctor doctor = null;
|
|
|
for (HealthEduArticleES one : esList) {
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"");
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"","");
|
|
|
heapm = new HealthEduArticlePatientModel();
|
|
|
heapm.setSendName(one.getSendName());
|
|
|
heapm.setSendCode(one.getDoctorCode());
|
|
@ -915,7 +919,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
String opertorRoleLevel,Integer userScope,String articleId,Integer roleType) throws Exception {
|
|
|
|
|
|
if(!StringUtils.isEmpty(articleId)){
|
|
|
JSONObject obj = thirdJkEduArticleService.getArticalById(articleId,null);
|
|
|
JSONObject obj = thirdJkEduArticleService.getArticalById(articleId,null,"");
|
|
|
if(!StringUtils.isEmpty(image)&&!(obj.get("articleCover")+"").equals(image)){
|
|
|
image = commonUtil.copyTempImage(image);
|
|
|
};
|
|
@ -1124,7 +1128,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
List<HealthEduArticlePatientModel> result = new ArrayList<>();
|
|
|
Doctor doctor = null;
|
|
|
for (HealthEduArticleES one : esList) {
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"");
|
|
|
article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"","");
|
|
|
heapm = new HealthEduArticlePatientModel();
|
|
|
heapm.setSendName(one.getSendName());
|
|
|
heapm.setSendCode(one.getDoctorCode());
|