package com.bcxin.ins.service.order.impl;

import com.bcxin.ins.dao.order.InsRiskLevelAPIDao;
import com.bcxin.ins.service.order.InsRiskLevelAPIService;
import com.bcxin.ins.entity.tpost.TposRiskLevel;
import com.bcxin.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(readOnly = true)
public class InsRiskLevelAPIServiceImpl extends ServiceImpl<InsRiskLevelAPIDao, TposRiskLevel> implements InsRiskLevelAPIService {
	@Autowired
	private InsRiskLevelAPIDao dao;
	/**
	 * <b>根据CountryCode去 InsRiskLevel表查询获取到countryGroup</b> 
	 * 
	 * @param countryCode
	 * @return
	 * @author ZXF 
	 * @date 2017年1月19日 上午11:19:10
	 * @注意事项 </b>
	 * <b>
	 */
	@Override
	public String accordingToCountryCodeGainCountryGroup(String countryCode,String product_id){
		return dao.accordingToCountryCodeGainCountryGroup(countryCode,product_id);
	}
	@Override
	public List<String>  getCountryGroup(Long productId){
		return dao.getCountryGroup(productId);
	}
}
