|
@ -1109,8 +1109,7 @@ public class SurveyScreenResultService extends BaseService {
|
|
"LEFT JOIN wlyy_sign_patient_label_info t2 on t2.patient = t1.patient and t2.label_type = " + labelType + " and t2.status=1 " +
|
|
"LEFT JOIN wlyy_sign_patient_label_info t2 on t2.patient = t1.patient and t2.label_type = " + labelType + " and t2.status=1 " +
|
|
"RIGHT JOIN wlyy_sign_family_server s on s.sign_code = t1.code" +
|
|
"RIGHT JOIN wlyy_sign_family_server s on s.sign_code = t1.code" +
|
|
"LEFT JOIN dm_hospital h on t1.hospital = h.`code` " +
|
|
"LEFT JOIN dm_hospital h on t1.hospital = h.`code` " +
|
|
"WHERE ( t1.doctor = ? OR t1.doctor_health = ?) AND t1. STATUS > 0 and t1.expenses_status = 1 AND t1.admin_team_code = ? " +
|
|
|
|
"AND p.openid IS NOT NULL AND p.openid <>'' ";
|
|
|
|
|
|
"WHERE ( t1.doctor = ? OR t1.doctor_health = ?) AND t1. STATUS > 0 and t1.expenses_status = 1 AND t1.admin_team_code = ? " ;
|
|
if(StringUtils.isNotBlank(serverType)){
|
|
if(StringUtils.isNotBlank(serverType)){
|
|
sql = sql.replace("on s.sign_code = t1.code", "on s.sign_code = t1.code and s.server_type in (" + serverType + ") ");
|
|
sql = sql.replace("on s.sign_code = t1.code", "on s.sign_code = t1.code and s.server_type in (" + serverType + ") ");
|
|
}
|
|
}
|
|
@ -1135,9 +1134,11 @@ public class SurveyScreenResultService extends BaseService {
|
|
if(object.getInt("type") == 4){
|
|
if(object.getInt("type") == 4){
|
|
Survey survey = surveyDao.findById(object.getString("relationCode"));
|
|
Survey survey = surveyDao.findById(object.getString("relationCode"));
|
|
object.put("relationCodeName", survey.getTitle());
|
|
object.put("relationCodeName", survey.getTitle());
|
|
|
|
object.put("createUserRole", 2);
|
|
}else if(object.getInt("type") == 5){
|
|
}else if(object.getInt("type") == 5){
|
|
SurveyTemplates templates = surveyTemplatesDao.findById(object.getString("relationCode"));
|
|
SurveyTemplates templates = surveyTemplatesDao.findById(object.getString("relationCode"));
|
|
object.put("relationCodeName", templates.getTitle());
|
|
object.put("relationCodeName", templates.getTitle());
|
|
|
|
object.put("createUserRole", 1);
|
|
}
|
|
}
|
|
Doctor d = doctorService.findDoctorByCode(doctor);
|
|
Doctor d = doctorService.findDoctorByCode(doctor);
|
|
object.put("hospital", d.getHospital());
|
|
object.put("hospital", d.getHospital());
|
|
@ -1151,6 +1152,9 @@ public class SurveyScreenResultService extends BaseService {
|
|
HttpResponse response = null;
|
|
HttpResponse response = null;
|
|
response = HttpUtils.doPost(customerUrl + "synergy/questionnaire/createWorkOrder", param);
|
|
response = HttpUtils.doPost(customerUrl + "synergy/questionnaire/createWorkOrder", param);
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
return rs;
|
|
|
|
|
|
if(rs.getInt("status") == 200) {
|
|
|
|
return rs;
|
|
|
|
}
|
|
|
|
throw new Exception();
|
|
}
|
|
}
|
|
}
|
|
}
|