package com.jeeplus.psimanage.dishManage.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.psimanage.dishManage.domain.PsiCreditCustomer;
import org.apache.ibatis.annotations.Param;

/**
 * 挂账人信息登记
 */
public interface PsiCreditCustomerMapper extends BaseMapper<PsiCreditCustomer> {

    IPage<PsiCreditCustomer> findList(Page<PsiCreditCustomer> page, @Param("ew") Wrapper<PsiCreditCustomer> wrapper);

    PsiCreditCustomer queryById(@Param("id") String id);

    Integer checkMobileIsExist(@Param("mobile") String mobile, @Param("id") String id);

    void updateStatusById(@Param("id") String id, @Param("status") String status, @Param("auditorId") String auditorId);
}
