| | |
| | | */ |
| | | @Override |
| | | public List<PatMedInhosp> selectPatMedInhospList(PatMedInhosp patMedInhosp) { |
| | | if (patMedInhosp.getCry() == 0) { |
| | | if (patMedInhosp.getCry() != null && patMedInhosp.getCry() == 0) { |
| | | patMedInhosp.setDeptcodeList(patMedInhosp.getLeaveldeptcodes()); |
| | | patMedInhosp.setHospitaldistrictcodeList(patMedInhosp.getLeavehospitaldistrictcodes()); |
| | | patMedInhosp.setLeaveldeptcodes(null); |
| | | patMedInhosp.setLeavehospitaldistrictcodes(null); |
| | | patMedInhosp.setInhospstate("0"); |
| | | } else if (patMedInhosp.getCry() == 1) { |
| | | } else if (patMedInhosp.getCry() != null && patMedInhosp.getCry() == 1) { |
| | | patMedInhosp.setInhospstate("1"); |
| | | } else if (patMedInhosp.getCry() != null && patMedInhosp.getCry() == 2) { |
| | | patMedInhosp.setInhospstate("2"); |
| | | } else if (patMedInhosp.getCry() != null && patMedInhosp.getCry() == 3) { |
| | | patMedInhosp.setInhospstate("3"); |
| | | } |
| | | |
| | | List<PatMedInhosp> patMedInhospList = patMedInhospMapper.selectPatMedInhospList(patMedInhosp); |