Helius
2021-07-21 bb5a5bdc383f40d3338aa50cc921a74d79d0023b
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
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzx.gc.system.mapper.SysNewsMapper">
 
    <select id="selectSysNewsListVo" resultType="com.xzx.gc.system.vo.SysNewsListVo">
        select * from xzx_sys_news
        order by sort ASC
    </select>
 
    <select id="selectById" resultType="com.xzx.gc.entity.SysNews">
        select * from xzx_sys_news where news_id = #{id}
        order by sort ASC
    </select>
 
 
    <update id="updateById" parameterType="java.util.Map">
        update xzx_sys_news
        set del_flag=1
        where  news_id = #{newsId}
    </update>
 
 
    <update id="updateStatusById" parameterType="java.util.Map">
        update xzx_sys_news
        set status = #{status}
        where  news_id = #{newsId}
    </update>
 
    <update id="updateSysNews" parameterType="java.util.Map">
        update xzx_sys_news
        set title = #{title},
            content = #{content},
            sort = #{sort}
        where  news_id = #{newsId}
    </update>
 
 
</mapper>