| | |
| | | serviceSubtask.setLibtemplateid(Long.valueOf(serviceTask.getLibtemplateid())); |
| | | if (CollectionUtils.isNotEmpty(patMedInhospList)) { |
| | | serviceSubtask.setHospType("2"); |
| | | serviceSubtask.setDeptname(patMedInhospList.get(0).getDeptname()); |
| | | serviceSubtask.setDeptcode(patMedInhospList.get(0).getDeptcode()); |
| | | serviceSubtask.setLeaveldeptname(patMedInhospList.get(0).getDeptname()); |
| | | serviceSubtask.setLeaveldeptcode(patMedInhospList.get(0).getDeptcode()); |
| | | serviceSubtask.setLeavehospitaldistrictcode(patMedInhospList.get(0).getLeavehospitaldistrictcode()); |
| | | serviceSubtask.setLeavehospitaldistrictname(patMedInhospList.get(0).getLeavehospitaldistrictname()); |
| | | serviceSubtask.setDrname(patMedInhospList.get(0).getDrname()); |
| | |
| | | serviceSubtask.setHospType("1"); |
| | | serviceSubtask.setAdmindate(patMedOuthosps.get(0).getAdmitdate()); |
| | | serviceSubtask.setHospno(patMedOuthosps.get(0).getOuthospno()); |
| | | serviceSubtask.setDeptname(patMedOuthosps.get(0).getDeptname()); |
| | | serviceSubtask.setDeptcode(patMedOuthosps.get(0).getDeptcode()); |
| | | serviceSubtask.setLeaveldeptname(patMedOuthosps.get(0).getDeptname()); |
| | | serviceSubtask.setLeaveldeptcode(patMedOuthosps.get(0).getDeptcode()); |
| | | serviceSubtask.setDrname(patMedOuthosps.get(0).getDrname()); |
| | | serviceSubtask.setDrcode(patMedOuthosps.get(0).getDrcode()); |
| | | serviceSubtask.setServiceType("14"); |
| | |
| | | } |
| | | if (StringUtils.isNotEmpty(dealDept)) { |
| | | //投诉建议的处理部门 |
| | | serviceSubtask.setDeptcode(dealDept); |
| | | serviceSubtask.setLeaveldeptcode(dealDept); |
| | | serviceSubtask.setServiceType("15"); |
| | | } |
| | | serviceSubtask.setSubmit(1L); |