运营商切换提现方式

This commit is contained in:
Guoqs
2025-03-06 14:36:42 +08:00
parent 144732da3a
commit 76a32f79ee
6 changed files with 106 additions and 9 deletions

View File

@@ -6,22 +6,18 @@ import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.core.page.TableDataInfo;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.PageUtils;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.pile.domain.PileMerchantInfo;
import com.jsowell.pile.dto.CreateMerchantDTO;
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
import com.jsowell.pile.service.PileMerchantInfoService;
import com.jsowell.pile.util.UserUtils;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import org.apache.commons.collections4.CollectionUtils;
import com.jsowell.pile.vo.web.MerchantWithdrawalTypeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
/**
@@ -140,4 +136,23 @@ public class PileMerchantInfoController extends BaseController {
PageUtils.startPage(pageNum, pageSize);
return getDataTable(pileMerchantInfoService.queryMerchantInfoListByAuth(dto));
}
/**
* 查询运营商配置的提现方式
*/
@PreAuthorize("@ss.hasPermi('pile:merchant:query')")
@PostMapping("/queryWithdrawalType")
public AjaxResult queryWithdrawalType(@RequestBody QueryMerchantInfoDTO dto) {
return AjaxResult.success(pileMerchantInfoService.queryWithdrawalType(dto));
}
/**
* 修改提现方式
*/
@PreAuthorize("@ss.hasPermi('pile:merchant:edit')")
@Log(title = "修改提现方式", businessType = BusinessType.UPDATE)
@PutMapping("/updateWithdrawalType")
public AjaxResult updateWithdrawalType(@RequestBody MerchantWithdrawalTypeVO dto) {
return toAjax(pileMerchantInfoService.updateWithdrawalType(dto));
}
}