diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/emParam/entity/ParamBackupsEntity.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/emParam/entity/ParamBackupsEntity.java index d59b118..bc9d0bb 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/emParam/entity/ParamBackupsEntity.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/emParam/entity/ParamBackupsEntity.java @@ -35,6 +35,11 @@ public class ParamBackupsEntity extends TenantEntity implements Serializable { @NotBlank(message = "设备编号不能为空",groups = {Create.class}) private String emCode; + @ApiModelProperty("设备名称") + @QueryField(condition = SqlCondition.LIKE) + @NotBlank(message = "设备名称不能为空",groups = {Create.class}) + private String emName; + @ApiModelProperty("是否延迟发布") @QueryField(condition = SqlCondition.EQUAL) private Boolean delay; diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/emParam/controller/ParamBackupsDetailController.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/emParam/controller/ParamBackupsDetailController.java index febbb87..fffab3a 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/emParam/controller/ParamBackupsDetailController.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/emParam/controller/ParamBackupsDetailController.java @@ -26,7 +26,7 @@ public class ParamBackupsDetailController extends BladeController { private final IParamBackupsDetailService paramBackupsDetailService; @GetMapping("/getBackupsParamTree") - @ApiOperation("") + @ApiOperation("获取备份参数树形结构") @ApiOperationSupport(order = 1) public R> getBackupsParamTree(@RequestParam @ApiParam("备份ID") Long backupsId) { return R.data(paramBackupsDetailService.getBackupsParamTree(backupsId)); diff --git a/hzims-service/equipment/src/main/resources/db/2.0.0.sql.1 b/hzims-service/equipment/src/main/resources/db/2.0.0.sql.1 index 0583b76..132af94 100644 --- a/hzims-service/equipment/src/main/resources/db/2.0.0.sql.1 +++ b/hzims-service/equipment/src/main/resources/db/2.0.0.sql.1 @@ -24,4 +24,6 @@ CREATE TABLE `hzims_em_video_banding` ( -- 参数分组还原添加字段 alter table `HZIMS_PARAM_BACKUPS_DETAIL` add column `model_classify_id` BIGINT(20) COMMENT '参数分组'; alter table `HZIMS_PARAM_BACKUPS_DETAIL` add column `model_classify_name` BIGINT(20) COMMENT '参数分组名称'; -alter table `HZIMS_PARAM_BACKUPS_DETAIL` modify column `model_classify_name` varchar(100) NULL COMMENT '参数分组名称'; \ No newline at end of file +alter table `HZIMS_PARAM_BACKUPS_DETAIL` modify column `model_classify_name` varchar(100) NULL COMMENT '参数分组名称'; +alter table `HZIMS_PARAM_BACKUPS` add column `em_name` varchar(100) COMMENT '设备名称'; +update HZIMS_PARAM_BACKUPS pb,HZIMS_EM_INFO ei set pb.EM_NAME = ei.`NAME` WHERE pb.EM_CODE = ei.NUMBER; \ No newline at end of file