package com.yh.saas.plugin.yiliangyiyun.mapper;

import com.winsea.svc.notice.entity.NoticeTaskInfo;
import com.yh.saas.plugin.yiliangyiyun.entity.CollectionManagement;
import com.yh.saas.plugin.yiliangyiyun.entity.CommonUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-12
 */
public interface CommonUserMapper extends BaseMapper<CommonUser> {


    CommonUser login(@Param("phone") String phone, @Param("cryptPassword") String cryptPassword);

    /**
     * 根据条件查询总数
     *
     * @param pageView
     * @return
     */
    Integer getCountByCondition(Map<String, Object> pageView);

    /**
     * 根据条件查询
     *
     * @param pageView
     * @return
     */
    List<NoticeTaskInfo> getListByCondition(Map<String, Object> pageView);

}
