浏览代码

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

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">