这个HQL查询出了什么问题:
select (
( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...)
+
( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...)
)
有例外:
unexpected end of subtree
我也试试
select ( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum1,
( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum2
同样的例外!