4 天以前 84ac2b6b12bc3e5de072661fb25e87877c01d0d7
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
package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.supplier;
 
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.framework.common.validation.Mobile;
import cn.iocoder.yudao.framework.common.validation.Telephone;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - ERP 供应商新增/修改 Request VO")
@Data
public class ErpSupplierSaveReqVO {
 
    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17791")
    private Long id;
 
    @Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
    @NotEmpty(message = "供应商名称不能为空")
    private String name;
 
    @Schema(description = "联系人", example = "芋艿")
    private String contact;
 
    @Schema(description = "手机号码", example = "15601691300")
    @Mobile
    private String mobile;
 
    @Schema(description = "联系电话", example = "18818288888")
    @Telephone
    private String telephone;
 
    @Schema(description = "电子邮箱", example = "76853@qq.com")
    @Email
    private String email;
 
    @Schema(description = "传真", example = "20 7123 4567")
    private String fax;
 
    @Schema(description = "备注", example = "你猜")
    private String remark;
 
    @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "开启状态不能为空")
    @InEnum(value = CommonStatusEnum.class)
    private Integer status;
 
    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotNull(message = "排序不能为空")
    private Integer sort;
 
    @Schema(description = "纳税人识别号", example = "91130803MA098BY05W")
    private String taxNo;
 
    @Schema(description = "税率", example = "10")
    private BigDecimal taxPercent;
 
    @Schema(description = "开户行", example = "张三")
    private String bankName;
 
    @Schema(description = "开户账号", example = "622908212277228617")
    private String bankAccount;
 
    @Schema(description = "开户地址", example = "兴业银行浦东支行")
    private String bankAddress;
 
}