挂具状态回显

develop-QA
qinyulong 3 months ago
parent 9792236717
commit 235f6dc9a6
  1. 26
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/device/pojo/entity/RackSetEntity.java
  2. 2
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/device/pojo/vo/RackSetVO.java
  3. 2
      blade-service/blade-desk/src/main/java/org/springblade/desk/device/controller/RackSetController.java
  4. 25
      blade-service/blade-desk/src/main/java/org/springblade/desk/device/wrapper/RackSetWrapper.java

@ -7,6 +7,8 @@ import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import java.io.Serial;
import java.util.HashMap;
import java.util.Map;
/**
* 挂具设置 实体类
@ -22,6 +24,30 @@ public class RackSetEntity extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
* 空闲
*/
public static Integer RS_STATUS_FREE = 1;
/**
* 已绑定
*/
public static Integer RS_STATUS_BOUND = 2;
/**
* 使用中
*/
public static Integer RS_STATUS_USED = 3;
public static Map<Integer, String> rsStatusMap = new HashMap<>(3);
static {
rsStatusMap.put(RS_STATUS_FREE, "空闲");
rsStatusMap.put(RS_STATUS_BOUND, "已绑定");
rsStatusMap.put(RS_STATUS_USED, "使用中");
}
public String getStatusName() {
return rsStatusMap.get(this.getStatus());
}
/**
* 编码

@ -28,5 +28,5 @@ public class RackSetVO extends RackSetEntity implements Serializable {
/**
* 状态名称
*/
String statusName;
// String statusName;
}

@ -157,7 +157,7 @@ public class RackSetController extends BladeController {
/**
* 导出数据
*/
@IsAdmin
// @IsAdmin
@GetMapping("/export-rackSet")
@ApiOperationSupport(order = 9)
@Operation(summary = "导出数据", description = "传入rackSet")

@ -1,28 +1,3 @@
/**
* BladeX Commercial License Agreement
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
* <p>
* Use of this software is governed by the Commercial License Agreement
* obtained after purchasing a license from BladeX.
* <p>
* 1. This software is for development use only under a valid license
* from BladeX.
* <p>
* 2. Redistribution of this software's source code to any third party
* without a commercial license is strictly prohibited.
* <p>
* 3. Licensees may copyright their own code but cannot use segments
* from this software for such purposes. Copyright of this software
* remains with BladeX.
* <p>
* Using this software signifies agreement to this License, and the software
* must not be used for illegal purposes.
* <p>
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
* not liable for any claims arising from secondary or illegal development.
* <p>
* Author: Chill Zhuang (bladejava@qq.com)
*/
package org.springblade.desk.device.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;

Loading…
Cancel
Save