Эх сурвалжийг харах

计算器获取方式修改

wangyc 8 жил өмнө
parent
commit
36096b9965

+ 5 - 8
src/main/java/com/uas/platform/b2c/prod/product/common/service/impl/CommonCountServiceImpl.java

@@ -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;
     }
 }