Browse Source

# HZA100C参数分组下发

zhongwei
haungxing 11 months ago
parent
commit
074fbc9fc4
  1. 5
      hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/emParam/entity/ParamBackupsEntity.java
  2. 2
      hzims-service/equipment/src/main/java/com/hnac/hzims/emParam/controller/ParamBackupsDetailController.java
  3. 4
      hzims-service/equipment/src/main/resources/db/2.0.0.sql.1

5
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;

2
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<List<ParamBackupsDetailTreeVO>> getBackupsParamTree(@RequestParam @ApiParam("备份ID") Long backupsId) {
return R.data(paramBackupsDetailService.getBackupsParamTree(backupsId));

4
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 '参数分组名称';
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;
Loading…
Cancel
Save