| | |
| | | package com.zy.asrs.wcs.system.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<BasShuttleOpt, BaseParam> pageParam = new PageParam<>(baseParam, BasShuttleOpt.class); |
| | | return R.ok().add(basShuttleOptService.page(pageParam, pageParam.buildWrapper(true))); |
| | | QueryWrapper<BasShuttleOpt> wrapper = pageParam.buildWrapper(true); |
| | | wrapper.orderByDesc("send_time"); |
| | | return R.ok().add(basShuttleOptService.page(pageParam, wrapper)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('rcs:basShuttleOpt:list')") |