|
|
@@ -18,8 +18,8 @@ public class CommonCountServiceImpl implements CommonCountService{
|
|
|
private CommonCountDao commonCountDao;
|
|
|
|
|
|
@Override
|
|
|
- public List<CommonCount> findByStatus(Short status) {
|
|
|
- List<CommonCount> commonCounts = commonCountDao.findByStatusOrderByDetno(status);
|
|
|
+ public List<CommonCount> findByStatus(Short status, String usedFor) {
|
|
|
+ List<CommonCount> commonCounts = commonCountDao.findByStatusAndUsedForOrderByDetno(status, usedFor);
|
|
|
for (CommonCount commonCount : commonCounts) {
|
|
|
commonCount.setSql(null);
|
|
|
}
|