DeptInfoController.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.diagbot.web;
  2. import com.diagbot.annotation.SysLogger;
  3. import com.diagbot.dto.DeptInfoDTO;
  4. import com.diagbot.dto.RespDTO;
  5. import com.diagbot.facade.DeptInfoFacade;
  6. import com.diagbot.vo.DeptInfoVO;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.PostMapping;
  11. import org.springframework.web.bind.annotation.RequestBody;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. import javax.validation.Valid;
  15. import java.util.List;
  16. /**
  17. * <p>
  18. * 科室信息表 前端控制器
  19. * </p>
  20. *
  21. * @author wangyu
  22. * @since 2018-11-19
  23. */
  24. @RestController
  25. @RequestMapping("/deptInfo")
  26. @Api(value = "科室信息API", tags = { "科室信息API" })
  27. @SuppressWarnings("unchecked")
  28. public class DeptInfoController {
  29. @Autowired
  30. private DeptInfoFacade deptInfoFacade;
  31. @ApiOperation(value = "科室信息——查询[by:wangyu]",
  32. notes = "deptCode:科室编号,必填<br>" +
  33. "hospitalCode:医院编号,必填<br>")
  34. @PostMapping("/getDeptInfo")
  35. @SysLogger("getDeptInfo")
  36. public RespDTO<List<DeptInfoDTO>> getDeptInfo(@Valid @RequestBody DeptInfoVO deptInfoVO) {
  37. return RespDTO.onSuc(deptInfoFacade.getDeptInfo(deptInfoVO));
  38. }
  39. }