package com.chaozhanggui.merchant.service;

import com.alibaba.fastjson.JSONObject;
import com.chaozhanggui.common.system.config.MsgException;
import com.chaozhanggui.dao.system.dao.TbPlussMerchantChannelMapper;
import com.chaozhanggui.dao.system.entity.TbPlussMerchantChannel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MerchantService {

    @Autowired
    private TbPlussMerchantChannelMapper tbPlussMerchantChannelMapper;

    public void merchantAudit(JSONObject jsonObject, String channelId){
        MsgException.checkBlank(channelId, "请选择进件通道");

        //获取进件通道
        TbPlussMerchantChannel channel= tbPlussMerchantChannelMapper.selectByPrimaryKey(Integer.valueOf(channelId));
        MsgException.checkNull(channel, "不存在的进件通道，或所选通道暂不支持进件");



    }
}
