|  |  |  | 
|---|
|  |  |  | return R.ok().add(deliveryItemService.page(pageParam, wrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreAuthorize("hasAuthority('manager:deliveryItem:list')") | 
|---|
|  |  |  | @ApiOperation("分页获取列表") | 
|---|
|  |  |  | @PostMapping("/deliveryItem/edit/page") | 
|---|
|  |  |  | public R byPoIdspage(@RequestBody Map<String, Object> map) { | 
|---|
|  |  |  | List<Long> poDetlIds = new ArrayList<>(); | 
|---|
|  |  |  | if (!Objects.isNull(map.get("ids"))) { | 
|---|
|  |  |  | poDetlIds = JSONArray.parseArray(JSONArray.toJSONString(map.get("ids")), Long.class); | 
|---|
|  |  |  | map.remove("ids"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | BaseParam baseParam = buildParam(map, BaseParam.class); | 
|---|
|  |  |  | PageParam<DeliveryItem, BaseParam> pageParam = new PageParam<>(baseParam, DeliveryItem.class); | 
|---|
|  |  |  | QueryWrapper<DeliveryItem> queryWrapper = pageParam.buildWrapper(true); | 
|---|
|  |  |  | if (!poDetlIds.isEmpty()) { | 
|---|
|  |  |  | queryWrapper.in("id", poDetlIds); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok().add(deliveryItemService.page(pageParam, queryWrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreAuthorize("hasAuthority('manager:deliveryItem:list')") | 
|---|
|  |  |  | @PostMapping("/deliveryItem/list") | 
|---|
|  |  |  | public R list(@RequestBody Map<String, Object> map) { | 
|---|