LAPTOP-KB9HII50\70708 1 неделя назад
Родитель
Сommit
12dc449ca4

+ 6 - 7
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/followup/service/FollowUpService.java

@ -1722,19 +1722,18 @@ public class FollowUpService {
                if(StringUtils.isNotBlank(nextFollowupTime)){
                    f.setFollowupDate(DateUtil.strToDate(nextFollowupTime));
                    f.setFollowupPlanDate(DateUtil.strToDate(nextFollowupTime));
                    ServiceItemPlanDO itemPlanDO = serviceItemPlanDao.findByRelationCode(f.getId()+"");
                    if(itemPlanDO!=null){
                        itemPlanDO.setPlanTime(nextFollowupTime);
                        serviceItemPlanDao.save(itemPlanDO);
                    }
                }
                if(StringUtils.isNotBlank(nextFollowupWay)){
                    f.setFollowupType(nextFollowupWay);
                }
                followupDao.save(f);
            }
            if(StringUtils.isNotBlank(nextFollowupTime)){
                ServiceItemPlanDO itemPlanDO = serviceItemPlanDao.findByRelationCode(followupId+"");
                if(itemPlanDO!=null){
                    itemPlanDO.setPlanTime(nextFollowupTime);
                    serviceItemPlanDao.save(itemPlanDO);
                }
            }
        }
    }