Compare commits
2 Commits
15fda12059
...
6dd28b106e
Author | SHA1 | Date |
---|---|---|
wangliwen | 6dd28b106e | |
wangliwen | 29f6216864 |
|
@ -48,6 +48,9 @@ public class TResourceMountApplyDTO extends AuditingBaseDTO implements Serializa
|
||||||
private Long resourceId;
|
private Long resourceId;
|
||||||
|
|
||||||
public ResourceDTO getResourceDTO() {
|
public ResourceDTO getResourceDTO() {
|
||||||
|
if (this.resourceDTO != null) {
|
||||||
|
return this.resourceDTO;
|
||||||
|
}
|
||||||
if (this.parameterContent != null) {
|
if (this.parameterContent != null) {
|
||||||
return JSON.parseObject(this.parameterContent, ResourceDTO.class);
|
return JSON.parseObject(this.parameterContent, ResourceDTO.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,9 @@ package io.renren.modules.resourceMountApply.entity;
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||||
import io.renren.common.entity.BaseEntity;
|
import io.renren.common.entity.BaseEntity;
|
||||||
|
import io.renren.modules.resource.dto.ResourceDTO;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
@ -15,7 +17,7 @@ import lombok.EqualsAndHashCode;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@TableName("t_resource_mount_apply")
|
@TableName(value = "t_resource_mount_apply", autoResultMap = true)
|
||||||
public class TResourceMountApplyEntity extends BaseEntity {
|
public class TResourceMountApplyEntity extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -63,4 +65,7 @@ public class TResourceMountApplyEntity extends BaseEntity {
|
||||||
* 资源id
|
* 资源id
|
||||||
*/
|
*/
|
||||||
private Long resourceId;
|
private Long resourceId;
|
||||||
|
|
||||||
|
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||||
|
private ResourceDTO resourceDTO;
|
||||||
}
|
}
|
|
@ -34,6 +34,9 @@ spring:
|
||||||
wall:
|
wall:
|
||||||
config:
|
config:
|
||||||
multi-statement-allow: true
|
multi-statement-allow: true
|
||||||
|
# 生产环境默认关掉flyway
|
||||||
|
flyway:
|
||||||
|
enable: false
|
||||||
#上传的静态资源配置
|
#上传的静态资源配置
|
||||||
resource:
|
resource:
|
||||||
root_url: 15.72.183.90
|
root_url: 15.72.183.90
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE `share_platform`.`t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象' AFTER `resource_id`;
|
|
@ -13,6 +13,9 @@
|
||||||
<result property="delFlag" column="del_flag"/>
|
<result property="delFlag" column="del_flag"/>
|
||||||
<result property="parameterContent" column="parameter_content"/>
|
<result property="parameterContent" column="parameter_content"/>
|
||||||
<result property="parameterContentMd5" column="parameter_content_md5"/>
|
<result property="parameterContentMd5" column="parameter_content_md5"/>
|
||||||
|
<result property="resourceId" column="resource_id"/>
|
||||||
|
<result property="resourceDTO" column="resource_dto"
|
||||||
|
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||||
<result property="createtime" column="createtime"/>
|
<result property="createtime" column="createtime"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue