| | |
| | | } |
| | | |
| | | /** |
| | | * 兼容「科室/病区」字段重命名前的旧入参。 |
| | | * |
| | | * <p>2026-11 起:{@code deptcode/deptname} = 在院科室,{@code leaveldeptcode/leaveldeptname} = 离院科室。 |
| | | * 但前端/旧调用方({@code /serviceSubtask/addSubTask})仍可能把科室放在 {@code deptcode/deptname} 里。 |
| | | * 若不归位,子任务会落到「在院维度」,列表按离院科室筛选时查不到(本次线上 2654501/2663019 即此问题)。 |
| | | * |
| | | * <p>规则: |
| | | * <ul> |
| | | * <li>只对非延续护理({@code service_type != '99'})生效;99 允许使用在院维度;</li> |
| | | * <li>离院科室为空且 {@code deptcode} 有值时,把 {@code deptcode/deptname} 迁到离院维度;</li> |
| | | * <li>清空在院维度,避免同一份科室同时命中两组筛选(与 {@code toSubtaskFromTaskVO} 的口径一致)。</li> |
| | | * </ul> |
| | | */ |
| | | private void alignLeaveDeptFromLegacyDept(ServiceSubtask serviceSubtask) { |
| | | if (serviceSubtask == null || "99".equals(serviceSubtask.getServiceType())) { |
| | | return; |
| | | } |
| | | if (StringUtils.isEmpty(serviceSubtask.getLeaveldeptcode()) |
| | | && StringUtils.isNotEmpty(serviceSubtask.getDeptcode())) { |
| | | serviceSubtask.setLeaveldeptcode(serviceSubtask.getDeptcode()); |
| | | } |
| | | if (StringUtils.isEmpty(serviceSubtask.getLeaveldeptname()) |
| | | && StringUtils.isNotEmpty(serviceSubtask.getDeptname())) { |
| | | serviceSubtask.setLeaveldeptname(serviceSubtask.getDeptname()); |
| | | } |
| | | // 手工新增入口没有「在院维度」的可靠来源;任务配置里的科室不是患者本人的在院科室。 |
| | | serviceSubtask.setDeptcode(null); |
| | | serviceSubtask.setDeptname(null); |
| | | serviceSubtask.setHospitaldistrictcode(null); |
| | | serviceSubtask.setHospitaldistrictname(null); |
| | | } |
| | | |
| | | /** |
| | | * 新增单一任务(随访) |
| | | * |
| | | * @param serviceSubtask 单一任务(随访) |
| | |
| | | */ |
| | | @Override |
| | | public Map<String, Object> insertServiceSubtask(ServiceSubtask serviceSubtask) { |
| | | // 兼容 2026-11 字段重命名前的旧入参:/addSubTask 仍可能把科室放在 deptcode/deptname 里 |
| | | alignLeaveDeptFromLegacyDept(serviceSubtask); |
| | | List<ServiceSubtask> serviceSubtasks = null; |
| | | //先查询一下该患者是否已经创建根据serviceType,sendstate,inhospid,patid,orgid |
| | | //这样判断主要是为了想让新华医院的外部导入患者创建任务,也能用这个接口 |
| | |
| | | serviceTaskdeptService.insertServiceTaskdept(serviceTaskdept); |
| | | } |
| | | } |
| | | // 点位行(2026-11,appltype=7):科室 / 病区 / 点位在 service_taskdept 里是 |
| | | // **各自独立的行**,可以共存也可以不共存 —— 所以点位行是"额外追加", |
| | | // 不替换上面的科室/病区行。点位行的 dept_code/dept_name 留空,编码只落 point_location。 |
| | | if ("7".equals(serviceTaskVO.getAppltype())) { |
| | | String pointLocation = firstNonBlank(serviceTaskVO.getPointLocation(), |
| | | serviceTask.getPointLocation()); |
| | | if (StringUtils.isNotEmpty(pointLocation)) { |
| | | ServiceTaskdept pointDept = new ServiceTaskdept(); |
| | | pointDept.setTaskId(serviceTask.getTaskid()); |
| | | pointDept.setTaskName(serviceTask.getTaskName()); |
| | | pointDept.setOrgid(serviceTask.getOrgid()); |
| | | pointDept.setLongtask(serviceTask.getLongTask() == null ? null |
| | | : Long.valueOf(serviceTask.getLongTask())); |
| | | pointDept.setServiceType(serviceTaskVO.getServiceType()); |
| | | pointDept.setDeptType("3"); |
| | | pointDept.setPointLocation(pointLocation); |
| | | serviceTaskdeptService.insertServiceTaskdept(pointDept); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //长期任务,也允许加人了 |
| | |
| | | scheduleVO.setOplevelCodes(serviceTaskVO.getOplevelcode()); |
| | | scheduleVO.setCreateBy(serviceTask.getUpdateBy()); |
| | | serviceTaskScheduleService.saveScheduleWithDetail(scheduleVO); |
| | | } else if (serviceTaskVO.getAppltype().equals("7")) { |
| | | // 按点位(同德需求):先软删该任务旧的 dept_type='3' 行,再按入参重建 |
| | | // (与科室/病区「先删后插」同口径;点位行 dept_code/dept_name 留空) |
| | | ServiceTaskdept oldPoint = new ServiceTaskdept(); |
| | | oldPoint.setTaskId(serviceTask.getTaskid()); |
| | | oldPoint.setDeptType("3"); |
| | | serviceTaskdeptService.deleteServiceTaskdeptByTaskId(oldPoint); |
| | | String pointLocation = StringUtils.isNotEmpty(serviceTaskVO.getPointLocation()) |
| | | ? serviceTaskVO.getPointLocation() : serviceTask.getPointLocation(); |
| | | if (StringUtils.isNotEmpty(pointLocation)) { |
| | | ServiceTaskdept pointDept = new ServiceTaskdept(); |
| | | pointDept.setTaskId(serviceTask.getTaskid()); |
| | | pointDept.setTaskName(serviceTask.getTaskName()); |
| | | pointDept.setOrgid(serviceTaskVO.getOrgid()); |
| | | pointDept.setLongtask(serviceTask.getLongTask() == null ? null |
| | | : Long.valueOf(serviceTask.getLongTask())); |
| | | pointDept.setServiceType(serviceTaskVO.getServiceType()); |
| | | pointDept.setDeptType("3"); |
| | | pointDept.setPointLocation(pointLocation); |
| | | serviceTaskdeptService.insertServiceTaskdept(pointDept); |
| | | } |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVO.getIvrTaskTemplateVO())) { |
| | |
| | | //首次出院随访 |
| | | if (serviceSubtask.getVisitCount() != null && serviceSubtask.getVisitCount() == 1) { |
| | | applyFirstFollowUpExtraStatistics(serviceSubtaskStatistic, serviceSubtask); |
| | | applyFirstCumulativePreachformStatistics(serviceSubtaskStatistic, serviceSubtask, followUpCountStyle); |
| | | //首次应随访 |
| | | if (serviceSubtask.getSendstate() != null && !serviceSubtask.getSendstate().equals(4L)) { |
| | | serviceSubtaskStatistic.setNeedFollowUp(serviceSubtaskStatistic.getNeedFollowUp() + 1L); |
| | |
| | | return serviceSubtask.getIsManuallyCalled() != null && serviceSubtask.getIsManuallyCalled().equals(0L); |
| | | } |
| | | |
| | | /** 发送方式编码:人工 */ |
| | | private static final String PREACHFORM_MANUAL = "1"; |
| | | /** 发送方式编码:语音 */ |
| | | private static final String PREACHFORM_VOICE = "3"; |
| | | /** 发送方式编码:短信 */ |
| | | private static final String PREACHFORM_SMS = "4"; |
| | | /** 发送方式编码:微信 */ |
| | | private static final String PREACHFORM_WECHAT = "5"; |
| | | |
| | | /** |
| | | * 首次随访「累计发送方式」统计。 |
| | | * <p> |
| | | * 原口径只看 current_preachform 等于某个方式:例如 current_preachform=5(微信)时, |
| | | * 前面已经执行过的语音不再计入语音数。本方法按 service_subtask.preachform 保存的 |
| | | * 顺序推算:current_preachform 在顺序中的位置之前的发送方式,都算“累计已进入过”。 |
| | | * <p> |
| | | * 例:preachform = 3,5,4,1(语音→微信→短信→人工): |
| | | * <ul> |
| | | * <li>current=3:累计语音=1;微信/短信/人工=0</li> |
| | | * <li>current=5:累计语音=1、微信=1;短信/人工=0</li> |
| | | * <li>current=4:累计语音=1、微信=1、短信=1;人工=0</li> |
| | | * <li>current=1:四项都=1</li> |
| | | * </ul> |
| | | * 约定:current_preachform 为空时取 preachform 第一个方式;current_preachform=-1 时按 |
| | | * 最后一个位置处理;current_preachform 不在顺序中时只做精确匹配兜底,避免历史脏数据误算。 |
| | | * <p> |
| | | * sendstate 过滤与原有 manual/voice/sms/weChat 保持一致: |
| | | * followUpCountStyle=1 排除 sendstate=4;=3 只统计 sendstate=6;其它统计所有非空 sendstate。 |
| | | */ |
| | | private void applyFirstCumulativePreachformStatistics(ServiceSubtaskStatistic statistic, |
| | | ServiceSubtask serviceSubtask, |
| | | String followUpCountStyle) { |
| | | if (serviceSubtask.getVisitCount() == null || serviceSubtask.getVisitCount() != 1) { |
| | | return; |
| | | } |
| | | if (!isCumulativePreachformCountable(serviceSubtask, followUpCountStyle)) { |
| | | return; |
| | | } |
| | | List<String> order = splitPreachformOrder(serviceSubtask.getPreachform()); |
| | | String current = StringUtils.isNotBlank(serviceSubtask.getCurrentPreachform()) |
| | | ? serviceSubtask.getCurrentPreachform().trim() |
| | | : (order.isEmpty() ? null : order.get(0)); |
| | | if (order.isEmpty()) { |
| | | // 没有顺序时退化为“当前方式精确匹配”,与 SQL 的 normalizedPreachformExpr = '' 分支一致 |
| | | if (current != null) { |
| | | increaseExactCumulative(statistic, current); |
| | | } |
| | | return; |
| | | } |
| | | int currentPosition; |
| | | if ("-1".equals(current)) { |
| | | // -1 表示所有发送方式都已遍历完,相当于停在最后一个位置 |
| | | currentPosition = order.size(); |
| | | } else { |
| | | int currentIndex = order.indexOf(current); |
| | | if (currentIndex < 0) { |
| | | // 历史异常值不在配置顺序里:只按精确匹配兜底,避免把前后方式都算进去 |
| | | increaseExactCumulative(statistic, current); |
| | | return; |
| | | } |
| | | currentPosition = currentIndex + 1; |
| | | } |
| | | if (reachedPreachform(order, PREACHFORM_VOICE, currentPosition)) { |
| | | statistic.setVoiceCumulative(statistic.getVoiceCumulative() + 1L); |
| | | } |
| | | if (reachedPreachform(order, PREACHFORM_WECHAT, currentPosition)) { |
| | | statistic.setWeChatCumulative(statistic.getWeChatCumulative() + 1L); |
| | | } |
| | | if (reachedPreachform(order, PREACHFORM_SMS, currentPosition)) { |
| | | statistic.setSmsCumulative(statistic.getSmsCumulative() + 1L); |
| | | } |
| | | if (reachedPreachform(order, PREACHFORM_MANUAL, currentPosition)) { |
| | | statistic.setManualCumulative(statistic.getManualCumulative() + 1L); |
| | | } |
| | | } |
| | | |
| | | private boolean isCumulativePreachformCountable(ServiceSubtask serviceSubtask, String followUpCountStyle) { |
| | | if (serviceSubtask.getSendstate() == null) { |
| | | return false; |
| | | } |
| | | if ("1".equals(followUpCountStyle)) { |
| | | return !Long.valueOf(4L).equals(serviceSubtask.getSendstate()); |
| | | } |
| | | if ("3".equals(followUpCountStyle)) { |
| | | return Long.valueOf(6L).equals(serviceSubtask.getSendstate()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 拆分 preachform 执行顺序。兼容英文逗号、中文逗号和空格,去重并保持原顺序。 |
| | | */ |
| | | private List<String> splitPreachformOrder(String preachform) { |
| | | if (StringUtils.isEmpty(preachform)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | return Arrays.stream(preachform.split("[,,]")) |
| | | .map(String::trim) |
| | | .filter(StringUtils::isNotEmpty) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | private boolean reachedPreachform(List<String> order, String preachform, int currentPosition) { |
| | | int position = order.indexOf(preachform); |
| | | return position >= 0 && currentPosition >= position + 1; |
| | | } |
| | | |
| | | private void increaseExactCumulative(ServiceSubtaskStatistic statistic, String current) { |
| | | if (PREACHFORM_MANUAL.equals(current)) { |
| | | statistic.setManualCumulative(statistic.getManualCumulative() + 1L); |
| | | } else if (PREACHFORM_VOICE.equals(current)) { |
| | | statistic.setVoiceCumulative(statistic.getVoiceCumulative() + 1L); |
| | | } else if (PREACHFORM_SMS.equals(current)) { |
| | | statistic.setSmsCumulative(statistic.getSmsCumulative() + 1L); |
| | | } else if (PREACHFORM_WECHAT.equals(current)) { |
| | | statistic.setWeChatCumulative(statistic.getWeChatCumulative() + 1L); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 首次随访统计 |
| | | * |
| | |
| | | |
| | | //首次出院随访 |
| | | if (serviceSubtask.getVisitCount() != null && serviceSubtask.getVisitCount() == 1) { |
| | | applyFirstCumulativePreachformStatistics(serviceSubtaskStatistic, serviceSubtask, followUpCountStyle); |
| | | //首次应随访 |
| | | if (serviceSubtask.getSendstate() != null && serviceSubtask.getSendstate() != 4) { |
| | | serviceSubtaskStatistic.setNeedFollowUp(serviceSubtaskStatistic.getNeedFollowUp() + 1L); |
| | |
| | | * voiceSuccessInfo - visitCount = 1 && currentPreachForm = "3" && sendstate = 6 |
| | | * smsSuccessInfo - visitCount = 1 && currentPreachForm = "4" && sendstate = 6 |
| | | * wechatSuccessInfo - visitCount = 1 && currentPreachForm = "5" && sendstate = 6 |
| | | * voiceCumulativeInfo - visitCount = 1 && currentPreachForm 位于 preachform 顺序中的语音及之后 |
| | | * weChatCumulativeInfo - visitCount = 1 && currentPreachForm 位于 preachform 顺序中的微信及之后 |
| | | * smsCumulativeInfo - visitCount = 1 && currentPreachForm 位于 preachform 顺序中的短信及之后 |
| | | * manualCumulativeInfo - visitCount = 1 && currentPreachForm 位于 preachform 顺序中的人工及之后 |
| | | * abnormalInfo - visitCount = 1 && excep = "1" |
| | | * needFollowUpAgainInfo - visitCount > 1 && sendstate != 4 |
| | | * pendingFollowUpAgainInfo - visitCount > 1 && sendstate = 2 |
| | |
| | | serviceSubtaskCountReq.setVisitCount(null); |
| | | serviceSubtaskCountReq.setSendstates(null); |
| | | serviceSubtaskCountReq.setCurrentPreachform(null); |
| | | serviceSubtaskCountReq.setCumulativePreachform(null); |
| | | serviceSubtaskCountReq.setExcep(null); |
| | | serviceSubtaskCountReq.setTaskSituation(null); |
| | | serviceSubtaskCountReq.setFinishState(null); |
| | |
| | | case "weChatInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | | serviceSubtaskCountReq.setCurrentPreachform("5"); |
| | | break; |
| | | // 累计口径:按 preachform 的执行顺序,current_preachform 位于该方式及之后即计入 |
| | | case "voiceCumulativeInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | | serviceSubtaskCountReq.setCumulativePreachform("3"); |
| | | break; |
| | | case "weChatCumulativeInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | | serviceSubtaskCountReq.setCumulativePreachform("5"); |
| | | break; |
| | | case "smsCumulativeInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | | serviceSubtaskCountReq.setCumulativePreachform("4"); |
| | | break; |
| | | case "manualCumulativeInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | | serviceSubtaskCountReq.setCumulativePreachform("1"); |
| | | break; |
| | | case "manualSuccessInfo": |
| | | serviceSubtaskCountReq.setVisitCount(1); |
| | |
| | | total.setManual(0L); |
| | | total.setSms(0L); |
| | | total.setWeChat(0L); |
| | | total.setVoiceCumulative(0L); |
| | | total.setWeChatCumulative(0L); |
| | | total.setSmsCumulative(0L); |
| | | total.setManualCumulative(0L); |
| | | total.setAbnormal(0L); |
| | | total.setNeedFollowUpAgain(0L); |
| | | total.setPendingFollowUpAgain(0L); |
| | |
| | | total.setManual(total.getManual() + (stat.getManual() != null ? stat.getManual() : 0L)); |
| | | total.setSms(total.getSms() + (stat.getSms() != null ? stat.getSms() : 0L)); |
| | | total.setWeChat(total.getWeChat() + (stat.getWeChat() != null ? stat.getWeChat() : 0L)); |
| | | total.setVoiceCumulative(total.getVoiceCumulative() + (stat.getVoiceCumulative() != null ? stat.getVoiceCumulative() : 0L)); |
| | | total.setWeChatCumulative(total.getWeChatCumulative() + (stat.getWeChatCumulative() != null ? stat.getWeChatCumulative() : 0L)); |
| | | total.setSmsCumulative(total.getSmsCumulative() + (stat.getSmsCumulative() != null ? stat.getSmsCumulative() : 0L)); |
| | | total.setManualCumulative(total.getManualCumulative() + (stat.getManualCumulative() != null ? stat.getManualCumulative() : 0L)); |
| | | total.setAbnormal(total.getAbnormal() + (stat.getAbnormal() != null ? stat.getAbnormal() : 0L)); |
| | | total.setNeedFollowUpAgain(total.getNeedFollowUpAgain() + (stat.getNeedFollowUpAgain() != null ? stat.getNeedFollowUpAgain() : 0L)); |
| | | total.setPendingFollowUpAgain(total.getPendingFollowUpAgain() + (stat.getPendingFollowUpAgain() != null ? stat.getPendingFollowUpAgain() : 0L)); |
| | |
| | | String ip = localIP; |
| | | ServiceTask serviceTask = new ServiceTask(); |
| | | serviceTask = serviceTaskService.selectServiceTaskByTaskid(serviceTaskVo.getTaskid()); |
| | | if (ObjectUtils.isEmpty(serviceTask)) { |
| | | // 任务不存在 → 不可能有 data,直接抛业务异常(接口层会转成 code=500) |
| | | throw new BaseException("扫码生成任务失败:任务不存在或已删除(taskid=" + serviceTaskVo.getTaskid() + ")"); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTask)) { |
| | | try { |
| | | ServiceTaskdept serviceTaskdept = new ServiceTaskdept(); |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVo.getDeptcode())) { |
| | | serviceTaskdept.setDeptType("1"); |
| | | serviceTaskdept.setDeptCode(serviceTaskVo.getDeptcode()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVo.getLeavehospitaldistrictcode())) { |
| | | // 维度(科室/病区/点位)由任务的 appltype 决定:1=科室、2=病区、7=点位。 |
| | | // 三种维度在 service_taskdept 里是**各自独立的行**(各自的列),可以共存、也可以不共存; |
| | | // 但查行时必须只带一个维度 —— 否则会用 A 维度的编码去撞 B 维度的行, |
| | | // 而点位行的 dept_code 本来就是空的。 |
| | | String appltype = serviceTask.getAppltype(); |
| | | if ("7".equals(appltype)) { |
| | | serviceTaskdept.setDeptType("3"); |
| | | serviceTaskdept.setPointLocation(firstNonBlank(serviceTaskVo.getPointLocation(), |
| | | serviceTask.getPointLocation())); |
| | | } else if ("2".equals(appltype)) { |
| | | serviceTaskdept.setDeptType("2"); |
| | | serviceTaskdept.setDeptCode(serviceTaskVo.getLeavehospitaldistrictcode()); |
| | | // 任务上的科室/病区可能是逗号多选,查 service_taskdept 要用单值(取第一个) |
| | | serviceTaskdept.setDeptCode(firstNonBlank(serviceTaskVo.getLeavehospitaldistrictcode(), |
| | | firstValue(serviceTask.getLeavehospitaldistrictcode()))); |
| | | } else if ("1".equals(appltype)) { |
| | | serviceTaskdept.setDeptType("1"); |
| | | serviceTaskdept.setDeptCode(firstNonBlank(serviceTaskVo.getDeptcode(), |
| | | firstValue(serviceTask.getDeptcode()))); |
| | | } else { |
| | | // appltype 为空的历史任务:沿用改造前的口径(科室 → 病区,后写的覆盖先写的), |
| | | // 点位作为第三维,只在传了点位时补上。 |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVo.getDeptcode())) { |
| | | serviceTaskdept.setDeptType("1"); |
| | | serviceTaskdept.setDeptCode(serviceTaskVo.getDeptcode()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVo.getLeavehospitaldistrictcode())) { |
| | | serviceTaskdept.setDeptType("2"); |
| | | serviceTaskdept.setDeptCode(serviceTaskVo.getLeavehospitaldistrictcode()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(serviceTaskVo.getPointLocation())) { |
| | | serviceTaskdept.setDeptType("3"); |
| | | serviceTaskdept.setPointLocation(serviceTaskVo.getPointLocation()); |
| | | } |
| | | } |
| | | serviceTaskdept.setServiceType(serviceTask.getServiceType()); |
| | | serviceTaskdept.setOrgid(serviceTask.getOrgid()); |
| | |
| | | iServiceOutPathService.updateServiceOutPath(serviceOutPath); |
| | | |
| | | } |
| | | } else { |
| | | // 配置缺失属「业务可预期」情况:带上排查信息抛出去(不吞), |
| | | // 接口层据此返回 code=500 + 明确 msg,避免「200 + 空 data」。 |
| | | throw new BaseException("扫码生成任务失败:未匹配到任务维度配置(taskid=" + serviceTaskVo.getTaskid() |
| | | + ",appltype=" + appltype |
| | | + ",deptType=" + serviceTaskdept.getDeptType() |
| | | + ",deptCode=" + serviceTaskdept.getDeptCode() |
| | | + ",pointLocation=" + serviceTaskdept.getPointLocation() + ")"); |
| | | } |
| | | } catch (BaseException be) { |
| | | // ⚠️ 必须排在 catch (Exception) 之前:BaseException 是 RuntimeException, |
| | | // 否则刚抛出的业务异常会被下面整段吞掉,接口又变成 200 + 空 data。 |
| | | throw be; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("【扫码生成任务】处理异常:{}", e.getMessage()); |
| | | log.error("【扫码生成任务】处理异常:taskid={},{}", serviceTaskVo.getTaskid(), e.getMessage(), e); |
| | | } |
| | | } |
| | | return content; |
| | |
| | | if (StringUtils.isNotEmpty(serviceTaskdept.getDeptType()) && serviceTaskdept.getDeptType().equals("1")) { |
| | | serviceSubtask.setLeaveldeptcode(serviceTaskdept.getDeptCode()); |
| | | serviceSubtask.setLeaveldeptname(serviceTaskdept.getDeptName()); |
| | | } else if (StringUtils.isNotEmpty(serviceTaskdept.getDeptType()) && serviceTaskdept.getDeptType().equals("3")) { |
| | | // 点位行(dept_type='3'):dept_code/dept_name 为空,点位只落 point_location |
| | | serviceSubtask.setPointLocation(serviceTaskdept.getPointLocation()); |
| | | } else { |
| | | serviceSubtask.setLeavehospitaldistrictcode(serviceTaskdept.getDeptCode()); |
| | | serviceSubtask.setLeavehospitaldistrictname(serviceTaskdept.getDeptName()); |