cloudroam
2024-08-29 9891487fc5a112f180eab34caef9788bae2e3acf
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
<?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.point.PointGoodMapper">
    <select id="queryPage" resultType="com.mzl.flower.dto.response.point.PointGoodVO">
        select * from t_point_goods t where t.deleted= 0
        <if test="dto.name != null and dto.name != ''">
            and t.name like concat('%', #{dto.name}, '%')
        </if>
        <if test="dto.status != null and dto.status != ''">
            and t.status = #{dto.status}
        </if>
        order by t.update_time desc
    </select>
    <select id="queryList" resultType="com.mzl.flower.dto.response.point.PointGoodVO"
            parameterType="com.mzl.flower.dto.request.point.PointGoodQueryDTO">
        select * from t_point_goods t where t.deleted= 0
        <if test="dto.name != null and dto.name != ''">
            and t.name like concat('%', #{dto.name}, '%')
        </if>
        <if test="dto.status != null and dto.status != ''">
            and t.status = #{dto.status}
        </if>
 
        order by t.update_time desc
    </select>
</mapper>