Commit ea0e14a9b636c55764a59dfbd3b106fee3c141cd
1 parent
6c3d689031
Exists in
master
and in
1 other branch
产妇增加字段
Showing 1 changed file with 5 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntenatalExaminationController.java
View file @
ea0e14a
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | 3 | import com.lyms.platform.common.base.BaseController; |
4 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
4 | 5 | import com.lyms.platform.common.result.BaseResponse; |
5 | 6 | import com.lyms.platform.operate.web.facade.AntenatalExaminationFacade; |
6 | 7 | import com.lyms.platform.operate.web.request.AntExAddRequest; |
7 | 8 | import com.lyms.platform.operate.web.request.AntExQueryRequest; |
8 | 9 | import com.lyms.platform.operate.web.request.AntExcAddRequest; |
9 | 10 | import com.lyms.platform.operate.web.request.AntenatalExaminationQueryRequest; |
11 | +import org.apache.commons.lang.StringUtils; | |
10 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
11 | 13 | import org.springframework.stereotype.Controller; |
12 | 14 | import org.springframework.web.bind.annotation.*; |
... | ... | @@ -33,6 +35,9 @@ |
33 | 35 | @RequestMapping(method = RequestMethod.GET, value = "/antexmanage") |
34 | 36 | @ResponseBody |
35 | 37 | public BaseResponse queryAntenatalExamination(@Valid AntenatalExaminationQueryRequest antenatalExaminationQueryRequest) { |
38 | + if(StringUtils.isEmpty(antenatalExaminationQueryRequest.getCardNo())&&StringUtils.isEmpty(antenatalExaminationQueryRequest.getVcCardNo())){ | |
39 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("请输出参数."); | |
40 | + } | |
36 | 41 | return antenatalExaminationFacade.queryAntenatalExamination(antenatalExaminationQueryRequest); |
37 | 42 | } |
38 | 43 |