| | |
| | | if (sysFeedback.getId()==null) { |
| | | List<SysOrganization> organizations = sysUser.getOrganizations(); |
| | | if (organizations.size() > 0) { |
| | | // sysFeedback.setDepartmentId(organizations.get(1).getId()); |
| | | // sysFeedback.setDepartmentName(organizations.get(1).getOrgName()); |
| | | // sysFeedback.setHospitalId(organizations.get(0).getId()); |
| | | // sysFeedback.setHospitalName(organizations.get(0).getOrgName()); |
| | | // Map map = new HashMap(); |
| | | // map.put("user_id", sysUser.getId()); |
| | | // ResultBody listByMap = sysDoctorService.getListByMap(map); |
| | | // List<SysDoctor> sysDoctors = JSON.parseArray(JSON.toJSONString(listByMap.getData()), SysDoctor.class); |
| | | // if (sysDoctors.size() > 0) { |
| | | // sysFeedback.setDoctorId(sysDoctors.get(0).getId()); |
| | | // sysFeedback.setDoctorName(sysDoctors.get(0).getDoctorName()); |
| | | // sysFeedback.setDoctorTel(sysDoctors.get(0).getDoctorTel()); |
| | | // } |
| | | int insert = baseMapper.insert(sysFeedback); |
| | | if (insert > 0) { |
| | | return true; |