sfd
2025-05-26 2a64b537e8e3bce9ce030585a3da17d48379c0ad
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
package com.aps.core.domain;
 
import com.aps.common.core.annotation.Excel;
import com.aps.common.core.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;
 
/**
 * 物料产品组数据管理对象 aps_material_product_group_management
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Schema(description = "物料产品组数据管理实体类")
@Data
public class ApsMaterialProductGroupManagement extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    @Id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    /** ID */
    @Schema(description = "ID")
    private Long id;
 
    /**
     * 适用工厂  参考 aps_factory
     */
    @Excel(name = "适用工厂")
    @Schema(description = "适用工厂  参考 aps_factory")
    private String factory;
 
    /**
     * 料号
     */
    @Excel(name = "料号")
    @Schema(description = "料号")
    private String materialCode;
 
    /**
     * 专业 参考    aps_domain
     */
    @Excel(name = "专业归属")
    @Schema(description = "专业 参考    aps_domain")
    private String domain;
 
    /**
     * 是否为主阶 是/否
     */
    @Excel(name = "是否主阶料号")
    @Schema(description = "是否为主阶 是/否")
    private String isMain;
 
    @JsonIgnore
    @TableField(exist = false)
    private String key;
    /**
     * 料号类别 制造件/采购件
     */
    @Excel(name = "料号类别")
    @Schema(description = "料号类别 制造件/采购件")
    private String materialType;
 
    @JsonIgnore
    public String getKey() {
        if (key == null) {
            key = getFactory() + "##" + getMaterialCode();
        }
        return key;
    }
}