浏览代码

问卷调查机构改成从前端传过来

humingfen 6 年之前
父节点
当前提交
bab957f33e

+ 3 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/survey/SurveyScreenResultService.java

@ -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);