| | |
| | | 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; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/dept") |
| | | @Api(tags = "部门管理") |
| | | public class SysDeptController extends BaseController |
| | | { |
| | | @Autowired |
| | |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门编号获取详细信息 |
| | | */ |