Commit 0843faa42d25633e68606185d3275946574dab9b
1 parent
6c77baaae5
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 5 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEvaluationCriterionController.java
View file @
0843faa
... | ... | @@ -3,7 +3,9 @@ |
3 | 3 | import com.alibaba.fastjson.JSONObject; |
4 | 4 | import com.lyms.platform.common.annotation.TokenRequired; |
5 | 5 | import com.lyms.platform.common.base.BaseController; |
6 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
6 | 7 | import com.lyms.platform.common.result.BaseResponse; |
8 | +import com.lyms.platform.common.utils.StringUtils; | |
7 | 9 | import com.lyms.platform.operate.web.request.*; |
8 | 10 | import com.lyms.platform.operate.web.service.BabyEvaluationCriterionService; |
9 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
... | ... | @@ -210,6 +212,9 @@ |
210 | 212 | @TokenRequired |
211 | 213 | @RequestMapping(method = RequestMethod.POST, value = "/delBabyNeuroPsychological") |
212 | 214 | private BaseResponse delBabyNeuroPsychological(String id) { |
215 | + if(StringUtils.isEmpty(id)){ | |
216 | + return new BaseResponse("id不能是空值!", ErrorCodeConstants.PARAMETER_ERROR); | |
217 | + } | |
213 | 218 | return babyEvaluationCriterionService.delBabyNeuroPsychological(id); |
214 | 219 | } |
215 | 220 |