package com.yuchen.saas.park.service.service;

import com.yuchen.saas.park.api.entity.park.PmgBatParkXCPayInfo;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.tool.api.R;

/**
 * @ClassName XCPayInfoService
 * @Description 园区厦门银行支付配置信息操作接口
 * @Author 张逸飞
 * @Date 2022/6/16 15:50
 */
public interface XCPayInfoService extends BaseService<PmgBatParkXCPayInfo> {

    /**
     * 根据园区ID获取厦门银行支付信息
     * @param parkId 园区ID
     * @return
     */
    PmgBatParkXCPayInfo getByParkId(Long parkId);

    /**
     * 根据商户编号获取厦门银行支付信息
     * @param oidPartner 商户编号
     * @return
     */
    PmgBatParkXCPayInfo getByOidPartner(String oidPartner);

    /**
     * 保存或者修改厦门银行支付信息
     * @param pmgBatParkXCPayInfo 厦门银行支付信息
     * @return
     */
    R addOrUpdate(PmgBatParkXCPayInfo pmgBatParkXCPayInfo);
}
