| | |
| | | import com.xinquan.common.core.utils.page.CollUtils; |
| | | import com.xinquan.common.core.utils.page.PageDTO; |
| | | import com.xinquan.common.core.web.page.PageInfo; |
| | | import com.xinquan.common.log.annotation.Log; |
| | | import com.xinquan.common.log.enums.BusinessType; |
| | | import com.xinquan.common.security.service.TokenService; |
| | | import com.xinquan.course.api.domain.Course; |
| | | import com.xinquan.course.api.feign.RemoteCourseService; |
| | |
| | | startTime = split[0]+" 00:00:00"; |
| | | endTime = split[1]+" 23:59:59"; |
| | | } |
| | | List<Long> longs = new ArrayList<>(); |
| | | longs.add(1L); |
| | | longs.add(2L); |
| | | longs.add(3L); |
| | | LambdaQueryWrapper<Order> courseLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | if (startTime!=null){ |
| | | courseLambdaQueryWrapper.between(Order::getCreateTime, startTime, endTime); |
| | |
| | | } |
| | | if (StringUtils.hasLength(courseDTO.getOrderFrom())){ |
| | | courseLambdaQueryWrapper.in(Order::getOrderFrom, Arrays.asList(courseDTO.getOrderFrom().split(","))); |
| | | }else{ |
| | | courseLambdaQueryWrapper.in(Order::getOrderFrom,longs); |
| | | } |
| | | courseLambdaQueryWrapper.eq(courseDTO.getUid()!=null&&(!courseDTO.getUid().isEmpty()),Order::getAppUserId, courseDTO.getUid()); |
| | | if (org.springframework.util.StringUtils.hasLength(courseDTO.getBuyContent())){ |
| | |
| | | } |
| | | if (StringUtils.hasLength(courseDTO.getOrderFrom())){ |
| | | courseLambdaQueryWrapper.in(Order::getOrderFrom, Arrays.asList(courseDTO.getOrderFrom().split(","))); |
| | | }else{ |
| | | List<Long> longs = new ArrayList<>(); |
| | | longs.add(1L); |
| | | longs.add(2L); |
| | | longs.add(3L); |
| | | courseLambdaQueryWrapper.in(Order::getOrderFrom,longs); |
| | | } |
| | | if (org.springframework.util.StringUtils.hasLength(courseDTO.getBuyContent())){ |
| | | // 查询购买内容 |
| | |
| | | } |
| | | @GetMapping("/cancel") |
| | | @ApiOperation(value = "取消订单", tags = "管理后台-订单列表管理") |
| | | @Log(title = "【订单列表管理】取消订单", businessType = BusinessType.UPDATE) |
| | | |
| | | public R updateState(String uid) { |
| | | Order byId = orderService.getById(uid); |
| | | byId.setPaymentStatus(3); |
| | |
| | | private TokenService tokenService; |
| | | @GetMapping("/ChangeMoney") |
| | | @ApiOperation(value = "改价", tags = "管理后台-订单列表管理") |
| | | @Log(title = "【订单列表管理】改价", businessType = BusinessType.UPDATE) |
| | | public R ChangeMoney(String uid,String amount) { |
| | | Order byId = orderService.getById(uid); |
| | | byId.setChangePrice(new BigDecimal(amount)); |