package com.ydtech.modules.esm.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ydtech.modules.esm.model.EsmInsCompany; import com.ydtech.modules.esm.model.vo.res.EsmInsCompanyResVo; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; public interface EsmInsCompanyMapper extends BaseMapper { List getByLowerId80(String companyId); List getByLowerId57(String companyId); @Select("select version()") String getVersion(); default List getByLowerId(String companyId) { String version = getVersion(); if (version.contains("5.7")) { return getByLowerId57(companyId); } else { return getByLowerId80(companyId); } } List queryListByParentId( @Param("parentId") String parentId); /** * @version * @author: hxl * @Date: 2024/9/20 16:24 * @Description: 查询订单下的保险公司列表 */ List findOrderCompanyList(); /** * @version * @author: hxl * @Date: 2024/12/12 14:34 * @Description: 获取外部协议的公司列表 */ List getExternalAgreementCompanyList( @Param("name") String name); List liveCompanyList(); }