package com.ruoyi.ibs.list.service.impl;

import java.util.List;

import com.ruoyi.ibs.list.domain.CorporateShareholder;
import com.ruoyi.ibs.list.mapper.CorporateShareholderMapper;
import com.ruoyi.ibs.list.service.ICorporateShareholderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 企业，商户法人，关联经营人Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class CorporateShareholderServiceImpl implements ICorporateShareholderService
{
    @Autowired
    private CorporateShareholderMapper corporateShareholderMapper;

    /**
     * 查询企业，商户法人，关联经营人
     * 
     * @param socialCreditCode 企业，商户法人，关联经营人主键
     * @return 企业，商户法人，关联经营人
     */
    @Override
    public CorporateShareholder selectCorporateShareholderBySocialCreditCode(String socialCreditCode)
    {
        return corporateShareholderMapper.selectCorporateShareholderBySocialCreditCode(socialCreditCode);
    }

    /**
     * 查询企业，商户法人，关联经营人列表
     * 
     * @param corporateShareholder 企业，商户法人，关联经营人
     * @return 企业，商户法人，关联经营人
     */
    @Override
    public List<CorporateShareholder> selectCorporateShareholderList(CorporateShareholder corporateShareholder)
    {
        return corporateShareholderMapper.selectCorporateShareholderList(corporateShareholder);
    }

    /**
     * 新增企业，商户法人，关联经营人
     * 
     * @param corporateShareholder 企业，商户法人，关联经营人
     * @return 结果
     */
    @Override
    public int insertCorporateShareholder(CorporateShareholder corporateShareholder)
    {
        return corporateShareholderMapper.insertCorporateShareholder(corporateShareholder);
    }

    /**
     * 修改企业，商户法人，关联经营人
     * 
     * @param corporateShareholder 企业，商户法人，关联经营人
     * @return 结果
     */
    @Override
    public int updateCorporateShareholder(CorporateShareholder corporateShareholder)
    {
        return corporateShareholderMapper.updateCorporateShareholder(corporateShareholder);
    }

    /**
     * 批量删除企业，商户法人，关联经营人
     * 
     * @param socialCreditCodes 需要删除的企业，商户法人，关联经营人主键
     * @return 结果
     */
    @Override
    public int deleteCorporateShareholderBySocialCreditCodes(String[] socialCreditCodes)
    {
        return corporateShareholderMapper.deleteCorporateShareholderBySocialCreditCodes(socialCreditCodes);
    }

    /**
     * 删除企业，商户法人，关联经营人信息
     * 
     * @param socialCreditCode 企业，商户法人，关联经营人主键
     * @return 结果
     */
    @Override
    public int deleteCorporateShareholderBySocialCreditCode(String socialCreditCode)
    {
        return corporateShareholderMapper.deleteCorporateShareholderBySocialCreditCode(socialCreditCode);
    }
}
