接口优化
This commit is contained in:
parent
78507c428e
commit
700803fd20
@ -37,6 +37,7 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.data.geo.Point;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
@ -93,8 +94,8 @@ public class EbikeOperationRegionServiceImpl extends ServiceImpl<EbikeOperationR
|
||||
@Override
|
||||
public Page<EbikeOperationRegion> pageOperationRegion(PageParam pageParam, String simpleName, String regionName, Integer inOperation) {
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.where(EBIKE_OPERATION_REGION.SIMPLE_NAME.eq(simpleName, !simpleName.isBlank()))
|
||||
.where(EBIKE_OPERATION_REGION.OPERATION_REGION_NAME.eq(regionName, !regionName.isBlank()))
|
||||
.where(EBIKE_OPERATION_REGION.SIMPLE_NAME.eq(simpleName, !StringUtils.isEmpty(simpleName)))
|
||||
.where(EBIKE_OPERATION_REGION.OPERATION_REGION_NAME.eq(regionName, !StringUtils.isEmpty(regionName)))
|
||||
.where(EBIKE_OPERATION_REGION.IN_OPERATION.eq(inOperation, Objects::nonNull));
|
||||
return this.mapper.paginate(pageParam.getPage(), queryWrapper);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user