Compare commits

..

2 Commits

Author SHA1 Message Date
738d691042 Merge branch 'zjw' 2024-11-01 14:32:48 +08:00
7ad896ca24 设备信息分页查询查询顺序和轴承状态展示 2024-11-01 14:30:41 +08:00
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(){