|
|
@@ -132,9 +132,9 @@ public class InviteRecordServiceImpl implements InviteRecordService {
|
|
|
Integer allNum = 0;
|
|
|
Integer todoNum = 0;
|
|
|
Integer doneNum = 0;
|
|
|
- String allSql = "select sum(count) from v$invitation where useruu = " + userUU;
|
|
|
- String todoSql = "select sum(count) from v$invitation where active = 0 and useruu = " + userUU;
|
|
|
- String doneSql = "select sum(count) from v$invitation where active = 1 and useruu = " + userUU;
|
|
|
+ String allSql = "select nvl(sum(count), 0) from v$invitation where useruu = " + userUU;
|
|
|
+ String todoSql = "select nvl(sum(count), 0) from v$invitation where active = 0 and useruu = " + userUU;
|
|
|
+ String doneSql = "select nvl(sum(count), 0) from v$invitation where active = 1 and useruu = " + userUU;
|
|
|
allNum = commonDao.queryForObject(allSql, Integer.class);
|
|
|
todoNum = commonDao.queryForObject(todoSql, Integer.class);
|
|
|
doneNum = commonDao.queryForObject(doneSql, Integer.class);
|