Bläddra i källkod

修改我的剩余打卡工时

anderx 1 år sedan
förälder
incheckning
35614080a1

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

@@ -31,6 +31,7 @@ import org.apache.commons.io.IOUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.core.parameters.P;
 import org.springframework.stereotype.Service;
 
 import javax.servlet.http.HttpServletResponse;
@@ -580,6 +581,8 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
             if (id==null){
                 return AjaxResult.error("项目不能为空");
             }
+        }else {
+            id=null;
         }
         SysUser user = SecurityUtils.getLoginUser().getUser();
         SysDept dept = user.getDept();