package cn.wisenergy.mapper;


import cn.wisenergy.model.app.shopZx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by m1991 on 2021/2/24 14:50
 */
@Mapper
public interface ShopZxMapper extends BaseMapper<shopZx> {

    /**
     *  添加方法  zxUrl userId   zxName  zxField imgUrl
     * @param
     * @return 1
     */
    int zxadd(@Param("zxUrl") String zxUrl,@Param("userId") String userId,@Param("zxName") String zxName,@Param("zxField") String zxField,@Param("imgUrl") String imgUrl,@Param("zxAddress") String zxAddress);

    /**分页 资讯内容倒叙查询
     * PageSize int,  --每页的记录数量，比如10条#{beginPos},#{pageSize}
     * @param
     * @return
     */
    List<shopZx> selectAll(@Param("PageSize") int PageSize,@Param("beginPos") int beginPos);

    //    /**查询方法
//     * @param
//     * @return
//     */
//    List<shopZx> selectAllNum(@Param("") int ,@Param("") int );

}
