develop/hrl_20241118_hzfytf

患者发药/患者退药 修改
develop/lyx_20241121_cfhz
Xiao Ye 2 months ago
parent 7a80991938
commit df45f4c832
  1. 1
      WEB-INF/conf/sysds_his_zyyz.xml

@ -2973,7 +2973,6 @@ select a.PKEY,a.HZPKEY,a.JZPKEY,a.JZH,a.CFH,a.YZCL,a.YZLB,a.YZLX,a.YZXPKEY,a.YZS
(select sum(yzsl*exec.zxje) from HIS_YFFY_PYB pyb left join HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID=a.JGID and exec.ZXFLAG=1 and pyb.FYCX=0 and exec.SFFLAG=1 and pyb.FYZT=0) sfdfyzje,
(select sum(ZXJE) yffjzje from HIS_YZ_EXEC where YFBDZYZPKEY=a.pkey and jzpkey=a.jzpkey and hzpkey=a.hzpkey and JGID=a.JGID and ZXFLAG='1' and SFFLAG='1') yffjzje,
a.HZSZKS,a.LOCKFLAG,a.SFXSYZ,a.GLLX,a.OPAPKEY,a.ANESPKEY,a.ISOPAORDER,a.ISANESORDER, (select sum(yzsl) from HIS_YFFY_PYB pyb left join HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID=a.JGID and exec.ZXFLAG=1 and pyb.FYCX=0 and exec.SFFLAG=1 and pyb.FYZT=0) sfdfysl,a.SMORDERPKEY,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC,a.YZGG,a.YZDXRL,a.YPFYSJMS,a.YPPCSJ,a.YPPCJBSJ,a.YPMRPC,a.DMJYZ,a.DMJSFZ,a.DMJDBRSFZ,a.DMJDBRXM,a.DMJDBRDH,a.YZCFLX,a.YZSFKS,a.YZSFYS,a.YZSFTIME,a.YZSFBZ,a.YZYWBZ,a.YZPSYPPC,a.YZPSDS,a.YZPSDSBEGIN,a.YZPSDSMINUTE,a.PSDSMAN,a.PSDSTIME,a.PSZXKS,a.DDD,a.YZTPKEY,a.SFQYSHCF,a.SHCFZT,a.DCZDJL,a.MTZDJL,a.ZDL,a.SZSYTS,a.YZHOURBEGIN,a.YZHOUREND
from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and (a.YZLX='0' or a.YZLX='4' or a.YZLX='5' or a.YZLX='3' or a.YZLX='8' or a.YZLX='9') and (1=? or a.ZYYZFL=?) and a.YZSHZT=1 #select# order by a.yzxh

Loading…
Cancel
Save