heheng
2025-09-12 3b109477ba6bd8dce0f61eb75248e603e584d8af
gkhy-admin/src/main/java/com/gkhy/web/controller/system/SysDeptController.java
@@ -1,6 +1,10 @@
package com.gkhy.web.controller.system;
import java.util.Date;
import java.util.List;
import com.gkhy.system.domain.vo.DeptVo;
import io.swagger.annotations.*;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -29,6 +33,7 @@
 */
@RestController
@RequestMapping("/system/dept")
@Api(tags = "部门管理")
public class SysDeptController extends BaseController
{
    @Autowired
@@ -57,6 +62,17 @@
        return success(depts);
    }
    @GetMapping("/getDeptCheckData")
    @ApiOperation(value = "部门统计安全检查数据")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "searchDate", dataType = "date", required = false, value = "searchDate"),
    })
    public AjaxResult getDeptData(Date searchDate)
    {
        List<DeptVo> deptData = deptService.selectDeptData(searchDate);
        return success(deptData);
    }
    /**
     * 根据部门编号获取详细信息
     */