refactor(system): 重构设备类型描述并添加字典数据接口- 修改设备类型字段描述为"设备类型 字典device_type",统一描述格式

- 在 DictDataController 中添加 getByDictType 接口,用于获取指定字典类型的字典信息列表
This commit is contained in:
aikai 2025-02-08 09:10:53 +08:00
parent 2aa7b060c6
commit 14e33270d6
6 changed files with 13 additions and 6 deletions

View File

@ -72,6 +72,13 @@ public class DictDataController {
return success(BeanUtils.toBean(list, DictDataSimpleRespVO.class));
}
@GetMapping("/getByDictType")
@Operation(summary = "根据字典类型获取字典信息列表", description = "一般用于管理后台缓存字典数据在本地")
public CommonResult<List<DictDataDO>> getByDictType(@RequestParam String dictType) {
List<DictDataDO> list = dictDataService.getDictDataListByDictType(dictType);
return success(list);
}
@GetMapping("/page")
@Operation(summary = "/获得字典类型的分页列表")
@PreAuthorize("@ss.hasPermission('system:dict:query')")

View File

@ -14,7 +14,7 @@ public class DeviceInformationDTO {
@Schema(description = "地图id", example = "6609")
private Long positionMapId;
@Schema(description = "设备类型1充电桩、2输送线、 3码垛机、4拆垛机、5自动门、6提升机、7信号灯、8按钮盒", example = "2")
@Schema(description = "设备类型 字典device_type", example = "2")
private Integer deviceType;
@Schema(description = "设备状态1在线、2离线、 3异常", example = "1")

View File

@ -35,7 +35,7 @@ public class DeviceInformationPageReqVO extends PageParam {
@Schema(description = "深度")
private BigDecimal locationDeep;
@Schema(description = "设备类型1充电桩、2输送线、 3码垛机、4拆垛机、5自动门、6提升机、7信号灯、8按钮盒", example = "2")
@Schema(description = "设备类型 字典device_type", example = "2")
private Integer deviceType;
@Schema(description = "设备编号")

View File

@ -42,8 +42,8 @@ public class DeviceInformationRespVO {
@ExcelProperty("深度")
private BigDecimal locationDeep;
@Schema(description = "设备类型1充电桩、2输送线、 3码垛机、4拆垛机、5自动门、6提升机、7信号灯、8按钮盒", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("设备类型1充电桩、2输送线、 3码垛机、4拆垛机、5自动门、6提升机、7信号灯、8按钮盒")
@Schema(description = "设备类型 字典device_type", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("设备类型 字典device_type")
private Integer deviceType;
@Schema(description = "设备编号")

View File

@ -34,7 +34,7 @@ public class DeviceInformationSaveReqVO {
@Schema(description = "深度")
private BigDecimal locationDeep;
@Schema(description = "设备类型1充电桩、2输送线、 3码垛机、4拆垛机、5自动门、6提升机、7信号灯、8按钮盒", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@Schema(description = "设备类型 字典device_type", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotNull(message = "设备类型不能为空")
private Integer deviceType;

View File

@ -54,7 +54,7 @@ public class DeviceInformationDO extends BaseDO {
*/
private BigDecimal locationDeep;
/**
* 设备类型1充电桩2输送线 3码垛机4拆垛机5自动门6提升机7信号灯8按钮盒
* 设备类型 字典device_type
*/
private Integer deviceType;
/**