0
(nvl(SELECT sum(wbs.days * 8 + wbs.hours)
FROM com.vtradex.er.server.model.er.ProjectWbs wbs
WHERE wbs.project.id=erp.id
AND wbs.user.id= 248),0)
(nvl(SELECT sum(wbs.days * 8 + wbs.hours)
FROM com.vtradex.er.server.model.er.ProjectWbs wbs
WHERE wbs.project.id=erp.id
AND wbs.user.id= 248),0)
創建存儲過程將執行此查詢並通過@Formula
註釋將其映射到某個屬性會更容易。