1.修改返回创建时间为时间戳格式
2.修复排序功能 Bug
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.yupi.springbootinit.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.yupi.springbootinit.common.ErrorCode;
|
||||
import com.yupi.springbootinit.exception.BusinessException;
|
||||
import com.yupi.springbootinit.model.dto.host.HostInfoDTO;
|
||||
import com.yupi.springbootinit.model.dto.host.ServerBigBrotherDTO;
|
||||
import com.yupi.springbootinit.model.vo.bigbrother.ServerBigBrotherVO;
|
||||
@@ -30,7 +32,11 @@ public class ServerBigBrotherServiceImpl extends ServiceImpl<ServerBigBrotherMap
|
||||
public Page<ServerBigBrotherVO> getConditionHosts(ServerBigBrotherDTO serverBigBrotherDTO) {
|
||||
|
||||
Page<ServerBigBrotherVO> page = new Page<>(serverBigBrotherDTO.getCurrent(),serverBigBrotherDTO.getPageSize());
|
||||
return serverBigBrotherMapper.selectPageByCondition(page, serverBigBrotherDTO);
|
||||
try {
|
||||
return serverBigBrotherMapper.selectPageByCondition(page, serverBigBrotherDTO);
|
||||
} catch (Exception e) {
|
||||
throw new BusinessException(ErrorCode.OPERATION_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user