소스 검색

打卡数据匹配考勤接口开发

anderx 2 년 전
부모
커밋
97f931bd83
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ruoyi-system/src/main/resources/mapper/UserRecordMapper.xml

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

@@ -204,10 +204,10 @@
         </if>
         where create_id = #{userId,jdbcType=BIGINT}
         <if test="type ==0">
-            and status = 1
+            and status in (1)
         </if>
         <if test="type ==1 or type  ==2">
-            and status = 0
+            and status in (0,2)
         </if>
     </update>
     <update id="userRecordMerge">