Commit a68c5698964496324e1b4630c0dca2162a83e321

Authored by xiejianpeng
1 parent 9240078b

员工管理

src/main/java/com/zteits/oa/report/web/demo/DemoController.java renamed to src/main/java/com/zteits/oa/report/web/AsraOpController.java
1   -package com.zteits.oa.report.web.demo;
2   -
3   -import javax.servlet.http.HttpServletRequest;
4   -
5   -import org.springframework.beans.factory.annotation.Autowired;
6   -import org.springframework.web.bind.annotation.RequestBody;
7   -import org.springframework.web.bind.annotation.RequestMapping;
8   -import org.springframework.web.bind.annotation.RequestMethod;
9   -import org.springframework.web.bind.annotation.RestController;
  1 +package com.zteits.oa.report.web;
10 2  
11 3 import com.zteits.oa.api.base.bean.BizResult;
12 4 import com.zteits.oa.api.base.bean.PageBean;
13 5 import com.zteits.oa.api.dto.asraop.AsraOpDTO;
14 6 import com.zteits.oa.api.dto.asraop.param.AsraOpQueryReq;
15 7 import com.zteits.oa.api.service.report.query.AsraOpRueryService;
16   -
17 8 import io.swagger.annotations.Api;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.web.bind.annotation.RequestBody;
  11 +import org.springframework.web.bind.annotation.RequestMapping;
  12 +import org.springframework.web.bind.annotation.RequestMethod;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +
  15 +import javax.servlet.http.HttpServletRequest;
18 16  
19   -@Api(value = "swagger测试", description = "swagger测")
  17 +@Api(value = "日报系统-员工管理", description = "日报系统-员工管理")
20 18 @RestController
21   -@RequestMapping("/demo")
22   -public class DemoController {
  19 +@RequestMapping("/asraOp")
  20 +public class AsraOpController {
  21 +
23 22 @Autowired
24 23 private AsraOpRueryService asraOpRueryService;
25 24  
26   - @RequestMapping(value="/demo",method = RequestMethod.POST)
27   - public BizResult<PageBean<AsraOpDTO>> test(@RequestBody AsraOpQueryReq asraOpQueryReq, HttpServletRequest request){
  25 + @RequestMapping(value="/queryAsraOpPage",method = RequestMethod.POST)
  26 + public BizResult<PageBean<AsraOpDTO>> queryAsraOpPage(@RequestBody AsraOpQueryReq asraOpQueryReq, HttpServletRequest request){
28 27 BizResult<PageBean<AsraOpDTO>> result = asraOpRueryService.queryAsraOpForPage(asraOpQueryReq);
29 28 return result;
30 29 }
... ...