package org.dromara.erp.domain.vo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.erp.domain.ErpOrderDetail;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单明细 VO
 *
 * @Author: Antigravity
 */
@Data
@AutoMapper(target = ErpOrderDetail.class)
public class ErpOrderDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String rowId;

    private String orderId;

    private Long placer;

    private String clientId;

    private String modelId;

    private String modelNum;

    private String modelName;

    private String material;

    private String surfaceId;

    private String surfaceName;

    private String packId;

    private String packName;

    private java.math.BigDecimal length;

    private java.math.BigDecimal wallThickness;

    public java.math.BigDecimal getLength() {
        return length == null ? null : length.setScale(4, java.math.RoundingMode.HALF_UP);
    }

    public java.math.BigDecimal getWallThickness() {
        return wallThickness == null ? null : wallThickness.setScale(4, java.math.RoundingMode.HALF_UP);
    }

    private Integer count;

    /**
     * 理论米重（关联 ErpModel 查询）
     * @Author: Trae
     */
    private java.math.BigDecimal meterWeight;

    /**
     * 单据编号
     * @Author: Antigravity
     */
    private String docCode;

    /**
     * 项目号
     * @Author: Antigravity
     */
    private String itemNo;

    private String erpProjectId;

    private Date createTime;

}
