| | |
| | | continue_time_next, |
| | | task_situation, |
| | | finish_state, |
| | | is_manually_called |
| | | is_manually_called, |
| | | <!-- 2026-11:/getSfStatistics 的「普通 / 日间」细分要靠这一列判断, |
| | | 见 com.ruoyi.common.enums.ImportFlagEnum#isDaytime --> |
| | | importance_flag_code |
| | | from service_subtask |
| | | where 1=1 |
| | | and del_flag = 0 |
| | |
| | | remark, |
| | | doctor_opinion, |
| | | finish_state, |
| | | is_manually_called |
| | | is_manually_called, |
| | | <!-- 2026-11:下钻明细列表要能显示「日间/普通」,与 getSfStatistics 的细分同源 --> |
| | | importance_flag_code |
| | | from service_subtask |
| | | where 1=1 |
| | | and del_flag = 0 |
| | |
| | | #{serviceType} |
| | | </foreach> |
| | | </if> |
| | | <!-- |
| | | 2026-11:「普通 / 日间」下钻过滤(对应 /getSfStatistics 新增的 *Normal / *Daytime 字段)。 |
| | | 判定口径与 Java 侧 ImportFlagEnum#isDaytime 完全一致: |
| | | 日间 = importance_flag_code 含「日间」(中文描述口径:日间手术/日间诊疗) |
| | | 或含 FH0165.01 / FH0165.02(枚举编码口径);多值行「包含即日间」。 |
| | | 普通 = 其余全部,含 NULL / 空串 / 「无」/「特约人员」/「离休人员」。 |
| | | 入参 daytimeOnly:1-只看日间;0-只看普通;不传-不限。 |
| | | 前端不直接传它,而是传 hyperLinkInfoType(如 dischargeCountDaytimeInfo / |
| | | nonFollowUpNormalInfo),由 ServiceSubtaskServiceImpl#applyDaytimeHyperLinkInfoType |
| | | 解析后落到这里;直接传 daytimeOnly 也支持。 |
| | | 注意 MySQL 的 NOT LIKE 对 NULL 返回 NULL,所以「普通」分支要先显式放行 IS NULL。 |
| | | --> |
| | | <if test="daytimeOnly != null and daytimeOnly == 1"> |
| | | AND (importance_flag_code LIKE '%日间%' |
| | | OR importance_flag_code LIKE '%FH0165.01%' |
| | | OR importance_flag_code LIKE '%FH0165.02%') |
| | | </if> |
| | | <if test="daytimeOnly != null and daytimeOnly == 0"> |
| | | AND (importance_flag_code IS NULL |
| | | OR (importance_flag_code NOT LIKE '%日间%' |
| | | AND importance_flag_code NOT LIKE '%FH0165.01%' |
| | | AND importance_flag_code NOT LIKE '%FH0165.02%')) |
| | | </if> |
| | | <!-- 2026-10-21:visit_time 为空时按完成/创建时间兜底 --> |
| | | <if test="startTime != null and endTime!=null"> |
| | | AND IFNULL(visit_time, IFNULL(finishtime, create_time)) >= DATE(#{startTime}) |