| | |
| | | package com.dsh.guns.modular.system.controller.code; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.course.feignClient.account.AppUserClient; |
| | | import com.dsh.course.feignClient.account.CityManagerClient; |
| | | import com.dsh.course.feignClient.account.model.CityManager; |
| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 广告管理控制器 |
| | | * 购课记录控制器 |
| | | * |
| | | */ |
| | | @Controller |
| | |
| | | // 获取课包id |
| | | Integer coursePackageId = tCoursePackagePayment.getCoursePackageId(); |
| | | List<TCoursePackageDiscount> list = coursePackageDiscountClient.queryByCoursePackageId(coursePackageId); |
| | | TCoursePackageDiscount tCoursePackageDiscount1 = list.get(0); |
| | | |
| | | // 获取当前课包价格配置 |
| | | CoursePackagePaymentConfig coursePackagePaymentConfigs = coursePackagePaymentConfigClient.getById(id); |
| | | Integer coursePackageId1 = tCoursePackagePayment.getCoursePackageId(); |
| | |
| | | @RequestMapping(value = "/listAll") |
| | | @ResponseBody |
| | | public List<CoursePackagePaymentVO> listAll(CoursePackagePaymentQuery query) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | if (objectType == 2){ |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | List<Integer> operatorId = storeService.list(new QueryWrapper<TStore>().eq("operatorId", objectId)) |
| | | .stream().map(TStore::getId).collect(Collectors.toList()); |
| | | query.setStoreIds(operatorId); |
| | | } |
| | | if (objectType == 3){ |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | List<Integer> list = new ArrayList<>(); |
| | | list.add(objectId); |
| | | query.setStoreIds(list); |
| | | } |
| | | return coursePackagePaymentClient.listAll(query); |
| | | } |
| | | |