|
@@ -1,7 +1,16 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.facade.DeptInfoFacade;
|
|
|
+import com.diagbot.vo.AddDeptInfoVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+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;
|
|
|
|
|
@@ -16,7 +25,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
|
@RequestMapping("/deptInfo")
|
|
|
@SuppressWarnings("unchecked")
|
|
|
-@Api(value = "科室相关API", tags = { "科室相关API" })
|
|
|
+@Api(value = "科室维护相关API", tags = { "科室相关维护API" })
|
|
|
public class DeptInfoController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private DeptInfoFacade deptInfoFacade;
|
|
|
+
|
|
|
+ @ApiOperation(value = "科室维护——添加(本地科室)[by:wangyu]",
|
|
|
+ notes = "name: 科室编号,必填<br>")
|
|
|
+ @PostMapping("/addDeptInfo")
|
|
|
+ @SysLogger("addDeptInfo")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> addDeptInfo(@RequestBody AddDeptInfoVO addDeptInfoVO) {
|
|
|
+ Boolean data = deptInfoFacade.addDeptInfo(addDeptInfoVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
}
|