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

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

anderx пре 1 година
родитељ
комит
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">
         <if test="type ==0">
             and status in (1)
             and status in (1)
         </if>
         </if>
-        <if test="type ==1">
+        <if test="type ==1 or type == 2">
             and status in (0,2)
             and status in (0,2)
             and sum_duration > 7
             and sum_duration > 7
         </if>
         </if>
-        <if test="type  ==2">
-            and status in (0,2)
-            and sum_duration > 7
-        </if>
-
     </update>
     </update>
     <update id="userRecordMerge">
     <update id="userRecordMerge">
         update user_record a left join project_staff_record b on a.psr_id =b.id
         update user_record a left join project_staff_record b on a.psr_id =b.id