Commit a1b5c85997392a9448c75dfccd52fc604369ebf9
1 parent
717bf48063
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 4 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEvaluationCriterionController.java
View file @
a1b5c85
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | 3 | import com.alibaba.fastjson.JSONObject; |
| 4 | +import com.fasterxml.jackson.annotation.JsonAlias; | |
| 4 | 5 | import com.lyms.platform.common.annotation.TokenRequired; |
| 5 | 6 | import com.lyms.platform.common.base.BaseController; |
| 6 | 7 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| ... | ... | @@ -10,10 +11,7 @@ |
| 10 | 11 | import com.lyms.platform.operate.web.service.BabyEvaluationCriterionService; |
| 11 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
| 12 | 13 | import org.springframework.stereotype.Controller; |
| 13 | -import org.springframework.web.bind.annotation.RequestBody; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | -import org.springframework.web.bind.annotation.RequestMethod; | |
| 16 | -import org.springframework.web.bind.annotation.ResponseBody; | |
| 14 | +import org.springframework.web.bind.annotation.*; | |
| 17 | 15 | |
| 18 | 16 | import javax.servlet.http.HttpServletRequest; |
| 19 | 17 | import javax.validation.Valid; |
| ... | ... | @@ -210,8 +208,8 @@ |
| 210 | 208 | */ |
| 211 | 209 | @ResponseBody |
| 212 | 210 | @TokenRequired |
| 213 | - @RequestMapping(method = RequestMethod.POST, value = "/delBabyNeuroPsychological") | |
| 214 | - private BaseResponse delBabyNeuroPsychological(@RequestBody String id) { | |
| 211 | + @RequestMapping(method = RequestMethod.DELETE, value = "/delBabyNeuroPsychological") | |
| 212 | + private BaseResponse delBabyNeuroPsychological(String id) { | |
| 215 | 213 | if(StringUtils.isEmpty(id)){ |
| 216 | 214 | return new BaseResponse("id不能是空值!", ErrorCodeConstants.PARAMETER_ERROR); |
| 217 | 215 | } |