登记收款加银行账户,允许额度欠费。

This commit is contained in:
luojiaquan
2026-09-20 17:57:10 +08:00
parent 85b37bc07e
commit 3a5b810991
15 changed files with 237 additions and 40 deletions
@@ -0,0 +1,33 @@
package com.ruoyi.web.controller.ar;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.ar.domain.ArBankAccount;
import com.ruoyi.ar.mapper.ArBankAccountMapper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
/**
* 公司收款银行账户(下拉选项,供登记收款等场景选择)。
*/
@RestController
@RequestMapping("/ar/bank-account")
public class ArBankAccountController extends BaseController {
@Autowired
private ArBankAccountMapper arBankAccountMapper;
/**
* 启用账户列表;可按币种过滤,默认账户优先。
*/
@GetMapping("/options")
public AjaxResult options(@RequestParam(value = "currency", required = false) String currency) {
List<ArBankAccount> list = arBankAccountMapper.selectEnabledList(currency);
return AjaxResult.success(list);
}
}