|
@@ -57,7 +57,7 @@
|
|
|
`dl_statistics`
|
|
|
<where>
|
|
|
<if test="month != null">
|
|
|
- DATE_FORMAT(`time`,'%Y-%m') = DATE_FORMAT(#{month},'%Y-%m')
|
|
|
+ DATE_FORMAT(`time`,'%Y-%m') = #{month}
|
|
|
</if>
|
|
|
</where>;
|
|
|
</select>
|
|
@@ -68,7 +68,7 @@
|
|
|
`dl_statistics`
|
|
|
<where>
|
|
|
<if test="day != null">
|
|
|
- DATE_FORMAT(`time`,'%Y-%m-%d') = DATE_FORMAT(#{day},'%Y-%m-%d')
|
|
|
+ DATE_FORMAT(`time`,'%Y-%m-%d') = #{day}
|
|
|
</if>
|
|
|
</where>;
|
|
|
</select>
|
|
@@ -79,7 +79,7 @@
|
|
|
`dl_statistics`
|
|
|
<where>
|
|
|
<if test="year != null">
|
|
|
- DATE_FORMAT(`time`,'%Y') = DATE_FORMAT(#{year},'%Y')
|
|
|
+ DATE_FORMAT(`time`,'%Y') = #{year}
|
|
|
</if>
|
|
|
</where>;
|
|
|
</select>
|