|
@ -182,6 +182,9 @@ public class DictHospitalDeptService extends BaseJpaService<DictHospitalDeptDO,
|
|
|
if (baseOrgDO!=null){
|
|
|
dictHospitalDeptDO.setOrgName(baseOrgDO.getName());
|
|
|
}
|
|
|
if(dictHospitalDeptDO.getCreateTime()==null){
|
|
|
dictHospitalDeptDO.setCreateTime(new Date());
|
|
|
}
|
|
|
dictHospitalDeptDao.save(dictHospitalDeptDO);
|
|
|
if (StringUtils.isNoneBlank(doctorIds)){
|
|
|
if (doctorIds.contains(",")){
|
|
@ -206,7 +209,7 @@ public class DictHospitalDeptService extends BaseJpaService<DictHospitalDeptDO,
|
|
|
}
|
|
|
if (depts!=null&&depts.size()>0){
|
|
|
for (int j=0;j<depts.size();j++){
|
|
|
if (depts.get(j).getDoctorCode().equalsIgnoreCase(doctorId[i])){
|
|
|
if (doctorId[i].equalsIgnoreCase(depts.get(j).getDoctorCode())){
|
|
|
depts.remove(j);
|
|
|
}
|
|
|
}
|