TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
java.math.BigInteger cannot be cast to java.lang.Integer
2 w0 v% Q. E, r. \2 P# N获取数量的时候 转换错误:- u4 b, D/ F/ f; `
sql语句:SELECT COUNT(*) FROM online_test_student WHERE test_id=? AND test_status=?- J, @- Q* @, b6 k& B
修改前:Integer studentNumber = (Integer)query.uniqueResult();% m' V5 P3 c' U7 H
修改后:Integer studentNumber = Integer.parseInt(query.uniqueResult().toString());* C+ P2 H/ n$ q( A; {
|
|