| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.common.wms.entity.BasLocSts; |
| | | import com.zy.asrs.common.wms.entity.BasWrkIotype; |
| | | import com.zy.asrs.common.wms.service.BasWrkIotypeService; |
| | | import com.zy.asrs.framework.annotations.ManagerAuth; |
| | |
| | | public R page(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam(required = false) String timeRange) { |
| | | @RequestParam(required = false) String timeRange, |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<BasWrkIotype> wrapper = new LambdaQueryWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(BasWrkIotype::getIoDesc, condition); |
| | |
| | | wrapper.ge(BasWrkIotype::getAppeTime, DateUtils.convert(range[0])); |
| | | wrapper.le(BasWrkIotype::getAppeTime, DateUtils.convert(range[1])); |
| | | } |
| | | if (!Cools.isEmpty(param.get("io_type"))) { |
| | | wrapper.eq(BasWrkIotype::getIoType, param.get("io_type")); |
| | | } |
| | | return R.ok(basWrkIotypeService.page(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |