From a0fb494a8a1d75c0ad52816403282d7175faca10 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 09 六月 2026 14:05:34 +0800
Subject: [PATCH] 【市一】手术随访对接
---
ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
index 3e02cfd..1e46f20 100644
--- a/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
+++ b/ruoyi-quartz/src/main/resources/mapper/quartz/CollectHISMapper.xml
@@ -626,9 +626,7 @@
b.patname,
b.out_way_id,
b.out_way_name,
- (CASE WHEN b.inhospstate = '1' THEN '1'
- WHEN b.inhospstate = '3' THEN '1'
- ELSE b.inhospstate END) AS inhospstate,
+ b.inhospstate,
b.patno,
b.inhospno,
b.serialnum,
@@ -885,17 +883,18 @@
o.vopcode ,
o.opdesc,
o.oplevelcode ,
- o.opleveldesc
+ o.opleveldesc,
+ o.last_Update_Time
from HEALTHY_PAT_MED_OPERATION o
where 1=1
<if test="orgid != null and orgid != ''">
AND o.orgid = #{orgid}
</if>
<if test="lastStartTime != null and lastStartTime != ''">
- and to_char(o.opreqtime, 'YYYY-MM-DD HH24:MI:SS') >= #{lastStartTime}
+ and to_char(o.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') >= #{lastStartTime}
</if>
<if test="lastEndTime != null and lastEndTime != ''">
- and to_char(o.opreqtime, 'YYYY-MM-DD HH24:MI:SS') <= #{lastEndTime}
+ and to_char(o.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') <= #{lastEndTime}
</if>
</select>
@@ -924,7 +923,8 @@
oi.guid,
oi.pid,
oi.opercheck_flag,
- oi.long_task_reason
+ oi.long_task_reason,
+ oi.last_Update_Time
from HEALTHY_PAT_MED_OPERATION_ITEM oi
where 1=1
<if test="orgid != null and orgid != ''">
@@ -933,5 +933,11 @@
<if test="opid != null and opid != ''">
AND oi.opid = #{opid}
</if>
+ <if test="lastStartTime != null and lastStartTime != ''">
+ and last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS')
+ </if>
+ <if test="lastEndTime != null and lastEndTime != ''">
+ and last_Update_Time <= to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS')
+ </if>
</select>
</mapper>
--
Gitblit v1.9.3