chenhj
110 分钟以前 88162af48f9e01761b9ed2fc5ad11f8889a612db
产品结构
已添加2个文件
68 ■■■■■ 文件已修改
doc/create_table_product_structure.sql 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/production/pojo/ProductStructure.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
doc/create_table_product_structure.sql
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
# äº§å“ç»“æž„
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'
);
src/main/java/com/ruoyi/production/pojo/ProductStructure.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,54 @@
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;
}