|
|
@@ -26,8 +26,10 @@ public class CommonCountServiceImpl implements CommonCountService{
|
|
|
List<CommonCount> commonCounts = commonCountDao.findByStatusOrderByDetno(status);
|
|
|
|
|
|
for (CommonCount commonCount : commonCounts) {
|
|
|
- if (commonCount.getSql() != null)
|
|
|
+ if (commonCount.getSql() != null) {
|
|
|
commonCount.setCount(jdbcTemplate.queryForLong(commonCount.getSql()));
|
|
|
+ commonCount.setSql(null);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return commonCounts;
|