需求评论增加删除标识

This commit is contained in:
wangliwen 2022-06-23 11:45:19 +08:00
parent 40ccd4e356
commit b5d084128c
4 changed files with 55 additions and 43 deletions

View File

@ -1,5 +1,6 @@
package io.renren.modules.demandComment.dto; package io.renren.modules.demandComment.dto;
import io.renren.common.dto.AuditingBaseDTO;
import io.renren.modules.demanData.dto.TDemandDataDTO; import io.renren.modules.demanData.dto.TDemandDataDTO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
@ -16,7 +17,7 @@ import java.util.Date;
*/ */
@Data @Data
@ApiModel(value = "需求评论") @ApiModel(value = "需求评论")
public class TDemandCommentDTO implements Serializable { public class TDemandCommentDTO extends AuditingBaseDTO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long id; private Long id;
@ -42,6 +43,8 @@ public class TDemandCommentDTO implements Serializable {
private String note4; private String note4;
@ApiModelProperty(value = "备用字段") @ApiModelProperty(value = "备用字段")
private String note5; private String note5;
@ApiModelProperty(value = "删除标志0:正常1:已删除2:待审核3:审核中9其他")
private Integer delFlag;
@ApiModelProperty(value = "评论所属需求主题") @ApiModelProperty(value = "评论所属需求主题")
private TDemandDataDTO demandDataDTO; private TDemandDataDTO demandDataDTO;

View File

@ -1,10 +1,9 @@
package io.renren.modules.demandComment.entity; package io.renren.modules.demandComment.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.entity.BaseEntity;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
import io.renren.common.entity.BaseEntity;
/** /**
* 需求评论 * 需求评论
@ -13,7 +12,7 @@ import io.renren.common.entity.BaseEntity;
* @since 1.0 2022-04-26 * @since 1.0 2022-04-26
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper = false)
@TableName("t_demand_comment") @TableName("t_demand_comment")
public class TDemandCommentEntity extends BaseEntity { public class TDemandCommentEntity extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -54,4 +53,9 @@ public class TDemandCommentEntity extends BaseEntity {
* 备用字段 * 备用字段
*/ */
private String note5; private String note5;
/**
* 删除标志0:正常1:已删除2:待审核3:审核中9其他
*/
private Integer delFlag;
} }

View File

@ -51,7 +51,11 @@ spring:
wall: wall:
config: config:
multi-statement-allow: true multi-statement-allow: true
flyway:
enabled: true
validate-on-migrate: false
#
out-of-order: true
#上传的静态资源配置 #上传的静态资源配置
resource: resource:
root_url: 15.2.21.238 root_url: 15.2.21.238

View File

@ -61,6 +61,7 @@ spring:
locations: filesystem:config/db locations: filesystem:config/db
baseline-on-migrate: true baseline-on-migrate: true
baseline-version: 0 baseline-version: 0
validate-on-migrate: true
fdfs: fdfs: