| ¶Ô±ÈÐÂÎļþ |
| | |
| | | # 产åç»æ |
| | | drop table if exists production_product_structure; |
| | | create table product_structure |
| | | ( |
| | | id bigint auto_increment |
| | | primary key, |
| | | product_id bigint not null comment '产åid', |
| | | process_id bigint not null comment 'å·¥åºid', |
| | | unit_quantity numeric(16, 4) not null comment 'åä½äº§åºéè¦æ°é', |
| | | demanded_quantity numeric(16, 4) not null comment 'éæ±æ°é', |
| | | unit varchar(255) not null comment 'åä½', |
| | | disk_quantity numeric(16, 4) not null comment 'çæ°é', |
| | | tenant_id bigint not null comment 'ç§æ·id' |
| | | ); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.production.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | @TableName("product_structure") |
| | | @Data |
| | | public class ProductStructure { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 产ååç§° |
| | | */ |
| | | private Long productId; |
| | | |
| | | /** |
| | | * å·¥åºid |
| | | */ |
| | | private Long processId; |
| | | |
| | | /** |
| | | * åä½äº§åºéè¦æ°é |
| | | */ |
| | | private BigDecimal unitQuantity; |
| | | |
| | | /** |
| | | * éæ±æ°é |
| | | */ |
| | | private BigDecimal demandedQuantity; |
| | | |
| | | /** |
| | | * åä½ |
| | | */ |
| | | private String unit; |
| | | |
| | | /** |
| | | * çæ°é |
| | | */ |
| | | private BigDecimal diskQuantity; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | |
| | | } |