|
|
@ -108,7 +108,9 @@ public class ProductInfoServiceImpl implements ProductInfoService {
|
|
|
|
int offset = (productInfoFilterRequest.getPage() - 1) * productInfoFilterRequest.getLimit();
|
|
|
|
int offset = (productInfoFilterRequest.getPage() - 1) * productInfoFilterRequest.getLimit();
|
|
|
|
productInfoFilterRequest.setPage(offset);
|
|
|
|
productInfoFilterRequest.setPage(offset);
|
|
|
|
productInfoFilterRequest.setLimit(productInfoFilterRequest.getLimit());
|
|
|
|
productInfoFilterRequest.setLimit(productInfoFilterRequest.getLimit());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
productInfoFilterRequest.setPage(1);
|
|
|
|
|
|
|
|
productInfoFilterRequest.setLimit(10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<ProductInfoEntity> data = productInfoDao.filterUdiNoPage(productInfoFilterRequest);
|
|
|
|
List<ProductInfoEntity> data = productInfoDao.filterUdiNoPage(productInfoFilterRequest);
|
|
|
@ -120,13 +122,6 @@ public class ProductInfoServiceImpl implements ProductInfoService {
|
|
|
|
|
|
|
|
|
|
|
|
ProductInfoFilterRequest productInfoFilterRequest = new ProductInfoFilterRequest();
|
|
|
|
ProductInfoFilterRequest productInfoFilterRequest = new ProductInfoFilterRequest();
|
|
|
|
BeanUtils.copyProperties(request, productInfoFilterRequest);
|
|
|
|
BeanUtils.copyProperties(request, productInfoFilterRequest);
|
|
|
|
|
|
|
|
|
|
|
|
if (productInfoFilterRequest.getPage() != null) {
|
|
|
|
|
|
|
|
int offset = (productInfoFilterRequest.getPage() - 1) * productInfoFilterRequest.getLimit();
|
|
|
|
|
|
|
|
productInfoFilterRequest.setPage(offset);
|
|
|
|
|
|
|
|
productInfoFilterRequest.setLimit(productInfoFilterRequest.getLimit());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return productInfoDao.filterUdiNoPageCount(productInfoFilterRequest);
|
|
|
|
return productInfoDao.filterUdiNoPageCount(productInfoFilterRequest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|