瀏覽代碼

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

anderx 1 年之前
父節點
當前提交
154381d000

+ 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));