|
@@ -0,0 +1,46 @@
|
|
|
+package com.diagbot.web;
|
|
|
+
|
|
|
+
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.FunctionDTO;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.enums.SysTypeEnum;
|
|
|
+import com.diagbot.facade.FunctionFacade;
|
|
|
+import com.diagbot.vo.HospitalFunctionVO;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 系统功能编码表 前端控制器
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author wangfeng
|
|
|
+ * @since 2020-02-19
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/function")
|
|
|
+@Api(value = "功能清单API", tags = { "功能清单API" })
|
|
|
+@SuppressWarnings("unchecked")
|
|
|
+public class FunctionController {
|
|
|
+ @Autowired
|
|
|
+ FunctionFacade functionFacade;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据医院编码获取功能清单列表[by:wangfeng]", notes = "hospitalCode :医院code 必填<br> ")
|
|
|
+ @PostMapping("/getFunctionDatas")
|
|
|
+ @SysLogger("getFunctionDatas")
|
|
|
+ public RespDTO<List<FunctionDTO>> getFunctionDatas(@Valid @RequestBody HospitalFunctionVO hospitalFunctionVO) {
|
|
|
+ hospitalFunctionVO.setSysType(SysTypeEnum.DATA_SERVICE.getKey());
|
|
|
+ List<FunctionDTO> data = functionFacade.getFunctionData(hospitalFunctionVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+}
|