Explorar o código

新增获取公司部门数据

anderx hai 4 meses
pai
achega
358f565993

+ 10 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ProjectTaskController.java

@@ -4,6 +4,7 @@ import com.ruoyi.common.annotation.Log;
 import com.ruoyi.common.config.RuoYiConfig;
 import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.R;
 import com.ruoyi.project.domain.CompanyClockBo;
 import com.ruoyi.common.core.page.TableDataInfo;
 import com.ruoyi.common.enums.BusinessType;
@@ -547,4 +548,13 @@ public class ProjectTaskController extends BaseController {
         List<CompanyClockBo> companyClock = projectStaffRecordService.getCompanyClock(deptId);
         return getDataTable(companyClock);
     }
+
+    /**
+     * 获取公司打卡数据
+     */
+    @GetMapping("/getCompanyDep")
+    public AjaxResult getCompanyDep(Integer deptId){
+
+        return AjaxResult.success(projectStaffRecordService.getCompanyClock(deptId));
+    }
 }