设备信息分页查询查询顺序和轴承状态展示

This commit is contained in:
zhangjunwen 2024-11-01 14:30:41 +08:00
parent 05d1931c2f
commit 7ad896ca24
2 changed files with 4 additions and 1 deletions

View File

@ -71,4 +71,6 @@ public class EquipInfoRespVO {
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "运行状态")
private Integer runStatus;
} }

View File

@ -29,7 +29,8 @@ public interface EquipInfoMapper extends BaseMapperX<EquipInfoDO> {
.eqIfPresent(EquipInfoDO::getCustomerId, reqVO.getCustomerId()) .eqIfPresent(EquipInfoDO::getCustomerId, reqVO.getCustomerId())
.likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo()) .likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo())
.eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus()) .eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus())
.orderByDesc(EquipInfoDO::getCreateTime)); .groupBy(EquipInfoDO::getCustomerId, EquipInfoDO::getModelId)
);
} }
default List<EquipSelectionVO> selection(){ default List<EquipSelectionVO> selection(){