Quellcode durchsuchen

项目月份修改新增公司

anderx vor 1 Jahr
Ursprung
Commit
905c886a26

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

@@ -870,7 +870,9 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
         Long companyId= null;
         if (user.getUserId()!=1){
             companyId = user.getDept().getCompanyId();
-            if (companyId==null)user.getDept().getDeptId();
+            if (companyId==null){
+                companyId=user.getDept().getDeptId();
+            }
         }
         return projectTaskMapper.getAllProjectMonth(companyId);
     }