This commit is contained in:
zlwu committed 2026-07-01 16:37:33 +08:00
1 parent 28f233c922
commit 038a60b09e
478 files changed
+67530 -51951

No files matched your search

@@ -0,0 +1,5 @@
-- 市场物料变动记录:入库/出库/废弃经办人
-- 2026-07-01
ALTER TABLE `biz_material_usage`
ADD COLUMN `operator_name` varchar(100) DEFAULT NULL COMMENT '经办人姓名' AFTER `receiver`;
+29
View File
@@ -0,0 +1,29 @@
-- 协议作废类型(采集协议单 / 捐赠协议单)
-- 2026-07-01
ALTER TABLE `biz_collection_protocol`
ADD COLUMN `void_type` varchar(32) DEFAULT NULL COMMENT '协议作废类型(字典 xyzflx)' AFTER `void_desc`;
ALTER TABLE `biz_research_donation`
ADD COLUMN `void_type` varchar(32) DEFAULT NULL COMMENT '作废类型(字典 xyzflx)' AFTER `void_desc`;
INSERT INTO `sys_dict_type` (
`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`,
`create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
) VALUES (
'TDP000000000000000000000000000096', '协议作废类型', 'xyzflx', 'zkxw', 0, NULL,
NULL, '', NOW(), NULL, NOW(), 0
);
INSERT INTO `sys_dict_data` (
`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`,
`create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
) VALUES
(
'DDP000000000000000000000000000201', '客户毁存', 'khhc', 'xyzflx', 'zkxw', 1, NULL,
NULL, '', NOW(), NULL, NOW(), 0
),
(
'DDP000000000000000000000000000202', '检测不合格', 'jcbhg', 'xyzflx', 'zkxw', 2, NULL,
NULL, '', NOW(), NULL, NOW(), 0
);
+10
View File
@@ -0,0 +1,10 @@
-- 样本特殊标记与特殊说明
-- 2026-07-01
ALTER TABLE `biz_protocol_sample`
ADD COLUMN `is_special` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否特殊样本:0否 1是' AFTER `storage_expire_date`,
ADD COLUMN `special_remark` varchar(256) DEFAULT NULL COMMENT '特殊说明' AFTER `is_special`;
ALTER TABLE `biz_research_donation_sample`
ADD COLUMN `is_special` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否特殊样本:0否 1是' AFTER `storage_expire_date`,
ADD COLUMN `special_remark` varchar(256) DEFAULT NULL COMMENT '特殊说明' AFTER `is_special`;
+7 -3
View File
@@ -6418,6 +6418,7 @@ CREATE TABLE `biz_material_usage` (
`stock_before` decimal(18,4) DEFAULT NULL COMMENT '变动前物资汇总库存',
`stock_after` decimal(18,4) NOT NULL COMMENT '变动后库存量',
`receiver` varchar(64) DEFAULT NULL COMMENT '领用人(手动出库)',
`operator_name` varchar(100) DEFAULT NULL COMMENT '经办人姓名',
`purpose` varchar(512) DEFAULT NULL COMMENT '用途/事由(手动出库或废弃原因)',
`requisition_status` varchar(16) NOT NULL DEFAULT 'open' COMMENT '领用状态:open-待登记/有剩余 closed-已使用完',
`source_type` varchar(32) NOT NULL COMMENT '来源:manual_in / manual_out / manual_discard',
@@ -10477,6 +10478,8 @@ CREATE TABLE `biz_protocol_sample` (
`detect_start_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '检测开始日期',
`void_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '作废日期',
`storage_expire_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '存储到期日期=入库+年限',
`is_special` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否特殊样本:0否 1是',
`special_remark` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '特殊说明',
`tenant_no` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'zkxw' COMMENT '租户编号',
`order_num` int(11) DEFAULT NULL COMMENT '排序号',
`remark` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
@@ -10494,7 +10497,7 @@ CREATE TABLE `biz_protocol_sample` (
-- Records of biz_protocol_sample
-- ----------------------------
BEGIN;
INSERT INTO `biz_protocol_sample` (`id`, `collection_protocol_id`, `sample_type_id`, `sample_code_id`, `sample_code`, `collect_amount`, `unit_id`, `price`, `original_price`, `storage_years`, `sample_status`, `storage_in_date`, `detect_start_date`, `void_date`, `storage_expire_date`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('B6E991CFCE3249AA919BA252123E0CA8', '152523729D3943A1B1EC0159129C28B3', '562040C071C44473AD3BCD7C84A70354', '9B15036F3C6444A8B24A1962FE50BB48', 'ZKZX34000930', NULL, NULL, 25880.00, 25880.00, 20, 'ycj', NULL, NULL, NULL, NULL, 'zkxw', 0, NULL, '21F593EF3DB648EDABFC48ED9042A5D5', 'b13f9389-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 05:51:23', '21F593EF3DB648EDABFC48ED9042A5D5', '2026-06-29 05:51:23', 0);
INSERT INTO `biz_protocol_sample` (`id`, `collection_protocol_id`, `sample_type_id`, `sample_code_id`, `sample_code`, `collect_amount`, `unit_id`, `price`, `original_price`, `storage_years`, `sample_status`, `storage_in_date`, `detect_start_date`, `void_date`, `storage_expire_date`, `is_special`, `special_remark`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('B6E991CFCE3249AA919BA252123E0CA8', '152523729D3943A1B1EC0159129C28B3', '562040C071C44473AD3BCD7C84A70354', '9B15036F3C6444A8B24A1962FE50BB48', 'ZKZX34000930', NULL, NULL, 25880.00, 25880.00, 20, 'ycj', NULL, NULL, NULL, NULL, 0, NULL, 'zkxw', 0, NULL, '21F593EF3DB648EDABFC48ED9042A5D5', 'b13f9389-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 05:51:23', '21F593EF3DB648EDABFC48ED9042A5D5', '2026-06-29 05:51:23', 0);
COMMIT;
-- ----------------------------
@@ -12130,6 +12133,8 @@ CREATE TABLE `biz_research_donation_sample` (
`detect_start_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '检测开始日期YYYYMMDD',
`void_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '作废日期YYYYMMDD',
`storage_expire_date` char(8) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '存储到期日期YYYYMMDD',
`is_special` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否特殊样本:0否 1是',
`special_remark` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '特殊说明',
`tenant_no` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'zkxw' COMMENT '租户编号',
`order_num` int(11) DEFAULT NULL COMMENT '排序号',
`remark` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
@@ -17382,5 +17387,4 @@ INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`,
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `last_item_type`, `last_stored_at`) VALUES ('06DAE9C9391A42F18810921CFEF9053A', '38E4724959314DDFA1C26E7C8ADC1D08', '3', '空', 'zkxw', 1003, NULL, 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-26 04:20:32', 'd3000000000000000000000000000001', '2026-06-26 04:20:32', 0, 0, NULL, NULL);
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `last_item_type`, `last_stored_at`) VALUES ('06DE851FAABD4E07928BF7FB73A0C807', 'C530BD59EE934CCCAE12411679D5AF9A', '26', '占用', 'zkxw', 3006, NULL, 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-26 04:12:30', 'd3000000000000000000000000000001', '2026-06-30 00:53:30', 0, 1, 'cell_product', '2025-08-20 00:00:00');
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `last_item_type`, `last_stored_at`) VALUES ('06E019CD9A794C27842428ED073640B5', '22564DA268E44068AB159C551C815CE5', '97', '空', 'zkxw', 10007, NULL, 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-26 04:20:41', 'd3000000000000000000000000000001', '2026-06-26 04:20:41', 0, 0, NULL, NULL);
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `last_item_type`, `last_stored_at`) VALUES ('06E27C81FCE14EFB89B760E049D19505', 'EF5E0C22CE24494C87BD66064347B647', '31', '空', 'zkxw', 4004, NULL, 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-30 01:42:36', 'd3000000000000000000000000000001', '2026-06-30 01:42:36', 0, 0, NULL, NULL);
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `l
INSERT INTO `biz_storage_facility_slot` (`id`, `facility_node_id`, `slot_code`, `slot_status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`, `occupied_count`, `last_item_type`, `last_stored_at`) VALUES ('06E27C81FCE14EFB89B760E049D19505', 'EF5E0C22CE24494C87BD66064347B647', '31', '空', 'zkxw', 4004, NULL, 'd3000000000000000000000000000001', 'b13c2be2-4e71-