飞靶状态回显

develop-QA
qinyulong 3 months ago
parent 9c78146ec9
commit 9792236717
  1. 25
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/device/pojo/entity/FeiBaSetEntity.java
  2. 2
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/device/pojo/vo/FeiBaSetVO.java
  3. 2
      blade-service/blade-desk/src/main/java/org/springblade/desk/device/controller/FeiBaSetController.java
  4. 25
      blade-service/blade-desk/src/main/java/org/springblade/desk/device/wrapper/FeiBaSetWrapper.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,7 +24,30 @@ public class FeiBaSetEntity extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
* 空闲
*/
public static Integer FS_STATUS_FREE = 1;
/**
* 已绑定
*/
public static Integer FS_STATUS_BOUND = 2;
/**
* 使用中
*/
public static Integer FS_STATUS_USED = 3;
public static Map<Integer, String> fsStatusMap = new HashMap<>(3);
static {
fsStatusMap.put(FS_STATUS_FREE, "空闲");
fsStatusMap.put(FS_STATUS_BOUND, "已绑定");
fsStatusMap.put(FS_STATUS_USED, "使用中");
}
public String getStatusName() {
return fsStatusMap.get(this.getStatus());
}
/**
* 编码
*/

@ -27,5 +27,5 @@ public class FeiBaSetVO extends FeiBaSetEntity {
/**
* 状态名称
*/
String statusName;
// String statusName;
}

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

@ -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