| | |
| | | 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; |
| | | |
| | | /** |
| | | * 广告管理控制器 |
| | |
| | | model.addAttribute("list",list); |
| | | Integer roleType = UserExt.getUser().getObjectType(); |
| | | model.addAttribute("roleType",roleType); |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | List<TStore> list1 = storeService.list(new LambdaQueryWrapper<TStore>().eq(TStore::getId, UserExt.getUser().getObjectId())); |
| | | model.addAttribute("stores",list1); |
| | | }else { |
| | | model.addAttribute("stores",new ArrayList<>()); |
| | | } |
| | | return PREFIX + "cpPayment_add.html"; |
| | | } |
| | | /** |
| | |
| | | ids = coursePackageClient.queryIdsByStore(UserExt.getUser().getObjectId()); |
| | | query.setIds(ids); |
| | | } |
| | | 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); |
| | | } |
| | | return coursePackagePaymentClient.listAll(query); |
| | | } |
| | | |