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 yhxm from com_usr where yhdh = 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
from lab_reqmain a,lab_feeitemclass b where a.bgddh = b.sflbdh