package cn.iocoder.yudao.module.erp.dal.dataobject.purchase; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.module.erp.dal.dataobject.finance.ErpAccountDO; import com.baomidou.mybatisplus.annotation.KeySequence; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.*; import java.math.BigDecimal; import java.time.LocalDateTime; /** * ERP 采购申请 DO * * @author 芋道源码 */ @TableName(value = "erp_purchase_request") @KeySequence("erp_purchase_request_seq") @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) @Builder @NoArgsConstructor @AllArgsConstructor public class ErpPurchaseRequestDO extends BaseDO { /** * 编号 */ @TableId private Long id; /** * 采购申请单号 */ private String no; /** * 审批状态 * * 枚举 {@link cn.iocoder.yudao.module.erp.enums.ErpPurchaseRequestStatusEnum} */ private Integer status; /** * 申请人编号 */ private Long requestUserId; /** * 申请部门编号 */ private Long requestDeptId; /** * 申请时间 */ private LocalDateTime requestTime; /** * 申请理由 */ private String requestReason; /** * 供应商编号 * * 关联 {@link ErpSupplierDO#getId()} */ private Long supplierId; /** * 合计数量 */ private BigDecimal totalCount; /** * 合计产品价格,单位:元 */ private BigDecimal totalProductPrice; /** * 合计税额,单位:元 */ private BigDecimal totalTaxPrice; /** * 最终合计价格,单位:元 * * totalPrice = totalProductPrice + totalTaxPrice - discountPrice */ private BigDecimal totalPrice; /** * 优惠率,百分比 */ private BigDecimal discountPercent; /** * 优惠金额,单位:元 * * discountPrice = (totalProductPrice + totalTaxPrice) * discountPercent */ private BigDecimal discountPrice; /** * 工作流编号 */ private String processInstanceId; /** * 关联采购订单编号(审批通过后生成) * * 关联 {@link ErpPurchaseOrderDO#getId()} */ private Long orderId; /** * 生成采购订单时间 */ private LocalDateTime orderTime; /** * 附件地址 */ private String fileUrl; /** * 备注 */ private String remark; }