查询类型判断改正

This commit is contained in:
jing's 2024-03-15 14:33:30 +08:00
parent e4791b20bf
commit cc110419e7
1 changed files with 3 additions and 3 deletions

View File

@ -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, "错误的查询方式");
}
}