package com.bonus.canteen.core.alloc.domain;

import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 投诉建议 对象 alloc_canteen_suggestion
 * 
 * @author xsheng
 * @date 2025-04-20
 */


@Data
@ToString
public class AllocCanteenSuggestion extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 投诉建议id */
    @Excel(name = "投诉建议id")
    @ApiModelProperty(value = "投诉建议id")
    private Long complaintId;

    /** 人员id */
    @Excel(name = "人员id")
    @ApiModelProperty(value = "人员id")
    private Long userId;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    @ApiModelProperty(value = "投诉内容")
    private String content;

    /** 餐厅id */
    @Excel(name = "餐厅id")
    @ApiModelProperty(value = "餐厅id")
    private Long canteenId;

    @ApiModelProperty(value = "餐厅名称")
    private String canteenName;

    /** 投诉图片 */
    @Excel(name = "投诉图片")
    @ApiModelProperty(value = "投诉图片")
    private String complaintPicture;

    /** 来源 */
    @Excel(name = "来源")
    @ApiModelProperty(value = "来源")
    private Long sourceType;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(value = "联系方式")
    private String mobile;

    /** 回复内容 */
    @Excel(name = "回复内容")
    @ApiModelProperty(value = "回复内容")
    private String replyContent;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @ApiModelProperty(value = "乐观锁")
    private Long revision;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long replyState;

    public String getComplaintPicture() {
        return FileUrlUtil.getFileUrl(this.complaintPicture);
    }
}
