<?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.nova.sankuai.infra.mapper.HotCityMapper">
|
|
<select id="getHotCities" resultType="com.nova.sankuai.domain.entity.HotCity">
|
select hc.id as id,
|
hc.city_id as cityId,
|
hc.province_id as provinceId,
|
hc.enable_flag as enableFlag,
|
c.name as cityName
|
from hot_city hc left join city c
|
on hc.city_id = c.city_id
|
where hc.enable_flag = 1
|
order by hc.city_id
|
</select>
|
|
<select id="pageModel" resultType="com.nova.sankuai.domain.entity.HotCity">
|
select hc.id as id,
|
hc.city_id as cityId,
|
hc.province_id as provinceId,
|
hc.enable_flag as enableFlag,
|
c.name as cityName
|
from hot_city hc left join city c
|
on hc.city_id = c.city_id order by hc.city_id
|
</select>
|
|
</mapper>
|