select class_id,sum(#para(field)) as star from class_star_count where term_id = #para(term_id) and cur_date >= #para(start_date) and cur_date <= #para(end_date) and grade_id = #para(grade_id) group by class_id; sql语句中sum(一个动态字段),最后拼出来的sql语句是sum("moral")这种的,字段前多了双引号,无法进行求和@JFinal
在个人空间可以修改反馈正文