更新回答数量没考虑并发,导致显示的回答数目偏少
changtianyu opened this issue · 0 comments
changtianyu commented
SurveyAnswerDaoImpl
60行
Query query = session.createQuery("update SurveyDirectory set answerNum=answerNum+1 where id=?");
query.setString(0, surveyId);
query.executeUpdate();