xiaoyong931011
2021-07-21 f79dd632f83167b3cd5ad01e2f7c494b92c834d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.xzx.gc.system.mapper;
 
import com.xzx.gc.entity.SysNews;
import com.xzx.gc.system.dto.SysNewsListDto;
import com.xzx.gc.system.vo.SysNewsListVo;
import com.xzx.gc.util.GcMapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface SysNewsMapper extends GcMapper<SysNews> {
 
    List<SysNewsListVo> selectSysNewsListVo(SysNewsListDto sysNewsListDto);
 
    SysNews selectById(@Param("id")Long id);
 
    void updateById(@Param("newsId")long newsId);
 
    void updateStatusById(@Param("newsId")long id, @Param("status")Integer status);
 
    void updateSysNews(@Param("title")String title, @Param("content")String content,
                            @Param("sort")Integer sort, @Param("newsId")long id);
 
}