| | |
| | | import cc.mrbird.febs.mall.entity.MallMember; |
| | | import cc.mrbird.febs.mall.entity.MallOrderRefund; |
| | | import cc.mrbird.febs.mall.service.IAdminMallMemberService; |
| | | import cc.mrbird.febs.mall.vo.AdminAgentLevelOptionTreeVo; |
| | | import cc.mrbird.febs.mall.vo.AdminMallGoodsCategoryTreeVo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | |
| | | return mallMemberService.agentLevelUpdate(agentLevelUpdateDto); |
| | | } |
| | | |
| | | /** |
| | | * 代理-等级选择Option |
| | | */ |
| | | @GetMapping("getAgentLevelOption/tree") |
| | | @ControllerEndpoint(exceptionMessage = "获取等级失败") |
| | | public List<AdminAgentLevelOptionTreeVo> getAgentLevelOption(){ |
| | | return mallMemberService.getAgentLevelOption(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 代理列表-全部成员 |
| | | */ |
| | | @GetMapping("/agentChild") |
| | | public FebsResponse agentChild(QueryRequest request, MallMember mallMember, Integer parentId) { |
| | | if(parentId==null){ |
| | | ViewMallMemberController.idFromAgentAllMember=0; |
| | | } |
| | | mallMember.setId(ViewMallMemberController.idFromAgentAllMember); |
| | | Map<String, Object> dataTable = getDataTable(mallMemberService.agentChild(request, mallMember)); |
| | | return new FebsResponse().success().data(dataTable); |
| | | } |
| | | |
| | | /** |
| | | * 奖励设置-列表 |
| | | * @param rankAwardDto |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @GetMapping("getRankAwardList") |
| | | public FebsResponse getRankAwardList(RankAwardDto rankAwardDto, QueryRequest request) { |
| | | Map<String, Object> data = getDataTable(mallMemberService.getRankAwardList(rankAwardDto, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | /** |
| | | * 奖励设置-更新 |
| | | */ |
| | | @PostMapping("rankAwardUpdate") |
| | | @ControllerEndpoint(operation = "奖励设置-更新", exceptionMessage = "操作失败") |
| | | public FebsResponse rankAwardUpdate(@Valid RankAwardUpdateDto rankAwardUpdateDto) { |
| | | return mallMemberService.rankAwardUpdate(rankAwardUpdateDto); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |