From fe1b02a121c173e9b2d56bbe5a1982e0e69e0548 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期二, 28 四月 2026 18:06:08 +0800 Subject: [PATCH] feat(production): 新增生产工单管理功能 - 创建 ProductionOperationTask 实体类定义工单数据结构 - 实现 ProductionOperationTaskController 提供工单的增删改查接口 - 开发 ProductionOperationTaskService 和实现类处理业务逻辑 - 配置 ProductionOperationTaskMapper 及 XML 文件实现数据库操作 - 添加 ProductionOperationTaskVo 视图对象用于数据展示 - 扩展 ProductionOrder 实体类增加生产订单相关属性 - 更新 ProductionOrderMapper.xml 完善订单查询映射配置 - 优化 ProductionOrderPickRecordMapper.xml 记录物料领取明细 - 新增 ProductionOrderRoutingOperationParam 参数配置实体 - 完善 工序参数处理逻辑 --- doc/create_table_process_route_item.sql | 64 ++++++++++++++++++++++++++++--- 1 files changed, 57 insertions(+), 7 deletions(-) diff --git a/doc/create_table_process_route_item.sql b/doc/create_table_process_route_item.sql index baab7d9..a1efff9 100644 --- a/doc/create_table_process_route_item.sql +++ b/doc/create_table_process_route_item.sql @@ -2,11 +2,61 @@ drop table if exists process_route_item; create table process_route_item ( - 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', - process_id bigint not null default 0 comment '宸ュ簭id', - tenant_id bigint not null comment '绉熸埛id', - create_time datetime null comment '褰曞叆鏃堕棿', - update_time datetime null comment '鏇存柊鏃堕棿' + 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', + process_id bigint not null default 0 comment '宸ュ簭id', + tenant_id bigint not null comment '绉熸埛id', + create_time datetime null comment '褰曞叆鏃堕棿', + update_time datetime null comment '鏇存柊鏃堕棿' ); + +# 鐢熶骇宸ヨ壓璺嚎椤圭洰 +drop table if exists product_process_route_item; +create table product_process_route_item +( + id bigint auto_increment primary key, + route_id bigint not null default 0 comment '宸ヨ壓璺嚎id', + product_model_id bigint not null default 0 comment '閿�鍞彴璐︿骇鍝乮d', + process_id bigint not null default 0 comment '宸ュ簭id', + tenant_id bigint not null comment '绉熸埛id', + create_time datetime null comment '褰曞叆鏃堕棿', + update_time datetime null comment '鏇存柊鏃堕棿' +); + +# 鐢熶骇璁㈠崟 +drop table if exists product_order; +create table product_order +( + id bigint auto_increment primary key, + sales_ledger_id bigint not null default 0 comment '閿�鍞彴璐d', + product_model_id bigint not null default 0 comment '閿�鍞彴璐︿骇鍝乮d', + route_id bigint not null default 0 comment '宸ヨ壓璺嚎id', + nps_no varchar(255) not null default '' comment '鐢熶骇璁㈠崟鍙�', + status int not null default 0 comment '鐘舵�� 0 寰呯‘璁� 1 宸茬‘璁�', + tenant_id bigint not null comment '绉熸埛id', + create_time datetime null comment '褰曞叆鏃堕棿', + update_time datetime null comment '鏇存柊鏃堕棿' +); +alter table quality_inspect + add purchase_ledger_id int null comment '閲囪喘璁㈠崟id'; + +# 鐢熶骇宸ュ崟 +drop table if exists product_work_order; +create table product_work_order +( + id bigint auto_increment primary key, + product_process_route_item_id bigint not null default 0 comment '宸ヨ壓璺嚎椤圭洰id', + 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 '宸ヨ祫瀹氶'; \ No newline at end of file -- Gitblit v1.9.3