无关风月
6 天以前 c72910d2b90f74d23e770717d80921b4fd064d48
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.ruoyi.account.mapper.ApplyForAdmissionMapper">
 
 
    <select id="selectApplyList" resultType="com.ruoyi.account.vo.ApplyForAdmissionListVO">
        SELECT id, shop_name, business_time, shop_manager, phone,
        CONCAT(address, detail_address) AS full_address, status
        FROM t_apply_for_admission
        <where>
           <if test='shopName != null and shopName !="" '>
                   AND shop_name LIKE CONCAT('%', #{shopName}, '%')
               </if>
           <if test='shopManager != null and shopManager !="" '>
                   AND shop_manager LIKE CONCAT('%', #{shopManager}, '%')
               </if>
           <if test='phone != null and phone !="" '>
                   AND phone  LIKE CONCAT('%', #{phone}, '%')
               </if>
           <if test='status != null '>
                   AND status = #{status}
           </if>
        </where>
        ORDER BY create_time DESC
    </select>
</mapper>