Pu Zhibing
2025-08-01 38a87f638d7d0bf0a734053afc060b91bc742567
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TOpenCityMapper.xml
@@ -21,7 +21,8 @@
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, code, lon, lat, isQualifications, areaName, cityName, provinceName, flag, insertTime, insertUser, updateTime, updateUser
      id
      , code, lon, lat, isQualifications, areaName, cityName, provinceName, flag, insertTime, insertUser, updateTime, updateUser
    </sql>
    <!--根据条件查询开通城市列表-->
@@ -36,6 +37,8 @@
        when businessType = 5 then '跨城小件物流'
        when businessType = 6 then '包车'
        when businessType = 7 then '95128电召'
      when businessType = 8 then '顺风车'
      when businessType = 9 then '代驾'
        else '' end),' :',sort)) as str,openCityId from t_open_city_business where flag != 3 GROUP BY openCityId
        ) as ocb on ocb.openCityId = oc.id) as o
        <where>
@@ -44,7 +47,8 @@
                AND (o.insertTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
            </if>
            <if test="condition != null and condition != ''">
                and (o.areaName LIKE CONCAT('%',#{condition},'%') or o.cityName LIKE CONCAT('%',#{condition},'%') or o.provinceName LIKE CONCAT('%',#{condition},'%'))
            and (o.areaName LIKE CONCAT('%',#{condition},'%') or o.cityName LIKE CONCAT('%',#{condition},'%') or
            o.provinceName LIKE CONCAT('%',#{condition},'%'))
            </if>
        </where>
        order by o.id desc
@@ -53,15 +57,21 @@
    <!--根据城市ID获取经营业务-->
    <select id="getBusinessByCityId" resultType="map">
        SELECT DATE_FORMAT(bb.insertTime,'%Y-%m-%d') as insertTimeStr,
        case when bb.businessType = 1 then '快车'
             case
                when bb.businessType = 1 then '快车'
        when bb.businessType = 2 then '出租车'
        when bb.businessType = 3 then '跨城出行'
        when bb.businessType = 4 then '同城小件物流'
        when bb.businessType = 5 then '跨城小件物流'
        when bb.businessType = 6 then '包车'
        when bb.businessType = 7 then '95128电召'
        else '' end as businessTypeStr,bb.*
        FROM t_open_city_business as bb where bb.openCityId = #{openCityId} and bb.flag != 3
                when businessType = 8 then '顺风车'
                when businessType = 9 then '代驾'
                else '' end                        as businessTypeStr,
             bb.*
      FROM t_open_city_business as bb
      where bb.openCityId = #{openCityId}
        and bb.flag != 3
    </select>
</mapper>