Browse Source

时间条件调整

yfh 1 tuần trước cách đây
mục cha
commit
5b269a1f26

+ 1 - 1
fs-service-system/src/main/resources/mapper/course/FsCourseTrafficLogMapper.xml

@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         ,DATE_FORMAT(create_time, '%Y-%m-%d') AS `month`  from fs_course_traffic_log
         <where>
             <if test="startDate != null and endDate != null">
-                and create_time between #{startDate} AND #{endDate}
+                and DATE_FORMAT(create_time, '%Y-%m-%d') between #{startDate} AND #{endDate}
             </if>
             <if test='companyId !=null'>
                 and company_id = #{companyId}