Преглед на файлове

调整批量考勤,加班与非加班都只处理原本时间大于7的。

anderx преди 2 години
родител
ревизия
356a62162d
променени са 1 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1 6
      ruoyi-system/src/main/resources/mapper/UserRecordMapper.xml

+ 1 - 6
ruoyi-system/src/main/resources/mapper/UserRecordMapper.xml

@@ -206,15 +206,10 @@
         <if test="type ==0">
             and status in (1)
         </if>
-        <if test="type ==1">
+        <if test="type ==1 or type == 2">
             and status in (0,2)
             and sum_duration > 7
         </if>
-        <if test="type  ==2">
-            and status in (0,2)
-            and sum_duration > 7
-        </if>
-
     </update>
     <update id="userRecordMerge">
         update user_record a left join project_staff_record b on a.psr_id =b.id