package cn.com.ty.lift.business.capital.dao.mapper;


import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * @author bieao
 * @date 2020/2/5
 * @description
 */
public interface CommonMapper {

    @Select("select name from user_info where user_id = #{userId}")
    String queryUserNameById(Long userId);

    @Select("select count(1) from project_lift_relevance where worker_id = #{workerId} and project_id = #{projectId}")
    long getRelevanceLiftNum(Long workerId, Long projectId);
}
