10 小时以前 7bf754a7835d06f26240c4ca15bc5f83650de377
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
package com.ruoyi.purchase.pojo;
 
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.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
 
/**
 * 采购申请单对象 purchase_application
 */
@Getter
@Setter
@TableName("purchase_application")
@Schema(name = "PurchaseApplication对象", description = "采购申请单")
public class PurchaseApplication implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "申请单号")
    private String applicationNo;
 
    @Schema(description = "供应商id")
    private Long supplierId;
 
    @Schema(description = "供应商名称")
    private String supplierName;
 
    @Schema(description = "项目名称")
    private String projectName;
 
    @Schema(description = "销售合同号")
    private String salesContractNo;
 
    @Schema(description = "关联销售台账主表主键")
    private Long salesLedgerId;
 
    @Schema(description = "申请人id")
    private Long applicantId;
 
    @Schema(description = "申请人姓名")
    private String applicantName;
 
    @Schema(description = "申请日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate applyDate;
 
    @Schema(description = "期望到货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate expectedArrivalDate;
 
    @Schema(description = "申请金额(含税总价)")
    private BigDecimal contractAmount;
 
    @Schema(description = "付款方式")
    private String paymentMethod;
 
    @Schema(description = "备注")
    private String remarks;
 
    @Schema(description = "状态 0草稿 1已生成订单")
    private Integer status;
 
    @Schema(description = "转订单后生成的采购台账id")
    private Long purchaseLedgerId;
 
    @Schema(description = "转订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime convertTime;
 
    @Schema(description = "采购合同号")
    private String purchaseContractNumber;
 
    @Schema(description = "录入人id")
    private Long recorderId;
 
    @Schema(description = "录入日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate entryDate;
 
    @Schema(description = "签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate executionDate;
 
    @Schema(description = "最佳到站日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate bestArrivalDate;
 
    @Schema(description = "申请提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applicationSubmitTime;
 
    @Schema(description = "采购类别:客存、代储、采购入库、采购直销")
    private String purchaseCategory;
 
    @Schema(description = "物流方式:厂家配送、委外物流、客户自提")
    private String logisticsMethod;
 
    @Schema(description = "提货方式:暂不提货、提货")
    private String pickupMethod;
 
    @Schema(description = "采购油库id")
    private Long oilDepotId;
 
    @Schema(description = "客户名称")
    private String customerName;
 
    @Schema(description = "采购数量(吨)")
    private Integer purchaseQuantity;
 
    @Schema(description = "采购申请订单状态:已申请,未装车 / 以出厂,未入库 / 已入库")
    private String purchaseOrderStatus;
 
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
 
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
 
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
 
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
 
    @TableField(exist = false)
    @Schema(description = "采购申请产品明细")
    private List<PurchaseApplicationProduct> productData;
}