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


import cn.wisenergy.model.app.shopZx;
5
import cn.wisenergy.model.app.zxUserDto;
6
import cn.wisenergy.model.app.zxUserVo;
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;
licc's avatar
licc committed
12

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

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

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

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

m1991's avatar
m1991 committed
34
    /**
35
     * 倒叙查询资讯与用户发布数据
m1991's avatar
m1991 committed
36
     */
37
    List<zxUserDto> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
38

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
    /**
     * 点赞接口专用
     */
    shopZx selectByzxid(@Param("zxid") Integer zxid);

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

    /**
     * 资讯审核
     * @param zxid
     * @param ZxToExamine
     * @return
     */
    int updateZxToExaminezxid(@Param("zxid")Integer zxid,@Param("ZxToExamine") Integer ZxToExamine);
61
}