fengxiang
2018-09-05 38d01228075244cec9f3d85c3c0ba85367a6aae9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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.moral.mapper.QualityDailyMapper">
    <select id="getQualityCountDayByRegion" resultType="map">
        SELECT
            COUNT( * ) count 
        FROM
            quality_daily 
        <where>
            time >= #{start} 
            AND time &lt; #{end} 
            AND city_code = #{cityCode} 
            AND quality &lt; 3        
        </where>
    </select>
</mapper>