<?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>
|