select USERID,EMPID,PKEY from MAIN_USERS where COMPANYID=? and EFFICET='0' and PKEY is null
12
select JGMC,PKEY,JKPTJGBM from MAIN_YLJG where JKPTJGBM is not null
select a.COMPANYID,a.YBID,b.USERACCOUNT,a.USERID,a.PKEY,b.NAME from MAIN_USERS a left join MAIN_EMPLOYEES b on a.EMPID=b.EMPID where a.EFFICET='0' and a.COMPANYID=?
12
select a.COMPANYID,a.DPTID,a.DPTNAME,ISJZ from MAIN_DEPARTMENT a where a.COMPANYID=?
12
select PKEY,COMPANYID,YWLX,RF1,RF2,RF3,RF4,RF5,SCZT1,SCZT2,SCZT3,SCZT4,SCZT5 from HIS_YB_QTSC where 1=2
12
93
select HOS_CODE,OUTPATIENT_NO,DEPT_CODE,DOC_NAME,DOC_CODE,PATIENT_NAME,PATIENT_PHONE,CARD_CODE,ORDER_DATE,ORDER_TYPE,CREATE_TIME,HOS_CARD_TYPE,HOS_CARD
from GH_RYXXB where HOS_CODE like ? and ORDER_DATE like ?
12
12
select p.PKEY scpkey,a.PKEY ZGBM,b.USERACCOUNT GH,b.NAME XM,b.SEX Xb,b.BIRTHDAY CSRQ,b.MZ MZDM,b.IDTYPE SFBSLBDM,b.IDENTITYID SFBSHM,d.DPTID SSKS,d.DPTNAME SSKSMC,y.VALUE3 SSZXKSDM,'90' RYLB,'0' Ghzt,'2' BZQK,'0' SJTRYBZ,'1' GZZT,'2' PXLB,'0' SFNRQKYSPX,d.DPTYBCODE
from MAIN_USERS a
left join MAIN_EMPLOYEES b on a.EMPID=b.EMPID
left join HIS_YB_QTSC p on a.COMPANYID=p.COMPANYID and p.YWLX='JC_YHRYXXB' and p.RF1=a.PKEY
left join MAIN_DEPARTMENT d on a.COMPANYID=d.COMPANYID and a.MRKS=d.DPTID
left join HIS_YB_DMZDB y on y.LBBM='caty' and d.DPTYBCODE=y.BM
where a.EFFICET='0' and nvl(p.SCZT1,'0')='0' and b.USERACCOUNT is not null and a.COMPANYID=?
12
select YLJGDM,ZGBM,GH,XM,XB,CSRQ,MZDM,SFBSLBDM,SFBSHM,SSKS,SSKSMC,SSZXKSDM,KSLB,ZWDM,ZWMC,ZCDM,ZCHENGMC,ZY,RYLB,EMAIL,JTDZ,YZBM,DHHM,SJHM1,YSJJ,GHZT,WHCD,DYXLDM,DYXLMC,DYXLBYYX,DYXLBYSJ,DYXLZSH,ZGXLBYYX,XWDM,XZGLZWDM,XZGLZWMC,GW,ZYZSH,ZYZGMC,ZYZSZCSJ,QKYSBZ,PXLX,SCPXYLJGDM,SCPXYLJGMC,PXSZYZCDM,PXSZYZCMX,PXJD,PXJGMC,QKYSPXKSSJ,QKYSPXJSSJ,YSZYLBDM,YSZYFWDM,ZCWDDZYYSBZ,D2ZYDWLBDM,DSZYDWLBDM,RYDRQK,RYDCQK,DRSJ,DCSJ,CJGZRQ,BZQK,SJTRYBZ,GZZT,PXLB,SYQBZ,ZZMM,GWJB,JYJGDM,JYJGMC,SFNRQKYSPX,ZGXLDM,ZGXLMC,ZGXLBYSJ,ZGXLBYZSH,QKYSZCZSH,QKYSZCZSSJ,ZCZSH,ZCSJ,YSZP,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from JC_YHRYXXB where YLJGDM like ? and PCH like ?
12
12
12
93
select YLJGDM,JYJLLSH,BGRQ,JZLSH,KH,KLX,ZJHM,ZJLX,XM,XB,NL,SQYSGH,SQYSXM,BGYSGH,BGYSXM,SHYSGH,SHYSXM,DYRQ,SQSJ,CJSJ,JYRQ,SQKSBM,SQKSMC,BQMC,CH,BGBZ,BBDM,BBMC,BGDLBBM,BGDLBMC,YZLSH,YZXMDM,JLLB,ZYH,HZLXDM,DHHM,BFH,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from SY_JYJLB where YLJGDM like ? and PCH like ?
12
12
12
93
select YLJGDM,JYMXLSH,JYLSH,YZLSH,LCXMDM,BGRQ,JCRGH,JCRXM,SHRGH,SHRXM,JYLBDM,JYSFDM,JYSFYBDM,JYBZXMDM,JYXMDM,JYXMMC,LOINC,JYJGDM,JYJGDX,JYJGDL,JYJGLX,JYJLDW,SBLBBM,YQBH,YQMC,CKZFW,CKZSX,CKZXX,JGTS,DYXH,YZID,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from SY_JYJGZBB where YLJGDM like ? and PCH like ?
12
12
= ? AND CJRQ <= ?
]]>
12
93
93
select yljgdm,grbslx,grbsh,zjlx,zjhm,sfzhm,jkdabh,jkkkh,xb,xm,hzlx,hyzk,csrq,csd,mz,gj,dhhm,sjhm,gzdwyb,gzdwmc,gzdwdz,gzdwdhhm,jzdz,hkdz,hkdzyb,lxrxm,lxrgx,lxrdz,lxryb,lxrdh,cjgzrq,dzyjdz,lxdh_lbdm,lxdh_lb,nls,nly,mj,xgbz,tbrq,crt_tm_zdsc from tb_hzxx WHERE 1=2
//yljgdm,grbslx,grbsh,zjlx,zjhm,sfzhm,jkdabh,jkkkh,xb,xm,hzlx,hyzk,csrq,csd,mz,gj,dhhm,sjhm,gzdwyb,gzdwmc,gzdwdz,gzdwdhhm,jzdz,hkdz,hkdzyb,lxrxm,lxrgx,lxrdz,lxryb,lxrdh,cjgzrq,dzyjdz,lxdh_lbdm,lxdh_lb,nls,nly,mj,xgbz,tbrq,crt_tm_zdsc
select yljgdm,ghjlid,jzlsh,grbslx,grbsh,gthbz,stfbh,gthsj,ghlb,sfjz,jzxz,ghtjbm,bxlx,ksbm,ksmc,lcyxlxdm,ghysbh,ghysxm,txbz,wdbz,ghzfy,xgbz,crt_tm_zdsc from tb_mz_ghmxb WHERE 1=2
//yljgdm,ghjlid,jzlsh,grbslx,grbsh,gthbz,stfbh,gthsj,ghlb,sfjz,jzxz,ghtjbm,bxlx,ksbm,ksmc,lcyxlxdm,ghysbh,ghysxm,txbz,wdbz,ghzfy,xgbz,crt_tm_zdsc
select yljgdm,jzmxid,grbslx,grbsh,jzlsh,sffz,lcyxlxdm,mjzh,hzxm,hzsx,jzlx,sfjz,jzxz,jzksbm,jzksmc,jzksrq,jzsj,wcjzsj,zzysbh,zzysxm,mzzddm,mzzdmc,zxdm,zxmc,zfmc,bmlx,jzzdsm,zs,mzzzmc,mzzzzddm,lggc,zzms,fbrqsj,ssy,szy,tw,zzcxsj,xgbz,mj,crt_tm_zdsc from TB_MZ_JZMXB WHERE 1=2
//yljgdm,jzmxid,grbslx,grbsh,jzlsh,sffz,lcyxlxdm,mjzh,hzxm,hzsx,jzlx,sfjz,jzxz,jzksbm,jzksmc,jzksrq,jzsj,wcjzsj,zzysbh,zzysxm,mzzddm,mzzdmc,zxdm,zxmc,zfmc,bmlx,jzzdsm,zs,mzzzmc,mzzzzddm,lggc,zzms,fbrqsj,ssy,szy,tw,zzcxsj,xgbz,mj,crt_tm_zdsc
= ?
AND JJRQ <= ?
AND B.JZLX = 'M'
AND B.JZZT != 'T'
AND B.JZZT != 'F'
]]>
12
93
93
select
PKEY,HZPKEY,JZPKEY,CARDPKEY,JBLX,JBBM,JBMC,JBZS,JZZT,FBSJ,JZSJ,ZYZX,SFZZD,XH,CJR,CJRQ,JGID,YBJBBM,YBJBMC,ZDYS,ZDLX,ZDJB,ZDKS,YBZHBM,YBZHMC,YBJBLX
from HIS_JZ_MZZD where JGID=? AND (SFZZD='0' OR SFZZD IS NULL) order by
sfzzd desc,xh
12
select yljgdm,cfzid,jzlsh,grbslx,grbsh,mjzh,cfdl,cflx,cfhm,kfksdm,kfksmc,kfysbh,kfysxm,kfsj,hzbsh,hzxm,hzxbdm,hzxb,hznl,hztz,fylx,xyzddm,xyzdmc,zybmdm,zybmmc,zyzhdm,zyzhmc,cfje,cfyxts,cfbzxx,zzzf,wdbgjgmc,wdbgjgdz,cfshyjsbh,cfshyjsqm,cftpyjsbh,cftpyjsqm,cffyyjsbh,cffyyjsqm,cfhdyjsbh,cfhdyjsqm,zyypjsj,zyjzpc,zyypjzf,zyypff,zyyyff,zyypcf,bz,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
from TB_MZ_CFZB WHERE 1=2
//yljgdm,cfzid,jzlsh,grbslx,grbsh,mjzh,cfdl,cflx,cfhm,kfksdm,kfksmc,kfysbh,kfysxm,kfsj,hzbsh,hzxm,hzxbdm,hzxb,hznl,hztz,fylx,xyzddm,xyzdmc,zybmdm,zybmmc,zyzhdm,zyzhmc,cfje,cfyxts,cfbzxx,zzzf,wdbgjgmc,wdbgjgdz,cfshyjsbh,cfshyjsqm,cftpyjsbh,cftpyjsqm,cffyyjsbh,cffyyjsqm,cfhdyjsbh,cfhdyjsqm,zyypjsj,zyjzpc,zyypjzf,zyypff,zyyyff,zyypcf,bz,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
= ? AND a.CJRQ <= ? and b.JZLX = 'M' group by a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL
]]>
12
93
93
=?
AND a.CJRQ <= ? and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,e.GG,a.YZPC,a.YZJLDW,a.YPYZJBDW,a.YZJL,a.YZSL,a.YZSFZT,a.YZCXBZ,f.VALUE1
]]>
12
93
93
= ? AND a.CJRQ <= ? and a.YZLX = '5' and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0' and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,
a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC,a.CJRQ
]]>
12
93
93
select yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,cfyzxh,cfyzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,jxdm,ypgg,yytjdm,sypcdm,yypc,sycjl,syjldw,syzjl,zyyyff,fysl,fysldw,yyts,ywlx,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,bz,mj,xgbz,crt_tm_zdsc from TB_MZ_YPCFMXB WHERE 1=2
//yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,cfyzxh,cfyzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,jxdm,ypgg,yytjdm,sypcdm,yypc,sycjl,syjldw,syzjl,zyyyff,fysl,fysldw,yyts,ywlx,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,bz,mj,xgbz,crt_tm_zdsc
select yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,yzxh,yzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,zxpl,cjfx,cjbb,jcbw,mzfs,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,wsfwyq,qtyxcz,zzbz,jkwtpg,jzjgmc,zwt,czjh,kfcszd,bz,mj,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc from TB_MZ_QTCFMX WHERE 1=2
//yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,yzxh,yzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,zxpl,cjfx,cjbb,jcbw,mzfs,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,wsfwyq,qtyxcz,zzbz,jkwtpg,jzjgmc,zwt,czjh,kfcszd,bz,mj,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
select yljgdm,sfmxid,grbslx,grbsh,jzlsh,btfmxid,tfbz,sfcjbm,yzmxid,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,mxxmbm,mxxmmc,mxxmdw,mxxmdj,xmflbm,xmflmc,mxxmsl,mxxmysje,mxxmssje,crt_tm_zdsc,xgbz from TB_MZ_SFMXB WHERE 1=2
//yljgdm,sfmxid,grbslx,grbsh,jzlsh,btfmxid,tfbz,sfcjbm,yzmxid,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,mxxmbm,mxxmmc,mxxmdw,mxxmdj,xmflbm,xmflmc,mxxmsl,mxxmysje,mxxmssje,crt_tm_zdsc,xgbz
= ? AND a.CJRQ <= ?
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'M' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL
]]>
12
93
93
select yljgdm,jsjlid,grbslx,grbsh,jzlsh,jsfph,sfcjbm,jlsfzt,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_MZ_JSMXB WHERE 1=2
//yljgdm,jsjlid,grbslx,grbsh,jzlsh,jsfph,sfcjbm,jlsfzt,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc
= ? AND a.CJRQ <= ?
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'M' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL group by e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY
,f.FPHM
]]>
12
93
93
select yljgdm,zffsjlid,grbslx,grbsh,jzlsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_MZ_JSZFFSMXB WHERE 1=2
//yljgdm,zffsjlid,grbslx,grbsh,jzlsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc
= ? AND a.CJRQ <= ? and (a.SFZT = '1' or a.SFZT = '3') and (a.PJLX = 'MG' OR a.PJLX = 'MS') and b.PKEY is not null
]]>
12
93
93
select yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc from TB_MZ_ZDMXB WHERE 1=2
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
= ? and a.JJRQ <= ? AND a.JZLX = 'M' AND a.JZZT = 'J' and b.PKEY IS NOT NULL
]]>
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
12
93
93
select yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc from TB_ZY_RYDJMXB WHERE 1=2
//yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc
= ? and a.JJRQ <= ? AND a.JZLX = 'Z' AND (a.JZZT = 'Z' OR a.JZZT = 'C') AND a.MOTHERJZPKEY is null
]]>
//yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc
12
93
93
select yljgdm,yzzid,grbslx,grbsh,jzlsh,cfdl,cxbz,yzxq,djbh,hzxm,hzxb,hznl,hzks,hzbq,hzbsh,xdksbm,xdksmc,yzxdysbh,yzxdysxm,yzxdsj,qtyxcz,zzbz,jkwtpg,czjh,zyfa,kfcszd,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_YZZB WHERE 1=2
//yljgdm,yzzid,grbslx,grbsh,jzlsh,cfdl,cxbz,yzxq,djbh,hzxm,hzxb,hznl,hzks,hzbq,hzbsh,xdksbm,xdksmc,yzxdysbh,yzxdysxm,yzxdsj,qtyxcz,zzbz,jkwtpg,czjh,zyfa,kfcszd,bz,mj,xgbz,crt_tm_zdsc
= ? and b.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,c.XM,c.XB,c.NL,b.JJKS,b.WARD,a.YZZT,a.YZCL
,a.YZSHRQ,b.ZYNO
]]>
12
93
93
select yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,ypgg,yzyf,yzpd,mcsyjl,mcsyjldw,mcsl,mcdw,fysl,fysldw,yyts,sfpb,zyjzf,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_YPYZMX WHERE 1=2
//yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,ypgg,yzyf,yzpd,mcsyjl,mcsyjldw,mcsl,mcdw,fysl,fysldw,yyts,sfpb,zyjzf,bz,mj,xgbz,crt_tm_zdsc
= ? and a.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB in ('01','02','03')
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.YZENDJDHS,a.YZENDJDSJ
]]>
12
93
93
select yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,
zlxmlbbm,zxpl,cjfx,cjbb,jcbw,mzfs,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_QTYZMX WHERE 1=2
//yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,zxpl,cjfx,cjbb,jcbw,mzfs,bz,mj,xgbz,crt_tm_zdsc
= ? and a.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB NOT in ('01','02','03')
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.CJRQ,a.YZENDJDHS,a.YZENDJDSJ
]]>
12
93
93
select yljgdm,sfmxid,jzlsh,grbslx,grbsh,tfbz,yzmxid,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,mxxmbm,mxxmmc,xmflbm,xmflmc,
mxxmdw,mxxmdj,mxxmsl,mxxmysje,mxxmssje,llbz,crt_tm_zdsc,xgbz from TB_ZY_SFMXB WHERE 1=2
//yljgdm,sfmxid,jzlsh,grbslx,grbsh,tfbz,yzmxid,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,mxxmbm,mxxmmc,xmflbm,xmflmc,mxxmdw,mxxmdj,mxxmsl,mxxmysje,mxxmssje,llbz,crt_tm_zdsc,xgbz
select yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,
yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc from TB_ZY_CYDJMXB WHERE 1=2
//yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc
= ? AND a.CJRQ <= ? AND a.JZLX = 'Z' AND a.JZZT = 'C' AND a.MOTHERJZPKEY is null AND c.PKEY IS NOT NULL GROUP BY a.PKEY,a.HZPKEY,a.JZZT,c.PKEY,c.DSCG_DEPT_CODG,c.ATDDR_NO,b.SSLCLJ,c.ENDTIME,a.RYQK,b.YYGRQK,
a.ISLG,c.DJCXZT
]]>
//yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc
12
93
93
select yljgdm,jsjlid,zyjzlsh,grbslx,grbsh,jlsfzt,jsfph,sfcjbm,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_ZY_JSMXB WHERE 1=2
//yljgdm,jsjlid,zyjzlsh,grbslx,grbsh,jlsfzt,jsfph,sfcjbm,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc
=? AND a.CJRQ <= ?
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'Z' AND c.MOTHERJZPKEY is null and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL group by e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY,f.FPHM
]]>
12
93
93
select yljgdm,zffsjlid,zyjzlsh,grbslx,grbsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_ZY_JSZFFSMXB WHERE 1=2
//yljgdm,zffsjlid,zyjzlsh,grbslx,grbsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc
? and CJRQ <=?]]>
GHZT
PKEY
JZPKEY
HZPKEY
JGID
12
93
93
=? AND a.CJRQ <= ? and (a.SFZT = '1' or a.SFZT = '3') and a.PJLX = 'ZS' and b.PKEY is not null
]]>
12
93
93
select yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc from TB_ZY_ZDMXB WHERE 1=2
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
=? AND a.CJRQ <= ? AND a.JZLX = 'Z' AND (a.JZZT = 'Z' or a.JZZT = 'C' ) and b.PKEY IS NOT NULL AND a.MOTHERJZPKEY is null
]]>
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
12
93
93
= ? AND a.CJRQ <= ?
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'Z' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL
]]>
12
93
93