package com.yueqian.xingyun.settle.excel.item.in;

import com.alibaba.excel.annotation.ExcelProperty;
import com.lframework.starter.web.core.bo.BaseBo;
import com.lframework.starter.web.core.components.excel.ExcelModel;
import com.yueqian.xingyun.settle.entity.SettleInItem;
import lombok.Data;

@Data
public class SettleInItemExportModel extends BaseBo<SettleInItem> implements ExcelModel {

    @ExcelProperty("编号")
    private String code;

    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("备注")
    private String description;

    public SettleInItemExportModel() {

    }

    public SettleInItemExportModel(SettleInItem dto) {

        super(dto);
    }

    @Override
    public <A> BaseBo<SettleInItem> convert(SettleInItem dto) {

        return this;
    }

    @Override
    protected void afterInit(SettleInItem dto) {

        this.setCode(dto.getCode());
        this.setName(dto.getName());
        this.setDescription(dto.getDescription());
    }
}
