yonge 4 년 전
부모
커밋
abfd8144e2
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      mec-auth/mec-auth-server/src/main/resources/config/mybatis/SysUserDeviceMapper.xml

+ 4 - 4
mec-auth/mec-auth-server/src/main/resources/config/mybatis/SysUserDeviceMapper.xml

@@ -74,10 +74,10 @@
 				and device_num_ = #{deviceNum}
 			</if>
 			<if test="bindStartTime != null">
-				and bind_time_ &gt;= #{bindStartTime}
+				and date(bind_time_) &gt;= #{bindStartTime}
 			</if>
 			<if test="bindEndTime != null">
-				and bind_time_ &lt;= #{bindEndTime}
+				and date(bind_time_) &lt;= #{bindEndTime}
 			</if>
 		</where>
 		ORDER BY id_
@@ -95,10 +95,10 @@
 				and device_num_ = #{deviceNum}
 			</if>
 			<if test="bindStartTime != null">
-				and bind_time_ &gt;= #{bindStartTime}
+				and date(bind_time_) &gt;= #{bindStartTime}
 			</if>
 			<if test="bindEndTime != null">
-				and bind_time_ &lt;= #{bindEndTime}
+				and date(bind_time_) &lt;= #{bindEndTime}
 			</if>
 		</where>
 	</select>