Commit d8a8bceb54a32335934b97e9bf5b2c56670c2325
1 parent
c9013672a6
Exists in
master
and in
6 other branches
两癌筛查
Showing 1 changed file with 3 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CancerScreeningController.java
View file @
d8a8bce
| ... | ... | @@ -10,10 +10,7 @@ |
| 10 | 10 | import com.lyms.platform.pojo.CancerScreeningModel; |
| 11 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
| 12 | 12 | import org.springframework.stereotype.Controller; |
| 13 | -import org.springframework.web.bind.annotation.PathVariable; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | -import org.springframework.web.bind.annotation.RequestMethod; | |
| 16 | -import org.springframework.web.bind.annotation.ResponseBody; | |
| 13 | +import org.springframework.web.bind.annotation.*; | |
| 17 | 14 | |
| 18 | 15 | import javax.servlet.http.HttpServletRequest; |
| 19 | 16 | |
| ... | ... | @@ -36,7 +33,7 @@ |
| 36 | 33 | @ResponseBody |
| 37 | 34 | @RequestMapping(method = RequestMethod.POST) |
| 38 | 35 | @TokenRequired |
| 39 | - public BaseResponse add(CancerScreeningModel cancerScr, HttpServletRequest request) { | |
| 36 | + public BaseResponse add(@RequestBody CancerScreeningModel cancerScr, HttpServletRequest request) { | |
| 40 | 37 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
| 41 | 38 | if (StringUtils.isNotEmpty(cancerScr.getId())) { |
| 42 | 39 | return cancerScreenService.updateCancerScreen(cancerScr, loginState.getId()); |
| ... | ... | @@ -66,7 +63,7 @@ |
| 66 | 63 | @ResponseBody |
| 67 | 64 | @RequestMapping(method = RequestMethod.GET) |
| 68 | 65 | @TokenRequired |
| 69 | - public BaseResponse list(CancerScreeningRequest cancerScreeningRequest,HttpServletRequest request) { | |
| 66 | + public BaseResponse list(CancerScreeningRequest cancerScreeningRequest, HttpServletRequest request) { | |
| 70 | 67 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
| 71 | 68 | return cancerScreenService.list(cancerScreeningRequest, loginState.getId()); |
| 72 | 69 | } |