xiaoyong931011
2022-09-13 61797ff1f2e016c918690ee078e7c1ffd66da28e
src/main/java/cc/mrbird/febs/mall/controller/AdminMallTeamLeaderController.java
@@ -49,8 +49,26 @@
     */
    @PostMapping("leaderUpdate")
    @ControllerEndpoint(operation = "团长信息--审核", exceptionMessage = "审核失败")
    public FebsResponse leaderUpdate(@Valid AdminLeaderUpdateDto adminLeaderUpdateDto) {
        return iAdminMallTeamLeaderService.leaderUpdate(adminLeaderUpdateDto);
    public FebsResponse leaderUpdate(@Valid MallTeamLeader mallTeamLeader) {
        return iAdminMallTeamLeaderService.leaderUpdate(mallTeamLeader);
    }
    /**
     * 团长-开启返利
     */
    @GetMapping("startProfit/{id}")
    @ControllerEndpoint(operation = "团长-开启返利", exceptionMessage = "操作失败")
    public FebsResponse startProfit(@NotNull(message = "{required}") @PathVariable Long id) {
        return iAdminMallTeamLeaderService.startProfit(id);
    }
    /**
     * 团长-关闭返利
     */
    @GetMapping("closeProfit/{id}")
    @ControllerEndpoint(operation = "团长-关闭返利", exceptionMessage = "操作失败")
    public FebsResponse closeProfit(@NotNull(message = "{required}") @PathVariable Long id) {
        return iAdminMallTeamLeaderService.closeProfit(id);
    }
@@ -105,7 +123,7 @@
        bonusSwitchDic.setValue(bonusSwitch.toString());
        dataDictionaryCustomMapper.updateById(bonusSwitchDic);
        Double bonusPercent = adminLeaderBonusSettingVo.getBonusPercent();
        Double bonusPercent = Double.parseDouble(adminLeaderBonusSettingVo.getBonusPercent());
        if(1 <= bonusPercent || 0 >= bonusPercent){
            return new FebsResponse().fail().message("请输入合适的百分比小数");
        }