panheyue(提问者)select
ProjectCategoryName as \'公司\',
a.projectguid as \'项目编号\',
a.jcname as \'项目名称\',
b.hjsk/10000 as \'合计收款(万元)\',
k.hjzf/10000 as \'合计支付(万元)\',
c.ljrg/10000 as \'累计人工(万元)\',
d.ljcl/10000 as \'累计材料(万元)\',
e.ljjx/10000 as \'累计机械(万元)\',
f.ljfb/10000 as \'累计分包(万元)\',
g.ljxc/10000 as \'累计现场经费(万元)\',
l.ljcz/10000 as \'累计产值(万元)\',
(case when IsFinish=0 then \'在建\'
when IsFinish=1 then \'竣工\' end ) as \'是否在建\',
(case when c.ljrg IS null then 0 else c.ljrg end)+(case when d.ljcl IS null then 0 else d.ljcl end)+(case when e.ljjx IS null then 0 else e.ljjx end)+(case when f.ljfb IS null then 0 else f.ljfb end)+(case when g.ljxc IS null then 0 else g.ljxc end) as \'开累实际成本(万元)\'
from zy_project as a
left join (select ProjectGUID,SUM (InComeMoney)as hjsk from ZY_Project_Payment_InCome where isdelete=0 group by ProjectGUID)as b on a.ProjectGUID =b.ProjectGUID
left join (select ProjectGUID,SUM (PayMoney) as hjzf from ZY_Project_Payment_Pay where isdelete=0 group by ProjectGUID)as k on a.ProjectGUID =k.ProjectGUID
left join (select ProjectGUID ,SUM(CurrentMonthRealityMoney)as ljcz from ZY_Project_OutPut where IsDelete=0 group by ProjectGUID ) as l on a.ProjectGUID =l.ProjectGUID
left join (select ProjectGUID ,SUM(PayMoney) as ljrg from ZY_Project_Cost_Labor where IsDelete=0 group by ProjectGUID) as c on a.ProjectGUID =c.ProjectGUID
left join (select ProjectGUID ,SUM(settlementpaymoney) as ljcl from ZY_Project_Cost_Material where IsDelete=0 group by ProjectGUID) as d on a.ProjectGUID =d.ProjectGUID
left join (select ProjectGUID ,SUM(PayMoney) as ljjx from ZY_Project_Cost_Machinery where IsDelete=0 group by ProjectGUID) as e on a.ProjectGUID =e.ProjectGUID
left join (select ProjectGUID ,SUM(PayMoney) as ljfb from ZY_Project_Cost_Specialty where IsDelete=0 group by ProjectGUID) as f on a.ProjectGUID =f.ProjectGUID
left join (select ProjectGUID ,SUM(PayMoney) as ljxc from ZY_Project_Cost_IndirectExpenses where IsDelete=0 group by ProjectGUID) as g on a.ProjectGUID =g.ProjectGUID
where ProjectName not like \'%[测试]%\'
order by a.projectguid desc
大佬要在什么地方加呢? 我在倒数第二行加 and \'是否在建\'=\'${comboBox0}\'
结果就什么都不出来了,comboBox0是控件名