ソースを参照

修改新增打卡和修改打卡接口,同步初始打卡信息

anderx 2 年 前
コミット
154381d000
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -96,6 +96,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
         }else {
             flag=true;
         }
+        //同步到初始打卡信息
         in.setInitDuration(in.getDuration());
         projectStaffRecordMapper.insertSelective(in);
         addRecordLog(in,flag,new Date());
@@ -522,6 +523,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
         String username = SecurityUtils.getLoginUser().getUser().getNickName();
         in.setName(username);
         if(in.getProcessStatus()>1)in.setProcessStatus(1);
+        in.setInitDuration(in.getDuration());
         projectStaffRecordMapper.updateByPrimaryKeySelective(in);
         if (in.getProcessStatus()==1){
             addWechatAppSend(in, String.format("[%s]发起打卡,及时是审核!", username));