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