ShopZxMapper.java 1.91 KB
Newer Older
1 2 3 4
package cn.wisenergy.mapper;


import cn.wisenergy.model.app.shopZx;
5
import cn.wisenergy.model.dto.ZxUserDto;
6
import cn.wisenergy.model.vo.ShopZxUserVo;
7 8 9 10 11
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
12
import java.util.Map;
licc's avatar
licc committed
13

14 15 16 17 18 19 20 21 22 23 24 25

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

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

28
    /**
29 30
     * 用户头像上传并更新
     * @param
31 32
     * @return
     */
33
    int zxadd1(@Param("headImage") String headImage,@Param("userId") String userId);
34

m1991's avatar
m1991 committed
35
    /**
36
     * 倒叙查询资讯与用户发布数据
m1991's avatar
m1991 committed
37
     */
38
    List<ZxUserDto> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
39 40 41 42 43 44 45 46
//
//    /**
//     * 用于查询资讯单表全部信息
//     * @param pageNum
//     * @param pageSize
//     * @return
//     */
//    List<zxUserVo> selectAll(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
47

48 49 50 51 52 53
    /**
     * 点赞接口专用
     */
    shopZx selectByzxid(@Param("zxid") Integer zxid);

    int updateByzxid(@Param("zxid")Integer zxid,@Param("zxLikes") Integer zxLikes);
54 55 56 57 58 59 60 61

    /**
     * 资讯审核
     * @param zxid
     * @param ZxToExamine
     * @return
     */
    int updateZxToExaminezxid(@Param("zxid")Integer zxid,@Param("ZxToExamine") Integer ZxToExamine);
62 63 64 65 66 67 68 69 70 71 72 73 74 75

    /**
     * 分页查询所有用户信息
     * @param map
     * @return
     */
    List<ShopZxUserVo> getShopZxList(Map<String, Object> map);

    /**
     * 统计总记录数
     * @param map 入参
     * @return 结果
     */
    int count( Map<String, Object> map);
76
}