Browse Source

意见反馈

zouxuan 1 year ago
parent
commit
1f34d61be9
1 changed files with 2 additions and 5 deletions
  1. 2 5
      mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

+ 2 - 5
mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

@@ -89,11 +89,8 @@
             <if test="clientType != null and clientType != ''">
                 AND ss.client_type_ = #{clientType}
             </if>
-            <if test="startTime!=null and startTime!=''">
-                AND DATE_FORMAT(ss.create_time_,'%Y-%m-%d') &gt;= #{startTime}
-            </if>
-            <if test="endTime!=null and endTime!=''">
-                AND DATE_FORMAT(ss.create_time_,'%Y-%m-%d') &lt;= #{endTime}
+            <if test="startTime != null and startTime != ''">
+                AND ss.create_time_ BETWEEN #{startTime} AND #{endTime}
             </if>
             <if test="search != null and search != ''">
                 AND (su.real_name_ LIKE CONCAT('%', #{search}, '%') OR su.username_ LIKE CONCAT('%', #{search}, '%') OR ss.user_id_=#{search} OR su.phone_=#{search})