| | |
| | | /** 平台名称 */ |
| | | private String platformName; |
| | | |
| | | @TableField("sub_platform_name") |
| | | /** 子级平台名称 */ |
| | | private String subPlatformName; |
| | | |
| | | @TableField("platform_ip") |
| | | /** 平台名称 */ |
| | | private String platformIP; |
| | |
| | | @ApiModel(value = "Platform表单", description = "平台运行监控表单") |
| | | public class PlatformForm extends AbsForm { |
| | | |
| | | @NotBlank(message = "平台名称不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("平台名称") |
| | | private String platformName; |
| | | |
| | | /** 子级平台名称 */ |
| | | @ApiModelProperty("平台名称") |
| | | private String subPlatformName; |
| | | |
| | | @NotBlank(message = "平台IP不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("平台IP") |
| | | private String platformIP; |
| | |
| | | /** 平台名称 */ |
| | | private String platformName; |
| | | |
| | | /** 子级平台名称 */ |
| | | private String subPlatformName; |
| | | |
| | | /** 平台IP */ |
| | | private String platformIP; |
| | | |
| | |
| | | List<Platform> childList = form.getDeployList().stream().map(deploy -> { |
| | | Platform child = new Platform(); |
| | | BeanUtils.copyProperties(deploy, child); |
| | | child.setPlatformName(entity.getPlatformName()); |
| | | child.setParentId(entity.getId()); |
| | | child.setCreateTime(now); |
| | | child.setUpdateTime(now); |
| | |
| | | <result column="area" property="area" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="sub_platform_name" property="subPlatformName" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | TP.create_time, |
| | | TP.update_time, |
| | | TP.id, |
| | | TP.parent_id |
| | | TP.parent_id, |
| | | TP.sub_platform_name |
| | | FROM |
| | | t_platform TP |
| | | WHERE |