无关风月
8 天以前 8a5b6dedd18a0956ffa8da7ec9ace30b1d8238fc
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupMapper.xml
@@ -12,6 +12,7 @@
        status,
        lon,
        lat,
        type,
        CASE status WHEN 1 THEN 2 WHEN 2 THEN 1 ELSE status END as sort
        from t_world_cup where status != 3
        <if test="null != item.content and '' != item.content">
@@ -69,7 +70,8 @@
        a.paiCoin,
        a.classHour,
        a.intro,
        a.content
        a.content,
        a.contentOne
        from t_world_cup  a
        where a.id = #{id}
    </select>
@@ -85,7 +87,8 @@
        CONCAT(startAge, '至', endAge) as age,
        gender,
        maxPeople,
        status
        status,
        type
        from t_world_cup
        where 1 = 1
        <if test="null != item.name and '' != item.name">
@@ -100,6 +103,9 @@
        <if test="null != item.status">
            and status= #{item.status}
        </if>
        <if test="null != item.type">
            and type= #{item.type}
        </if>
        order by createTime desc limit #{item.offset}, #{item.limit}
    </select>