2026-04-16 a383e7dbc619cdb468979d4863349c43550a9af2
doc/create_table_process_route_item.sql
@@ -5,7 +5,10 @@
    id               bigint auto_increment primary key,
    route_id         bigint   not null default 0 comment '工艺路线id',
    product_model_id bigint   not null default 0 comment '产品id',
    product_model_ids varchar(1024) null comment '多产品id,逗号分隔',
    drag_sort       bigint   not null default 0 comment '拖拽排序',
    process_id       bigint   not null default 0 comment '工序id',
    is_quality       tinyint not null default 0 comment '是否质检 0 不是 1 是',
    tenant_id        bigint   not null comment '租户id',
    create_time      datetime null comment '录入时间',
    update_time      datetime null comment '更新时间'
@@ -50,9 +53,13 @@
    create_time      datetime null comment '录入时间',
    update_time      datetime null comment '更新时间',
    work_order_no    varchar(255) not null default '' comment '工单编号',
    plan_start_time  datetime null comment '计划开始时间',
    plan_end_time    datetime null comment '计划结束时间',
    actual_start_time  datetime null comment '实际开始时间',
    actual_end_time    datetime null comment '实际结束时间',
    status           int not null default 0 comment '状态  1 待确认  2 待生产 3生产中 4已生产 ',
    tenant_id        bigint   not null comment '租户id'
);
alter table product_process
    add salary_quota numeric(16,3) null comment '工资定额';
    add salary_quota numeric(16,3) null comment '工资定额';