表单公式取数,通过公式动态从上报周期和组织里获取参数数据,得到结果后进行单元格数据填充。[pre]
SQL("
select t.unitName from
( select a.usercode ,a.username ,a.unitid ,a.unitcode
,b.id ,b.unitName ,b.codecode ,b.proType ,b.oneProCode ,b.oneProName
,b.twoProCode ,b.twoProName ,b.proBudget + b.proBudgetzj as proBudget ,b.dataBatch +'-01-01' as datatime
from v_userorg a join dim_proMsg b on a.unitname = b.unitName
) t where t.unitid = 'SELECTORG("ID")'and t.datatime ='DATATIME()'
order by t.usercode ,t.id
")
[/pre]