...
|
...
|
@@ -113,10 +113,10 @@ public class ProductController { |
|
|
, @RequestParam(value = "page", required = false)Integer page
|
|
|
) {
|
|
|
LOG.info("in method=ufo.product.secondHand.list storageId={}, second_type={}, sort={}, limit={}, page ={}", storageId, secondType, sort, limit, page);
|
|
|
if (limit < 1) {
|
|
|
if (limit == null || limit < 1) {
|
|
|
limit = 10;
|
|
|
}
|
|
|
if (page < 1) {
|
|
|
if (page == null || page < 1) {
|
|
|
page = 1;
|
|
|
}
|
|
|
JSONObject resp = productService.querySecondHandProductList(storageId, secondType, sort, limit, page);
|
...
|
...
|
|