Mercurial > HIS > BLT-XML
diff ehis.数据统计.营业收入.运营情况汇总.XML @ 1:be9328b4ea2d
Up:杩愯惀鎯呭喌姹囨; Fix锛欳lear initial commit
author | Schmit <liny.jii@nnsui.com> |
---|---|
date | Sun, 08 Sep 2024 17:07:59 +0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ehis.数据统计.营业收入.运营情况汇总.XML Sun Sep 08 17:07:59 2024 +0800 @@ -0,0 +1,359 @@ +<?xml version="1.0" encoding="UTF-8"?> +<report report-id="ehis.鏁版嵁缁熻.钀ヤ笟鏀跺叆.杩愯惀鎯呭喌姹囨" title="杩愯惀鎯呭喌姹囨" seq="0" is-detail="true"> +<description>杩愯惀鎯呭喌姹囨</description> +<attrs> + <attr key="datasource" value="default"/> + <attr key="leftFixedColCount" value="0"/> + <attr key="rightFixedColCount" value="0"/> + <attr key="showTotalRow" value="false"/> + <attr key="showRowIndex" value="true"/> + <attr key="showColIndex" value="false"/> + <attr key="showColLine" value="true"/> + <attr key="showRowLine" value="true"/> + <attr key="showHeader" value="false"/> + <attr key="showTools" value="false"/> + <attr key="trackMouseOver" value="true"/> + <attr key="defaultColWidth" value="100"/> + <attr key="rowNoColWidth" value="40"/> + <attr key="pageType" value="A4"/> + <attr key="pageDirect" value="V"/> + <attr key="pageFontSize" value="11"/> + <attr key="pageSize" value="297,210"/> + <attr key="pageMargin" value="10,10,10,10"/> + <attr key="pageMaxRowCount" value="50"/> + <attr key="autoSizeCol" value="0" /> +</attrs> + +<params> + <param id="jgxs"> + <sql> + <![CDATA[ + select count(1) col into #t from + ( + select 鏈烘瀯ID value,鍚嶇О text from bas_鏈烘瀯 where 鏈烘瀯ID=${user.companyPartyId} + union all + select 鏈烘瀯ID value,鍚嶇О text from bas_鏈烘瀯 where isnull(绠$悊鏈烘瀯ID,'')=${user.companyPartyId} + ) a + ; + select case when col>1 then 'false' else 'true' end aaa from #t + ]]> + </sql> + </param> + <param id="mrjg"> + <sql> + <![CDATA[ + select ${user.companyPartyId} id + ]]> + </sql> + </param> +</params> + +<enums> + <enum id="tjjg"> + <sql> + <![CDATA[ + select 鏈烘瀯ID value,鍚嶇О text from bas_鏈烘瀯 where 鏈烘瀯ID=${user.companyPartyId} + union all + select 鏈烘瀯ID value,鍚嶇О text from bas_鏈烘瀯 where isnull(绠$悊鏈烘瀯ID,'')=${user.companyPartyId} + ]]> + </sql> + </enum> +</enums> + +<header-items> + <header-item id="缁熻鏈烘瀯" type="enum" enum-id="tjjg" title="缁熻鏈烘瀯" default="${mrjg}" hidden="${jgxs}" value-col="value" use-like='false' text-col="text" width="250" trigger-query="false"/> + <header-item id="鏃堕棿" type="datetimerange" title="缁熻鏃堕棿" default="浠婂ぉ" width="190" trigger-query="false"/> + <header-item id="鏌ユ壘" type="text" width="150" use-like="false" title="鏌ユ壘" hidden="true" empty-text="璇疯緭鍏ユ煡鎵句俊鎭" trigger-query="false"/> +</header-items> + +<select> + <field id="鍒嗙被" title="鍒嗙被"><![CDATA[鍒嗙被]]></field> + <field id="鍒1" title="鍒1"><![CDATA[鍒1]]></field> + <field id="鍒1鍊" title="鍒1鍊"><![CDATA[鍒1鍊糫]></field> + <field id="鍒2" title="鍒2"><![CDATA[鍒2]]></field> + <field id="鍒2鍊" title="鍒2鍊"><![CDATA[鍒2鍊糫]></field> + <field id="鍒3" title="鍒3"> <![CDATA[鍒3]]></field> + <field id="鍒3鍊" title="鍒3鍊"> <![CDATA[鍒3鍊糫]></field> + <field id="鍒4" title="鍒4"> <![CDATA[鍒4]]></field> + <field id="鍒4鍊" title="鍒4鍊"> <![CDATA[鍒4鍊糫]></field> +</select> + +<from> + <![CDATA[ + ( + select + '闂ㄨ瘖鎯呭喌' 鍒嗙被,'鎸傚彿浜烘暟' 鍒1,gh.鎸傚彿浜烘暟 鍒1鍊,'鎸傚彿閲戦' 鍒2,cast(gh.鎸傚彿閲戦 as nvarchar(10)) 鍒2鍊, + '棣栬瘖浜烘暟' 鍒3,gh.棣栬瘖浜烘暟 鍒3鍊,'澶嶈瘖浜烘暟' 鍒4,gh.澶嶈瘖浜烘暟 鍒4鍊 + from #jg jg + left join #gh gh on jg.鏈烘瀯ID=gh.鏈烘瀯ID + union all + select + '闂ㄨ瘖鎯呭喌' 鍒嗙被,'闂ㄨ瘖浜烘' 鍒1,mzjs.闂ㄨ瘖浜烘 鍒1鍊,'鎬婚噾棰' 鍒2,cast(mzjs.鎬婚噾棰 as nvarchar(10)) 鍒2鍊, + '鍖讳繚閲戦' 鍒3,mzjs.鎶ラ攢閲戦 鍒3鍊,'鐜伴噾閲戦' 鍒4,mzzf.鐜伴噾鏀粯 鍒4鍊 + from #jg jg + left join #mzjs mzjs on jg.鏈烘瀯ID=mzjs.鏈烘瀯ID + left join #mzzf mzzf on jg.鏈烘瀯ID=mzzf.鏈烘瀯ID + union all + select + '闂ㄨ瘖鎯呭喌' 鍒嗙被,'澶勬柟鎬绘暟' 鍒1,mzcf.澶勬柟鎬绘暟 鍒1鍊,'鑽搧閲戦' 鍒2,cast(mzcf.鑽搧閲戦 as nvarchar(10)) 鍒2鍊, + '璇婄枟閲戦' 鍒3,mzcf.璇婄枟閲戦 鍒3鍊,'澶勬柟鍧囬' 鍒4,case when mzcf.澶勬柟鎬绘暟<>0 then cast(mzjs.鎬婚噾棰/mzcf.澶勬柟鎬绘暟 as decimal(10,2)) else null end 鍒4鍊 + from #jg jg + left join #mzcf mzcf on jg.鏈烘瀯ID=mzcf.鏈烘瀯ID + left join #mzjs mzjs on jg.鏈烘瀯ID=mzjs.鏈烘瀯ID + union all + select + '闂ㄨ瘖鎯呭喌' 鍒嗙被,'鑷垂浜烘' 鍒1,mzjs.鑷垂浜烘 鍒1鍊,'鍖讳繚浜烘' 鍒2,cast(mzjs.鍖讳繚浜烘 as nvarchar(10)) 鍒2鍊, + '鏅氶棬璇婃暟' 鍒3,mzjs.鏅氶棬璇婁汉娆 鍒3鍊,'鐗圭梾浜烘' 鍒4,mzjs.鐗圭梾浜烘 鍒4鍊 + from #jg jg + left join #mzjs mzjs on jg.鏈烘瀯ID=mzjs.鏈烘瀯ID + union all + select + '浣忛櫌鎯呭喌' 鍒嗙被,'鍏ラ櫌鎬讳汉鏁' 鍒1,ry.鍏ラ櫌鎬讳汉鏁 鍒1鍊,'褰撳墠鍦ㄩ櫌鎬讳汉鏁' 鍒2,cast(zy.鍦ㄩ櫌鎬讳汉鏁 as nvarchar(10)) 鍒2鍊, + '鍑洪櫌鎬讳汉鏁' 鍒3,cy.鍑洪櫌鎬讳汉鏁 鍒3鍊,'缁撶畻鎬讳汉鏁' 鍒4,zyjs.缁撶畻鎬讳汉鏁 鍒4鍊 + from #jg jg + left join #ry ry on jg.鏈烘瀯ID=ry.鏈烘瀯ID + left join #cy cy on jg.鏈烘瀯ID=cy.鏈烘瀯ID + left join #zyjs zyjs on jg.鏈烘瀯ID=zyjs.鏈烘瀯ID + left join #zy zy on jg.鏈烘瀯ID=zy.鏈烘瀯ID + union all + select + '浣忛櫌鎯呭喌' 鍒嗙被,'缁撶畻閲戦' 鍒1,zyjs.缁撶畻閲戦 鍒1鍊,'鑱屽伐閲戦' 鍒2,cast(zyjs.鑱屽伐閲戦 as nvarchar(10)) 鍒2鍊, + '灞呮皯閲戦' 鍒3,zyjs.灞呮皯閲戦 鍒3鍊,'鑷垂閲戦' 鍒4,zyjs.鑷垂閲戦 鍒4鍊 + from #jg jg + left join #zyjs zyjs on jg.鏈烘瀯ID=zyjs.鏈烘瀯ID + union all + select + '浣忛櫌鎯呭喌' 鍒嗙被,'棰勪氦鏀跺叆' 鍒1,zyyj.棰勪氦鏀跺叆 鍒1鍊,'鑽搧鏀跺叆' 鍒2,cast(zycf.鑽搧鏀跺叆 as nvarchar(10)) 鍒2鍊, + '璇婄枟鏀跺叆' 鍒3,zycf.璇婄枟鏀跺叆 鍒3鍊,'鍖婚櫌鎵挎媴' 鍒4,zyjs.鍖婚櫌鎵挎媴 鍒4鍊 + from #jg jg + left join #zyjs zyjs on jg.鏈烘瀯ID=zyjs.鏈烘瀯ID + left join #zyyj zyyj on jg.鏈烘瀯ID=zyyj.鏈烘瀯ID + left join #zycf zycf on jg.鏈烘瀯ID=zycf.鏈烘瀯ID + union all + select null,'',null,'宸ヤ綔閲忔儏鍐(鍖婚櫌瀹為檯宸','浣滈噺鎯呭喌,涓庣粨绠','鏁版嵁鏃犲叧)',null,null,null + union all + select + null,'鎬昏垂鐢',t.鎬婚噾棰,'鑽搧閲戦',cast(t.鑽搧閲戦 as nvarchar(10)) ,'璇婄枟閲戦',t.璇婄枟閲戦,null,null + from #gzl t + union all + select null,'',null,'鍚勯」鏀跺叆椤圭洰璐圭敤鎯呭喌','(缁撶畻鏁版嵁)','',null,null,null + union all + select + null,a.鏀跺叆椤圭洰,a.閲戦,b.鏀跺叆椤圭洰,cast(b.閲戦 as nvarchar(10)) ,c.鏀跺叆椤圭洰,c.閲戦,d.鏀跺叆椤圭洰,d.閲戦 + from #a a + left join #b b on a.px+1=b.px + left join #c c on a.px+2=c.px + left join #d d on a.px+3=d.px + union all + select null, '鍚堣' ,sum(t.閲戦),null,null,null,null,null,null + from #srxm t + ) t + ]]> +</from> + +<with> + <![CDATA[ + + with t as ( + select + gh.鐧昏鏈烘瀯ID 鏈烘瀯ID, + count(distinct gh.妗fID) 鎸傚彿浜烘暟, + count(distinct case when isnull(jzjl.鍒濊瘖,'鏄')='鏄' then jzjl.妗fID else null end) 棣栬瘖浜烘暟, + count(distinct case when isnull(jzjl.鍒濊瘖,'鏄')='鍚' then jzjl.妗fID else null end) 澶嶈瘖浜烘暟, + sum(js.閲戦) 鎸傚彿閲戦 + from reg_鎸傚彿 gh + inner join opd_璁板綍 jzjl on gh.鎸傚彿ID=jzjl.鎸傚彿ID + inner join opc_璁板綍_缁撶畻 js on gh.缁撶畻ID=js.缁撶畻ID + where gh.灏辫瘖鏃ユ湡 between ${鏃堕棿_START} and ${鏃堕棿_END} and gh.鐧昏鏈烘瀯ID=${缁熻鏈烘瀯} + group by gh.鐧昏鏈烘瀯ID + ) + select * into #gh from t; + select + js.缁撶畻鏈烘瀯ID 鏈烘瀯ID, + count(distinct jl.妗fID+'-'+jl.寮鍗曞尰鐢烮D+'-'+convert(nvarchar(10),jl.鐧昏鏃堕棿,120)) 闂ㄨ瘖浜烘, + sum(js.閲戦) 鎬婚噾棰, + sum(js.鎶ラ攢閲戦) 鎶ラ攢閲戦, + COUNT(DISTINCT (case when ybjs.缁撶畻ID IS NULL THEN jl.妗fID+'-'+jl.寮鍗曞尰鐢烮D+'-'+convert(nvarchar(10),jl.鐧昏鏃堕棿,120) ELSE NULL END)) 鑷垂浜烘, + COUNT(DISTINCT (case when ybjs.缁撶畻ID IS NOT NULL THEN jl.妗fID+'-'+jl.寮鍗曞尰鐢烮D+'-'+convert(nvarchar(10),jl.鐧昏鏃堕棿,120) ELSE NULL END)) 鍖讳繚浜烘, + count(distinct (case when jzlb.鍚嶇О in ('闂ㄨ瘖鎱㈢壒鐥') then jl.妗fID+'-'+jl.寮鍗曞尰鐢烮D+'-'+convert(nvarchar(10),jl.鐧昏鏃堕棿,120) else null end)) 鐗圭梾浜烘, + count(distinct (case when jzlb.鍚嶇О not in ('闂ㄨ瘖鎱㈢壒鐥') then jl.妗fID+'-'+jl.寮鍗曞尰鐢烮D+'-'+convert(nvarchar(10),jl.鐧昏鏃堕棿,120) else null end)) 鏅氶棬璇婁汉娆 + into #mzjs + from opc_璁板綍 jl + inner join opc_璁板綍_缁撶畻 js on jl.璁板綍ID=js.璁板綍ID + left join yb_灏辫瘖缁撶畻璁板綍 ybjs on js.缁撶畻ID=ybjs.缁撶畻ID + left join bas_灏辫瘖绫诲埆 jzlb on jl.鍖荤枟绫诲埆ID=jzlb.鍖荤枟绫诲埆ID AND jl.灏辫瘖绫诲埆ID=jzlb.灏辫瘖绫诲埆ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + and jl.澶勬柟鏉ユ簮<>'闂ㄨ瘖鎸傚彿' + group by js.缁撶畻鏈烘瀯ID + + + select + js.缁撶畻鏈烘瀯ID 鏈烘瀯ID, + sum(case when zffs.鍚嶇О='鐜伴噾' then zf.鏀粯閲戦 else null end) 鐜伴噾鏀粯, + sum(case when zffs.鍚嶇О!='鐜伴噾' then zf.鏀粯閲戦 else null end) 鍏朵粬鏀粯 + into #mzzf + from opc_璁板綍_缁撶畻 js + inner join opc_璁板綍 jl on js.璁板綍ID=jl.璁板綍ID + inner join opc_璁板綍_缁撶畻_鏀粯 zf on js.缁撶畻ID=zf.缁撶畻ID + inner join bas_鏀粯鏂瑰紡 zffs on zf.鏀粯鏂瑰紡ID=zffs.鏀粯鏂瑰紡ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + and jl.澶勬柟鏉ユ簮<>'闂ㄨ瘖鎸傚彿' + group by js.缁撶畻鏈烘瀯ID + + + --cf + select + js.缁撶畻鏈烘瀯ID 鏈烘瀯ID, + count(distinct fymx.澶勬柟ID) 澶勬柟鎬绘暟, + sum(case when xm.绫诲埆ID in ('5','6','7','8') then mx.閲戦 else null end) 鑽搧閲戦, + sum(case when xm.绫诲埆ID not in ('5','6','7','8') then mx.閲戦 else null end) 璇婄枟閲戦 + into #mzcf + from opc_璁板綍_鏄庣粏 mx + inner join opc_璁板綍_缁撶畻 js on mx.缁撶畻ID=js.缁撶畻ID + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + left join opd_澶勬柟_鍖诲槺_璐圭敤 fymx on mx.鍖诲槺鏄庣粏ID=fymx.鏄庣粏ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} AND js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + group by js.缁撶畻鏈烘瀯ID + + --浣忛櫌 + select jl.鐧昏鏈烘瀯ID 鏈烘瀯ID, count(1) 鍏ラ櫌鎬讳汉鏁 into #ry + from ihm_璁板綍 jl + where jl.鍏ラ櫌鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} AND 鐧昏鏈烘瀯ID=${缁熻鏈烘瀯} + group by jl.鐧昏鏈烘瀯ID + + select + jl.鐧昏鏈烘瀯ID 鏈烘瀯ID, + count(1) 鍦ㄩ櫌鎬讳汉鏁 + into #zy + from ihm_璁板綍 jl + where jl.鐘舵 in ('鍦ㄥ簥','寰呭垎') + group by jl.鐧昏鏈烘瀯ID + + + + select + jl.鐧昏鏈烘瀯ID 鏈烘瀯ID, count(1) 鍑洪櫌鎬讳汉鏁 into #cy + from ihm_璁板綍 jl + where jl.鍑洪櫌鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} + group by jl.鐧昏鏈烘瀯ID + + select js.缁撶畻鏈烘瀯ID 鏈烘瀯ID,count(distinct 璁板綍ID) 缁撶畻鎬讳汉鏁, + sum(js.閲戦) 缁撶畻閲戦, + sum(case when ybjs.闄╃绫诲瀷='310' then js.閲戦 else null end) 鑱屽伐閲戦, + sum(case when ybjs.闄╃绫诲瀷='390' then js.閲戦 else null end) 灞呮皯閲戦, + sum(case when ybjs.缁撶畻ID is null then js.閲戦 else null end) 鑷垂閲戦, + sum(js.鍖婚櫌鎵挎媴) 鍖婚櫌鎵挎媴 + into #zyjs + from ihm_璁板綍_缁撶畻 js + left join yb_灏辫瘖缁撶畻璁板綍 ybjs on js.缁撶畻ID=ybjs.缁撶畻ID AND js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} + group by js.缁撶畻鏈烘瀯ID + + select + yj.鐧昏鏈烘瀯ID 鏈烘瀯ID, + sum(yj.閲戦) 棰勪氦鏀跺叆 + into #zyyj + from ihm_璁板綍_棰勪氦 yj + where yj.鏀惰垂鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and yj.鐧昏鏈烘瀯ID=${缁熻鏈烘瀯} + group by yj.鐧昏鏈烘瀯ID + + select js.缁撶畻鏈烘瀯ID 鏈烘瀯ID, + sum(case when xm.绫诲埆ID in ('5','6','7','8') then case when js.鐘舵='浣滃簾' then -mx.閲戦 else mx.閲戦 end else null end) 鑽搧鏀跺叆, + sum(case when xm.绫诲埆ID not in ('5','6','7','8') then case when js.鐘舵='浣滃簾' then -mx.閲戦 else mx.閲戦 end else null end) 璇婄枟鏀跺叆 + into #zycf + from ihm_璁板綍_缁撶畻 js + inner join ihm_璁板綍_缁撶畻_鏄庣粏 jsmx on js.缁撶畻ID=jsmx.缁撶畻ID + inner join ihm_璁板綍_鏄庣粏 mx on jsmx.鏄庣粏ID=mx.鏄庣粏ID + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + group by js.缁撶畻鏈烘瀯ID + + + select + sum(case when xm.绫诲埆ID in ('5','6','7','8') then mx.閲戦 else null end) 鑽搧閲戦, + sum(case when xm.绫诲埆ID not in ('5','6','7','8') then mx.閲戦 else null end) 璇婄枟閲戦, + sum(mx.閲戦) 鎬婚噾棰 into #mx + from opc_璁板綍_鏄庣粏 mx + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + where mx.鐧昏鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and mx.鐧昏鏈烘瀯ID=${缁熻鏈烘瀯} + union all + select + sum(case when xm.绫诲埆ID in ('5','6','7','8') then mx.閲戦 else null end) 鑽搧閲戦, + sum(case when xm.绫诲埆ID not in ('5','6','7','8') then mx.閲戦 else null end) 璇婄枟閲戦, + sum(mx.閲戦) 鎬婚噾棰 + from ihm_璁板綍_鏄庣粏 mx + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + where mx.鐧昏鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and mx.鐧昏鏈烘瀯ID=${缁熻鏈烘瀯} + + select + sum(t.鎬婚噾棰) 鎬婚噾棰, + sum(t.鑽搧閲戦) 鑽搧閲戦, + sum(t.璇婄枟閲戦) 璇婄枟閲戦 + into #gzl + from #mx t + + + select + js.缁撶畻鏈烘瀯ID, + xm.鏀跺叆椤圭洰, + sum(mx.閲戦) 閲戦 into #srxmmx + from opc_璁板綍_缁撶畻 js + inner join opc_璁板綍_鏄庣粏 mx on js.缁撶畻ID=mx.缁撶畻ID + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + group by js.缁撶畻鏈烘瀯ID,xm.鏀跺叆椤圭洰 + union all + select + js.缁撶畻鏈烘瀯ID, + xm.鏀跺叆椤圭洰, + sum(case when js.鐘舵='浣滃簾' then -mx.閲戦 else mx.閲戦 end) 閲戦 + from ihm_璁板綍_缁撶畻 js + inner join ihm_璁板綍_缁撶畻_鏄庣粏 jsmx on js.缁撶畻ID=jsmx.缁撶畻ID + inner join ihm_璁板綍_鏄庣粏 mx on jsmx.鏄庣粏ID=mx.鏄庣粏ID + inner join bas_鏀惰垂椤圭洰 xm on mx.椤圭洰ID=xm.椤圭洰ID + where js.缁撶畻鏃堕棿 between ${鏃堕棿_START} and ${鏃堕棿_END} and js.缁撶畻鏈烘瀯ID=${缁熻鏈烘瀯} + group by js.缁撶畻鏈烘瀯ID,xm.鏀跺叆椤圭洰 + + + + select + t.缁撶畻鏈烘瀯ID,t.鏀跺叆椤圭洰,sum(t.閲戦) 閲戦, + ROW_NUMBER()over(order by t.鏀跺叆椤圭洰) px into #srxm + from #srxmmx t + group by t.缁撶畻鏈烘瀯ID,t.鏀跺叆椤圭洰 + + select 鏀跺叆椤圭洰,閲戦,px into #a from #srxm t where t.px%4=1 + select 鏀跺叆椤圭洰,閲戦,px into #b from #srxm t where t.px%4=2 + select 鏀跺叆椤圭洰,閲戦,px into #c from #srxm t where t.px%4=3 + select 鏀跺叆椤圭洰,閲戦,px into #d from #srxm t where t.px%4=0 + + + select jg.鏈烘瀯ID into #jg + from bas_鏈烘瀯 jg + where jg.鏈烘瀯ID=${缁熻鏈烘瀯} + + ]]> +</with> + + +<where> + <![CDATA[ + + ]]> +</where> + +<groups> + <group> + <group-col id="鍒嗙被" field-id="鍒嗙被" width="120" span="true" span-dep-col-id="鍒嗙被"/> + <group-col id="鍒1" field-id="鍒1" width="120" /> + <group-col id="鍒1鍊" field-id="鍒1鍊" width="80" /> + <group-col id="鍒2" field-id="鍒2" width="170"/> + <group-col id="鍒2鍊" field-id="鍒2鍊" width="125"/> + <group-col id="鍒3" field-id="鍒3" width="120"/> + <group-col id="鍒3鍊" field-id="鍒3鍊" width="80"/> + <group-col id="鍒4" field-id="鍒4" width="120"/> + <group-col id="鍒4鍊" field-id="鍒4鍊" width="80" /> + </group> +</groups> + +</report> \ No newline at end of file