|  |  |  | 
|---|
|  |  |  | platform.setEditor(platform.getLoginUserInfo().getId()); | 
|---|
|  |  |  | platform.setEditDate(new Date()); | 
|---|
|  |  |  | Platform model = platformMapper.selectById(platform.getId()); | 
|---|
|  |  |  | if(Objects.isNull(platform.getSortnum())){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(model ==null || Constants.equalsInteger(model.getIsdeleted(),Constants.ONE)){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.DATA_EMPTY); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(pageWrap.getModel().getYpos() != null, Platform::getYpos, pageWrap.getModel().getYpos()) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getWidth() != null, Platform::getWidth, pageWrap.getModel().getWidth()) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getHeight() != null, Platform::getHeight, pageWrap.getModel().getHeight()) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getAngle() != null, Platform::getAngle, pageWrap.getModel().getAngle()); | 
|---|
|  |  |  | .eq(pageWrap.getModel().getAngle() != null, Platform::getAngle, pageWrap.getModel().getAngle()) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getType() != null, Platform::getType, pageWrap.getModel().getType()) | 
|---|
|  |  |  | .orderByAsc(Platform::getSortnum) | 
|---|
|  |  |  | ; | 
|---|
|  |  |  | for(PageWrap.SortData sortData: pageWrap.getSorts()) { | 
|---|
|  |  |  | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { | 
|---|
|  |  |  | queryWrapper.orderByDesc(sortData.getProperty()); | 
|---|