package com.dk.oauth.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dk.oauth.entity.Trade; import com.dk.oauth.entity.TradeResponse; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @author : 姜永辉 * @desc : CompanyMapper * @date : 2024-2-18 15:39 */ public interface TradeMapper extends BaseMapper { /** * @desc : 通过ID查询 * @author : 洪旭东 * @date : 2024-02-18 15:21 */ TradeResponse getByCpId(@Param("cpId") Integer cpId); int insertBatch(@Param("list") List list); List selectByCond(Trade t); Long countByCond(Trade t); /** * @desc : 通过ID查询 * @author : 洪旭东 * @date : 2024-02-18 15:21 */ Trade selectById(@Param("cpId") Integer cpId); /** * @desc : 获取商户的地址服务 * @author : 姜永辉 * @date : 2024-02-18 15:21 */ String selectServiceAllot(@Param("gradeCode") String gradeCode); }