无关风月
2024-07-11 eb6b6dbb35a9f029e0b7d269773685c19fd40976
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.dsh.other.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsh.other.entity.Banner;
import com.dsh.other.feignclient.model.AdvertisementChangeStateDTO;
import com.dsh.other.feignclient.model.AdvertisementQuery;
import com.dsh.other.model.BannerVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;
 
import java.util.List;
 
import com.dsh.other.entity.CreateHistoryDto;
import com.dsh.other.entity.GetHistoryDto;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @date 2023/7/11 17:46
 */
public interface BannerMapper extends BaseMapper<Banner> {
    void createHistory(@Param("createHistoryDto") CreateHistoryDto createHistoryDto);
 
    List<GetHistoryDto> getHistory(@Param("studentId") Integer studentId);
 
    int changeState(@Param("ids") List<Integer> ids, @Param("state") Integer state);
 
    List<Banner> listAll(@Param("query") AdvertisementQuery query);
 
    String getFirst();
 
    List<BannerVo> list1(Integer position);
}