xuhy
9 天以前 508f3e225df87e0da974424981e7782fc5ce875c
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?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.system.mapper.TShopMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.system.domain.TShop">
        <id column="id" property="id" />
        <result column="shopType" property="shopType" />
        <result column="shopName" property="shopName" />
        <result column="shopHead" property="shopHead" />
        <result column="shopStyle" property="shopStyle" />
        <result column="systemName" property="systemName" />
        <result column="systemLogo" property="systemLogo" />
        <result column="businessLicense" property="businessLicense" />
        <result column="status" property="status" />
        <result column="account" property="account" />
        <result column="createTime" property="createTime" />
        <result column="updateTime" property="updateTime" />
        <result column="disabled" property="disabled" />
        <result column="createBy" property="createBy" />
        <result column="updateBy" property="updateBy" />
        <result column="userId" property="userId" />
        <result column="mealType" property="mealType" />
        <result column="area" property="area" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, shopType, shopName,shopHead, shopStyle, systemName, systemLogo, businessLicense,status,account,
            createTime, updateTime, disabled, createBy, updateBy,userId,mealType,area
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.vo.TShopVO">
        select id, shopType, shopName,shopHead, shopStyle, systemName, systemLogo, businessLicense,
        status,account, createTime, updateTime, disabled, createBy, updateBy,userId,mealType,area
        from t_shop ts
        <where>
            <if test="query.shopType != null">
                AND shopType = #{query.shopType}
            </if>
            <if test="query.shopName != null and query.shopName != ''">
                AND shopName LIKE concat('%',#{query.shopName},'%')
            </if>
            <if test="query.shopHead != null and query.shopHead != ''">
                AND shopHead LIKE concat('%',#{query.shopHead},'%')
            </if>
            <if test="query.account != null and query.account != ''">
                AND account LIKE concat('%',#{query.account},'%')
            </if>
            <if test="query.status != null">
                AND status = #{query.status}
            </if>
            AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY createTime DESC
    </select>
 
</mapper>