1.修改返回创建时间为时间戳格式

2.修复排序功能 Bug
This commit is contained in:
2025-06-26 17:39:43 +08:00
parent 85c872ff07
commit c3c722e904
13 changed files with 412 additions and 61 deletions

View File

@@ -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);
}
}