去掉sql多的字符

This commit is contained in:
KeYuan 2018-07-20 23:00:13 +08:00
parent fc3c0d02a4
commit c6f56d185f

View File

@ -28,7 +28,7 @@ public class AnCheckboxDaoImpl extends BaseDaoImpl<AnCheckbox, String> implement
@Override
public void findGroupStats(Question question) {
String sql="select qu_item_id,count(qu_item_id) count from t_an_checkbox where visibility=1 and qu_id=? GROUP BY qu_item_id ;";
String sql="select qu_item_id,count(qu_item_id) count from t_an_checkbox where visibility=1 and qu_id=? GROUP BY qu_item_id";
List<Object[]> list=this.getSession().createSQLQuery(sql).setString(0, question.getId()).list();
List<QuCheckbox> quCheckboxs=question.getQuCheckboxs();