package cn.iocoder.yudao.module.erp.api.sale.dto; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.math.BigDecimal; @Schema(description = "RPC 服务 - ERP 销售订单创建 Request DTO") @Data public class ErpSaleOrderCreateReqDTO { @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") private Long customerId; @Schema(description = "关联合同编号", example = "1") private Long contractId; @Schema(description = "合同单号", example = "HT001") private String contractNo; @Schema(description = "销售员编号", example = "1") private Long saleUserId; @Schema(description = "结算账户编号", example = "1") private Long accountId; @Schema(description = "下单时间") private String orderTime; @Schema(description = "优惠率,百分比", example = "10") private BigDecimal discountPercent; @Schema(description = "定金金额,单位:元", example = "100") private BigDecimal depositPrice; @Schema(description = "备注", example = "备注信息") private String remark; @Schema(description = "订单项列表") private java.util.List items; @Schema(description = "订单项") @Data public static class Item { @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") private Long productId; @Schema(description = "产品单位编号", example = "1") private Long productUnitId; @Schema(description = "产品单价,单位:元", example = "100") private BigDecimal productPrice; @Schema(description = "数量", example = "10") private BigDecimal count; @Schema(description = "税率,百分比", example = "10") private BigDecimal taxPercent; @Schema(description = "备注", example = "备注") private String remark; } }