package com.yunhai.flowcenter.service; /** * 科室口径文案的唯一出口(2026-09-18 建,2026-10-10 切源 flw_dept):DEPT_KEY 节点的"科室名" * 取值只在这里实现一次——流程图(FlowDiagramService 的科室视图)与流程轨迹(FlowQueryService * 的科室口径)共用,避免两边对同一份科室表给出不同名字。 */ final class DeptLabelSupport { private DeptLabelSupport() { } /** * 科室名(flw_dept.dept_name):科室不存在/已删返回 null,由调用方决定回落链 * (科室不存在≠科室停用——停用科室仍有名字,轨迹/图示照常显示)。 */ static String deptName(FlowDeptAdminService deptAdminService, Long schId, String deptKey) { try { return deptAdminService.deptName(schId, deptKey); } catch (Exception e) { return null; } } }