|
@@ -1,6 +1,7 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.DeptBaseDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.ConsoleByDeptFacade;
|
|
|
import com.diagbot.vo.FilterByDeptVO;
|
|
@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -62,4 +64,13 @@ public class ConsoleByDeptController {
|
|
|
Map<String, Object> data = consoleByDeptFacade.entryCountGroupByEntryAndDept(filterByDeptVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ @ApiOperation(value = "用户关联科室[by:zhaops]",
|
|
|
+ notes = "")
|
|
|
+ @PostMapping("/getDept")
|
|
|
+ @SysLogger("getDept")
|
|
|
+ public RespDTO<List<DeptBaseDTO>> getDept() {
|
|
|
+ List<DeptBaseDTO> data = consoleByDeptFacade.getDept();
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+}
|