From 7874cb073e2c0f9fa71b0f461ed302f5724c23e8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 23 六月 2020 08:40:21 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/controller/LocDetlController.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/LocDetlController.java b/src/main/java/com/zy/asrs/controller/LocDetlController.java
index fd9549f..e2d368f 100644
--- a/src/main/java/com/zy/asrs/controller/LocDetlController.java
+++ b/src/main/java/com/zy/asrs/controller/LocDetlController.java
@@ -35,7 +35,7 @@
public R stockOutList(@RequestParam(defaultValue = "1")Integer curr,
@RequestParam(defaultValue = "10")Integer limit,
@RequestParam Map<String, Object> param){
- return R.ok(locDetlService.getStockOut(new Page<LocDetl>(curr, limit).setCondition(param)));
+ return R.ok(locDetlService.getStockOut(toPage(curr, limit, param, LocDetl.class)));
}
@RequestMapping(value = "/locDetl/list/auth")
@@ -44,10 +44,12 @@
@RequestParam(defaultValue = "10")Integer limit,
@RequestParam(required = false)String orderByField,
@RequestParam(required = false)String orderByType,
+ @RequestParam(required = false)String condition,
@RequestParam Map<String, Object> param){
excludeTrash(param);
EntityWrapper<LocDetl> wrapper = new EntityWrapper<>();
convert(param, wrapper);
+ allLike(LocDetl.class, param.keySet(), wrapper, condition);
if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
return R.ok(locDetlService.selectPage(new Page<>(curr, limit), wrapper));
}
--
Gitblit v1.9.1