Merge remote-tracking branch 'origin/master'
已重命名1个文件
已添加25个文件
已修改10个文件
已删除2个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | --ç¹æ£å·¥åç¶æ |
| | | delete from [dbo].[sys_dict] where dict_code='inspection_status'; |
| | | delete from [dbo].[sys_dict_item] where dict_id in (select id from [dbo].[sys_dict] where dict_code='inspection_status'); |
| | | |
| | | INSERT INTO [dbo].[sys_dict] ([id], [dict_name], [dict_code], [description], [del_flag], [create_by], [create_time], [update_by], [update_time], [type]) VALUES (N'1907309268858290177', N'ç¹æ£ç¶æ', N'inspection_status', N'设å¤ç®¡ç-ç¹æ£ç¶æ', 0, N'admin', '2025-04-02 13:49:00.0000000', N'admin', '2025-04-02 13:49:19.6510000', NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1907309380946870273', N'1907309268858290177', N'å¾
ç¹æ£', N'WAIT_INSPECTION', '', 1, 1, N'admin', '2025-04-02 13:49:27.0000000', N'admin', '2025-05-07 10:11:47.5670000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1907309408746717185', N'1907309268858290177', N'å¾
确认', N'WAIT_CONFIRM', '', 3, 1, N'admin', '2025-04-02 13:49:33.0000000', N'admin', '2025-05-07 10:12:06.4320000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1907309436466872322', N'1907309268858290177', N'已宿', N'COMPLETE', '', 4, 1, N'admin', '2025-04-02 13:49:40.0000000', N'admin', '2025-05-07 10:12:19.2070000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1909417976002236418', N'1907309268858290177', N'ç¹æ£ä¸', N'UNDER_INSPECTION', '', 2, 1, N'admin', '2025-04-08 09:28:15.0000000', N'admin', '2025-05-07 10:11:56.7550000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1909419871794089986', N'1907309268858290177', N'å·²ä½åº', N'ABOLISH', '', 5, 1, N'admin', '2025-04-08 09:35:47.0000000', N'admin', '2025-05-07 10:12:33.1970000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1919938438058639361', N'1907309268858290177', N'å·²è¿æ', N'EXPIRED', '', 6, 1, N'admin', '2025-05-07 10:12:49.0210000', NULL, NULL); |
| | | |
| | | --ç¹æ£ç»æç¶æ |
| | | delete from [dbo].[sys_dict] where dict_code='inspection_project_result'; |
| | | delete from [dbo].[sys_dict_item] where dict_id in (select id from [dbo].[sys_dict] where dict_code='inspection_project_result'); |
| | | |
| | | INSERT INTO [dbo].[sys_dict] ([id], [dict_name], [dict_code], [description], [del_flag], [create_by], [create_time], [update_by], [update_time], [type]) VALUES (N'1745288324644782081', N'ç¹æ£ç»æ', N'inspection_project_result', '', 0, N'admin', '2024-01-11 11:35:37.1360000', NULL, NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745288369645469697', N'1745288324644782081', N'æ£å¸¸', N'NORMAL', '', 1, 1, N'admin', '2024-01-11 11:35:47.0000000', N'admin', '2025-07-08 15:31:49.8100000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745288400943366146', N'1745288324644782081', N'å¼å¸¸', N'ANOMALY', '', 1, 1, N'admin', '2024-01-11 11:35:55.0000000', N'admin', '2025-07-08 15:29:58.8960000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745288434866896897', N'1745288324644782081', N'æ
éåæº', N'FAULT', '', 2, 1, N'admin', '2024-01-11 11:36:03.0000000', N'admin', '2025-07-08 15:30:07.6710000'); |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745288466827493377', N'1745288324644782081', N'æ²¡å¼æº', N'CLOSE', '', 3, 1, N'admin', '2024-01-11 11:36:11.0000000', N'admin', '2025-07-08 15:30:16.7710000'); |
| | | |
| | | --ç»´ä¿®é¨é¨çç»ç¼ç è§å |
| | | delete from [dbo].[sys_fill_rule] where rule_code='org_repair_deport_rule'; |
| | | |
| | | INSERT INTO [dbo].[sys_fill_rule] ([id], [rule_name], [rule_code], [rule_class], [rule_params], [update_by], [update_time], [create_by], [create_time]) VALUES (N'1676142178556973058', N'ç»´ä¿®é¨é¨çç»ç¼ç çæ', N'org_repair_deport_rule', N'org.jeecg.modules.system.rule.OrgCodeRepDepRule', N'{"parentId":""}', N'admin', '2025-07-03 11:27:21.0000000', NULL, NULL); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | Navicat Premium Dump SQL |
| | | |
| | | Source Server : localhost-sqlserver |
| | | Source Server Type : SQL Server |
| | | Source Server Version : 11003000 (11.00.3000) |
| | | Source Host : localhost:1433 |
| | | Source Catalog : LXZN_TEST_430_NEW |
| | | Source Schema : dbo |
| | | |
| | | Target Server Type : SQL Server |
| | | Target Server Version : 11003000 (11.00.3000) |
| | | File Encoding : 65001 |
| | | |
| | | Date: 11/07/2025 10:50:26 |
| | | */ |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for eam_inspection_order |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[eam_inspection_order]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[eam_inspection_order] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[eam_inspection_order] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [order_num] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [equipment_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [standard_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [inspection_date] datetime2(7) NULL, |
| | | [operate_time] datetime2(7) NULL, |
| | | [operator] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [expiration_time] datetime2(7) NULL, |
| | | [creation_method] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [inspection_status] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [confirm_user] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [confirm_deal_type] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [confirm_comment] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [confirm_time] datetime2(7) NULL, |
| | | [remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [del_flag] int NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [hf_code] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[eam_inspection_order] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'主é®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å·¥åå·', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'order_num' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'设å¤ID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'equipment_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ åID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'standard_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£æ¥æ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'inspection_date' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'operate_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'operator' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£è¿ææ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'expiration_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¹å¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'creation_method' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£ç¶æ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'inspection_status' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'维修工确认人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'confirm_user' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'确认类å', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'confirm_deal_type' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'确认æè§', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'confirm_comment' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'确认æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'confirm_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'夿³¨', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'remark' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å 餿 è®°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'del_flag' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'HFç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order', |
| | | 'COLUMN', N'hf_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£å·¥å', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table eam_inspection_order |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[eam_inspection_order] ADD CONSTRAINT [PK__eam_insp__3213E83F513910DD] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | Navicat Premium Dump SQL |
| | | |
| | | Source Server : localhost-sqlserver |
| | | Source Server Type : SQL Server |
| | | Source Server Version : 11003000 (11.00.3000) |
| | | Source Host : localhost:1433 |
| | | Source Catalog : LXZN_TEST_430_NEW |
| | | Source Schema : dbo |
| | | |
| | | Target Server Type : SQL Server |
| | | Target Server Version : 11003000 (11.00.3000) |
| | | File Encoding : 65001 |
| | | |
| | | Date: 11/07/2025 10:50:33 |
| | | */ |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for eam_inspection_order_detail |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[eam_inspection_order_detail]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[eam_inspection_order_detail] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[eam_inspection_order_detail] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [order_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [item_code] int NULL, |
| | | [item_name] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [item_demand] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [inspection_result] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [report_flag] nvarchar(1) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [exception_description] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[eam_inspection_order_detail] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'主é®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å·¥åID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'order_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'项ç®åºå·', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'item_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿å
»é¡¹ç®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'item_name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿å
»è¦æ±', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'item_demand' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£ç»æ;æ£å¸¸ãå¼å¸¸ãå
³æºãæ
é', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'inspection_result' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ¥ä¿®æ è®°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'report_flag' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å¼å¸¸æè¿°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'exception_description' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£å·¥åæç»', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_inspection_order_detail' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table eam_inspection_order_detail |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[eam_inspection_order_detail] ADD CONSTRAINT [PK__eam_insp__3213E83FB31E58DA] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | Navicat Premium Dump SQL |
| | | |
| | | Source Server : localhost-sqlserver |
| | | Source Server Type : SQL Server |
| | | Source Server Version : 11003000 (11.00.3000) |
| | | Source Host : localhost:1433 |
| | | Source Catalog : LXZN_TEST_430_NEW |
| | | Source Schema : dbo |
| | | |
| | | Target Server Type : SQL Server |
| | | Target Server Version : 11003000 (11.00.3000) |
| | | File Encoding : 65001 |
| | | |
| | | Date: 11/07/2025 10:50:40 |
| | | */ |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for eam_week_inspection_detail |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[eam_week_inspection_detail]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[eam_week_inspection_detail] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[eam_week_inspection_detail] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [equipment_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [standard_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [plan_inspection_date] datetime2(7) NULL, |
| | | [item_code] int NULL, |
| | | [item_name] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [item_demand] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [inspection_result] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [report_flag] nvarchar(1) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [exception_description] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [inspector] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [inspect_time] datetime2(7) NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[eam_week_inspection_detail] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'主é®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'设å¤ID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'equipment_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ åID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'standard_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'计åç¹æ£æ¥æ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'plan_inspection_date' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'项ç®åºå·', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'item_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿å
»é¡¹ç®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'item_name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿å
»è¦æ±', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'item_demand' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£ç»æ;æ£å¸¸ãå¼å¸¸ãå
³æºãæ
é', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'inspection_result' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ¥ä¿®æ è®°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'report_flag' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å¼å¸¸æè¿°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'exception_description' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'inspector' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¹æ£æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail', |
| | | 'COLUMN', N'inspect_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å¨ç¹æ£æç»', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'eam_week_inspection_detail' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table eam_week_inspection_detail |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[eam_week_inspection_detail] ADD CONSTRAINT [PK__eam_week__3213E83FCC4AA6BA] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | Navicat Premium Dump SQL |
| | | |
| | | Source Server : localhost-sqlserver |
| | | Source Server Type : SQL Server |
| | | Source Server Version : 11003000 (11.00.3000) |
| | | Source Host : localhost:1433 |
| | | Source Catalog : LXZN_TEST_430_NEW |
| | | Source Schema : dbo |
| | | |
| | | Target Server Type : SQL Server |
| | | Target Server Version : 11003000 (11.00.3000) |
| | | File Encoding : 65001 |
| | | |
| | | Date: 01/07/2025 10:19:15 |
| | | */ |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for sys_business_code_rule |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_business_code_rule]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[sys_business_code_rule] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[sys_business_code_rule] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [del_flag] int NULL, |
| | | [business_name] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [business_code] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [prefix] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [year_format] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [month_format] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [day_format] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [seq_length] int NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[sys_business_code_rule] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'主é®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å 餿 è®°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'del_flag' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¸å¡åç§°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'business_name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¸å¡ç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'business_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¼ç åç¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'prefix' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'年份ç¼ç æ ¼å¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'year_format' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æä»½ç¼ç æ ¼å¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'month_format' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'天 ç¼ç æ ¼å¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'day_format' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'åºå·é¿åº¦', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule', |
| | | 'COLUMN', N'seq_length' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¸å¡ç¼ç è§å', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_rule' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Records of sys_business_code_rule |
| | | -- ---------------------------- |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1902203774154248193', N'admin', N'2025-03-19 11:41:35.6240000', NULL, NULL, N'0', N'å·¥èºåæ°ç¼ç è§å', N'ProcessParametersRule', N'PRC', N'yyyy', N'MM', N'dd', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1902230626944094210', N'admin', N'2025-03-19 13:28:17.8550000', NULL, NULL, N'0', N'ç²¾åº¦åæ°ç¼ç è§å', N'PrecisionParametersRule', N'PRS', N'yy', N'M', N'd', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1902243477803536385', N'admin', N'2025-03-19 14:19:21.0000000', N'admin', N'2025-03-19 14:36:36.2420000', N'0', N'å¤ä»¶è¯·è´åç¼ç è§å', N'SpareRequisitionCodeRule', N'SRCR', N'yyyy', N'MM', N'dd', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1902247777776095233', N'admin', N'2025-03-19 14:36:26.9310000', NULL, NULL, N'0', N'æ
éåå ç¼ç è§å', N'EquipmentFaultReasonRule', N'EFR', N'yyyy', NULL, NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1902628155861540866', N'admin', N'2025-03-20 15:47:56.0000000', N'admin', N'2025-03-20 15:48:03.3090000', N'0', N'å¤ä»¶ç¼ç è§å', N'SparePartCodeRule', N'SP', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1905536888087691266', N'admin', N'2025-03-28 16:26:11.9360000', NULL, NULL, N'0', N'ä¿å
»æ åè§å', N'MaintenanceStandardCodeRule', N'MSCR', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1907312309862907906', N'admin', N'2025-04-02 14:01:05.0000000', N'admin', N'2025-04-02 14:01:40.4970000', N'0', N'ç¹æ£å·¥åå·è§å', N'EamInspectionOrder', N'EIO', N'yyyy', N'MM', N'dd', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1907665666767273985', N'admin', N'2025-04-03 13:25:12.3300000', NULL, NULL, N'0', N'å¨ä¿å·¥åå·è§å', N'WeekMaintenanceCodeRule', N'WMCR', N'yyyy', N'MM', N'', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1909078470665629697', N'admin', N'2025-04-07 10:59:11.0260000', NULL, NULL, N'0', N'å²ä½ç¼ç è§å', N'PositionCodeRule', N'PCR', NULL, NULL, NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1909083005541539841', N'admin', N'2025-04-07 11:17:12.0000000', N'admin', N'2025-04-07 11:18:37.9750000', N'0', N'维修工åç¼ç è§å', N'RepairOrderCodeRule', N'WX', N'yyyy', N'MM', N'', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1921760981629857793', N'admin', N'2025-05-12 10:54:57.0000000', N'admin', N'2025-05-12 10:55:07.6780000', N'0', N'å·¥å
·åç±»ç¼ç è§å', N'ToolsClassify', N'GJFL', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1922563469951819778', N'admin', N'2025-05-14 16:03:45.3910000', NULL, NULL, N'0', N'äºä¿ç¼ç è§å', N'SecondMaintenanceCodeRule', N'SMCR', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1922563625669550081', N'admin', N'2025-05-14 16:04:22.5200000', NULL, NULL, N'0', N'ä¸ä¿ç¼ç è§å', N'ThirdMaintenanceCodeRule', N'TMCR', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1922942124129423361', N'admin', N'2025-05-15 17:08:23.0000000', N'admin', N'2025-05-26 11:18:57.5170000', N'0', N'设å¤ååºå½è¿è§å', N'EquipmentLeanOutCodeRule', N'LEAN', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1924402748380516353', N'admin', N'2025-05-19 17:52:23.5350000', NULL, NULL, N'0', N'å·¥å
·å
¥åºç³è¯·åç¼ç è§å', N'InBoundOrder', N'IBO', NULL, NULL, NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1924661750514237441', N'admin', N'2025-05-20 11:01:34.4720000', NULL, NULL, N'0', N'å·¥å
·åºåºç³è¯·åç¼ç è§å', N'outBoundOrder', N'OBO', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1925388470684553218', N'admin', N'2025-05-22 11:09:18.0000000', N'admin', N'2025-05-26 11:19:04.7460000', N'0', N'设å¤å°åå¯å°è§å', N'EquipmentSealUpCodeRule', N'SEAL', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1925822932846026753', N'XU1129', N'2025-05-23 15:55:41.8760000', NULL, NULL, N'0', N'å·¥å
·æ¥æç³è¯·ç¼ç è§å', N'LossBound', N'LB', N'YYYY', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1925823234437455874', N'XU1129', N'2025-05-23 15:56:53.0000000', N'XU1129', N'2025-05-23 16:11:59.2590000', N'0', N'å·¥å
·çç¹ç³è¯·ç¼ç è§å', N'stocktakingBound', N'TSB', N'YYYY', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1926840992444026882', N'admin', N'2025-05-26 11:21:06.0000000', N'admin', N'2025-05-26 11:32:19.5650000', N'0', N'设å¤è°æ¨ç¼ç è§å', N'EquipmentTransferCodeRule', N'DB', N'yyyy', N'MM', N'', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1927198276936269826', N'admin', N'2025-05-27 11:00:49.0000000', N'admin', N'2025-05-27 11:57:07.4360000', N'0', N'è®¾å¤æ¥åºç¼ç è§å', N'EquipmentScrapCodeRule', N'SCRAP', N'YYYY', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1929779613475590145', N'admin', N'2025-06-03 13:58:08.0000000', N'admin', N'2025-06-03 13:59:52.3910000', N'0', N'å¤ä»¶é¢ç¨ç è§å', N'SparePartReceive', N'SPR', N'YYYY', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1930807505479364610', N'admin', N'2025-06-06 10:02:36.0000000', N'admin', N'2025-06-06 10:02:54.8780000', N'0', N'å¤ä»¶æ¥åºç¼ç è§å', N'SparePartScrapCodeRule', N'BJBF', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1933399195028254721', N'admin', N'2025-06-13 13:41:03.0000000', N'admin', N'2025-06-13 13:41:21.5630000', N'0', N'åå
·åå¤åç¼ç è§å', N'ToolPreparationOrder', N'TPO', N'yyyy', N'MM', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1934814744203427841', N'admin', N'2025-06-17 11:25:56.0000000', N'admin', N'2025-06-17 11:26:49.6290000', N'0', N'油液ç¼ç è§å', N'EamFluidCodeRule', N'EFCR', N'yyyy', N'MM', N'dd', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_rule] ([id], [create_by], [create_time], [update_by], [update_time], [del_flag], [business_name], [business_code], [prefix], [year_format], [month_format], [day_format], [seq_length]) VALUES (N'1935244162453413890', N'admin', N'2025-06-18 15:52:18.0000000', N'admin', N'2025-06-30 21:25:31.6860000', N'0', N'设å¤éè´è®¡åç¼ç è§å', N'EquipmentPurchasePlanRule', N'EPPR', N'yyyy', N'MM', N'dd', N'4') |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for sys_business_code_seq |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_business_code_seq]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[sys_business_code_seq] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[sys_business_code_seq] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [rule_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [prefix] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [current_year] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [current_month] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [current_day] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [current_seq] int NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[sys_business_code_seq] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'主é®', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'è§åç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'rule_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'åç¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'prefix' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å½å年份', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'current_year' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å½åæä»½', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'current_month' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å½å天', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'current_day' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å½ååºåå¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq', |
| | | 'COLUMN', N'current_seq' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¸å¡ç¼ç çæåºå', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_business_code_seq' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Records of sys_business_code_seq |
| | | -- ---------------------------- |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902205061780410369', N'admin', N'2025-03-19 11:46:42.6460000', NULL, NULL, N'1902203774154248193', N'PRC', N'2025', N'03', N'19', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902235168561631234', N'admin', N'2025-03-19 13:46:20.6620000', NULL, NULL, N'1902230626944094210', N'PRS', N'25', N'3', N'19', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902250920492605442', N'admin', N'2025-03-19 14:48:56.2100000', N'admin', N'2025-05-13 16:35:50.3900000', N'1902247777776095233', N'EFR', N'2025', NULL, NULL, N'6') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902251196090417154', N'admin', N'2025-03-19 14:50:01.9190000', N'admin', N'2025-03-19 17:20:57.2470000', N'1902243477803536385', N'SRCR', N'2025', N'03', N'19', N'2') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902549646657036289', N'admin', N'2025-03-20 10:35:58.0780000', N'admin', N'2025-03-20 15:48:27.0070000', N'1902243477803536385', N'SRCR', N'2025', N'03', N'20', N'10') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1902628442475110402', N'admin', N'2025-03-20 15:49:04.4650000', N'admin', N'2025-03-21 13:46:25.4790000', N'1902628155861540866', N'SP', N'2025', N'03', NULL, N'57') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1906546213484642306', N'zhangherong', N'2025-03-31 11:16:53.8660000', N'admin', N'2025-03-31 17:47:46.8580000', N'1905536888087691266', N'MSCR', N'2025', N'03', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1906983134023303169', N'admin', N'2025-04-01 16:13:03.8240000', N'liuyuanheng', N'2025-04-09 16:39:37.7410000', N'1905536888087691266', N'MSCR', N'2025', N'04', NULL, N'12') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1907687764440817666', N'admin', N'2025-04-03 14:53:00.8230000', N'admin', N'2025-04-03 17:17:04.7240000', N'1907312309862907906', N'EIO', N'2025', N'04', N'03', N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1907713865418760194', N'admin', N'2025-04-03 16:36:43.7820000', N'admin', N'2025-04-10 09:48:33.1140000', N'1907665666767273985', N'WMCR', N'2025', N'04', NULL, N'9') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1909066020519829506', N'admin', N'2025-04-07 10:09:42.6780000', N'admin', N'2025-04-07 17:43:46.9490000', N'1907312309862907906', N'EIO', N'2025', N'04', N'07', N'18') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1909079838063259650', N'admin', N'2025-04-07 11:04:37.0390000', N'admin', N'2025-05-27 17:11:23.2560000', N'1909078470665629697', N'PCR', NULL, NULL, NULL, N'7') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1909140283565137921', N'admin', N'2025-04-07 15:04:48.3650000', N'admin', N'2025-04-09 15:13:46.8090000', N'1909083005541539841', N'WX', N'2025', N'04', NULL, N'9') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1909413919380381698', N'admin', N'2025-04-08 09:12:08.2290000', N'liuyuanheng', N'2025-04-08 17:59:10.4020000', N'1907312309862907906', N'EIO', N'2025', N'04', N'08', N'21') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1909775081225768961', N'admin', N'2025-04-09 09:07:15.9240000', N'liuyuanheng', N'2025-04-09 16:24:32.7670000', N'1907312309862907906', N'EIO', N'2025', N'04', N'09', N'15') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1910222976441880578', N'admin', N'2025-04-10 14:47:02.4670000', N'admin', N'2025-04-10 15:39:33.1630000', N'1907312309862907906', N'EIO', N'2025', N'04', N'10', N'12') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1911679027821326338', N'admin', N'2025-04-14 15:12:52.1660000', NULL, NULL, N'1907312309862907906', N'EIO', N'2025', N'04', N'14', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1912333935927021570', N'admin', N'2025-04-16 10:35:14.4260000', N'admin', N'2025-04-16 10:48:35.0470000', N'1907312309862907906', N'EIO', N'2025', N'04', N'16', N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1917417488566374402', N'admin', N'2025-04-30 11:15:27.8290000', NULL, NULL, N'1907312309862907906', N'EIO', N'2025', N'04', N'30', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1919939025538023426', N'admin', N'2025-05-07 10:15:09.0870000', NULL, NULL, N'1907312309862907906', N'EIO', N'2025', N'05', N'07', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1921770746502201345', N'admin', N'2025-05-12 11:33:45.3920000', NULL, NULL, N'1921760981629857793', N'GJFL', N'2025', N'05', NULL, N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1922521704305713153', N'admin', N'2025-05-14 13:17:47.6830000', N'admin', N'2025-05-23 09:57:43.3800000', N'1905536888087691266', N'MSCR', N'2025', N'05', NULL, N'10') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1922860589376278529', N'admin', N'2025-05-15 11:44:24.1810000', N'admin', N'2025-05-20 14:02:55.4210000', N'1922563469951819778', N'SMCR', N'2025', N'05', NULL, N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1922902573440782338', N'admin', N'2025-05-15 14:31:13.9610000', N'admin', N'2025-05-23 17:57:18.9220000', N'1922563625669550081', N'TMCR', N'2025', N'05', NULL, N'8') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1922946115039080449', N'admin', N'2025-05-15 17:24:15.0900000', N'admin', N'2025-05-30 15:55:44.3970000', N'1922942124129423361', N'LEAN', N'2025', N'05', NULL, N'19') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1924405751489536001', N'admin', N'2025-05-19 18:04:19.5380000', N'admin', N'2025-06-04 17:38:06.3530000', N'1924402748380516353', N'IBO', NULL, NULL, NULL, N'21') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1924663063441661954', N'admin', N'2025-05-20 11:06:47.4960000', N'admin', N'2025-05-20 11:06:53.4130000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'20', N'2') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1924696535328579585', N'admin', N'2025-05-20 13:19:47.8100000', N'admin', N'2025-05-30 17:45:31.0570000', N'1924661750514237441', N'OBO', N'2025', N'05', NULL, N'22') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1924703916516208641', N'admin', N'2025-05-20 13:49:07.6250000', N'admin', N'2025-05-30 13:34:00.7890000', N'1902628155861540866', N'SP', N'2025', N'05', NULL, N'21') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1924742377038155778', N'admin', N'2025-05-20 16:21:57.3220000', N'admin', N'2025-05-20 16:26:04.6790000', N'1907312309862907906', N'EIO', N'2025', N'05', N'20', N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925008251143806978', N'admin', N'2025-05-21 09:58:26.6500000', N'admin', N'2025-05-21 10:00:29.5430000', N'1902230626944094210', N'PRS', N'25', N'5', N'21', N'8') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925388708644196353', N'admin', N'2025-05-22 11:10:14.7730000', N'admin', N'2025-05-26 09:25:32.7630000', N'1925388470684553218', N'SEAL', N'2025', N'05', NULL, N'8') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925721230137196545', N'admin', N'2025-05-23 09:11:34.0930000', N'admin', N'2025-05-23 09:17:54.6240000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'23', N'2') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925733263605690370', N'admin', N'2025-05-23 09:59:23.0960000', NULL, NULL, N'1907312309862907906', N'EIO', N'2025', N'05', N'23', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925826887617560578', N'XU1129', N'2025-05-23 16:11:24.7650000', NULL, NULL, N'1925823234437455874', N'sb', N'2025', N'05', NULL, N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925827375918432258', N'XU1129', N'2025-05-23 16:13:21.2180000', N'admin', N'2025-05-26 14:06:17.9940000', N'1925823234437455874', N'TSB', N'2025', N'05', NULL, N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1925862287815938049', N'admin', N'2025-05-23 18:32:04.8560000', NULL, NULL, N'1925822932846026753', N'LB', N'2025', N'05', NULL, N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1926834324666683394', N'admin', N'2025-05-26 10:54:36.5080000', N'admin', N'2025-05-26 11:01:24.5150000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'26', N'2') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1926843894491373569', N'admin', N'2025-05-26 11:32:38.1320000', N'admin', N'2025-05-27 10:58:43.0310000', N'1926840992444026882', N'DB', N'2025', N'05', NULL, N'9') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1927212610336874498', N'admin', N'2025-05-27 11:57:46.8400000', N'admin', N'2025-05-27 15:12:57.5920000', N'1927198276936269826', N'SCRAP', N'2025', N'05', NULL, N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1927241564099260417', N'admin', N'2025-05-27 13:52:49.9500000', N'admin', N'2025-05-27 17:20:07.9590000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'27', N'12') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1927619521376444418', N'admin', N'2025-05-28 14:54:41.9960000', N'sqw', N'2025-05-28 18:20:59.0640000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'28', N'5') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1928275207458533378', N'admin', N'2025-05-30 10:20:09.7310000', N'admin', N'2025-05-30 17:27:10.9680000', N'1902243477803536385', N'SRCR', N'2025', N'05', N'30', N'64') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1929716171297447937', N'admin', N'2025-06-03 09:46:02.2850000', N'admin', N'2025-06-03 16:07:23.8970000', N'1902243477803536385', N'SRCR', N'2025', N'06', N'03', N'12') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1929716193044914178', N'admin', N'2025-06-03 09:46:07.4720000', N'admin', N'2025-06-13 09:56:46.6060000', N'1902628155861540866', N'SP', N'2025', N'06', NULL, N'9') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1929779912953090050', N'admin', N'2025-06-03 13:59:19.4810000', N'admin', N'2025-06-06 15:09:40.5620000', N'1929779613475590145', N'SPR', N'2025', N'06', NULL, N'57') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1930141422624288770', N'admin', N'2025-06-04 13:55:50.1010000', NULL, NULL, N'1907312309862907906', N'EIO', N'2025', N'06', N'04', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1930185417001295874', N'admin', N'2025-06-04 16:50:39.1730000', N'admin', N'2025-06-16 14:18:23.2850000', N'1924661750514237441', N'OBO', N'2025', N'06', NULL, N'18') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1930552744431685633', N'admin', N'2025-06-05 17:10:16.8650000', N'admin', N'2025-06-05 17:15:51.5270000', N'1902243477803536385', N'SRCR', N'2025', N'06', N'05', N'5') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1930800566506713089', N'admin', N'2025-06-06 09:35:02.2450000', N'admin', N'2025-06-06 15:09:35.8540000', N'1902243477803536385', N'SRCR', N'2025', N'06', N'06', N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1930822662909685761', N'admin', N'2025-06-06 11:02:50.4570000', N'admin', N'2025-06-06 15:39:50.0790000', N'1930807505479364610', N'BJBF', N'2025', N'06', NULL, N'18') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1931954412185968642', N'admin', N'2025-06-09 14:00:00.4950000', N'admin', N'2025-06-09 14:00:02.2600000', N'1925822932846026753', N'LB', N'2025', N'06', NULL, N'2') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1931972588781166593', N'admin', N'2025-06-09 15:12:14.1130000', NULL, NULL, N'1902203774154248193', N'PRC', N'2025', N'06', N'09', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1932713779793424385', N'admin', N'2025-06-11 16:17:27.8320000', N'admin', N'2025-06-13 16:42:51.9590000', N'1925823234437455874', N'TSB', N'2025', N'06', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1933405091460493314', N'admin', N'2025-06-13 14:04:29.3980000', N'admin', N'2025-06-19 17:39:46.9190000', N'1933399195028254721', N'TPO', N'2025', N'06', NULL, N'5') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1934796748953202689', N'admin', N'2025-06-17 10:14:26.3820000', NULL, NULL, N'1902243477803536385', N'SRCR', N'2025', N'06', N'17', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1934817312719646722', N'admin', N'2025-06-17 11:36:09.1500000', N'admin', N'2025-06-17 13:50:33.1030000', N'1934814744203427841', N'EFCR', N'2025', N'06', N'17', N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1934853776615698434', N'admin', N'2025-06-17 14:01:02.8440000', N'admin', N'2025-06-20 13:16:23.0150000', N'1905536888087691266', N'MSCR', N'2025', N'06', NULL, N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1934854043465707521', N'admin', N'2025-06-17 14:02:06.4700000', N'admin', N'2025-06-20 14:49:18.3610000', N'1922563469951819778', N'SMCR', N'2025', N'06', NULL, N'4') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1934860730443403266', N'admin', N'2025-06-17 14:28:40.7610000', NULL, NULL, N'1902203774154248193', N'PRC', N'2025', N'06', N'17', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935164771439497218', N'admin', N'2025-06-18 10:36:49.7860000', N'admin', N'2025-06-18 15:34:18.3130000', N'1907312309862907906', N'EIO', N'2025', N'06', N'18', N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935246657187680258', N'admin', N'2025-06-18 16:02:12.8460000', NULL, NULL, N'1935244162453413890', N'EPPR', N'2025', N'06', N'18', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935516820136026113', N'admin', N'2025-06-19 09:55:44.7370000', N'admin', N'2025-06-20 14:52:30.3050000', N'1922563625669550081', N'TMCR', N'2025', N'06', NULL, N'3') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935540986675535874', N'admin', N'2025-06-19 11:31:46.4920000', NULL, NULL, N'1921760981629857793', N'GJFL', N'2025', N'06', NULL, N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935600911224107009', N'admin', N'2025-06-19 15:29:53.6090000', NULL, NULL, N'1935244162453413890', N'EPPR', N'2025', N'06', N'19', N'1') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_business_code_seq] ([id], [create_by], [create_time], [update_by], [update_time], [rule_id], [prefix], [current_year], [current_month], [current_day], [current_seq]) VALUES (N'1935891092275654657', N'admin', N'2025-06-20 10:42:58.1410000', N'admin', N'2025-06-20 11:10:52.0490000', N'1935244162453413890', N'EPPR', N'2025', N'06', N'20', N'3') |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for sys_maintain_depart |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_maintain_depart]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[sys_maintain_depart] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[sys_maintain_depart] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [parent_id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [maintain_name] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [maintain_name_abbr] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [maintain_order] int NULL, |
| | | [description] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [org_type] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [org_code] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [address] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [memo] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [status] nvarchar(1) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [del_flag] nvarchar(1) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_by] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [maintain_code] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[sys_maintain_depart] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¶ID', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'parent_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'产线åç§°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'maintain_name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'缩å', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'maintain_name_abbr' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æåº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'maintain_order' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æè¿°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'description' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'产线类å 1ä¸çº§é¨é¨ 2åé¨é¨', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'org_type' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'产线ç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'org_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å°å', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'address' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'夿³¨', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'memo' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç¶æï¼1å¯ç¨ï¼0ä¸å¯ç¨ï¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'status' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å é¤ç¶æï¼0ï¼æ£å¸¸ï¼1å·²å é¤ï¼', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'del_flag' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'åå»ºæ¥æ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'æ´æ°æ¥æ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç»´ä¿®é¨é¨ç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart', |
| | | 'COLUMN', N'maintain_code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'产线表', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_maintain_depart' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Records of sys_maintain_depart |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for sys_position |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_position]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[sys_position] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[sys_position] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [code] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [name] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [post_rank] nvarchar(2) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [company_id] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [sys_org_code] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[sys_position] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'èå¡ç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'èå¡åç§°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'è级', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'post_rank' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å
¬å¸id', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'company_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿®æ¹äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿®æ¹æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç»ç»æºæç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'sys_org_code' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Records of sys_position |
| | | -- ---------------------------- |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1909079838201671681', N'PCR0001', N'æä½å·¥', NULL, NULL, N'admin', N'2025-04-07 11:04:37.0720000', NULL, NULL, N'A01') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1909079910381449218', N'PCR0002', N'维修工', NULL, NULL, N'admin', N'2025-04-07 11:04:54.2810000', NULL, NULL, N'A01') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1909079939120820226', N'PCR0003', N'车é´çç»é¿', NULL, NULL, N'admin', N'2025-04-07 11:05:01.0000000', N'admin', N'2025-05-19 15:42:08.0230000', N'A01') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1909079969235922946', N'PCR0004', N'车é´è®¾å¤ç®¡çå', NULL, NULL, N'admin', N'2025-04-07 11:05:08.0000000', N'admin', N'2025-05-19 15:41:14.8330000', N'A01') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1922222199530192898', N'PCR0006', N'å
¬å¸è®¾å¤ç®¡çå', NULL, NULL, N'admin', N'2025-05-13 17:27:40.0000000', N'admin', N'2025-05-19 15:41:34.2050000', N'A01') |
| | | GO |
| | | |
| | | INSERT INTO [dbo].[sys_position] ([id], [code], [name], [post_rank], [company_id], [create_by], [create_time], [update_by], [update_time], [sys_org_code]) VALUES (N'1927291533460058114', N'PCR0007', N'å¤ä»¶ç®¡çå', NULL, NULL, N'admin', N'2025-05-27 17:11:23.5840000', NULL, NULL, N'A01') |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table sys_business_code_rule |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[sys_business_code_rule] ADD CONSTRAINT [PK__sys_busi__3213E83FAC8ACCD8] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table sys_business_code_seq |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[sys_business_code_seq] ADD CONSTRAINT [PK__sys_busi__3213E83F361CB9BB] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Indexes structure for table sys_position |
| | | -- ---------------------------- |
| | | CREATE UNIQUE NONCLUSTERED INDEX [uniq_code] |
| | | ON [dbo].[sys_position] ( |
| | | [code] ASC |
| | | ) |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table sys_position |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[sys_position] ADD CONSTRAINT [PK__sys_posi__3213E83F22016FDB] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | Navicat Premium Dump SQL |
| | | |
| | | Source Server : localhost-sqlserver |
| | | Source Server Type : SQL Server |
| | | Source Server Version : 11003000 (11.00.3000) |
| | | Source Host : localhost:1433 |
| | | Source Catalog : LXZN_TEST_430_NEW |
| | | Source Schema : dbo |
| | | |
| | | Target Server Type : SQL Server |
| | | Target Server Version : 11003000 (11.00.3000) |
| | | File Encoding : 65001 |
| | | |
| | | Date: 11/07/2025 10:51:28 |
| | | */ |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for sys_position |
| | | -- ---------------------------- |
| | | IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[sys_position]') AND type IN ('U')) |
| | | DROP TABLE [dbo].[sys_position] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[sys_position] ( |
| | | [id] nvarchar(32) COLLATE Chinese_PRC_CI_AS NOT NULL, |
| | | [code] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [name] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [post_rank] nvarchar(2) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [company_id] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [create_time] datetime2(7) NULL, |
| | | [update_by] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, |
| | | [update_time] datetime2(7) NULL, |
| | | [sys_org_code] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL |
| | | ) |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[sys_position] SET (LOCK_ESCALATION = TABLE) |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'èå¡ç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'code' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'èå¡åç§°', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'name' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'è级', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'post_rank' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å
¬å¸id', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'company_id' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建人', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'create_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'å建æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'create_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿®æ¹äºº', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'update_by' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ä¿®æ¹æ¶é´', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'update_time' |
| | | GO |
| | | |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'ç»ç»æºæç¼ç ', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'sys_position', |
| | | 'COLUMN', N'sys_org_code' |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Indexes structure for table sys_position |
| | | -- ---------------------------- |
| | | CREATE UNIQUE NONCLUSTERED INDEX [uniq_code] |
| | | ON [dbo].[sys_position] ( |
| | | [code] ASC |
| | | ) |
| | | GO |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Primary Key structure for table sys_position |
| | | -- ---------------------------- |
| | | ALTER TABLE [dbo].[sys_position] ADD CONSTRAINT [PK__sys_posi__3213E83F22016FDB] PRIMARY KEY CLUSTERED ([id]) |
| | | WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) |
| | | ON [PRIMARY] |
| | | GO |
| | | |
| | |
| | | log.setEquipmentId(order.getEquipmentId()); |
| | | log.setBusinessId(order.getId()); |
| | | log.setOperator(order.getOperator()); |
| | | log.setDescription(order.getLeaderConfirmComment()); |
| | | log.setDescription(order.getProblemDescription()); |
| | | log.setCreateTime(order.getActualEndTime()); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.constant; |
| | | |
| | | public enum TechnologyStatusEnum { |
| | | QUALIFIED, //åæ ¼ |
| | | RESTRICTED, //éç¨ |
| | | PROHIBITED, //ç¦ç¨ |
| | | ; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿åæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_third_maintenance_change") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "eam_third_maintenance_change对象", description = "ä¸ä¿åæ´") |
| | | public class EamThirdMaintenanceChange extends JeecgEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -5589051394307488593L; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /** |
| | | * ä¸ä¿å·¥åID |
| | | */ |
| | | @Excel(name = "ä¸ä¿å·¥åID", width = 15) |
| | | @ApiModelProperty(value = "ä¸ä¿å·¥åID") |
| | | private String orderId; |
| | | /** |
| | | * åæ´åå· |
| | | */ |
| | | @Excel(name = "åæ´åå·", width = 15) |
| | | @ApiModelProperty(value = "åæ´åå·") |
| | | private String changeOrderNum; |
| | | /** |
| | | * ç³è¯·äºº |
| | | */ |
| | | @Excel(name = "ç³è¯·äºº", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String applicant; |
| | | /** |
| | | * ç³è¯·é¨é¨ |
| | | */ |
| | | @Excel(name = "ç³è¯·é¨é¨", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·é¨é¨") |
| | | private String factoryOrgCode; |
| | | /** |
| | | * ç³è¯·æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "ç³è¯·æ¥æ") |
| | | @Excel(name = "ç³è¯·æ¥æ", width = 20, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date applyDate; |
| | | /** |
| | | * ç³è¯·ç±»å;æ¥åºãå»¶ä¿ |
| | | */ |
| | | @Excel(name = "ç³è¯·ç±»å;æ¥åºãå»¶ä¿", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·ç±»å;æ¥åºãå»¶ä¿") |
| | | private String applyCategory; |
| | | /** |
| | | * åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿 |
| | | */ |
| | | @Excel(name = "åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿", width = 15) |
| | | @ApiModelProperty(value = "åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿") |
| | | private String changeStatus; |
| | | /** |
| | | * å»¶ä¿åå ç±»å;ç产任å¡ãè®¾å¤æ
éãæ¥åºãå¤§ä¿®é¡¹ä¿®ãæ¬è¿ |
| | | */ |
| | | @Excel(name = "å»¶ä¿åå ç±»å;ç产任å¡ãè®¾å¤æ
éãæ¥åºãå¤§ä¿®é¡¹ä¿®ãæ¬è¿", width = 15) |
| | | @ApiModelProperty(value = "å»¶ä¿åå ç±»å;ç产任å¡ãè®¾å¤æ
éãæ¥åºãå¤§ä¿®é¡¹ä¿®ãæ¬è¿") |
| | | private String applyReasonType; |
| | | /** |
| | | * å»¶ä¿(åæ´)åå |
| | | */ |
| | | @Excel(name = "å»¶ä¿(åæ´)åå ", width = 15) |
| | | @ApiModelProperty(value = "å»¶ä¿(åæ´)åå ") |
| | | private String applyReason; |
| | | /** |
| | | * å»¶è¿ä¿å
»æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "å»¶è¿ä¿å
»æ¥æ") |
| | | @Excel(name = "å»¶è¿ä¿å
»æ¥æ", width = 20, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date deferredMaintenanceDate; |
| | | /** |
| | | * 主管é¢å¯¼ç¾å |
| | | */ |
| | | @Excel(name = "主管é¢å¯¼ç¾å", width = 15) |
| | | @ApiModelProperty(value = "主管é¢å¯¼ç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String equipmentManagerSignature; |
| | | /** |
| | | * 主管é¢å¯¼ç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "主管é¢å¯¼ç¾åæ¶é´") |
| | | @Excel(name = "主管é¢å¯¼ç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date equipmentManagerSignatureTime; |
| | | /** |
| | | * é¨é¨é¢å¯¼ç¾å;æ ¹æ®å»¶ä¿åå ç±»ååºåä¸åçäººå®¡æ¹ |
| | | */ |
| | | @Excel(name = "é¨é¨é¢å¯¼ç¾å;æ ¹æ®å»¶ä¿åå ç±»ååºåä¸åç人审æ¹", width = 15) |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼ç¾å;æ ¹æ®å»¶ä¿åå ç±»ååºåä¸åç人审æ¹") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String departManagerSignature; |
| | | /** |
| | | * é¨é¨é¢å¯¼ç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼ç¾åæ¶é´") |
| | | @Excel(name = "é¨é¨é¢å¯¼ç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date departManagerSignatureTime; |
| | | /** |
| | | * é¨é¨é¢å¯¼æè§ |
| | | */ |
| | | @Excel(name = "é¨é¨é¢å¯¼æè§", width = 15) |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼æè§") |
| | | private String departManagerComment; |
| | | /** |
| | | * ç产ä¿éé¨é¢å¯¼ç¾å |
| | | */ |
| | | @Excel(name = "ç产ä¿éé¨é¢å¯¼ç¾å", width = 15) |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String productionSupportSignature; |
| | | /** |
| | | * ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´") |
| | | @Excel(name = "ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date productionSupportSignatureTime; |
| | | /** |
| | | * ç产ä¿éé¨é¢å¯¼æè§ |
| | | */ |
| | | @Excel(name = "ç产ä¿éé¨é¢å¯¼æè§", width = 15) |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼æè§") |
| | | private String productionSupportComment; |
| | | /** |
| | | * HFç¼ç |
| | | */ |
| | | @Excel(name = "HFç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ç空çå¤ççä¸ä¿ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_third_maintenance_furnace") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "eam_third_maintenance_furnace对象", description = "ç空çå¤ççä¸ä¿") |
| | | public class EamThirdMaintenanceFurnace extends JeecgEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -5799611070364065336L; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /** |
| | | * 设å¤ID |
| | | */ |
| | | @Excel(name = "设å¤ID", width = 15) |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /** |
| | | * å缩空æ°åå(MPa) |
| | | */ |
| | | @Excel(name = "å缩空æ°åå(MPa)", width = 15) |
| | | @ApiModelProperty(value = "å缩空æ°åå(MPa)") |
| | | private String compressedAirPressureValue; |
| | | /** |
| | | * æéç空(Pa) |
| | | */ |
| | | @Excel(name = "æéç空(Pa)", width = 15) |
| | | @ApiModelProperty(value = "æéç空(Pa)") |
| | | private String ultimateVacuumValue; |
| | | /** |
| | | * æ³æ¼ç(Pa/h) |
| | | */ |
| | | @Excel(name = "æ³æ¼ç(Pa/h)", width = 15) |
| | | @ApiModelProperty(value = "æ³æ¼ç(Pa/h)") |
| | | private String leakRate; |
| | | /** |
| | | * ååå¤ç |
| | | */ |
| | | @Excel(name = "ååå¤ç", width = 15) |
| | | @ApiModelProperty(value = "ååå¤ç") |
| | | private String purificationTreatment; |
| | | /** |
| | | * çæ¸©ååæ§æ£æµ |
| | | */ |
| | | @Excel(name = "çæ¸©ååæ§æ£æµ", width = 15) |
| | | @ApiModelProperty(value = "çæ¸©ååæ§æ£æµ") |
| | | private String furnaceTemperatureUniformityTesting; |
| | | /** |
| | | * å çåçæµè¯ |
| | | */ |
| | | @Excel(name = "å çåçæµè¯", width = 15) |
| | | @ApiModelProperty(value = "å çåçæµè¯") |
| | | private String heatingPowerTest; |
| | | /** |
| | | * ä¿å
»äºº |
| | | */ |
| | | @Excel(name = "ä¿å
»äºº", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String operator; |
| | | /** |
| | | * ä¿å
»æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "ä¿å
»æ¥æ") |
| | | @Excel(name = "ä¿å
»æ¥æ", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date operateTime; |
| | | /** |
| | | * ä¿å
»ç¶æ;å¾
æäº¤ãå¾
确认ã已宿 |
| | | */ |
| | | @Excel(name = "ä¿å
»ç¶æ;å¾
æäº¤ãå¾
确认ã已宿", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»ç¶æ;å¾
æäº¤ãå¾
确认ã已宿") |
| | | private String maintenanceStatus; |
| | | /** |
| | | * è½å¦æ»¡è¶³å 工鿱;æ¯å¦ |
| | | */ |
| | | @Excel(name = "è½å¦æ»¡è¶³å 工鿱;æ¯å¦", width = 15) |
| | | @ApiModelProperty(value = "è½å¦æ»¡è¶³å 工鿱;æ¯å¦") |
| | | private String processingRequirementsFlag; |
| | | /** |
| | | * 确认人 |
| | | */ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String confirmUser; |
| | | /** |
| | | * ç¡®è®¤æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "ç¡®è®¤æ¥æ") |
| | | @Excel(name = "ç¡®è®¤æ¥æ", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date confirmTime; |
| | | /** |
| | | * HFç¼ç |
| | | */ |
| | | @Excel(name = "HFç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "eam_third_maintenance_order对象", description = "设å¤ä¸çº§ä¿å
»") |
| | | public class EamThirdMaintenanceOrder implements Serializable { |
| | | public class EamThirdMaintenanceOrder extends JeecgEntity implements Serializable { |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /** |
| | | * å建人 |
| | | */ |
| | | @Excel(name = "å建人", width = 15) |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /** |
| | | * æ´æ°äºº |
| | | */ |
| | | @Excel(name = "æ´æ°äºº", width = 15) |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | private static final long serialVersionUID = 2805431980389464185L; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date maintenanceDate; |
| | | /** |
| | | * éå®å·¥åæ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "éå®å·¥åæ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date freezeOrderDate; |
| | | /** |
| | | * å·¥åè¿ææ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "å·¥åè¿ææ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date orderExpirationDate; |
| | | /** |
| | | * å®é
å¼å§æ¶é´ |
| | | */ |
| | | @Excel(name = "å®é
å¼å§æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | |
| | | @ApiModelProperty(value = "å®é
ç»ææ¶é´") |
| | | private Date actualEndTime; |
| | | /** |
| | | * ä¿å
»äºº |
| | | * 维修人 |
| | | */ |
| | | @Excel(name = "ä¿å
»äºº", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»äºº") |
| | | @Excel(name = "维修人", width = 15) |
| | | @ApiModelProperty(value = "维修人") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String operator; |
| | | private String repairman; |
| | | /** |
| | | * ä¿å
»ç¶æ |
| | | */ |
| | |
| | | @Dict(dicCode = "order_creation_method") |
| | | private String creationMethod; |
| | | /** |
| | | * æºå¨å确认 |
| | | * ä¿å
»äºº |
| | | */ |
| | | @Excel(name = "æºå¨å确认", width = 15) |
| | | @ApiModelProperty(value = "æºå¨å确认") |
| | | @Excel(name = "ä¿å
»äºº", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String confirmUser; |
| | | private String operator; |
| | | /** |
| | | * 确认æè§ |
| | | * 设å¤åè½æ¯å¦é½å¤;æ¯å¦ |
| | | */ |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String confirmComment; |
| | | @Excel(name = "设å¤åè½æ¯å¦é½å¤;æ¯å¦", width = 15) |
| | | @ApiModelProperty(value = "设å¤åè½æ¯å¦é½å¤;æ¯å¦") |
| | | private String fullyFunctional; |
| | | /** |
| | | * 确认æ¶é´ |
| | | * 设å¤åè½æ¯å¦é½å¤;æ¯å¦ |
| | | */ |
| | | @Excel(name = "确认æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "设å¤è½å¦æ£å¸¸è¿è½¬;æ¯å¦", width = 15) |
| | | @ApiModelProperty(value = "设å¤åè½æ¯å¦é½å¤;æ¯å¦") |
| | | private String runningNormally; |
| | | /** |
| | | * é®é¢æè¿° |
| | | */ |
| | | @Excel(name = "é®é¢æè¿°", width = 30) |
| | | @ApiModelProperty(value = "é®é¢æè¿°") |
| | | private String problemDescription; |
| | | /** |
| | | * æ£æ¥äºº |
| | | */ |
| | | @Excel(name = "æ£æ¥äºº", width = 15) |
| | | @ApiModelProperty(value = "æ£æ¥äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String inspector; |
| | | /** |
| | | * æ£æ¥æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æ£æ¥æ¶é´") |
| | | @Excel(name = "æ£æ¥æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date confirmTime; |
| | | |
| | | private Date inspectTime; |
| | | /** |
| | | * åä½é¢å¯¼ç¡®è®¤ |
| | | * æä½äººç¾å |
| | | */ |
| | | @Excel(name = "åä½é¢å¯¼ç¡®è®¤", width = 15) |
| | | @ApiModelProperty(value = "åä½é¢å¯¼ç¡®è®¤") |
| | | @Excel(name = "æä½äººç¾å", width = 15) |
| | | @ApiModelProperty(value = "æä½äººç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String confirmLeader; |
| | | private String operatorSignature; |
| | | /** |
| | | * é¢å¯¼æè§ |
| | | * å婿ä½äºº |
| | | */ |
| | | @ApiModelProperty(value = "é¢å¯¼æè§") |
| | | private String leaderConfirmComment; |
| | | @Excel(name = "å婿ä½äºº", width = 15) |
| | | @ApiModelProperty(value = "å婿ä½äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String assistantOperator; |
| | | /** |
| | | * é¢å¯¼ç¡®è®¤æ¶é´ |
| | | * æä½äººç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "é¢å¯¼ç¡®è®¤æ¶é´") |
| | | @ApiModelProperty(value = "æä½äººç¾åæ¶é´") |
| | | @Excel(name = "æä½äººç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date leaderConfirmTime; |
| | | |
| | | @ApiModelProperty(value = "精度æ£éªäºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String precisionChecker; |
| | | |
| | | private Date operatorSignatureTime; |
| | | /** |
| | | * 精度æ£éªæ¶é´ |
| | | * 维修人ç¾å |
| | | */ |
| | | @ApiModelProperty(value = "精度æ£éªæ¶é´") |
| | | @Excel(name = "维修人ç¾å", width = 15) |
| | | @ApiModelProperty(value = "维修人ç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String repairmanSignature; |
| | | /** |
| | | * åå©ç»´ä¿®äºº |
| | | */ |
| | | @Excel(name = "åå©ç»´ä¿®äºº", width = 15) |
| | | @ApiModelProperty(value = "åå©ç»´ä¿®äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String assistantRepairman; |
| | | /** |
| | | * 维修人ç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "维修人ç¾åæ¶é´") |
| | | @Excel(name = "维修人ç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date precisionCheckTime; |
| | | |
| | | private Date repairmanSignatureTime; |
| | | /** |
| | | * ä¿å
»ä¸ä¼ å¾ç |
| | | * 维修室主任ç¾å |
| | | */ |
| | | @Excel(name = "ä¿å
»ä¸ä¼ å¾ç", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»ä¸ä¼ å¾ç") |
| | | private String imageFiles; |
| | | @Excel(name = "维修室主任ç¾å", width = 15) |
| | | @ApiModelProperty(value = "维修室主任ç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String repairManagerSignature; |
| | | /** |
| | | * 维修室主任ç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "维修室主任ç¾åæ¶é´") |
| | | @Excel(name = "维修室主任ç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date repairManagerSignatureTime; |
| | | /** |
| | | * è®¾å¤æ£æ¥äººç¾å |
| | | */ |
| | | @Excel(name = "è®¾å¤æ£æ¥äººç¾å", width = 15) |
| | | @ApiModelProperty(value = "è®¾å¤æ£æ¥äººç¾å") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String inspectorSignature; |
| | | /** |
| | | * è®¾å¤æ£æ¥äººç¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "è®¾å¤æ£æ¥äººç¾åæ¶é´") |
| | | @Excel(name = "è®¾å¤æ£æ¥äººç¾åæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date inspectorSignatureTime; |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 移交åHFç¼ç |
| | | */ |
| | | @Excel(name = "移交åHFç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "移交åHFç¼ç ") |
| | | private String hfCodeA; |
| | | /** |
| | | * éªæ¶åHFç¼ç |
| | | */ |
| | | @Excel(name = "éªæ¶åHFç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "éªæ¶åHFç¼ç ") |
| | | private String hfCodeB; |
| | | //å表å±ç¤º |
| | | @TableField(exist = false) |
| | | private String equipmentCode; |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: 设å¤ä¸çº§ä¿å
»æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-04-29 |
| | | * @Date: 2025-04-29 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_third_maintenance_order_detail") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_third_maintenance_order_detail对象", description="设å¤ä¸çº§ä¿å
»æç»") |
| | | public class EamThirdMaintenanceOrderDetail implements Serializable { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @Excel(name = "å建人", width = 15) |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @Excel(name = "æ´æ°äºº", width = 15) |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModel(value = "eam_third_maintenance_order_detail对象", description = "设å¤ä¸çº§ä¿å
»æç»") |
| | | public class EamThirdMaintenanceOrderDetail extends JeecgEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -862977193541514910L; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**å·¥åID*/ |
| | | @Excel(name = "å·¥åID", width = 15) |
| | | private Integer delFlag; |
| | | /** |
| | | * å·¥åID |
| | | */ |
| | | @Excel(name = "å·¥åID", width = 15) |
| | | @ApiModelProperty(value = "å·¥åID") |
| | | private String orderId; |
| | | /**项ç®åºå·*/ |
| | | @Excel(name = "项ç®åºå·", width = 15) |
| | | private String orderId; |
| | | /** |
| | | * 项ç®åºå· |
| | | */ |
| | | @Excel(name = "项ç®åºå·", width = 15) |
| | | @ApiModelProperty(value = "项ç®åºå·") |
| | | private Integer itemCode; |
| | | /**ä¿å
»é¡¹ç®*/ |
| | | @Excel(name = "ä¿å
»é¡¹ç®", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»é¡¹ç®") |
| | | private String itemName; |
| | | /**å项ç®*/ |
| | | @Excel(name = "é¨ä½", width = 15) |
| | | private Integer itemCode; |
| | | /** |
| | | * é¨ä½ |
| | | */ |
| | | @Excel(name = "é¨ä½", width = 15) |
| | | @ApiModelProperty(value = "é¨ä½") |
| | | private String itemPart; |
| | | /**ä¿å
»è¦æ±*/ |
| | | @Excel(name = "ä¿å
»è¦æ±", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
»è¦æ±") |
| | | private String itemDemand; |
| | | /**æ¥ä¿®æ è®°*/ |
| | | @Excel(name = "æ¥ä¿®æ è®°", width = 15) |
| | | @ApiModelProperty(value = "æ¥ä¿®æ è®°") |
| | | private String reportFlag; |
| | | /**ä¿å
ȍȾ*/ |
| | | @Excel(name = "ä¿å
ȍȾ", width = 15) |
| | | private String itemPart; |
| | | /** |
| | | * ä¿å
Ȍ
容 |
| | | */ |
| | | @Excel(name = "ä¿å
Ȍ
容", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
Ȍ
容") |
| | | private String itemName; |
| | | /** |
| | | * éªæ¶æ å |
| | | */ |
| | | @Excel(name = "éªæ¶æ å", width = 15) |
| | | @ApiModelProperty(value = "éªæ¶æ å") |
| | | private String itemDemand; |
| | | /** |
| | | * ä¿å
ȍȾ |
| | | */ |
| | | @Excel(name = "ä¿å
ȍȾ", width = 15) |
| | | @ApiModelProperty(value = "ä¿å
ȍȾ") |
| | | private String maintenanceResult; |
| | | /**å¼å¸¸æè¿°*/ |
| | | @Excel(name = "å¼å¸¸æè¿°", width = 15) |
| | | private String maintenanceResult; |
| | | /** |
| | | * å¼å¸¸æè¿° |
| | | */ |
| | | @Excel(name = "å¼å¸¸æè¿°", width = 15) |
| | | @ApiModelProperty(value = "å¼å¸¸æè¿°") |
| | | private String exceptionDescription; |
| | | private String exceptionDescription; |
| | | /** |
| | | * ç¬¬ä¸æ¬¡æ£éªç»æ |
| | | */ |
| | | @Excel(name = "ç¬¬ä¸æ¬¡æ£éªç»æ", width = 15) |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¬¡æ£éªç»æ") |
| | | private String firstInspectResult; |
| | | /** |
| | | * ç¬¬ä¸æ¬¡æ£éªæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¬¡æ£éªæ¶é´") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date firstInspectTime; |
| | | /** |
| | | * ç¬¬ä¸æ¬¡æ£éªå¼å¸¸ |
| | | */ |
| | | @Excel(name = "ç¬¬ä¸æ¬¡æ£éªå¼å¸¸", width = 15) |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¬¡æ£éªå¼å¸¸") |
| | | private String firstInspectException; |
| | | /** |
| | | * ç¬¬äºæ¬¡æ£éªç»æ |
| | | */ |
| | | @Excel(name = "ç¬¬äºæ¬¡æ£éªç»æ", width = 15) |
| | | @ApiModelProperty(value = "ç¬¬äºæ¬¡æ£éªç»æ") |
| | | private String secondInspectResult; |
| | | /** |
| | | * ç¬¬äºæ¬¡æ£éªæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ç¬¬äºæ¬¡æ£éªæ¶é´") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date secondInspectTime; |
| | | /** |
| | | * ç¬¬äºæ¬¡æ£éªå¼å¸¸ |
| | | */ |
| | | @Excel(name = "ç¬¬äºæ¬¡æ£éªå¼å¸¸", width = 15) |
| | | @ApiModelProperty(value = "ç¬¬äºæ¬¡æ£éªå¼å¸¸") |
| | | private String secondInspectException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿å¤ä»¶æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_third_maintenance_spare") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "eam_third_maintenance_spare对象", description = "ä¸ä¿å¤ä»¶æç»") |
| | | public class EamThirdMaintenanceSpare extends JeecgEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -164548817301978100L; |
| | | |
| | | /** |
| | | * å¤ä»¶åç§° |
| | | */ |
| | | @Excel(name = "å¤ä»¶åç§°", width = 15) |
| | | @ApiModelProperty(value = "å¤ä»¶åç§°") |
| | | private String spareName; |
| | | /** |
| | | * å¤ä»¶åå· |
| | | */ |
| | | @Excel(name = "å¤ä»¶åå·", width = 15) |
| | | @ApiModelProperty(value = "å¤ä»¶åå·") |
| | | private String spareModel; |
| | | /** |
| | | * ä½¿ç¨æ°é |
| | | */ |
| | | @Excel(name = "ä½¿ç¨æ°é", width = 15) |
| | | @ApiModelProperty(value = "ä½¿ç¨æ°é") |
| | | private BigDecimal spareQuantity; |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | } |
| | |
| | | baseFactoryService.factoryDataNameByOrgCode(eamEquipmentDto.getZxfactoryOrgCode()) |
| | | +"/"+ baseFactoryService.factoryDataNameByOrgCode(eamEquipmentDto.getFactoryOrgCode())); |
| | | } |
| | | eamEquipmentDto.setEquipmentWeightStr(eamEquipmentDto.getEquipmentWeight().toEngineeringString()); |
| | | if (eamEquipmentDto.getEquipmentWeight()!=null){ |
| | | eamEquipmentDto.setEquipmentWeightStr(eamEquipmentDto.getEquipmentWeight().toEngineeringString()); |
| | | } |
| | | eamEquipmentDtos.add(eamEquipmentDto); |
| | | }); |
| | | // Step.3 AutoPoi 导åºExcel |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceChange; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceChangeService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿åæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "ä¸ä¿åæ´") |
| | | @RestController |
| | | @RequestMapping("/eam/eamThirdMaintenanceChange") |
| | | public class EamThirdMaintenanceChangeController extends JeecgController<EamThirdMaintenanceChange, IEamThirdMaintenanceChangeService> { |
| | | |
| | | @Resource |
| | | private IEamThirdMaintenanceChangeService eamThirdMaintenanceChangeService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamThirdMaintenanceChange |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-å页å表æ¥è¯¢") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-å页å表æ¥è¯¢", notes = "ä¸ä¿åæ´-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamThirdMaintenanceChange eamThirdMaintenanceChange, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamThirdMaintenanceChange> queryWrapper = QueryGenerator.initQueryWrapper(eamThirdMaintenanceChange, req.getParameterMap()); |
| | | Page<EamThirdMaintenanceChange> page = new Page<EamThirdMaintenanceChange>(pageNo, pageSize); |
| | | IPage<EamThirdMaintenanceChange> pageList = eamThirdMaintenanceChangeService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamThirdMaintenanceChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-æ·»å ") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-æ·»å ", notes = "ä¸ä¿åæ´-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamThirdMaintenanceChange eamThirdMaintenanceChange) { |
| | | eamThirdMaintenanceChangeService.save(eamThirdMaintenanceChange); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamThirdMaintenanceChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-ç¼è¾") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-ç¼è¾", notes = "ä¸ä¿åæ´-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamThirdMaintenanceChange eamThirdMaintenanceChange) { |
| | | eamThirdMaintenanceChangeService.updateById(eamThirdMaintenanceChange); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-éè¿idå é¤") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-éè¿idå é¤", notes = "ä¸ä¿åæ´-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | | eamThirdMaintenanceChangeService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-æ¹éå é¤") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-æ¹éå é¤", notes = "ä¸ä¿åæ´-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | | this.eamThirdMaintenanceChangeService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿åæ´-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value = "ä¸ä¿åæ´-éè¿idæ¥è¯¢", notes = "ä¸ä¿åæ´-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | | EamThirdMaintenanceChange eamThirdMaintenanceChange = eamThirdMaintenanceChangeService.getById(id); |
| | | return Result.OK(eamThirdMaintenanceChange); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamThirdMaintenanceChange |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamThirdMaintenanceChange eamThirdMaintenanceChange) { |
| | | return super.exportXls(request, eamThirdMaintenanceChange, EamThirdMaintenanceChange.class, "ä¸ä¿åæ´"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamThirdMaintenanceChange.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceFurnace; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceFurnaceService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ç空çå¤ççä¸ä¿ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ç空çå¤ççä¸ä¿") |
| | | @RestController |
| | | @RequestMapping("/eam/eamThirdMaintenanceFurnace") |
| | | public class EamThirdMaintenanceFurnaceController extends JeecgController<EamThirdMaintenanceFurnace, IEamThirdMaintenanceFurnaceService> { |
| | | @Resource |
| | | private IEamThirdMaintenanceFurnaceService eamThirdMaintenanceFurnaceService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamThirdMaintenanceFurnace |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-å页å表æ¥è¯¢", notes="ç空çå¤ççä¸ä¿-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamThirdMaintenanceFurnace eamThirdMaintenanceFurnace, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamThirdMaintenanceFurnace> queryWrapper = QueryGenerator.initQueryWrapper(eamThirdMaintenanceFurnace, req.getParameterMap()); |
| | | Page<EamThirdMaintenanceFurnace> page = new Page<EamThirdMaintenanceFurnace>(pageNo, pageSize); |
| | | IPage<EamThirdMaintenanceFurnace> pageList = eamThirdMaintenanceFurnaceService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamThirdMaintenanceFurnace |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-æ·»å ") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-æ·»å ", notes="ç空çå¤ççä¸ä¿-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamThirdMaintenanceFurnace eamThirdMaintenanceFurnace) { |
| | | eamThirdMaintenanceFurnaceService.save(eamThirdMaintenanceFurnace); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamThirdMaintenanceFurnace |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-ç¼è¾") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-ç¼è¾", notes="ç空çå¤ççä¸ä¿-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamThirdMaintenanceFurnace eamThirdMaintenanceFurnace) { |
| | | eamThirdMaintenanceFurnaceService.updateById(eamThirdMaintenanceFurnace); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-éè¿idå é¤") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-éè¿idå é¤", notes="ç空çå¤ççä¸ä¿-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamThirdMaintenanceFurnaceService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-æ¹éå é¤") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-æ¹éå é¤", notes="ç空çå¤ççä¸ä¿-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamThirdMaintenanceFurnaceService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç空çå¤ççä¸ä¿-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ç空çå¤ççä¸ä¿-éè¿idæ¥è¯¢", notes="ç空çå¤ççä¸ä¿-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamThirdMaintenanceFurnace eamThirdMaintenanceFurnace = eamThirdMaintenanceFurnaceService.getById(id); |
| | | return Result.OK(eamThirdMaintenanceFurnace); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamThirdMaintenanceFurnace |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamThirdMaintenanceFurnace eamThirdMaintenanceFurnace) { |
| | | return super.exportXls(request, eamThirdMaintenanceFurnace, EamThirdMaintenanceFurnace.class, "ç空çå¤ççä¸ä¿"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamThirdMaintenanceFurnace.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceSpare; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceSpareService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿å¤ä»¶æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ä¸ä¿å¤ä»¶æç»") |
| | | @RestController |
| | | @RequestMapping("/eam/eamThirdMaintenanceSpare") |
| | | public class EamThirdMaintenanceSpareController extends JeecgController<EamThirdMaintenanceSpare, IEamThirdMaintenanceSpareService> { |
| | | |
| | | @Resource |
| | | private IEamThirdMaintenanceSpareService eamThirdMaintenanceSpareService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamThirdMaintenanceSpare |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-å页å表æ¥è¯¢", notes="ä¸ä¿å¤ä»¶æç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamThirdMaintenanceSpare eamThirdMaintenanceSpare, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamThirdMaintenanceSpare> queryWrapper = QueryGenerator.initQueryWrapper(eamThirdMaintenanceSpare, req.getParameterMap()); |
| | | Page<EamThirdMaintenanceSpare> page = new Page<EamThirdMaintenanceSpare>(pageNo, pageSize); |
| | | IPage<EamThirdMaintenanceSpare> pageList = eamThirdMaintenanceSpareService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamThirdMaintenanceSpare |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-æ·»å ") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-æ·»å ", notes="ä¸ä¿å¤ä»¶æç»-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamThirdMaintenanceSpare eamThirdMaintenanceSpare) { |
| | | eamThirdMaintenanceSpareService.save(eamThirdMaintenanceSpare); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamThirdMaintenanceSpare |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-ç¼è¾") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-ç¼è¾", notes="ä¸ä¿å¤ä»¶æç»-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamThirdMaintenanceSpare eamThirdMaintenanceSpare) { |
| | | eamThirdMaintenanceSpareService.updateById(eamThirdMaintenanceSpare); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-éè¿idå é¤") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-éè¿idå é¤", notes="ä¸ä¿å¤ä»¶æç»-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamThirdMaintenanceSpareService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-æ¹éå é¤") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-æ¹éå é¤", notes="ä¸ä¿å¤ä»¶æç»-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamThirdMaintenanceSpareService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ä¸ä¿å¤ä»¶æç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ä¸ä¿å¤ä»¶æç»-éè¿idæ¥è¯¢", notes="ä¸ä¿å¤ä»¶æç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamThirdMaintenanceSpare eamThirdMaintenanceSpare = eamThirdMaintenanceSpareService.getById(id); |
| | | return Result.OK(eamThirdMaintenanceSpare); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamThirdMaintenanceSpare |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamThirdMaintenanceSpare eamThirdMaintenanceSpare) { |
| | | return super.exportXls(request, eamThirdMaintenanceSpare, EamThirdMaintenanceSpare.class, "ä¸ä¿å¤ä»¶æç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamThirdMaintenanceSpare.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceChange; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿åæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamThirdMaintenanceChangeMapper extends BaseMapper<EamThirdMaintenanceChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceFurnace; |
| | | |
| | | /** |
| | | * @Description: ç空çå¤ççä¸ä¿ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamThirdMaintenanceFurnaceMapper extends BaseMapper<EamThirdMaintenanceFurnace> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceSpare; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿å¤ä»¶æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamThirdMaintenanceSpareMapper extends BaseMapper<EamThirdMaintenanceSpare> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamThirdMaintenanceChangeMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamThirdMaintenanceFurnaceMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamThirdMaintenanceSpareMapper"> |
| | | |
| | | </mapper> |
| | |
| | | /**ä¿å
»äºº*/ |
| | | @ApiModelProperty(value = "ä¿å
»äºº") |
| | | private String operator; |
| | | /**ä¿å
»å¾ç*/ |
| | | @ApiModelProperty(value = "ä¿å
»å¾ç") |
| | | private String imageFiles; |
| | | /**ä¿å
»å¾ç*/ |
| | | @ApiModelProperty(value = "ä¿å
»å¾ç") |
| | | private List<FileUploadResult> imageFilesResult; |
| | | /**夿³¨*/ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceChange; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿åæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamThirdMaintenanceChangeService extends IService<EamThirdMaintenanceChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceFurnace; |
| | | |
| | | /** |
| | | * @Description: ç空çå¤ççä¸ä¿ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamThirdMaintenanceFurnaceService extends IService<EamThirdMaintenanceFurnace> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceSpare; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿å¤ä»¶æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamThirdMaintenanceSpareService extends IService<EamThirdMaintenanceSpare> { |
| | | |
| | | } |
| | |
| | | |
| | | // 1. æå设å¤ä¿¡æ¯ |
| | | EamMaintenanceStandard eamMaintenanceStandard = extractDeviceInfo(sheet); |
| | | if (eamMaintenanceStandard == null) { |
| | | if (eamMaintenanceStandard == null || eamMaintenanceStandard.getEquipmentId() == null) { |
| | | return Result.error("设å¤ä¿¡æ¯æå失败"); |
| | | } else { |
| | | if (eamMaintenanceStandard.getEquipmentId() == null) { |
| | | return Result.error("设å¤ä¿¡æ¯æå失败"); |
| | | } |
| | | } |
| | | |
| | | eamMaintenanceStandard.setStandardName(name); |
| | | |
| | | EamMaintenanceStandard exist = checkDuplicate(eamMaintenanceStandard.getEquipmentId(), eamMaintenanceStandard.getMaintenanceCategory(), MaintenanceStandardStatusEnum.START.name()); |
| | | // æ£æ¥éå¤ |
| | | EamMaintenanceStandard exist = checkDuplicate(eamMaintenanceStandard.getEquipmentId(), |
| | | eamMaintenanceStandard.getMaintenanceCategory(), MaintenanceStandardStatusEnum.START.name()); |
| | | if (exist != null) { |
| | | return Result.error(name + ": è®¾å¤æ åå·²åå¨ï¼ä¸è½é夿·»å "); |
| | | } |
| | | |
| | | eamMaintenanceStandardMapper.insert(eamMaintenanceStandard); |
| | | |
| | | // 2. æåæ¯æ¥ç¹æ£é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> dailyDetails = extractDailyItems(sheet, eamMaintenanceStandard); |
| | | Map<Integer, String> rowErrors = new HashMap<>(); |
| | | |
| | | // 2. æåæ¯æ¥ç¹æ£é¡¹ç®ï¼ä¼å空è¡åç»ææ è®°å¤çï¼ |
| | | List<EamMaintenanceStandardDetail> dailyDetails = extractDailyItems(sheet, eamMaintenanceStandard, rowErrors); |
| | | if (dailyDetails.isEmpty()) { |
| | | return Result.error("æªæ¾å°æ¯æ¥ç¹æ£é¡¹ç®"); |
| | | } |
| | | |
| | | // 3. æåå¨ä¿å
»é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> weeklyDetails = extractWeeklyItems(sheet, eamMaintenanceStandard); |
| | | List<EamMaintenanceStandardDetail> weeklyDetails = extractWeeklyItems(sheet, eamMaintenanceStandard, rowErrors); |
| | | if (weeklyDetails.isEmpty()) { |
| | | return Result.error("æªæ¾å°å¨ä¿å
»é¡¹ç®"); |
| | | } |
| | |
| | | eamMaintenanceStandardDetailService.saveBatch(allDetails); |
| | | } |
| | | |
| | | // 触åä¿å
»æµç¨ |
| | | SysParams sysParams = sysParamsService.getSysPramBySettingKey("maintenance_import_type"); |
| | | |
| | | if (sysParams != null) { |
| | | if (sysParams.getSettingValue().equals("1")) { |
| | | //触åä¿å
»æµç¨ |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | eamMaintenanceStandardMapper.updateById(eamMaintenanceStandard); |
| | | } |
| | | if (sysParams != null && sysParams.getSettingValue().equals("1")) { |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | eamMaintenanceStandardMapper.updateById(eamMaintenanceStandard); |
| | | } else { |
| | | return Result.error("æªæ¾å°ä¿å
»æµç¨å¯¼å
¥ç¸å
³é
ç½®,请è系管çå"); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * æåæ¯æ¥ç¹æ£é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractDailyItems(Sheet sheet, EamMaintenanceStandard standard) { |
| | | return extractItems(sheet, standard, "ç¹æ£é¡¹ç®", "å®ææ°æ®/è¦æ±", "DAY_INSPECTION"); |
| | | } |
| | | |
| | | /** |
| | | * æåå¨ä¿å
»é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractWeeklyItems(Sheet sheet, EamMaintenanceStandard standard) { |
| | | return extractItems(sheet, standard, "å¨ä¿å
»é¡¹ç®", "æ£æ¥æ å", "WEEK_INSPECTION"); |
| | | } |
| | | |
| | | /** |
| | | * éç¨é¡¹ç®æåæ¹æ³ |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractItems(Sheet sheet, EamMaintenanceStandard standard, |
| | | String primaryHeader, String secondaryHeader, |
| | | String itemCategory) { |
| | | int[] section = findTableSection(sheet, primaryHeader, secondaryHeader); |
| | | if (section == null) { |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | List<EamMaintenanceStandardDetail> details = new ArrayList<>(); |
| | | for (int rowIdx = section[0]; rowIdx <= section[1]; rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | if (row == null || isEmptyRow(row)) { |
| | | continue; |
| | | } |
| | | |
| | | // ç¡®ä¿ç¬¬ä¸åæ¯åºå·ï¼æ°åï¼ |
| | | Cell seqCell = row.getCell(0); |
| | | if (seqCell == null || seqCell.getCellType() != CellType.NUMERIC) { |
| | | continue; |
| | | } |
| | | |
| | | // å建项ç®è¯¦æ
|
| | | EamMaintenanceStandardDetail detail = new EamMaintenanceStandardDetail(); |
| | | detail.setStandardId(standard.getId()); |
| | | detail.setItemCode(Integer.parseInt(getCellStringValue(row.getCell(0)))); |
| | | detail.setItemName(getCellStringValue(row.getCell(1))); |
| | | detail.setItemCategory(itemCategory); |
| | | |
| | | // æ ¹æ®é¡¹ç®ç±»åè®¾ç½®éæ±åæ®µ |
| | | if ("DAY_INSPECTION".equals(itemCategory)) { |
| | | detail.setItemDemand(getCellStringValue(row.getCell(2))); |
| | | } else if ("WEEK_INSPECTION".equals(itemCategory)) { |
| | | detail.setItemDemand(getCellStringValue(row.getCell(2))); |
| | | } |
| | | |
| | | details.add(detail); |
| | | } |
| | | |
| | | return details; |
| | | } |
| | | |
| | | /** |
| | | * æ¥æ¾è¡¨æ ¼åºå |
| | | */ |
| | | private int[] findTableSection(Sheet sheet, String primaryHeader, String secondaryHeader) { |
| | | for (int rowIdx = 0; rowIdx <= sheet.getLastRowNum(); rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | if (row == null) continue; |
| | | |
| | | if (isHeaderRow(row, primaryHeader, secondaryHeader)) { |
| | | int startRow = rowIdx + 1; |
| | | int endRow = findDataEnd(sheet, startRow); |
| | | return new int[]{startRow, endRow}; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥æ¯å¦ä¸ºè¡¨å¤´è¡ |
| | | */ |
| | | private boolean isHeaderRow(Row row, String header1, String header2) { |
| | | boolean foundHeader1 = false; |
| | | boolean foundHeader2 = false; |
| | | |
| | | for (int colIdx = 0; colIdx < row.getLastCellNum(); colIdx++) { |
| | | Cell cell = row.getCell(colIdx); |
| | | if (cell == null) continue; |
| | | |
| | | String cellValue = getCellStringValue(cell); |
| | | if (cellValue.contains(header1)) foundHeader1 = true; |
| | | if (cellValue.contains(header2)) foundHeader2 = true; |
| | | } |
| | | |
| | | return foundHeader1 && foundHeader2; |
| | | } |
| | | |
| | | /** |
| | | * æ¥æ¾æ°æ®ç»æä½ç½® |
| | | */ |
| | | private int findDataEnd(Sheet sheet, int startRow) { |
| | | for (int rowIdx = startRow; rowIdx <= sheet.getLastRowNum(); rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | if (row == null) return rowIdx - 1; |
| | | |
| | | // æ£æ¥æ¯å¦ç»ææ å¿è¡ï¼å¦ç¾åè¡ï¼ |
| | | if (isSignatureRow(row)) { |
| | | return rowIdx - 1; |
| | | } |
| | | |
| | | // æ£æ¥æ¯å¦æ°ç表头å¼å§ |
| | | if (isNewHeaderStart(row)) { |
| | | return rowIdx - 1; |
| | | } |
| | | } |
| | | return sheet.getLastRowNum(); |
| | | } |
| | | |
| | | /** |
| | | * è¯å«ç¾åè¡ç¹å¾ |
| | | */ |
| | | private boolean isSignatureRow(Row row) { |
| | | for (int colIdx = 0; colIdx < row.getLastCellNum(); colIdx++) { |
| | | Cell cell = row.getCell(colIdx); |
| | | if (cell == null) continue; |
| | | |
| | | String value = getCellStringValue(cell); |
| | | if (value.contains("ç¾å") || value.contains("责任人") || |
| | | value.contains("æ§è¡") || value.contains("确认")) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * è¯å«æ°è¡¨å¤´å¼å§ |
| | | */ |
| | | private boolean isNewHeaderStart(Row row) { |
| | | for (int colIdx = 0; colIdx < row.getLastCellNum(); colIdx++) { |
| | | Cell cell = row.getCell(colIdx); |
| | | if (cell == null) continue; |
| | | |
| | | String value = getCellStringValue(cell); |
| | | if ("åºå·".equals(value) || "ç¹æ£é¡¹ç®".equals(value) || "å¨ä¿å
»é¡¹ç®".equals(value)) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥è¡æ¯å¦ä¸ºç©º |
| | | */ |
| | | private boolean isEmptyRow(Row row) { |
| | | if (row == null) return true; |
| | | for (int colIdx = 0; colIdx < row.getLastCellNum(); colIdx++) { |
| | | Cell cell = row.getCell(colIdx); |
| | | if (cell != null && cell.getCellType() != CellType.BLANK) { |
| | | String value = getCellStringValue(cell); |
| | | if (StringUtils.isNotBlank(value)) { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * ä½¿ç¨æ£åæååæ®µ |
| | | */ |
| | | private String extractField(String text, String regex) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
æ ¼åç¬¦ä¸²å¼ |
| | | * æåæ¯æ¥ç¹æ£é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractDailyItems(Sheet sheet, EamMaintenanceStandard standard, Map<Integer, String> rowErrors) { |
| | | // 使ç¨å¤å
³é®è¯å¹é
|
| | | String[] primaryHeaders = {"ç¹æ£é¡¹ç®", "æ¥å¸¸ç¹æ£", "æ¯æ¥æ£æ¥"}; |
| | | String[] secondaryHeaders = {"å®ææ°æ®/è¦æ±", "æ£æ¥æ å", "è¦æ±"}; |
| | | return extractItems(sheet, standard, primaryHeaders, secondaryHeaders, "DAY_INSPECTION", rowErrors); |
| | | } |
| | | |
| | | /** |
| | | * æåå¨ä¿å
»é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractWeeklyItems(Sheet sheet, EamMaintenanceStandard standard, Map<Integer, String> rowErrors) { |
| | | // 使ç¨å¤å
³é®è¯å¹é
|
| | | String[] primaryHeaders = {"å¨ä¿å
»é¡¹ç®", "å¨ä¿å
»", "æ¯å¨ä¿å
»"}; |
| | | String[] secondaryHeaders = {"æ£æ¥æ å", "ä¿å
»è¦æ±", "æ å"}; |
| | | return extractItems(sheet, standard, primaryHeaders, secondaryHeaders, "WEEK_INSPECTION", rowErrors); |
| | | } |
| | | |
| | | /** |
| | | * æ ¸å¿æ¹è¿ï¼ä¼åè¡¨æ ¼åºåè¯å«åæ°æ®æå |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractItems(Sheet sheet, |
| | | EamMaintenanceStandard standard, |
| | | String[] primaryHeaders, |
| | | String[] secondaryHeaders, |
| | | String itemCategory, |
| | | Map<Integer, String> rowErrors) { |
| | | |
| | | // 1. å®ä½è¡¨æ ¼åºåï¼ç²¾ç¡®å¹é
è¡¨å¤´ï¼ |
| | | int startRow = findHeaderRow(sheet, primaryHeaders, secondaryHeaders); |
| | | if (startRow == -1) { |
| | | rowErrors.put(-1, "æªæ¾å°" + Arrays.toString(primaryHeaders) + "表头åºå"); |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | int endRow = findDataEnd(sheet, startRow + 1, "å¨ä¿å
»é¡¹ç®"); |
| | | |
| | | // æåæ¥å¿ï¼å®é
ä½¿ç¨æ¶å¯ä»¥å»æï¼ |
| | | System.out.println("æååºå: " + (startRow + 1) + "è¡å°" + (endRow + 1) + "è¡"); |
| | | |
| | | // 2. æåæ°æ®è¡ |
| | | List<EamMaintenanceStandardDetail> details = new ArrayList<>(); |
| | | for (int rowIdx = startRow + 1; rowIdx <= endRow; rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | if (row == null) continue; |
| | | |
| | | try { |
| | | // åºå·åå¤ç |
| | | Cell seqCell = row.getCell(0); |
| | | if (seqCell == null || seqCell.getCellType() == CellType.BLANK) { |
| | | continue; |
| | | } |
| | | |
| | | // è·ååºå·å¼ï¼æ¯ææ°ååææ¬æ ¼å¼ï¼ |
| | | int seqValue = 0; |
| | | try { |
| | | if (seqCell.getCellType() == CellType.NUMERIC) { |
| | | seqValue = (int) seqCell.getNumericCellValue(); |
| | | } else if (seqCell.getCellType() == CellType.STRING) { |
| | | seqValue = Integer.parseInt(seqCell.getStringCellValue().trim()); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | rowErrors.put(rowIdx + 1, "åºå·æ ¼å¼é误"); |
| | | continue; |
| | | } |
| | | |
| | | // 项ç®åç§°åï¼ç¬¬äºåï¼ |
| | | Cell nameCell = row.getCell(1); |
| | | if (nameCell == null || nameCell.getCellType() == CellType.BLANK) { |
| | | continue; |
| | | } |
| | | String itemName = getCellStringValue(nameCell).trim(); |
| | | |
| | | // è¦æ±/æ ååï¼ç¬¬ä¸åï¼ |
| | | String demand = ""; |
| | | if (row.getLastCellNum() >= 3) { |
| | | Cell demandCell = row.getCell(2); |
| | | if (demandCell != null) { |
| | | demand = getCellStringValue(demandCell).trim(); |
| | | } |
| | | } |
| | | |
| | | // å建详æ
对象 |
| | | EamMaintenanceStandardDetail detail = new EamMaintenanceStandardDetail(); |
| | | detail.setStandardId(standard.getId()); |
| | | detail.setItemCode(seqValue); |
| | | detail.setItemName(itemName); |
| | | detail.setItemDemand(demand); |
| | | detail.setItemCategory(itemCategory); |
| | | details.add(detail); |
| | | |
| | | } catch (Exception e) { |
| | | rowErrors.put(rowIdx + 1, "è§£æé误: " + e.getMessage()); |
| | | } |
| | | } |
| | | return details; |
| | | } |
| | | |
| | | /** |
| | | * è·åè¡ä¸ææåå
æ ¼çåç¬¦ä¸²å¼ |
| | | */ |
| | | private List<String> getRowStringValues(Row row) { |
| | | List<String> values = new ArrayList<>(); |
| | | if (row == null) return values; |
| | | |
| | | for (int cellIdx = 0; cellIdx < row.getLastCellNum(); cellIdx++) { |
| | | Cell cell = row.getCell(cellIdx); |
| | | if (cell != null) { |
| | | values.add(getCellStringValue(cell)); |
| | | } else { |
| | | values.add(""); // 对äºç©ºåå
æ ¼æ·»å 空å符串 |
| | | } |
| | | } |
| | | return values; |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
æ ¼å符串å¼ï¼å¢å¼ºå
¬å¼å¤çï¼ |
| | | */ |
| | | private String getCellStringValue(Cell cell) { |
| | | if (cell == null) return ""; |
| | | if (cell == null) { |
| | | return ""; |
| | | } |
| | | // ä¿æä¸åï¼ä½æ·»å æ°åç±»åå¤ç |
| | | if (cell.getCellType() == CellType.NUMERIC) { |
| | | // æ´æ°å¤ç |
| | | double num = cell.getNumericCellValue(); |
| | | if (num == (int) num) { |
| | | return String.valueOf((int) num); |
| | | } |
| | | return String.valueOf(num); |
| | | } |
| | | switch (cell.getCellType()) { |
| | | case STRING: |
| | | return cell.getStringCellValue().trim(); |
| | |
| | | case BOOLEAN: |
| | | return String.valueOf(cell.getBooleanCellValue()); |
| | | case FORMULA: |
| | | return handleFormulaCell(cell); |
| | | return getFormulaCellValue(cell); |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å¤çå
¬å¼åå
æ ¼ |
| | | * ç²¾ç¡®æ¥æ¾è¡¨å¤´è¡ |
| | | */ |
| | | private int findHeaderRow(Sheet sheet, String[] primaryHeaders, String[] secondaryHeaders) { |
| | | for (int rowIdx = 0; rowIdx <= sheet.getLastRowNum(); rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | if (row == null) continue; |
| | | |
| | | String rowText = getRowStringValues(row).stream().collect(Collectors.joining()); |
| | | |
| | | // æ£æ¥ä¸»æ é¢å坿 é¢ |
| | | boolean hasPrimary = false; |
| | | boolean hasSecondary = false; |
| | | |
| | | for (String header : primaryHeaders) { |
| | | if (rowText.contains(header)) { |
| | | hasPrimary = true; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | for (String header : secondaryHeaders) { |
| | | if (rowText.contains(header)) { |
| | | hasSecondary = true; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | if (hasPrimary && hasSecondary) { |
| | | return rowIdx; |
| | | } |
| | | } |
| | | return -1; |
| | | } |
| | | |
| | | /** |
| | | * æ¥æ¾æ°æ®ç»æä½ç½®ï¼æ ¹æ®æ¨çExcelç»æä¼åï¼ |
| | | */ |
| | | private String handleFormulaCell(Cell cell) { |
| | | private int findDataEnd(Sheet sheet, int startRow, String nextSectionKeyword) { |
| | | int consecutiveEmptyRows = 0; |
| | | final int MAX_EMPTY_ROWS = 3; |
| | | |
| | | for (int rowIdx = startRow; rowIdx <= sheet.getLastRowNum(); rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | |
| | | // å
³é®æ¹è¿1ï¼ç©ºè¡å¤ç |
| | | if (isEssentiallyEmpty(row)) { |
| | | consecutiveEmptyRows++; |
| | | if (consecutiveEmptyRows >= MAX_EMPTY_ROWS) { |
| | | return rowIdx - consecutiveEmptyRows; |
| | | } |
| | | continue; |
| | | } else { |
| | | consecutiveEmptyRows = 0; |
| | | } |
| | | |
| | | // å
³é®æ¹è¿2ï¼ç»ææ è®°æ£æµ |
| | | String rowText = getRowStringValues(row).stream().collect(Collectors.joining()); |
| | | |
| | | // æ ¹æ®æ¨çExcelç»æï¼ç¾åè¡æç¹å®æ ¼å¼ |
| | | if (rowText.contains("ç»´æ¤è´£ä»»äººç¾å")) { |
| | | return rowIdx - 1; |
| | | } |
| | | |
| | | // æ£æµä¸ä¸ä¸ªåºåçå¼å§ï¼å¦å¨ä¿å
»é¡¹ç®ï¼ |
| | | if (StringUtils.isNotBlank(nextSectionKeyword) && |
| | | rowText.contains(nextSectionKeyword)) { |
| | | return rowIdx - 1; |
| | | } |
| | | } |
| | | return sheet.getLastRowNum(); |
| | | } |
| | | |
| | | /** |
| | | * 夿æ¡ä»¶ï¼å两å为空å³è§ä¸ºç©ºè¡ |
| | | */ |
| | | private boolean isEssentiallyEmpty(Row row) { |
| | | if (row == null) return true; |
| | | |
| | | // æ£æ¥åºå·å |
| | | Cell indexCell = row.getCell(0); |
| | | if (indexCell != null && indexCell.getCellType() != CellType.BLANK) { |
| | | return false; |
| | | } |
| | | |
| | | // æ£æ¥é¡¹ç®åç§°å |
| | | Cell nameCell = row.getCell(1); |
| | | if (nameCell != null && nameCell.getCellType() != CellType.BLANK) { |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¬å¼åå
æ ¼å¼ |
| | | */ |
| | | private String getFormulaCellValue(Cell cell) { |
| | | try { |
| | | FormulaEvaluator evaluator = cell.getSheet().getWorkbook().getCreationHelper().createFormulaEvaluator(); |
| | | Workbook workbook = cell.getSheet().getWorkbook(); |
| | | FormulaEvaluator evaluator = workbook.getCreationHelper().createFormulaEvaluator(); |
| | | CellValue cellValue = evaluator.evaluate(cell); |
| | | |
| | | if (cellValue == null) return ""; |
| | | |
| | | if (cellValue == null) { |
| | | return ""; |
| | | } |
| | | switch (cellValue.getCellType()) { |
| | | case STRING: |
| | | return cellValue.getStringValue(); |
| | |
| | | return ""; |
| | | } |
| | | } catch (Exception e) { |
| | | log.warn("è§£æå
¬å¼åå
æ ¼å¤±è´¥"); |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | private int findDataEnd(Sheet sheet, int startRow) { |
| | | int consecutiveEmptyRows = 0; |
| | | final int MAX_EMPTY_ROWS = 2; |
| | | boolean foundData = false; |
| | | |
| | | for (int rowIdx = startRow; rowIdx <= sheet.getLastRowNum(); rowIdx++) { |
| | | Row row = sheet.getRow(rowIdx); |
| | | |
| | | // å
³é®ä¼å1ï¼å
æ£æ¥æ¯å¦ä¸ºç©ºè¡ |
| | | if (isEmptyRow(row)) { |
| | | consecutiveEmptyRows++; |
| | | if (consecutiveEmptyRows >= MAX_EMPTY_ROWS) { |
| | | return foundData ? rowIdx - consecutiveEmptyRows : startRow; |
| | | } |
| | | continue; |
| | | } else { |
| | | consecutiveEmptyRows = 0; |
| | | } |
| | | |
| | | // å
³é®ä¼å2ï¼ä¸¥æ ¼éå®ç»ææ è®°çè¯å«æ¡ä»¶ |
| | | if (isStrongEndMarker(row)) { |
| | | return foundData ? rowIdx - 1 : startRow; |
| | | } |
| | | |
| | | // å
³é®ä¼å3ï¼æ è®°å·²æ¾å°æææ°æ® |
| | | foundData = true; |
| | | } |
| | | return sheet.getLastRowNum(); |
| | | } |
| | | |
| | | // å¢å¼ºçç»ææ è®°è¯å« |
| | | private boolean isStrongEndMarker(Row row) { |
| | | String rowText = String.join("", getRowStringValues(row)).toLowerCase(); |
| | | |
| | | return |
| | | // 精确å¹é
ç¾åç¹å¾ï¼åºç°å¨è¡é¦ï¼ |
| | | (rowText.startsWith("ç»´æ¤è´£ä»»äººç¾å") || |
| | | rowText.startsWith("æ§è¡äººç¾å")) || |
| | | // 精确å¹é
æ°æ¿åæ é¢ |
| | | rowText.matches("^\\s*å¨ä¿å
»é¡¹ç®\\s*$") || |
| | | rowText.contains("年度ä¿å
»é¡¹ç®"); |
| | | } |
| | | |
| | | // ç©ºè¡æ£æµä¼åï¼å
许é¨ååä¸ºç©ºï¼ |
| | | private boolean isEmptyRow(Row row) { |
| | | if (row == null) return true; |
| | | // åªæ£æ¥å3åï¼åºå·å+项ç®å+è¦æ±ï¼ |
| | | for (int cellIdx = 0; cellIdx < Math.min(3, row.getLastCellNum()); cellIdx++) { |
| | | Cell cell = row.getCell(cellIdx); |
| | | if (cell != null && cell.getCellType() != CellType.BLANK) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | /*导å
¥ç¹æ£æä»¶Excel--------------------------ç»æ*/ |
| | | |
| | | /*导å
¥äºä¿ä¸ä¿æä»¶Excel--------------------------å¼å§*/ |
| | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.flowable.engine.TaskService; |
| | |
| | | import org.jeecg.modules.flowable.apithird.service.FlowCommonService; |
| | | import org.jeecg.modules.flowable.service.IFlowDefinitionService; |
| | | import org.jeecg.modules.flowable.service.IFlowTaskService; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | | import org.jeecg.modules.system.entity.BaseFactoryUser; |
| | | import org.jeecg.modules.system.service.IBaseFactoryService; |
| | | import org.jeecg.modules.system.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.system.service.ISysUserService; |
| | | import org.jeecg.modules.system.vo.UserSelector; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private TaskService taskService; |
| | | @Autowired |
| | | private IFlowTaskService flowTaskService; |
| | | |
| | | @Autowired |
| | | private IBaseFactoryUserService baseFactoryUserService; |
| | | @Autowired |
| | | private IBaseFactoryService baseFactoryService; |
| | | @Autowired |
| | | private ISysUserService sysUserService; |
| | | @Autowired |
| | |
| | | if (sysUser == null) { |
| | | return page; |
| | | } |
| | | if (StringUtils.isNotBlank(sysUser.getEquipmentIds())) { |
| | | if (StringUtils.isNotBlank(sysUser.getEamEquipmentIds())) { |
| | | //éæ©äºè®¾å¤ï¼æ ¹æ®è®¾å¤idè¿æ»¤è®¾å¤ |
| | | List<String> equipArr = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | List<String> equipArr = Arrays.asList(sysUser.getEamEquipmentIds().split(",")); |
| | | queryWrapper.in("e.equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®è½¦é´è¿æ»¤è®¾å¤ |
| | | queryWrapper.exists("select 1 from mdc_user_production t where t.user_id={0} and t.pro_id=e.org_id ", sysUser.getId()); |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®ä¸å¿è¿æ»¤è®¾å¤ |
| | | List<BaseFactoryUser> baseFactoryUserList=baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId,sysUser.getId())); |
| | | if(!CollectionUtils.isEmpty(baseFactoryUserList)){ |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | } else { |
| | | return page; |
| | | } |
| | | } |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | | if (query != null) { |
| | |
| | | //设置entity |
| | | entity.setMaintenanceStatus(SecondMaintenanceStatusEnum.WAIT_CONFIRM.name()); |
| | | entity.setActualEndTime(new Date()); |
| | | //å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | entity.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //å¤ç详æ
|
| | | if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | secondMaintenanceOrderDetailService.updateBatchById(request.getTableDetailList()); |
| | |
| | | request.setComment(request.getConfirmComment()); |
| | | //设置entity |
| | | entity.setMaintenanceStatus(SecondMaintenanceStatusEnum.WAIT_LEADER_CONFIRM.name()); |
| | | entity.setConfirmUser(user.getUsername()); |
| | | entity.setConfirmComment(request.getConfirmComment()); |
| | | entity.setConfirmTime(new Date()); |
| | | entity.setConfirmDealType(request.getConfirmDealType()); |
| | | if (CommonConstant.HAS_CANCLE.equals(request.getConfirmDealType())) { |
| | | //驳å |
| | | userApprovalList = new ArrayList<>(); |
| | |
| | | request.setComment(request.getLeaderConfirmComment()); |
| | | //设置entity |
| | | entity.setMaintenanceStatus(SecondMaintenanceStatusEnum.COMPLETE.name()); |
| | | entity.setConfirmLeader(user.getUsername()); |
| | | entity.setLeaderConfirmComment(request.getLeaderConfirmComment()); |
| | | entity.setLeaderConfirmTime(new Date()); |
| | | //æ´æ°è®¾å¤ä¿å
»ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.NORMAL.name()); |
| | | break; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceChange; |
| | | import org.jeecg.modules.eam.mapper.EamThirdMaintenanceChangeMapper; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceChangeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿åæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamThirdMaintenanceChangeServiceImpl extends ServiceImpl<EamThirdMaintenanceChangeMapper, EamThirdMaintenanceChange> implements IEamThirdMaintenanceChangeService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceFurnace; |
| | | import org.jeecg.modules.eam.mapper.EamThirdMaintenanceFurnaceMapper; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceFurnaceService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: ç空çå¤ççä¸ä¿ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamThirdMaintenanceFurnaceServiceImpl extends ServiceImpl<EamThirdMaintenanceFurnaceMapper, EamThirdMaintenanceFurnace> implements IEamThirdMaintenanceFurnaceService { |
| | | |
| | | } |
| | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | |
| | | import org.jeecg.modules.flowable.apithird.service.FlowCommonService; |
| | | import org.jeecg.modules.flowable.service.IFlowDefinitionService; |
| | | import org.jeecg.modules.flowable.service.IFlowTaskService; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | | import org.jeecg.modules.system.entity.BaseFactoryUser; |
| | | import org.jeecg.modules.system.service.IBaseFactoryService; |
| | | import org.jeecg.modules.system.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.system.service.ISysUserService; |
| | | import org.jeecg.modules.system.vo.UserSelector; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private IEamPrecisionCheckDetailService precisionCheckDetailService; |
| | | |
| | | @Resource |
| | | private IBaseFactoryUserService baseFactoryUserService; |
| | | @Resource |
| | | private IBaseFactoryService baseFactoryService; |
| | | |
| | | @Override |
| | | public IPage<EamThirdMaintenanceOrder> queryPageList(Page<EamThirdMaintenanceOrder> page, EamThirdMaintenanceQuery query) { |
| | | QueryWrapper<EamThirdMaintenanceOrder> queryWrapper = new QueryWrapper<>(); |
| | |
| | | List<String> equipArr = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | queryWrapper.in("e.equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®è½¦é´è¿æ»¤è®¾å¤ |
| | | queryWrapper.exists("select 1 from mdc_user_production t where t.user_id={0} and t.pro_id=e.org_id ", sysUser.getId()); |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®ä¸å¿è¿æ»¤è®¾å¤ |
| | | List<BaseFactoryUser> baseFactoryUserList = baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, sysUser.getId())); |
| | | if (!CollectionUtils.isEmpty(baseFactoryUserList)) { |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | }else { |
| | | return page; |
| | | } |
| | | } |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | | if (query != null) { |
| | |
| | | if (entity == null) { |
| | | throw new JeecgBootException("审æ¹çæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | // è·åå½åç»å½ç¨æ· |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | if (user == null || StrUtil.isBlank(user.getId())) { |
| | | throw new JeecgBootException("æªè·åå°ç»å½ç¨æ·ï¼è¯·éæ°ç»å½ååè¯ï¼"); |
| | | } |
| | | request.setAssignee(user.getUsername()); |
| | | // è·åæµç¨ä¸å¡è®°å½ |
| | | FlowMyBusiness flowMyBusiness = flowMyBusinessService.getFlowMyBusiness(request.getInstanceId(), request.getTaskId()); |
| | | if (flowMyBusiness == null) { |
| | | throw new JeecgBootException("æµç¨å®ä¾ä¸åå¨ï¼è¯·å·æ°åéè¯ï¼"); |
| | | } |
| | | |
| | | boolean userAuthorized = isUserAuthorized(flowMyBusiness, user); |
| | | if (!userAuthorized) { |
| | | throw new JeecgBootException("ç¨æ·æ ææä½æ¤ä»»å¡ï¼è¯·å·æ°åéè¯ï¼"); |
| | | } |
| | | // 认é¢ä»»å¡ |
| | | if (!claimTask(flowMyBusiness.getTaskId(), user)) { |
| | | throw new JeecgBootException("ä»»å¡ä¸åå¨ã已宿æå·²è¢«ä»äººè®¤é¢ï¼"); |
| | | } |
| | | |
| | | EamEquipment equipment = eamEquipmentService.getById(entity.getEquipmentId()); |
| | | if (equipment == null) { |
| | | throw new JeecgBootException("设å¤ä¸åå¨ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | |
| | | ThirdMaintenanceStatusEnum status = ThirdMaintenanceStatusEnum.getInstance(entity.getMaintenanceStatus()); |
| | | if (status == null) { |
| | | return null; |
| | | } |
| | | //æµç¨åé |
| | | Map<String, Object> values = new HashMap<>(); |
| | | List<String> userApprovalList; |
| | | List<UserSelector> userSelectors; |
| | | switch (status) { |
| | | case UNDER_MAINTENANCE: |
| | | boolean parallelCompletion = flowTaskService.checkParallelCompletion(flowMyBusiness.getTaskId()); |
| | | //æ§è¡å®æ |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), null, BusinessCodeConst.PCR0006); |
| | | if (CollectionUtil.isEmpty(userSelectors)) { |
| | | throw new JeecgBootException("è®¾å¤æªåé
ç»è½¦é´çç»é¿ï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | } |
| | | userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | values.put("dataId", entity.getId()); |
| | | values.put("organization", "ä¸ä¿æ§è¡ç»æ"); |
| | | values.put("comment", "ä¸ä¿æ§è¡ç»æ"); |
| | | if (parallelCompletion) { |
| | | values.put("NextAssignee", userApprovalList); |
| | | } |
| | | request.setComment("ä¸ä¿æ§è¡ç»æ"); |
| | | //设置entity |
| | | if (parallelCompletion) { |
| | | entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_CONFIRM.name()); |
| | | entity.setActualEndTime(new Date()); |
| | | } |
| | | if ("maintenance_execution".equals(flowMyBusiness.getTaskNameId())) { |
| | | //æ§è¡ä¿å
» |
| | | //å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | entity.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //å¤ç详æ
|
| | | if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | thirdMaintenanceOrderDetailService.updateBatchById(request.getTableDetailList()); |
| | | } |
| | | } else if ("precision_check".equals(flowMyBusiness.getTaskNameId())) { |
| | | entity.setPrecisionChecker(user.getUsername()); |
| | | entity.setPrecisionCheckTime(new Date()); |
| | | //å¤ç精度æ£éª |
| | | if (CollectionUtil.isNotEmpty(request.getPrecisionDetailList())) { |
| | | precisionCheckDetailService.updateBatchById(request.getPrecisionDetailList()); |
| | | } |
| | | } |
| | | if (parallelCompletion) { |
| | | //æ´æ°è®¾å¤ä¿å
»ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.THIRD_MAINTENANCE_WAIT_CONFIRM.name()); |
| | | } |
| | | break; |
| | | case WAIT_CONFIRM: |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(),null, BusinessCodeConst.PCR0003); |
| | | if (CollectionUtil.isEmpty(userSelectors)) { |
| | | throw new JeecgBootException("è®¾å¤æªåé
ç»è½¦é´çç»é¿ï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | } |
| | | //çç»é¿ç¡®è®¤ |
| | | userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | values.put("dataId", entity.getId()); |
| | | values.put("organization", request.getConfirmComment()); |
| | | values.put("comment", request.getConfirmComment()); |
| | | values.put("NextAssignee", userApprovalList); |
| | | values.put("confirmation", request.getConfirmDealType()); |
| | | request.setComment(request.getConfirmComment()); |
| | | //设置entity |
| | | entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_LEADER_CONFIRM.name()); |
| | | entity.setConfirmUser(user.getUsername()); |
| | | entity.setConfirmComment(request.getConfirmComment()); |
| | | entity.setConfirmTime(new Date()); |
| | | //å¤çæ¥ä¿® |
| | | List<EamThirdMaintenanceOrderDetail> collect = request.getTableDetailList().stream().filter((detail) -> CommonConstant.DEFAULT_1.equals(detail.getReportFlag())).collect(Collectors.toList()); |
| | | if (CollectionUtil.isNotEmpty(collect)) { |
| | | eamReportRepairService.reportRepairFromThirdMaintenance(equipment.getId(), entity.getOperator(), collect); |
| | | } |
| | | break; |
| | | case WAIT_LEADER_CONFIRM: |
| | | values.put("dataId", entity.getId()); |
| | | values.put("organization", request.getLeaderConfirmComment()); |
| | | values.put("comment", request.getLeaderConfirmComment()); |
| | | request.setComment(request.getLeaderConfirmComment()); |
| | | //设置entity |
| | | entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.COMPLETE.name()); |
| | | entity.setConfirmLeader(user.getUsername()); |
| | | entity.setLeaderConfirmComment(request.getLeaderConfirmComment()); |
| | | entity.setLeaderConfirmTime(new Date()); |
| | | //æ´æ°è®¾å¤ä¿å
»ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.NORMAL.name()); |
| | | break; |
| | | } |
| | | request.setValues(values); |
| | | |
| | | // 宿æµç¨ä»»å¡ |
| | | Result result = flowTaskService.complete(request); |
| | | if (!result.isSuccess()) { |
| | | throw new JeecgBootException("审æ¹å¤±è´¥ï¼è¯·å·æ°æ¥çï¼"); |
| | | } |
| | | //ä¿åå·¥å |
| | | eamThirdMaintenanceOrderMapper.updateById(entity); |
| | | // // è·åå½åç»å½ç¨æ· |
| | | // LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | // if (user == null || StrUtil.isBlank(user.getId())) { |
| | | // throw new JeecgBootException("æªè·åå°ç»å½ç¨æ·ï¼è¯·éæ°ç»å½ååè¯ï¼"); |
| | | // } |
| | | // request.setAssignee(user.getUsername()); |
| | | // // è·åæµç¨ä¸å¡è®°å½ |
| | | // FlowMyBusiness flowMyBusiness = flowMyBusinessService.getFlowMyBusiness(request.getInstanceId(), request.getTaskId()); |
| | | // if (flowMyBusiness == null) { |
| | | // throw new JeecgBootException("æµç¨å®ä¾ä¸åå¨ï¼è¯·å·æ°åéè¯ï¼"); |
| | | // } |
| | | // |
| | | // boolean userAuthorized = isUserAuthorized(flowMyBusiness, user); |
| | | // if (!userAuthorized) { |
| | | // throw new JeecgBootException("ç¨æ·æ ææä½æ¤ä»»å¡ï¼è¯·å·æ°åéè¯ï¼"); |
| | | // } |
| | | // // 认é¢ä»»å¡ |
| | | // if (!claimTask(flowMyBusiness.getTaskId(), user)) { |
| | | // throw new JeecgBootException("ä»»å¡ä¸åå¨ã已宿æå·²è¢«ä»äººè®¤é¢ï¼"); |
| | | // } |
| | | // |
| | | // EamEquipment equipment = eamEquipmentService.getById(entity.getEquipmentId()); |
| | | // if (equipment == null) { |
| | | // throw new JeecgBootException("设å¤ä¸åå¨ï¼è¯·æ£æ¥ï¼"); |
| | | // } |
| | | // |
| | | // ThirdMaintenanceStatusEnum status = ThirdMaintenanceStatusEnum.getInstance(entity.getMaintenanceStatus()); |
| | | // if (status == null) { |
| | | // return null; |
| | | // } |
| | | // //æµç¨åé |
| | | // Map<String, Object> values = new HashMap<>(); |
| | | // List<String> userApprovalList; |
| | | // List<UserSelector> userSelectors; |
| | | // switch (status) { |
| | | // case UNDER_MAINTENANCE: |
| | | // boolean parallelCompletion = flowTaskService.checkParallelCompletion(flowMyBusiness.getTaskId()); |
| | | // //æ§è¡å®æ |
| | | // userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), null, BusinessCodeConst.PCR0006); |
| | | // if (CollectionUtil.isEmpty(userSelectors)) { |
| | | // throw new JeecgBootException("è®¾å¤æªåé
ç»è½¦é´çç»é¿ï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | // } |
| | | // userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | // values.put("dataId", entity.getId()); |
| | | // values.put("organization", "ä¸ä¿æ§è¡ç»æ"); |
| | | // values.put("comment", "ä¸ä¿æ§è¡ç»æ"); |
| | | // if (parallelCompletion) { |
| | | // values.put("NextAssignee", userApprovalList); |
| | | // } |
| | | // request.setComment("ä¸ä¿æ§è¡ç»æ"); |
| | | // //设置entity |
| | | // if (parallelCompletion) { |
| | | // entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_CONFIRM.name()); |
| | | // entity.setActualEndTime(new Date()); |
| | | // } |
| | | // if ("maintenance_execution".equals(flowMyBusiness.getTaskNameId())) { |
| | | // //æ§è¡ä¿å
» |
| | | // //å¤çéä»¶ |
| | | // if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | // List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | // ObjectMapper mapper = new ObjectMapper(); |
| | | // try { |
| | | // String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | // entity.setImageFiles(referenceFile); |
| | | // } catch (JsonProcessingException e) { |
| | | // log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | // } |
| | | // } |
| | | // //å¤ç详æ
|
| | | // if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | // thirdMaintenanceOrderDetailService.updateBatchById(request.getTableDetailList()); |
| | | // } |
| | | // } else if ("precision_check".equals(flowMyBusiness.getTaskNameId())) { |
| | | // entity.setPrecisionChecker(user.getUsername()); |
| | | // entity.setPrecisionCheckTime(new Date()); |
| | | // //å¤ç精度æ£éª |
| | | // if (CollectionUtil.isNotEmpty(request.getPrecisionDetailList())) { |
| | | // precisionCheckDetailService.updateBatchById(request.getPrecisionDetailList()); |
| | | // } |
| | | // } |
| | | // if (parallelCompletion) { |
| | | // //æ´æ°è®¾å¤ä¿å
»ç¶æ |
| | | // eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.THIRD_MAINTENANCE_WAIT_CONFIRM.name()); |
| | | // } |
| | | // break; |
| | | // case WAIT_CONFIRM: |
| | | // userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(),null, BusinessCodeConst.PCR0003); |
| | | // if (CollectionUtil.isEmpty(userSelectors)) { |
| | | // throw new JeecgBootException("è®¾å¤æªåé
ç»è½¦é´çç»é¿ï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | // } |
| | | // //çç»é¿ç¡®è®¤ |
| | | // userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | // values.put("dataId", entity.getId()); |
| | | // values.put("organization", request.getConfirmComment()); |
| | | // values.put("comment", request.getConfirmComment()); |
| | | // values.put("NextAssignee", userApprovalList); |
| | | // values.put("confirmation", request.getConfirmDealType()); |
| | | // request.setComment(request.getConfirmComment()); |
| | | // //设置entity |
| | | // entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_LEADER_CONFIRM.name()); |
| | | // entity.setConfirmUser(user.getUsername()); |
| | | // entity.setConfirmComment(request.getConfirmComment()); |
| | | // entity.setConfirmTime(new Date()); |
| | | // //å¤çæ¥ä¿® |
| | | // List<EamThirdMaintenanceOrderDetail> collect = request.getTableDetailList().stream().filter((detail) -> CommonConstant.DEFAULT_1.equals(detail.getReportFlag())).collect(Collectors.toList()); |
| | | // if (CollectionUtil.isNotEmpty(collect)) { |
| | | // eamReportRepairService.reportRepairFromThirdMaintenance(equipment.getId(), entity.getOperator(), collect); |
| | | // } |
| | | // break; |
| | | // case WAIT_LEADER_CONFIRM: |
| | | // values.put("dataId", entity.getId()); |
| | | // values.put("organization", request.getLeaderConfirmComment()); |
| | | // values.put("comment", request.getLeaderConfirmComment()); |
| | | // request.setComment(request.getLeaderConfirmComment()); |
| | | // //设置entity |
| | | // entity.setMaintenanceStatus(ThirdMaintenanceStatusEnum.COMPLETE.name()); |
| | | // entity.setConfirmLeader(user.getUsername()); |
| | | // entity.setLeaderConfirmComment(request.getLeaderConfirmComment()); |
| | | // entity.setLeaderConfirmTime(new Date()); |
| | | // //æ´æ°è®¾å¤ä¿å
»ç¶æ |
| | | // eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.NORMAL.name()); |
| | | // break; |
| | | // } |
| | | // request.setValues(values); |
| | | // |
| | | // // 宿æµç¨ä»»å¡ |
| | | // Result result = flowTaskService.complete(request); |
| | | // if (!result.isSuccess()) { |
| | | // throw new JeecgBootException("审æ¹å¤±è´¥ï¼è¯·å·æ°æ¥çï¼"); |
| | | // } |
| | | // //ä¿åå·¥å |
| | | // eamThirdMaintenanceOrderMapper.updateById(entity); |
| | | return entity; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.eam.entity.EamThirdMaintenanceSpare; |
| | | import org.jeecg.modules.eam.mapper.EamThirdMaintenanceSpareMapper; |
| | | import org.jeecg.modules.eam.service.IEamThirdMaintenanceSpareService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: ä¸ä¿å¤ä»¶æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-11 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamThirdMaintenanceSpareServiceImpl extends ServiceImpl<EamThirdMaintenanceSpareMapper, EamThirdMaintenanceSpare> implements IEamThirdMaintenanceSpareService { |
| | | |
| | | } |
ÎļþÃû´Ó lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/util/WorkShopOrgCodeProRule.java ÐÞ¸Ä |
| | |
| | | package org.jeecg.modules.system.util; |
| | | package org.jeecg.modules.system.rule; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | String[] levels = path.split("/"); |
| | | int depth = levels.length; |
| | | |
| | | // æ¯æå¤ç§æ ¼å¼ï¼ä¸å¿/å·¥åºãä¸å¿/工段ãä¸å¿/å·¥åº/工段 |
| | | // æ¯ææ ¼å¼ï¼ä¸å¿/å·¥åºãä¸å¿/工段ãä¸å¿/å·¥åº/工段 |
| | | if (depth < 2 || depth > 3) { |
| | | return null; |
| | | } |
| | | |
| | | // ä»åºå±å¼å§æ¥è¯¢ï¼æåä¸çº§å¯è½æ¯å·¥åºæå·¥æ®µ |
| | | String lastName = levels[depth - 1]; |
| | | BaseFactory lastLevel = searchForLastLevel(lastName); |
| | | if (lastLevel == null) return null; |
| | | // ä»é¡¶å±å¼å§æ¥è¯¢ - 第1级ï¼ä¸å¿èç¹ |
| | | BaseFactory center = findFactory(levels[0], 1, null); |
| | | if (center == null) return null; |
| | | |
| | | return validatePath(levels, lastLevel); |
| | | } |
| | | |
| | | private BaseFactory validatePath(String[] levels, BaseFactory lastLevel) { |
| | | if (levels.length == 2) { |
| | | // ä¸å¿/å·¥åº æ ä¸å¿/工段 |
| | | BaseFactory center = findParentCenter(lastLevel); |
| | | if (center != null && |
| | | center.getFactoryName().equals(levels[0]) && |
| | | ("1").equals(center.getFactoryCategory())) { |
| | | return lastLevel; |
| | | // 第2级æ¥è¯¢ï¼å·¥åºæå·¥æ®µ |
| | | BaseFactory secondLevel; |
| | | if (depth == 2) { |
| | | // å
¼å®¹æ¹æ¡ï¼ä¼å
æ¥å·¥æ®µåæ¥å·¥åº |
| | | secondLevel = findFactory(levels[1], 3, center.getId()); |
| | | if (secondLevel == null) { |
| | | secondLevel = findFactory(levels[1], 2, center.getId()); |
| | | } |
| | | return secondLevel; // å¯è½ä¸ºnull |
| | | } else { |
| | | // ä¸å¿/å·¥åº/工段 |
| | | if (!("3").equals(lastLevel.getFactoryCategory())) return null; |
| | | // 第2级å¿
é¡»æ¯å·¥åº |
| | | BaseFactory workArea = findFactory(levels[1], 2, center.getId()); |
| | | if (workArea == null) return null; |
| | | |
| | | BaseFactory workArea = getById(lastLevel.getParentId()); |
| | | if (workArea == null || |
| | | !("2").equals(workArea.getFactoryCategory())) return null; |
| | | |
| | | BaseFactory center = getById(workArea.getParentId()); |
| | | if (center == null || |
| | | !("1").equals(center.getFactoryCategory())) return null; |
| | | |
| | | if (workArea.getFactoryName().equals(levels[1]) && |
| | | center.getFactoryName().equals(levels[0])) { |
| | | return lastLevel; |
| | | } |
| | | // 第3级ï¼å·¥æ®µ |
| | | return findFactory(levels[2], 3, workArea.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private BaseFactory searchForLastLevel(String name) { |
| | | // å
å°è¯æ¥è¯¢å·¥æ®µï¼ç±»å«3ï¼ |
| | | BaseFactory workshop = findFactory(name, 3, null); |
| | | if (workshop != null) return workshop; |
| | | |
| | | // å¦ææ²¡ææ¾å°å·¥æ®µï¼å°è¯æ¥è¯¢å·¥åºï¼ç±»å«2ï¼ |
| | | return findFactory(name, 2, null); |
| | | } |
| | | |
| | | private BaseFactory findParentCenter(BaseFactory entity) { |
| | | if (("1").equals(entity.getFactoryCategory())) { |
| | | return entity; // æ¬èº«å°±æ¯ä¸å¿ |
| | | } |
| | | |
| | | BaseFactory parent = getById(entity.getParentId()); |
| | | if (parent == null) return null; |
| | | |
| | | if (("1").equals(parent.getFactoryCategory())) { |
| | | return parent; // ç´æ¥ç¶çº§æ¯ä¸å¿ |
| | | } |
| | | |
| | | // 妿ç¶çº§ä¸æ¯ä¸å¿ï¼å°è¯æ¾ç¶çº§çç¶çº§ |
| | | return getById(parent.getParentId()); |
| | | } |
| | | |
| | | // ä¿æä¸å |
| | | private BaseFactory searchByCodeOrName(String keyword) { |
| | | // 使ç¨å页æ¹å¼å
¼å®¹SQL Server |
| | | LambdaQueryWrapper<BaseFactory> query = new LambdaQueryWrapper<>(); |
| | | query.and(q -> q.eq(BaseFactory::getFactoryName, keyword) |
| | | .or() |
| | | .like(BaseFactory::getFactoryCode, keyword)); |
| | | |
| | | // 使ç¨å页æ¥è¯¢è·åç¬¬ä¸æ¡è®°å½ |
| | | Page<BaseFactory> page = new Page<>(1, 1); |
| | | Page<BaseFactory> resultPage = baseMapper.selectPage(page, query); |
| | | |
| | | return resultPage.getRecords().isEmpty() ? null : resultPage.getRecords().get(0); |
| | | } |
| | | |
| | | // ä¿æä¸å |
| | | private BaseFactory findFactory(String name, Integer category, String parentId) { |
| | | LambdaQueryWrapper<BaseFactory> query = new LambdaQueryWrapper<>(); |
| | | query.eq(BaseFactory::getFactoryName, name); |
| | |
| | | if (category != null) query.eq(BaseFactory::getFactoryCategory, category); |
| | | if (parentId != null) query.eq(BaseFactory::getParentId, parentId); |
| | | |
| | | // 使ç¨å页æ¹å¼å
¼å®¹SQL Server |
| | | Page<BaseFactory> page = new Page<>(1, 1); |
| | | Page<BaseFactory> resultPage = baseMapper.selectPage(page, query); |
| | | |
| | | return resultPage.getRecords().isEmpty() ? null : resultPage.getRecords().get(0); |
| | | } |
| | | |
| | | private BaseFactory getById(String id) { |
| | | if (StringUtils.isBlank(id)) return null; |
| | | return baseMapper.selectById(id); |
| | | } |
| | | |
| | | /** |
| | | * saveProductionData å¯¹åº add ä¿åç¨æ·å¨é¡µé¢æ·»å çæ°ç设å¤è½¦é´ç®¡çå¯¹è±¡æ°æ® |
| | |
| | | if (CollectionUtil.isNotEmpty(factoryIds)) { |
| | | String factory = String.join(",", factoryIds); |
| | | String inClause = "(" + factory + ")"; |
| | | queryWrapper.exists("select 1 from eam_base_factory_user t where t.user_id=sys_user.id and t.factory_id in {0}", inClause); |
| | | queryWrapper.exists("select 1 from eam_base_factory_user t where t.user_id=sys_user.id and t.factory_id in "+inClause); |
| | | } else { |
| | | return Collections.emptyList(); |
| | | } |