|
@ -1130,6 +1130,7 @@ public class SurveyScreenResultService extends BaseService {
|
|
|
public JSONObject createWorkOrder(String jsonData, List<Map<String, Object>> patientInfo, String doctor) throws Exception {
|
|
|
JSONObject object = new JSONObject(jsonData);
|
|
|
JSONArray patientInfos = new JSONArray(patientInfo);
|
|
|
Doctor d = doctorService.findDoctorByCode(doctor);
|
|
|
//获取关联业务名称
|
|
|
if(object.getInt("type") == 4){
|
|
|
Survey survey = surveyDao.findById(object.getString("relationCode"));
|
|
@ -1139,10 +1140,9 @@ public class SurveyScreenResultService extends BaseService {
|
|
|
SurveyTemplates templates = surveyTemplatesDao.findById(object.getString("relationCode"));
|
|
|
object.put("relationCodeName", templates.getTitle());
|
|
|
object.put("createUserRole", 1);
|
|
|
object.put("hospital", d.getHospital());
|
|
|
object.put("hospitalName", d.getHospitalName());
|
|
|
}
|
|
|
Doctor d = doctorService.findDoctorByCode(doctor);
|
|
|
/*object.put("hospital", d.getHospital());
|
|
|
object.put("hospitalName", d.getHospitalName());*/
|
|
|
object.put("createUser", d.getCode());
|
|
|
object.put("createUserName", d.getName());
|
|
|
object.put("createUserType", 1);
|