|
@@ -39,19 +39,19 @@ public class PartFacade extends PartServiceImpl {
|
|
|
public List<PartSymptomDTO> getSymptomByPartIds(PartSymptomVO partSymptomVO) {
|
|
|
List<Long> partIds = partSymptomVO.getPartIds();
|
|
|
if(ListUtil.isEmpty(partIds)) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
|
|
|
"请选择部位");
|
|
|
}
|
|
|
if(partSymptomVO.getSexType() == null) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
|
|
|
"请选择性别");
|
|
|
}
|
|
|
if(partSymptomVO.getAge() == null) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
|
|
|
"请选择年龄");
|
|
|
}
|
|
|
if(partSymptomVO.getAge().intValue() < 0 || partSymptomVO.getAge().intValue() > 200) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
|
|
|
"超出年龄范围【0 — 200】");
|
|
|
}
|
|
|
//添加默认部位-全身
|