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,B.JGMC,A.PKEY,a.HIE_USERNAME,a.HIE_PASSWORD from MAIN_JGYH A left join MAIN_YLJG B on A.JGID = B.pkey where A.EMPID=?
12
select PKEY,CLASSNAME,LOG,LOGIP,CJR,CJRQ,JGID,TABLENAME,DMLTYPE,TRANSSTATE,SUCCESSSTATE from MAIN_LOG where 1=2
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,JKPTJGBM,HIE_API_URL,HIE_APP_KEY from MAIN_YLJG
select EMPID,NAME,SEX,PYM,BIRTHDAY,JLJG,GLJG,IDTYPE,IDENTITYID,USERACCOUNT,USERPASSWORD,UPLOADFLAG,TITLE,PHOTO,MEMO,EDUCATION,PHONE_NUM,EMAIL,SIGNIMG,SPECIALTY,PROFILE,SPECIALITY,CERTIFICATE,CJR,CJRQ,XGR,XGRQ,NATIONALITY,MRDLJG,DLJG,YBUSERNAME,MZ,MRDLKS from MAIN_YHXX where USERACCOUNT = ?
12
select CRB_JGBM,CRB_JGMC,CRB_TOKEN,CRB_USER,CRB_PASSWORD,CRB_URL,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,SYSCOMPERFLAG from MAIN_YLJG where pkey=?
12
Select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT from MAIN_FUNCTION
select a.ID,a.FZID,a.YHID,a.JGID,b.FZBM from MAIN_YHZ a
left join MAIN_JGQXZ b on a.JGID=b.JGID and a.FZID=b.ID
where a.YHID=? and a.JGID=?
12
12
select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT,SYSFUN_ISGZGN from MAIN_FUNCTION where SysFun_Status=0 and SYSFUN_FLAG=0 ORDER BY SysFun_Ser,SYSFUNNUMBER ASC
select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT,SYSFUN_ISGZGN from MAIN_FUNCTION where SysFun_Status=0 and SYSFUNNUMBER like ? and SYSFUN_FLAG >= 1 ORDER BY SYSFUNNUMBER ASC
12
select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT,SYSFUN_ISGZGN from MAIN_FUNCTION where SYSFUN_ISGZGN='1' and SysFun_Status=0 and SYSFUNNUMBER like ? and SYSFUN_FLAG = 3 ORDER BY SYSFUNNUMBER ASC
12
select distinct Main_Function.SysFunNumber,Main_Function.SysFunName_Cn,
Main_Function.SysFun_Parent,Main_Function.SysFun_Flag,
0 as SysFun_LookValue,0 as SysFun_AddValue,0 as SysFun_EditValue,
0 as SysFun_DeleteValue,0 as SysFun_PostValue,0 as SysFun_AmountValue,
0 as SysFun_PrintValue,0 as SysFun_SelectValue,0 as SysFun_AuditValue,
0 as SysFun_ReturnValue,0 as SysFun_HelpValue,0 as SysFun_SpacValue1,
0 as SysFun_SpacValue2,0 as SysFun_SpacValue3,0 as SysFun_SpacValue4,
0 as SysFun_SpacValue5
from MAIN_YHCDQX
inner join Main_Function on MAIN_YHCDQX.CDBM=Main_Function.SysFunNumber
where MAIN_YHCDQX.QXLB=0
and Main_Function.SysFun_Status=0 and MAIN_YHCDQX.TrueID=null
order by Main_Function.SysFunNumber
select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT from Main_Function where JGID=? ORDER BY SYSFUNNUMBER,SYSFUN_SER ASC
12
select distinct d.SysFunNumber,d.SysFunName_Cn,d.SysFun_Parent,d.SysFun_Flag from MAIN_YHZCDQX a inner join MAIN_YHZCD b on a.CDZ=b.ID inner join MAIN_YHCDQX c on c.TrueID=b.ID inner join Main_Function d on c.CDBM=d.SysFunNumber where c.QXLB=1 and b.ZT=0 and d.SysFun_Status=0 and a.JGID=? order by d.SysFunNumber
12
select ID,MKBM,YHID,QXLB,CJR,CJRQ,
XGR,XGRQ,JGID,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,
SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,
SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,
SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,
SYSFUN_SPACVALUE5
from MAIN_YHQX
where YHID=? and QXLB=? and JGID=?
12
12
12
select a.KSBM,b.DPTZJM,b.DPTID,b.DPTNAME KSMC,b.DPTTYPE,b.DPTGPID from MAIN_YHGLKS a left join MAIN_KS b on a.JGID=b.JGID and a.KSBM=b.DPTID where a.JGID=? and a.EMPID=? and a.SCBZ=0 order by DPTTYPE,KSMC
12
12
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 from MAIN_YLJG where SJPKEY=? order by JGMC
12
select JT,FT,SP,SW,QP,QW from WBPYBM
select A.ID,A.YHID,A.QXLB,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SYSFUN_LOOKVALUE,A.SYSFUN_ADDVALUE,A.SYSFUN_EDITVALUE,A.SYSFUN_DELETEVALUE,A.SYSFUN_POSTVALUE,A.SYSFUN_AMOUNTVALUE,A.SYSFUN_PRINTVALUE,A.SYSFUN_SELECTVALUE,A.SYSFUN_AUDITVALUE,A.SYSFUN_RETURNVALUE,A.SYSFUN_HELPVALUE,A.SYSFUN_SPACVALUE1,A.SYSFUN_SPACVALUE2,A.SYSFUN_SPACVALUE3,A.SYSFUN_SPACVALUE4,A.SYSFUN_SPACVALUE5,temptable.SYSFUNNUMBER,temptable.SYSFUNNAME_CN,temptable.SYSFUN_PARENT,temptable.SYSFUN_FLAG from MAIN_YHQX A
inner join (select distinct Main_Function.SysFunNumber,
Main_Function.SysFunName_Cn,Main_Function.SysFun_Parent,Main_Function.SysFun_Flag
from MAIN_YHCDQX
inner join Main_Function on MAIN_YHCDQX.CDBM=Main_Function.SysFunNumber
where MAIN_YHCDQX.QXLB='0'
and Main_Function.SysFun_Status=0
and MAIN_YHCDQX.TRUEID=?
) temptable
on A.MKBM=temptable.SysFunNumber
where A.JGID=?
and A.YHID=?
and A.QXLB='0'
and A.SysFun_LookValue=1
order by temptable.SysFunNumber
12
12
12
select A.ID,A.YHID,A.QXLB,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SYSFUN_LOOKVALUE,A.SYSFUN_ADDVALUE,A.SYSFUN_EDITVALUE,A.SYSFUN_DELETEVALUE,A.SYSFUN_POSTVALUE,A.SYSFUN_AMOUNTVALUE,A.SYSFUN_PRINTVALUE,A.SYSFUN_SELECTVALUE,A.SYSFUN_AUDITVALUE,A.SYSFUN_RETURNVALUE,A.SYSFUN_HELPVALUE,A.SYSFUN_SPACVALUE1,A.SYSFUN_SPACVALUE2,A.SYSFUN_SPACVALUE3,A.SYSFUN_SPACVALUE4,A.SYSFUN_SPACVALUE5,temptable.SYSFUNNUMBER,temptable.SYSFUNNAME_CN,temptable.SYSFUN_PARENT,temptable.SYSFUN_FLAG from MAIN_YHQX A
inner join (
select distinct Main_Function.SysFunNumber,
Main_Function.SysFunName_Cn,Main_Function.SysFun_Parent,Main_Function.SysFun_Flag
from MAIN_YHZCDQX
inner join MAIN_YHZCD on MAIN_YHZCDQX.CDZ=MAIN_YHZCD.ID
inner join MAIN_YHCDQX on MAIN_YHCDQX.TRUEID=MAIN_YHZCD.ID
inner join Main_Function on
MAIN_YHCDQX.CDBM=Main_Function.SysFunNumber
where MAIN_YHCDQX.QXLB='1' and MAIN_YHZCD.ZT='0'
and Main_Function.SysFun_Status=0 and MAIN_YHZCDQX.JGID=?
) temptable
on A.MKBM=temptable.SysFunNumber
where A.JGID=?
and A.YHID=?
and A.QXLB='0'
and A.SysFun_LookValue=1
order by temptable.SysFunNumber
12
12
12
select A.ID,A.YHID,A.QXLB,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SYSFUN_LOOKVALUE,A.SYSFUN_ADDVALUE,A.SYSFUN_EDITVALUE,A.SYSFUN_DELETEVALUE,A.SYSFUN_POSTVALUE,A.SYSFUN_AMOUNTVALUE,A.SYSFUN_PRINTVALUE,A.SYSFUN_SELECTVALUE,A.SYSFUN_AUDITVALUE,A.SYSFUN_RETURNVALUE,A.SYSFUN_HELPVALUE,A.SYSFUN_SPACVALUE1,A.SYSFUN_SPACVALUE2,A.SYSFUN_SPACVALUE3,A.SYSFUN_SPACVALUE4,A.SYSFUN_SPACVALUE5,temptable.SYSFUNNUMBER,temptable.SYSFUNNAME_CN,temptable.SYSFUN_PARENT,temptable.SYSFUN_FLAG
from MAIN_YHZ
inner join MAIN_JGQXZ on MAIN_YHZ.FZID=MAIN_JGQXZ.ID
inner join MAIN_YHQX A on A.YHID=MAIN_JGQXZ.ID
inner join (
select distinct Main_Function.SysFunNumber,Main_Function.SysFunName_Cn,Main_Function.SysFun_Parent,
Main_Function.SysFun_Flag
from MAIN_YHCDQX
inner join Main_Function on
MAIN_YHCDQX.CDBM=Main_Function.SysFunNumber
where MAIN_YHCDQX.QXLB='0' and Main_Function.SysFun_Status=0 and MAIN_YHCDQX.TRUEID=? ) temptable
on A.MKBM=temptable.SysFunNumber
where MAIN_YHZ.JGID=MAIN_JGQXZ.JGID
and A.JGID=MAIN_JGQXZ.JGID
and MAIN_YHZ.JGID=?
and MAIN_YHZ.YHID=?
and MAIN_JGQXZ.ZT='0'
and A.QXLB='1'
and A.SysFun_LookValue=1
order by temptable.SysFunNumber
12
12
12
select A.ID,A.YHID,A.QXLB,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SYSFUN_LOOKVALUE,A.SYSFUN_ADDVALUE,A.SYSFUN_EDITVALUE,A.SYSFUN_DELETEVALUE,A.SYSFUN_POSTVALUE,A.SYSFUN_AMOUNTVALUE,A.SYSFUN_PRINTVALUE,A.SYSFUN_SELECTVALUE,A.SYSFUN_AUDITVALUE,A.SYSFUN_RETURNVALUE,A.SYSFUN_HELPVALUE,A.SYSFUN_SPACVALUE1,A.SYSFUN_SPACVALUE2,A.SYSFUN_SPACVALUE3,A.SYSFUN_SPACVALUE4,A.SYSFUN_SPACVALUE5,temptable.SYSFUNNUMBER,temptable.SYSFUNNAME_CN,temptable.SYSFUN_PARENT,temptable.SYSFUN_FLAG
from MAIN_YHZ
inner join MAIN_JGQXZ on MAIN_YHZ.FZID=MAIN_JGQXZ.ID
inner join MAIN_YHQX A on A.YHID=MAIN_JGQXZ.ID
inner join (
select distinct Main_Function.SysFunNumber,
Main_Function.SysFunName_Cn,Main_Function.SysFun_Parent,Main_Function.SysFun_Flag
from MAIN_YHZCDQX
inner join MAIN_YHZCD on MAIN_YHZCDQX.CDZ=MAIN_YHZCD.ID
inner join MAIN_YHCDQX on MAIN_YHCDQX.TRUEID=MAIN_YHZCD.ID
inner join Main_Function on MAIN_YHCDQX.CDBM=Main_Function.SysFunNumber
where MAIN_YHCDQX.QXLB='1'
and MAIN_YHZCD.ZT='0'
and Main_Function.SysFun_Status='0' and MAIN_YHZCDQX.JGID=?
) temptable on A.MKBM=temptable.SysFunNumber
where MAIN_YHZ.JGID=MAIN_JGQXZ.JGID
and A.JGID=MAIN_JGQXZ.JGID
and MAIN_YHZ.JGID=?
and MAIN_YHZ.YHID=?
and MAIN_JGQXZ.ZT='0'
and A.QXLB='1'
and A.SysFun_LookValue=1
order by temptable.SysFunNumber
12
12
12
select PKEY,YSIP,MDIP,FILESERVER,ZT,CJR,CJRQ,XGR,XGRQ,LOCKFLAG from MAIN_FILESERVER where ZT='1'
select 0 js,0 isdelete,FUNCTIONID,FUNCTIONTYPE,CANDELETE,ISFIXED,NAME,ICON,QZ,USERACCOUNT,JGID,LASTUSERTIME,LASTLOCATION,LASTUSERIP from MAIN_OPERATION where JGID=? and useraccount = ? order by ISFIXED desc,qz desc
FUNCTIONID
USERACCOUNT
JGID
12
12
select FUNCTIONID,USERACCOUNT,JGID,ISFIXED,NAME,ICON,QZ from MAIN_OPERATIONCACHE where useraccount = ? and JGID=? order by isfixed desc,qz desc
FUNCTIONID
USERACCOUNT
JGID
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '0' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '1' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '2' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '3' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '4' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '5' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '6' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '7' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '8' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
select PKEY,TYPE,GJZ,QZ,JGID,USERACCOUNT from MAIN_MEMORY where type = '9' and JGID = ? and USERACCOUNT = ? order by QZ desc
12
12
Select BILL_ID,BILL_UPDATE,BILL_RESERVED,BILL_FUNNUMBER,JGID,BILL_TYPE,BILL_NAME,CJR,CJRQ,XGR,XGRQ from MAIN_BILLNO where BILL_FUNNUMBER=? and JGID=?
12
12
select PKEY,ZYYFPKEY,GLKSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_YFFY_ZYYF_GLKS where JGID=? and ZYYFPKEY=? order by CJRQ
PKEY
ZYYFPKEY
GLKSPKEY
JGID
12
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 (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?) and DPTFLAG=1 order by DPTCODE
12
12
12
12
select PKEY,PRINTTYPE,SFQY,CJR,CJRQ,JGID,'' printxh from MAIN_PRINT_TYPE where JGID=? order by pkey
12
select BILLDE_ID,BILLMA_ID,BILLDE_TYPE,BILLDE_VALUE,JGID from MAIN_BILLDETAILNO where BillMa_ID=? and JGID=? order by BILLDE_ID
12
12
select JGID,JGZDLB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT,VALUE3,VALUE4,VALUE5 from MAIN_JGZDB where JGID=? and JGZDLB_BH=? order by BH asc,xh
12
12
select JGID,JGZDLB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT,VALUE3,VALUE4,VALUE5 from MAIN_JGZDB where ZT='1' and JGID=? and JGZDLB_BH=? and (BH like ? or upper(MC) like ? or PYM like ? or WBM like ?) order by XH asc,BH asc
12
12
12
12
12
12
select JGID,BH,MC,BZ from MAIN_JGZDLB where JGID=? and BH like ?
12
12
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,SYSCOMPERFLAG from MAIN_YLJG where pkey = ? or SJPKEY=? order by SJPKEY desc,pkey
12
12
select SEQID,CURVAL from WATSEQUENCE where SEQID=?
12
select JGID,CSLX_BM,LB,CSZ,BZ from MAIN_JGCS where JGID=? and LB=? and CSLX_BM like ?
12
12
12
select BH,MC,PYM,WBM from MAIN_ZDB where ZT='1' and ZDZB_BH=? and (BH like ? or MC like ? or PYM like ? or WBM like ?) order by XH asc,BH asc
12
12
12
12
12
select RKEY,CODE,CNAME,RGLEVEL,SUPERRG,REMARK,CJR,CJRQ,SCBZ,PYM from MAIN_REGION where RGLEVEL='0' ORDER BY CODE
select RKEY,CODE,CNAME,RGLEVEL,SUPERRG,REMARK,CJR,CJRQ,SCBZ,PYM from MAIN_REGION where RGLEVEL='1' and superrg=? ORDER BY CODE
12
select RKEY,CODE,CNAME,RGLEVEL,SUPERRG,REMARK,CJR,CJRQ,SCBZ,PYM from MAIN_REGION where RGLEVEL='2' and superrg=? ORDER BY CODE
12
select SOURCE,TARGET,LOCKFLAG from MAIN_LANGUAGECONVERSION order by source
select SOURCE,TARGET,LOCKFLAG from MAIN_LANGUAGECONVERSION order by source
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,PYM,WBM,ZT from MAIN_YLJG where ZT='1' and (JGMC like ? or DEMC like ? or PYM like ? or WBM like ? ) order by XZQHDM,SJPKEY
12
12
12
12
select EMPID,NAME from MAIN_YHXX
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,B.JGMC,A.PKEY,a.HIE_USERNAME,a.HIE_PASSWORD,a.PAY_ZDBB_PKEY,a.SFDMCFQ,a.SFJSLCFQ from MAIN_JGYH A left join MAIN_YLJG B on A.JGID = B.pkey where A.EMPID=?
12
select BH,MC,PYM,WBM from MAIN_ZDB where ZDZB_BH='101000' and (BH like ? or upper(MC) like ? or PYM like ? or WBM like ?) order by XH asc,BH asc
12
12
12
12
select BH,MC,PYM,WBM from MAIN_ZDB where ZDZB_BH='101016' and (BH like ? or upper(MC) like ? or PYM like ? or WBM like ?) order by XH asc,BH asc
12
12
12
12
select BH,MC,PYM,WBM from MAIN_ZDB where ZDZB_BH='101019' and (BH like ? or MC like ? or PYM like ? or WBM like ?) order by XH asc,BH asc
12
12
12
12
select JGID,CSLX_BM,USERACCOUNT,CSZ,BZ from MAIN_JGRYCS where JGID=? and USERACCOUNT=? and CSLX_BM like ?
12
12
12
select PKEY,ZYYFPKEY,GLKSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_YFFY_ZYYF_GLKS where JGID=? and GLKSPKEY=? order by CJRQ
PKEY
ZYYFPKEY
GLKSPKEY
JGID
12
12
select JGID,JGZDLB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT,VALUE3,VALUE4,VALUE5 from MAIN_JGZDB where JGID=? and JGZDLB_BH='Z00002' and (VALUE2 ='01' or VALUE2 ='02' or VALUE2='03') order by XH asc,BH asc
12
select SYSFUNID,SYSFUNNUMBER,SYSFUNNAME_CN,SYSFUNDESC_CN,SYSFUN_SER,SYSFUN_REMARK,SYSFUN_FLAG,SYSFUN_STATUS,SYSFUN_DIFF,CJR,CJRQ,XGR,XGRQ,JGID,SYS_FUN_HELP,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5,SYSFUN_PARENT from main_function where SysFun_Parent=? and JGID=? and SysFun_Status=0 ORDER BY SYSFUNNUMBER ASC
12
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,ISMZ,ISJZ,ISZY,ISTJ,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG,SCRQ,SCR,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=? and DPTID=?
12
12
select PKEY,DESIGNADDR,REPORTADDR,CJR,CJRQ,XGR,XGRQ,LOCKFLAG from HIS_JIMUREPORT_SERVER
select JGID,ZDBH,QY,YSZ,YSZMC,DZZ,DZZMC,ZT from MAIN_TRANS where JGID=? and ZDBH like ? order by QY asc,YSZ asc
12
12
select JGID,ZDBH,QY,MRBM,MRMC,ZT from MAIN_TRANSMRZ where JGID=? and ZDBH like ? order by QY asc
12
12
select JGID,ZDBH,QY,YSZ,YSZMC,DZZ,DZZMC,ZT from MAIN_TRANS where ZT='1' and JGID=? and ZDBH=? and QY=? and YSZ=?
12
12
12
12
select JGID,ZDBH,QY,MRBM,MRMC,ZT from MAIN_TRANSMRZ where ZT='1' and JGID=? and ZDBH=? and QY=?
12
12
12
select JGID,JGZDLB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT,VALUE3,VALUE4,VALUE5 from MAIN_JGZDB where JGID=? and JGZDLB_BH=? and BH like ? order by BH asc,xh
12
12
12
select ID,MKBM,YHID,QXLB,CJR,CJRQ,XGR,XGRQ,JGID,SYSFUN_LOOKVALUE,SYSFUN_ADDVALUE,SYSFUN_EDITVALUE,SYSFUN_DELETEVALUE,SYSFUN_POSTVALUE,SYSFUN_AMOUNTVALUE,SYSFUN_PRINTVALUE,SYSFUN_SELECTVALUE,SYSFUN_AUDITVALUE,SYSFUN_RETURNVALUE,SYSFUN_HELPVALUE,SYSFUN_SPACVALUE1,SYSFUN_SPACVALUE2,SYSFUN_SPACVALUE3,SYSFUN_SPACVALUE4,SYSFUN_SPACVALUE5 from MAIN_YHQX
WHERE JGID=? and YHID=? AND QXLB=?
12
12
12
select RKEY,CODE,CNAME,RGLEVEL,SUPERRG,REMARK,CJR,CJRQ,SCBZ,PYM from MAIN_REGION where RGLEVEL='3' and superrg=? ORDER BY CODE
12
select RKEY,CODE,CNAME,RGLEVEL,SUPERRG,REMARK,CJR,CJRQ,SCBZ,PYM from MAIN_REGION where RGLEVEL='4' and superrg=? ORDER BY CODE
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 (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?) and DPTFLAG=1
and DPTTYPE = '4' order by DPTCODE
12
12
12
12
= ?
order by t.LOGIN_TIME
]]>
12
12
12
12
12
12
12
1
]]>
SELECT b.ZJHM,a.ZYNO,a.JJRQ,NVL( c.ZJE ,0) YJZJE,d.JBBM ,d.JBMC,
(SELECT COUNT(1) FROM HIS_HIE_RYBQ z WHERE a.PKEY=z.JZPKEY AND a.JGID=z.JGID AND z.HJD_FLAG='1') ZDZT
FROM HIS_JZ_BASEINFO a
LEFT JOIN HIS_HZINFO b ON a.JGID =b.JGID AND a.HZPKEY =b.PKEY
LEFT JOIN HIS_ZY_YJMANAGE c on a.pkey=c.jzpkey and c.YJTYPE='01' and a.JGID=c.JGID and c.YJTYPE='01'
LEFT JOIN HIS_JZ_MZZD d ON a.PKEY =d.JZPKEY AND a.JGID =d.JGID AND d.SFZZD ='1' AND d.ZDLX ='002'
WHERE a.JGID =? AND a.HZPKEY =? AND a.PKEY =?
//ZJHM,ZYNO,JJRQ,YJZJE
12
12
12
SELECT b.ENDTIME,b.DSCG_MAINDIAG_NAME,b.DSCG_MAINDIAG_CODE,NVL(a.MEDFEE_SUMAMT,0) MEDFEE_SUMAMT,NVL(a.FUND_PAY_SUMAMT,0) FUND_PAY_SUMAMT,NVL(a.ACCT_PAY,0) ACCT_PAY,a.SETL_TIME,
a.PSN_CASH_PAY
FROM HIS_YB_JSB a
LEFT JOIN HIS_YB_DJ b ON a.JGID =b.JGID AND a.MDTRT_ID =b.MDTRT_ID AND a.IPT_NO=b.IPT_NO AND a.CXZT='0'
WHERE a.JGID =? AND a.PKEY =? AND b.DJCXZT='0'
//ENDTIME,DSCG_MAINDIAG_NAME,DSCG_MAINDIAG_CODE,MEDFEE_SUMAMT,FUND_PAY_SUMAMT,ACCT_PAY,SETL_TIME
12
12
12
12
12
select
a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK
,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYKS,a.RYBED,b.xm,b.xb,b.SFZH,b.ZJHM,b.LXR,b.LXRDH,b.CSRQ,b.MZ
,c.PKEY
zdpkey,c.jzpkey,c.ZDJFLX,c.JFYBLX,c.HZRYLX,c.HZINTIME,c.HZOUTTIME,c.KSSJ,c.JSSJ,c.JFZJE,c.JFZKE,c.JFZKLX,c.JFJZE,c.HZPAYSELF,c.HZZFE,c.HZZFEORIGN,c.JFLX,c.ISHC,c.HCDJPKEY,c.JSZT,c.SFZXTFHSF,c.TFHSFZDPKEY,c.JZZDPKEY,d.PKEY
fppkey,d.GLZDBPKEY,d.SJPKEY,d.CLOSEPKEY,d.JZRQ,d.CHFPHM,d.CHPKEY,d.FPHM,d.PJLX,d.SFRY,d.SFRQ,d.SFZT,d.FPLX,d.FPDRYY,d.YBLX,d.YBZFJE,d.SFJE,d.YBJSB,d.CHYY,d.SFDZP,d.SFDYFP,d.SFJZDY,d.PJZT,d.TFHSF,d.SFKS,d.JJZF,d.GRZH,d.YYBC,d.GRPAY,f.ZJE
yjzje,d.SYJE,d.YSSFJE,d.TCZF,d.DBBX,d.YLJZ,d.GWYBZ,d.QYBC,c.ZTJS,c.ZTJSCFZZD,
r.JJX_BQ_NAMES,
(SELECT COUNT(1) FROM HIS_SC_HIE_MED_REC z WHERE a.PKEY=z.JZPKEY AND a.JGID=z.JGID ) ZDZT ,
nvl(mr.DATA_DEFICIENT_FEE,0) DATA_DEFICIENT_FEE
from HIS_JZ_BASEINFO a
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
left join HIS_SFZD_ZB c on a.pkey = c.jzpkey and a.JGID=c.JGID
left join HIS_MZJS_MZFPZB d on c.pkey=d.GLZDBPKEY and c.JGID=d.JGID
left join HIS_ZY_YJMANAGE f on a.pkey=f.jzpkey and f.YJTYPE='01' and a.JGID=f.JGID and f.YJTYPE='01'
left join HIS_HIE_RYBQ r on a.JGID=r.JGID and a.PKEY=r.JZPKEY and r.HJD_FLAG='1'
left join HIS_SC_HIE_MED_REC mr on a.JGID=mr.JGID and a.PKEY=mr.JZPKEY
where a.JGID=? and
a.hzpkey=? and a.pkey=? and a.JZLX='Z' and (c.isHC is null or
c.ISHC=0) order by c.CJRQ desc
12
12
12
select PKEY,JGID,JZLX,MDTRT_ID,SETL_ID,IPT_NO,PSN_NO,PSN_NAME,PSN_CERT_TYPE,CERTNO,GEND,NATY,BRDY,AGE,INSUTYPE,PSN_SETLWAY,ACCT_USED_FLAG,MID_SETL_FLAG,PSN_TYPE,CVLSERV_FLAG,SETL_TIME,MDTRT_CERT_TYPE,MED_TYPE,MEDFEE_SUMAMT,FUND_PAY_SUMAMT,PSN_PART_AMT,ACCT_PAY,PSN_CASH_PAY,CASH_TYPE,HOSP_PART_AMT,BALC,ACCT_MULAID_PAY,FULAMT_OWNPAY_AMT,OVERLMT_SELFPAY,PRESELFPAY_AMT,INSCP_SCP_AMT,ACT_PAY_DEDC,HIFP_PAY,POOL_PROP_SELFPAY,CVLSERV_PAY,HIFES_PAY,HIFMI_PAY,HIFOB_PAY,MAF_PAY,OTH_PAY,HIFDM_PAY,MEDINS_SETL_ID,CLR_OPTINS,CLR_WAY,CLR_TYPE,CXZT,OLD_SETL_ID,CZY,CZSJ,FPHM,KLS,YJJZF,SJZF,SETL_LIST_ID,STMT_RSLT,
ZKBL,ZKJE,BBID,FZDATE,SCSJ,ISYZS,CHFPH,HI_PAYMTD,STAS_TYPE,ISDZFP,ZDZBPKEY,OMSGID,HZPKEY
from HIS_YB_JSB
where JGID=? and PKEY=?
12
12
=?
AND d.SETL_TIME <=?
AND (c.PKEY is null OR 1=?)
AND (c.PKEY is not null OR 1=?)
ORDER BY d.SETL_TIME DESC
]]>
//PKEY,CZRQ,CZR,JGID,HZPKEY,JZPKEY,XM,ZJHM,HJD_QH,HJD_QH_NAME,XJD_QH,XJD_QH_NAME,YLBX,RKX_BQ_CODES,RKX_BQ_NAMES,JJX_BQ_CODES,JJX_BQ_NAMES,JK_BQ_CODES,JK_BQ_NAMES,GLZT_BQ_CODES,GLZT_BQ_NAMES,JJX_BQ_ATTR1,HJD_FLAG,DATA_TYPE,DATA_LSH,DATA_CODE,DATA_ENTER_DATE,DATA_LEAVE_DATE,DATA_KEY_CROWD,DATA_ICD_NAME,DATA_ICD_CODE,DATA_TOTAL_FEE,DATA_INS_FEE,DATA_TOTAL_PREPAYMENT,DATA_DEFICIENT_FEE,DATA_SETTLEMENT_DATE,JJKS,JJRQ,MEDFEE_SUMAMT,FUND_PAY_SUMAMT,PSN_PART_AMT,ACCT_PAY,PSN_CASH_PAY,PHONE,ZFJE
12
93
93
12
12