class UserProjectDao extends BaseDao {

    public UserProject getMinUserProjectByProjectId(Long project_id) throws SQLException {
        String sql = "SELECT id,project_id, user_id FROM user_project WHERE id=(SELECT min(id) FROM user_project WHERE project_id = ?)";
        List<UserProject> list = this.queryBySql(sql, UserProject.class, Parameter.integerOf(StringUtils.EMPTY, project_id));
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}