package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


/**
 * @author zwhui
 * @date 2023/9/14 10:56
 */
@Getter
@Setter
@SearchBean(tables = "goods_don_sku sku left join yh_shop_goods_rate yr on yr.sku_id = sku.id")
public class YhShopGoodsRate{


    @TableId(value = "id",type = IdType.AUTO)
    @DbField("yr.id")
    private Long id;


    @DbField("sku.goods_id")
    private Long goodsId;

    @DbField("sku.id")
    private Long skuId;

    @DbIgnore
    private Integer rate;


    /**
     * 创建时间
     */

    @TableField(fill = FieldFill.INSERT)
    @DbField("yr.created_time")
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DbField("yr.update_time")
    private Date updateTime;
}
