|
@@ -4,7 +4,6 @@ import com.uas.platform.b2c.prod.product.common.dao.CommonCountDao;
|
|
|
import com.uas.platform.b2c.prod.product.common.model.CommonCount;
|
|
import com.uas.platform.b2c.prod.product.common.model.CommonCount;
|
|
|
import com.uas.platform.b2c.prod.product.common.service.CommonCountService;
|
|
import com.uas.platform.b2c.prod.product.common.service.CommonCountService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -18,12 +17,9 @@ public class CommonCountServiceImpl implements CommonCountService{
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private CommonCountDao commonCountDao;
|
|
private CommonCountDao commonCountDao;
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private JdbcTemplate jdbcTemplate;
|
|
|
|
|
-
|
|
|
|
|
@Override
|
|
@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) {
|
|
for (CommonCount commonCount : commonCounts) {
|
|
|
commonCount.setSql(null);
|
|
commonCount.setSql(null);
|
|
|
}
|
|
}
|