1234567891011121314151617181920212223242526272829303132333435363738 |
- package com.bizmatics.controller.web;
- import com.bizmatics.common.core.bean.ApiResult;
- import com.bizmatics.service.PersonnelService;
- import com.bizmatics.service.vo.CommonTotalVO;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- /**
- * 人员信息
- *
- * @author ya
- * @since 2021-07-07
- */
- @RestController
- @RequestMapping("/personnel")
- public class PersonnelController {
- @Autowired
- private PersonnelService personnelService;
- /**
- * 查询运维人员
- * @return
- */
- @RequestMapping("count")
- public ApiResult<List<CommonTotalVO>> getCount(){
- return ApiResult.success(personnelService.selectCount());
- }
- }
|