Преглед изворни кода

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

anderx пре 1 година
родитељ
комит
f73995a173
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      ruoyi-system/src/main/resources/mapper/UserRecordMapper.xml

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

@@ -206,9 +206,15 @@
         <if test="type ==0">
             and status in (1)
         </if>
-        <if test="type ==1 or type  ==2">
+        <if test="type ==1">
             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