myjf007
2024-11-04 627b61d17da1dbf02c0363c659b728627dd42890
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
<?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.AppAuditMapper">
    <select id="pageAppAudit" resultType="com.nova.sankuai.domain.vo.AppAuditVo">
        SELECT id as id ,
        platform as platform,
        source as source,
        version as version,
        company as company,
        type as type,
        IF((type=0),content0,content1) as content,
        content0 as content0,
        content1 as content1,
        notes as notes
        from app_audit
        <where>
            <if test="company!=null and company!= ''">
                company = #{company}
            </if>
            <if test="content!=null and content!= ''">
                and content0 like concat('%',#{content},'%') or content1 like concat('%',#{content},'%')
            </if>
        </where>
        order by platform, version desc, source, company
    </select>
</mapper>