住院报告查询增加字段

This commit is contained in:
jiangs 2026-01-16 14:04:55 +08:00
parent c6013d774e
commit 5bba275bae
2 changed files with 35 additions and 51 deletions

View File

@ -1,5 +1,5 @@
/****** Object: View [dbo].[web_getReportsList] Script Date: 11/14/2025 17:09:18 ******/
/****** Object: View [dbo].[web_getReportsList] Script Date: 01/16/2026 09:44:41 ******/
SET ANSI_NULLS ON
GO
@ -9,7 +9,7 @@ GO
CREATE VIEW [dbo].[web_getReportsList]
ALTER VIEW [dbo].[web_getReportsList]
AS
--select isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg, a.jyrq, CONVERT(varchar(100), a.jyrq, 23) as jyrqname,a.yq,a.ybh,a.yblx,a.brxm,
@ -19,7 +19,7 @@ AS
--(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
--(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
--(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
--(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Å®' ELSE 'ÆäËû' END) as brxbname,
--(CASE WHEN a.brxb = '1' THEN '男' WHEN a.brxb = '2' THEN '女' ELSE '其他' END) as brxbname,
--isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
--isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
--z.yqmc,z.yqdl from lab_pat a left join lab_reqmain e on a.sqh=e.sqh,lab_instr z
@ -34,10 +34,10 @@ a.ch,a.jymd,a.zd,a.sqh,a.ksdh,isnull(a.jzbz,'0') as jzbz,isnull(a.alarmflag,'0')
(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Å®' ELSE 'ÆäËû' END) as brxbname,
(CASE WHEN a.brxb = '1' THEN '男' WHEN a.brxb = '2' THEN '女' ELSE '其他' END) as brxbname,
isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
z.yqmc,z.yqdl,dysj from lab_pat a ,lab_instr z ,lab_reqmain c
z.yqmc,z.yqdl,dysj,z.lisgroup from lab_pat a ,lab_instr z ,lab_reqmain c
where a.brxm<>'' and a.yq=z.yq and --a.jymd<>''
jgbz ='2'
and a.brly='1' and c.sqh = a.sqh
@ -49,29 +49,12 @@ a.ch,a.jymd,a.zd,a.sqh,a.ksdh,isnull(a.jzbz,'0') as jzbz,isnull(a.alarmflag,'0')
(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Å®' ELSE 'ÆäËû' END) as brxbname,
(CASE WHEN a.brxb = '1' THEN '男' WHEN a.brxb = '2' THEN '女' ELSE '其他' END) as brxbname,
isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
z.yqmc,z.yqdl,a.dysj dysj from lab_pat a join lab_reqmain e on a.sqh=e.sqh,lab_instr z
z.yqmc,z.yqdl,a.dysj dysj,z.lisgroup from lab_pat a join lab_reqmain e on a.sqh=e.sqh,lab_instr z
where a.brxm<>'' and a.yq=z.yq and --a.jymd<>''
jgbz ='2'
and a.brly<>'1'
GO

View File

@ -43,5 +43,6 @@ public class Web_getReportsList {
private Date bbsjsj;
private Date jssj;
private Date confirmtime;
private String lisgroup;
}