package com.fjhx.controller.supplier;

import com.fjhx.entity.supplier.SupplierBank;
import com.fjhx.service.supplier.SupplierBankService;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 供应商收款账户 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-08-08
 */
@RestController
@RequestMapping("/supplierBank")
public class SupplierBankController {

    @Autowired
    private SupplierBankService supplierBankService;

    /**
     * 供应商收款账户详情
     */
    @PostMapping("/details")
    public R details(@RequestBody SupplierBank supplierBank) {
        supplierBank = supplierBankService.getOne(SupplierBank::getSupplierId, supplierBank.getId());
        return R.success(supplierBank);
    }

}

