陶杰
2024-08-22 ee9032d9baf5f33e376d2d2699136e0a7b26bec7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.supplier.StationMapper">
    <select id="queryPage" resultType="com.mzl.flower.dto.response.supplier.StationDTO">
        select * from t_station t where t.deleted= 0
        <if test="name != null and name != ''">
            and t.name like concat('%', #{name}, '%')
        </if>
        order by t.update_time desc
    </select>
    <select id="queryList" resultType="com.mzl.flower.dto.response.supplier.StationDTO"
            parameterType="java.lang.String">
        select * from t_station t where t.deleted= 0
        <if test="name != null and name != ''">
            and t.name like concat('%', #{name}, '%')
        </if>
        order by t.update_time desc
    </select>
</mapper>