Sunshine
2024-11-05 8f7985d7764a0aad24bd593ac5ea47b7fc290961
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
<?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.nova.sankuai.infra.mapper.HotIssuesMapper">
    <select id="getHotIssues" resultType="com.nova.sankuai.domain.vo.HotIssuesListVo">
        select id as id,
        issues_content as issuesContent,
        answer_content as answerContent,
        seqencing as seqencing
        from hot_issues
        <if test="issuesContent != null">
            where issues_content like concat('%',#{issuesContent},'%')
        </if>
        order by seqencing
    </select>
 
    <select id="getAppHotIssues" resultType="com.nova.sankuai.domain.vo.HotIssuesAppListVo">
        select
        issues_content as issuesContent,
        answer_content as answerContent,
        seqencing as seqencing
        from hot_issues
        order by seqencing
    </select>
 
</mapper>