瀏覽代碼

sql优化

tomatozq 3 年之前
父節點
當前提交
49f7689d53
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      common/src/main/resources/mapper/business/WorkScheduleAttendance.xml

+ 0 - 3
common/src/main/resources/mapper/business/WorkScheduleAttendance.xml

@@ -661,14 +661,11 @@
     <select id="findEmptyWorkMinuteList" resultMap="WorkScheduleAttendanceMap">
         select * from
         business_work_schedule_attendance
-        FORCE INDEX(`idx_record_time`,`idx_classify_result`)
         where
         work_minute is null
         and
         classify_='2'
         and
-        result_ in ('1','2','3')
-        and
         del_flag=0
         and
         record_time>'2021-10-01'