cloudroam
4 天以前 46715d892da947c31f07796fdc79dbbef06677b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.mzl.flower.mapper.film.AiContentTaskConfigMapper">
 
    <select id="queryPage" resultType="com.mzl.flower.dto.response.film.AiContentTaskConfigVO">
        select t.* from ai_content_task_config t
        where t.deleted= 0
        <if test="dto.taskName != null and dto.taskName != ''">
            and t.task_name like concat('%', #{dto.taskName}, '%')
        </if>
        <if test="dto.type != null and dto.type != ''">
            and t.type = #{dto.type}
        </if>
        <if test="dto.isEnabled!=null">
            AND t.is_enabled = #{dto.isEnabled}
        </if>
 
    </select>
 
</mapper>