|
|
@@ -5,6 +5,7 @@ import com.chinaitop.depot.storage.model.StorageDailycheck;
|
|
5
|
5
|
import com.chinaitop.depot.storage.model.StorageDailycheckExample;
|
|
6
|
6
|
import com.chinaitop.depot.storage.service.StorageDailyService;
|
|
7
|
7
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
8
|
+import com.github.pagehelper.PageHelper;
|
|
8
|
9
|
import com.github.pagehelper.PageInfo;
|
|
9
|
10
|
import io.swagger.annotations.Api;
|
|
10
|
11
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
@@ -62,6 +63,10 @@ public class StorageDailyController {
|
|
62
|
63
|
criteria.andWarehouseIdEqualTo(warehouseId);
|
|
63
|
64
|
}
|
|
64
|
65
|
|
|
|
66
|
+ if (pageNum!=null && pageSize!=null) {
|
|
|
67
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
68
|
+ }
|
|
|
69
|
+
|
|
65
|
70
|
List<StorageDailycheck> list = storageDailyService.findStorageDailycheck(example);
|
|
66
|
71
|
PageInfo<StorageDailycheck> pageInfo = new PageInfo<StorageDailycheck>(list);
|
|
67
|
72
|
return pageInfo;
|