标本全程监控
This commit is contained in:
parent
8415830374
commit
af8d6da591
@ -7,15 +7,15 @@
|
||||
<sql id="selectLabReqmainVo">
|
||||
select a.*,b.sflbmc as bgddhname,b.sampletips,b.bkcolor,
|
||||
(case rtrim(a.brxb) when '1' then '男' when '2' then '女' else '' end) as brxbname,
|
||||
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.sqys) as sqysname,
|
||||
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.bbsjr) as bbsjrname,
|
||||
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.zxys) as zxysname,
|
||||
(select yhxm from com_usr where yhdh = a.jsys) as jsysname,
|
||||
(select zdmc from com_dict where zdlb = 'DP' AND zddh = a.ksdh) as ksname,
|
||||
(select zdmc from com_dict where zdlb = 'PT' AND zddh = a.brly) as brlyname,
|
||||
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.cyr) as cyrname,
|
||||
(select zdmc from com_dict where zdlb = 'HOS' AND zddh = a.yljg) as yljgname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'HOS' AND zddh = a.yblx),a.yblx) as yblxname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.sqys),a.sqys) as sqysname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.bbsjr),a.bbsjr) as bbsjrname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.zxys),a.zxys) as zxysname,
|
||||
isnull((select yhxm from com_usr where yhdh = a.jsys),a.jsys) as jsysname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'DP' AND zddh = a.ksdh),a.ksdh) as ksname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'PT' AND zddh = a.brly),a.brly) as brlyname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.cyr),a.cyr) as cyrname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'HOS' AND zddh = a.yljg),a.yljg) as yljgname,
|
||||
isnull((select zdmc from com_dict where zdlb = 'BT' AND zddh = a.yblx),a.yblx) as yblxname,
|
||||
datediff(minute,a.cysj,a.jssj) as cp_cytojs,
|
||||
datediff(minute,a.jssj,a.confirmtime) as cp_jstobg,
|
||||
(select max(min1) from lab_tatctrl where (lab_tatctrl.jzbz='@' or (lab_tatctrl.jzbz='1' and a.jzbz='1') or (lab_tatctrl.jzbz='0' and isnull(a.jzbz,'') !='1')) and ( lab_tatctrl.yblx='@' or lab_tatctrl.yblx=a.yblx ) and lab_tatctrl.ruletype = '4' and lab_tatctrl.refcode=c.sqxmdh) as min1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user