fengxiang
2018-09-27 7c46bd2e4c3921fe6f77682f1c80ff5c7e927539
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>