|
@@ -269,7 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and uid = #{userId}
|
|
|
</if>
|
|
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
|
|
- and (uptime >= #{beginTime} and uptime <= #{endTime})
|
|
|
+ and (date_format(uptime, '%Y-%m-%d') >= #{beginTime} and date_format(uptime, '%Y-%m-%d') <= #{endTime})
|
|
|
</if>
|
|
|
group by type
|
|
|
</select>
|
|
@@ -299,7 +299,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and uid = #{userId}
|
|
|
</if>
|
|
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
|
|
- and (addtime >= #{beginTime} and addtime <= #{endTime})
|
|
|
+ and (date_format(addtime, '%Y-%m-%d') >= #{beginTime} and date_format(addtime, '%Y-%m-%d') <= #{endTime})
|
|
|
</if>
|
|
|
group by type
|
|
|
</select>
|