select BM,MC,JB,PYM,WBM,SJBM,BZ,ZT from MAIN_XZQH order by bm
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.040.00' and zt=1 order by XH asc,BH asc
select BH,MC,PYM,WBM from MAIN_ZDB where ZDZB_BH='DE02.01.040.00' and zt=1
union select '-1','全部','QB','WGUK' from dual
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000005' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000004' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000006' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000007' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000008' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000012' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100008' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='101016' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='GBT12402.2000' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='WS218.2002' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE08.10.012.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='GBT12404.1997' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='CCV2299.03' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='CCV2299.04' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000001' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000002' and zt=1 order by XH asc,BH asc
select BH,MC,PYM,WBM from MAIN_ZDB where ZDZB_BH='000002' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100009' and zt=1 order by XH asc,BH asc
select DPTGPID,DPTGPCODE,DPTGPNAME,DPTDPTGPRMARK,CJR,CJRQ,XGR,XGRQ,JGID,DPTGPFLAG from MAIN_KSZ where JGID=? and DPTGPFLAG='1'
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG,SCRQ,SCR,ISMZ,ISJZ,ISZY,ISTJ,DPTYBMC,ITRO,DEPT_RESPER_NAME,DEPT_RESPER_TEL,DEPT_MED_SERV_SCP,DEPT_ESTBDAT,APRV_BED_CNT,HI_CRTF_BED_CNT,DR_PSNCNT,PHAR_PSNCNT,NURS_PSNCNT,TECN_PSNCNT,YBSCFLAG,ISLIS from MAIN_KS where JGID=?
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? and DPTFLAG='1' and DPTTYPE like ? and (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?)
12
12
12
12
12
select a.EMPID,b.YBUSERNAME,b.USERACCOUNT,b.NAME,b.SEX,b.PYM,a.YBID,a.YBNAME,b.TITLE,b.PHONE_NUM,a.YSZGZH,a.YSZGXM,b.IDENTITYID
from MAIN_JGYH a
left join MAIN_YHXX b on a.EMPID=b.EMPID where a.JGID=? and a.EFFICET='0' and b.NAME=?
12
12
select a.EMPID,b.YBUSERNAME,b.USERACCOUNT,b.NAME,b.SEX,b.PYM,a.YBID,a.YBNAME,b.TITLE,b.PHONE_NUM,a.YSZGZH,a.YSZGXM,b.IDENTITYID from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID where a.JGID=? and nvl(b.USERACCOUNT,' ') !=' ' and a.EFFICET='0'
12
select b.USERACCOUNT,b.NAME,b.SEX,b.PYM,d.DPTID,d.DPTNAME,b.YBUSERNAME,a.YBID,a.YBNAME from MAIN_JGYH a
left join MAIN_YHXX b on a.EMPID=b.EMPID
left join MAIN_YHGLKS c on a.JGID=c.JGID and a.EMPID=c.EMPID and c.SCBZ='0'
left join MAIN_KS d on c.JGID=d.JGID and c.KSBM=d.DPTID
where a.JGID=? and a.EFFICET='0' and c.KSBM like ? and d.DPTTYPE like ? and (b.USERACCOUNT like ? or b.NAME like ? or b.PYM like ?)
12
12
12
12
12
12
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100159' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000013' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000014' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000015' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000016' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000017' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000018' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000019' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000020' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000021' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000023' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.015.00' and zt=1 order by XH asc,BH asc
SELECT CODE,CNAME FROM MAIN_REGION
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.025.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='RC002' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='RC033' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.052.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='RC003' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='RC036' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='RC004' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100016' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='100017' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000004' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.041.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.049.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='DE02.01.037.00' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='GBT8561.2001' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='CV05.10.024' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='Z00007' and zt=1 order by XH asc,BH asc
select distinct b.USERACCOUNT,b.NAME,b.SEX,b.PYM from MAIN_JGYH a
left join MAIN_YHXX b on a.EMPID=b.EMPID
left join MAIN_YHGLKS c on a.JGID=c.JGID and a.EMPID=c.EMPID and c.SCBZ='0'
left join MAIN_KS d on c.JGID=d.JGID and c.KSBM=d.DPTID
where a.JGID=? and a.EFFICET='0' and c.KSBM like ? and d.DPTTYPE like ? and (b.USERACCOUNT like ? or b.NAME like ? or b.PYM like ?)
12
12
12
12
12
12
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000024' and zt='1' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='CVA08.50.009' and zt='1' order by XH asc,BH asc
select PKEY,TYSHXYDM,ZZJGBM,JGMC,DEMC,WSJGDM,XZQHDM,ADDR0,ADDR1,ADDR2,ADDR3,ADDR4,MPHM,JJLXDM,WSJGLBDM,JGFLGLDM,JGCLRQ,YZBM,LXDH,JGFZRXM,JGFZRLXDH,DWLSGXDM,YYDJDCDM,YYDJJBDM,SFYBDDYLJG,SJPKEY,LICENCE,ZT,QYJM from MAIN_YLJG order by XZQHDM,SJPKEY
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000026' and zt='1' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000027' and zt='1' order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000028' and zt=1 order by XH asc,BH asc
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000016' and zt=1 order by XH asc,BH asc
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? and DPTFLAG=1 order by DPTCODE
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? order by DPTCODE
12
select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='CFDP01' and zt=1 order by XH asc,BH asc
SELECT
a.USERID,
a.MRKS,
a.JGID,
a.EFFICET,
a.SFZYYS,
a.DUTY,
a.SFZYHS,
a.SFMZYS,
a.EMPID,
a.SFCFQ,
a.BDZH,
a.SFMZSFY,
a.SFZYSFY,
a.YBUSERNAME,
a.YBPASSWORD,
a.SFKXQYBL,
a.SFZYZHQ,
a.KSSYSJB,
a.FZLYYSJB,
a.SFJB,
a.CJR,
a.CJRQ,
a.XGR,
a.XGRQ,
a.YHQXBS,
a.YSJB,
a.YBID,
a.YBNAME,
a.PKEY,
a.HIE_USERNAME,
a.HIE_PASSWORD,
a.PAY_ZDBB_PKEY,
a.YSZGZH,
a.YSZGXM,
a.SFDMCFQ,
a.SFJSLCFQ
FROM
MAIN_JGYH a
LEFT JOIN MAIN_YHXX b ON
a.JGID = b.GLJG
AND a.EMPID = b.EMPID
WHERE
b.GLJG =?
AND b.USERACCOUNT =?
//USERID,MRKS,JGID,EFFICET,SFZYYS,DUTY,SFZYHS,SFMZYS,EMPID,SFCFQ,BDZH,SFMZSFY,SFZYSFY,YBUSERNAME,YBPASSWORD,SFKXQYBL,SFZYZHQ,KSSYSJB,FZLYYSJB,SFJB,CJR,CJRQ,XGR,XGRQ,YHQXBS,YSJB,YBID,YBNAME,PKEY,HIE_USERNAME,HIE_PASSWORD,PAY_ZDBB_PKEY,YSZGZH,YSZGXM,SFDMCFQ,SFJSLCFQ
12
12