package com.oying.modules.message.domain; import com.oying.base.BaseEntity; import lombok.Data; import cn.hutool.core.bean.BeanUtil; import io.swagger.annotations.ApiModelProperty; import cn.hutool.core.bean.copier.CopyOptions; import java.sql.Timestamp; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.io.Serializable; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; /** * @description / * @author 李萌 * @date 2025-07-25 **/ @Data @TableName("mes_customer_comment_msg") public class MesCustomerCommentMsg extends BaseEntity implements Serializable { @TableId(value = "id", type = IdType.AUTO) @ApiModelProperty(value = "主键") private Long id; @NotNull @ApiModelProperty(value = "对应 mes_msg_record.id") private Long msgRecordId; @NotNull @ApiModelProperty(value = "店铺ID") private Long shopId; @NotNull @ApiModelProperty(value = "订单ID") private Long orderId; @NotBlank @ApiModelProperty(value = "订单编号 冗余") private String orderNo; @NotBlank @ApiModelProperty(value = "买家用户ID") private String buyerId; @ApiModelProperty(value = "买家昵称 冗余") private String buyerName; @NotNull @ApiModelProperty(value = "评价ID 冗余") private Long evaluationId; @NotNull @ApiModelProperty(value = "商户是否已回复 0=未回复 1=已回复") private Integer replied; @NotBlank @ApiModelProperty(value = "创建人") private String createBy; @NotNull @ApiModelProperty(value = "创建时间") private Timestamp createTime; @NotBlank @ApiModelProperty(value = "更新人") private String updateBy; @NotNull @ApiModelProperty(value = "更新时间") private Timestamp updateTime; @NotNull @ApiModelProperty(value = "顾客留言时间(即评价产生时间)") private Timestamp commentTime; @ApiModelProperty(value = "顾客留言内容(评价原文)") private String commentContent; @ApiModelProperty(value = "商家回复内容") private String replyContent; @ApiModelProperty(value = "外部跳转链接(完整 http/https)") private String extJumpUrl; @ApiModelProperty(value = "内部小程序/APP 路由路径") private String intJumpPath; public void copy(MesCustomerCommentMsg source){ BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); } }