package com.ruoyi.ibs.cmpm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ibs.cmpm.domain.entity.GridCmpmRetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 吴凯程
 * @Date 2025/5/26
 **/
@Mapper
public interface GridCmpmRetailMapper extends BaseMapper<GridCmpmRetail> {
    GridCmpmRetail getGridCmpmRetailByCustId(@Param("custId") String custId, @Param("deptCode") String deptCode);

    List<GridCmpmRetail> getGridCmpmRetailByUserName(@Param("userName") String userName, @Param("deptCode") String deptCode);

    Long updateGridCmpmRetail(@Param("custId") String custId, @Param("deptCode") String deptCode,
                              @Param("userName") String userName, @Param("nickName") String nickName,
                              @Param("outletId") Long outletId, @Param("outletName") String outletName,
                              @Param("branchId") Long branchId, @Param("branchName") String branchName);

    List<String> getAllCustLevel();
}
