| | |
| | | if (!saveOrderWithKeywords) { |
| | | return ResponseResult.error("添加关键词失败"); |
| | | } |
| | | //更新订单状态,新增关键词 |
| | | orderDto.setStatus(1); |
| | | } |
| | | //更新关键词数量 |
| | | LambdaQueryWrapper<Keyword> queryKeywordsQueryWrapper = new LambdaQueryWrapper<>(); |
| | |
| | | |
| | | // 添加查询条件 |
| | | if (clientName != null && !clientName.trim().isEmpty()) { |
| | | queryWrapper.like(Orders::getClient_name, clientName); |
| | | queryWrapper.eq(Orders::getClient_name, clientName); |
| | | } |
| | | if (status != null) { |
| | | queryWrapper.eq(Orders::getStatus, status); |
| | |
| | | queryWrapper.ge(Orders::getCreate_time, startTime); |
| | | } |
| | | } |
| | | // 排序 |
| | | queryWrapper.orderByDesc(Orders::getCreate_time); |
| | | // 分页查询 |
| | | if (pageNum != null && pageSize != null) { |
| | | Page<Orders> pageInfo = new Page<>(pageNum, pageSize); |