ShopZxMapper.java 1.31 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 7 8 9 10
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
11

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

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

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

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

m1991's avatar
m1991 committed
33
    /**
34
     * 查询资讯数据
m1991's avatar
m1991 committed
35
     */
36
    List<zxUserDto> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
37 38 39 40 41 42 43

    /**
     * 点赞接口专用
     */
    shopZx selectByzxid(@Param("zxid") Integer zxid);

    int updateByzxid(@Param("zxid")Integer zxid,@Param("zxLikes") Integer zxLikes);
44 45 46 47 48 49 50 51

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