diff --git a/WEB-INF/conf/sysds_jimureport_sfcbb.xml b/WEB-INF/conf/sysds_jimureport_sfcbb.xml index c354c13..efb0d3a 100644 --- a/WEB-INF/conf/sysds_jimureport_sfcbb.xml +++ b/WEB-INF/conf/sysds_jimureport_sfcbb.xml @@ -150,7 +150,7 @@ where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID -left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY +left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY and c.GJ_FLAG !='1' where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx ]]> @@ -177,7 +177,7 @@ where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID -left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY +left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY and c.GJ_FLAG !='1' where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx ]]> @@ -204,7 +204,7 @@ where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b select zflx,sum(zfje)zfje,insutype from( select distinct b.pkey,a.ZFLX,a.ZFJE,c.INSUTYPE from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID left join HIS_MZJS_MZFPZB e on b.CHPKEY=e.pkey and b.JGID=e.JGID -left join HIS_YB_JSB c on c.ZDZBPKEY=e.GLZDBPKEY +left join HIS_YB_JSB c on c.ZDZBPKEY=e.GLZDBPKEY and c.GJ_FLAG !='1' where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.PJZT = '2' and ((c.cxzt='1' and c.OLD_SETL_ID is not null) or c.cxzt is null)) group by zflx,INSUTYPE order by zflx @@ -248,7 +248,11 @@ where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b = 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx +select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID +from HIS_MZJS_MZFPZFFSB a +left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID +left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY and c.GJ_FLAG !='1' +where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx ]]> @@ -272,7 +276,10 @@ select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE @@ -296,7 +303,11 @@ select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE