查询类型判断改正
This commit is contained in:
parent
e4791b20bf
commit
cc110419e7
|
|
@ -75,9 +75,9 @@ public class BomReportApi extends BaseApi {
|
|||
if (Objects.isNull(query.getQueryType())) {
|
||||
return ResultVO.error(STATE.ParamErr, "请选择查询方式");
|
||||
} else {
|
||||
if (!(query.getBomType().compareTo(ReportConstant.QueryTypeEnum.SINGLE.getValue()) == 0
|
||||
|| query.getBomType().compareTo(ReportConstant.QueryTypeEnum.MULTI.getValue()) == 0
|
||||
|| query.getBomType().compareTo(ReportConstant.QueryTypeEnum.SUM.getValue()) == 0)) {
|
||||
if (!(query.getQueryType().compareTo(ReportConstant.QueryTypeEnum.SINGLE.getValue()) == 0
|
||||
|| query.getQueryType().compareTo(ReportConstant.QueryTypeEnum.MULTI.getValue()) == 0
|
||||
|| query.getQueryType().compareTo(ReportConstant.QueryTypeEnum.SUM.getValue()) == 0)) {
|
||||
return ResultVO.error(STATE.ParamErr, "错误的查询方式");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue