SysResourceMatchingMapper.java 1.93 KB
package com.glsx.usercenter.mapper;


import com.glsx.usercenter.dto.res.SPResourceMatchingMerchantRes;
import com.glsx.usercenter.pojo.user.SysResourceMatching;
import com.glsx.usercenter.pojo.user.SysResourceMatchingExample;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysResourceMatchingMapper {
    long countByExample(SysResourceMatchingExample example);

    int deleteByExample(SysResourceMatchingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysResourceMatching record);

    int insertSelective(SysResourceMatching record);

    List<SysResourceMatching> selectByExample(SysResourceMatchingExample example);

    SysResourceMatching selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysResourceMatching record, @Param("example") SysResourceMatchingExample example);

    int updateByExample(@Param("record") SysResourceMatching record, @Param("example") SysResourceMatchingExample example);

    int updateByPrimaryKeySelective(SysResourceMatching record);

    int updateByPrimaryKey(SysResourceMatching record);

    /**
     * 
     * @author zhanghj 
     * @Title: getSPResourceMatchingMerchantList  
     * @Description: TODO 获取服务商绑定的商户列表
     * @param serviceId
     * @return
     * List<SPResourceMatchingMerchantRes>
     * @version
     */
	List<SysResourceMatching> getSPResourceMatchingMerchantList(
			@Param("serviceId")Integer serviceId);

	/**
	 * 
	 * @author zhanghj 
	 * @Title: getSPResourceMatchingServiceItemList  
	 * @Description: TODO 获取服务商,对应商户的资源匹配服务项目列表
	 * @param serviceId
	 * @param merchantId
	 * @return
	 * List<SysResourceMatching>
	 * @version
	 */
	List<SysResourceMatching> getSPResourceMatchingServiceItemList(
			@Param("serviceId")Integer serviceId, @Param("merchantId")Integer merchantId);
}