package com.jwipc.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.PurchaseGroup;
import com.jwipc.sys.entity.UserPurchaseGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.sys.model.po.UserPurchaseGroupPO;
import com.jwipc.sys.model.query.UserPurchaseGroupUpdateQuery;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 采购组分配人员关联表 服务类
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-29
 */
public interface IUserPurchaseGroupService extends IService<UserPurchaseGroup> {

    /**
     * 根据用户id获取优先展示的采购组编码
     * @param userId 用户id
     * @return 采购组编码
     */
    String getMarkPurchaseGroupCodeByUserId(Long userId);

    Set<String> getUserPurchaseGroupCode(Long userId);

    List<UserPurchaseGroupPO> findPageByQueryC(Page<PurchaseGroup> dbPage, UserPurchaseGroupUpdateQuery query);
}
