那么 hibernate 执行纯 sql 语句 会出两台这样问题吗?
例如这样的sql 语句:
select a.cantoncode,c.cantonname ,sum(a.oldpnum65) oldpnum, sum(a.oldphealthm65) oldphealthm, sum(a.oldpchecknum65) oldpchecknum, sum(a.oldpvistnum65) oldpvistnum, sum(d.oldpdisablednum65) oldpdisablednum, sum(f.oldphypertensionm65)  oldphypertensionm, sum(e.oldpdiabetesm65) oldpdiabetesm
from hap_b_lnbj a left join  b_canton c on a.cantoncode = c.cantoncode left join hap_b_cjr d on c.cantoncode = d.cantoncode left join hap_b_tnb e on d.cantoncode = e.cantoncode left join hap_b_gxy f on e.cantoncode = f.cantoncode
where a.cantoncode like '150429%' and a.year=2012 and a.month <= 12 and a.urtype<>'01'
group by a.cantoncode , c.cantonnameorder by oldpnum desc,oldphealthm asc