| | |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<WaitPakinLog> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(WaitPakinLog::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(WaitPakinLog::getId, condition); |
| | | } |
| | | if (!Cools.isEmpty(timeRange)) { |
| | | String[] range = timeRange.split(RANGE_TIME_LINK); |
| | | wrapper.ge(WaitPakinLog::getAppeTime, DateUtils.convert(range[0])); |
| | | wrapper.le(WaitPakinLog::getAppeTime, DateUtils.convert(range[1])); |
| | | } |
| | | if (!Cools.isEmpty(param.get("zpallet"))) { |
| | | wrapper.like(WaitPakinLog::getZpallet, param.get("zpallet")); |
| | | } |
| | | if (!Cools.isEmpty(param.get("matnr"))) { |
| | | wrapper.like(WaitPakinLog::getMatnr, param.get("matnr")); |
| | | } |
| | | return R.ok(waitPakinLogService.page(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |