| | |
| | | "avatar": "", |
| | | "version": "4.9.2", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-7-5 16:08:16", |
| | | "updatedTime": "2025-7-7 21:00:24", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | "#DDE5FF" |
| | | ], |
| | | "DDLToggleCase": "L", |
| | | "menuWidth": "472px" |
| | | "menuWidth": "371px" |
| | | }, |
| | | "entities": [ |
| | | { |
| | |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "854769A0-58E7-4492-A427-683CE6235B78" |
| | | }, |
| | | { |
| | | "defKey": "change_order_num", |
| | | "defName": "åæ´åå·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "id": "494EB2D9-8444-44B8-A489-3992EA4FD8B7" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | |
| | | "id": "2C88A464-AC97-4512-94EE-CCD08ED27A64" |
| | | }, |
| | | { |
| | | "defKey": "standard_version", |
| | | "defName": "çæ¬", |
| | | "comment": "V1,V2+", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "1ACB9237-2E42-44F0-AC09-BBB51D55A83D" |
| | | }, |
| | | { |
| | | "defKey": "remark", |
| | | "defName": "夿³¨", |
| | | "comment": "", |
| | |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_evaluation_change", |
| | | "defKey": "eam_technical_status_evaluation_order_change", |
| | | "defName": "ææ¯ç¶æé´å®å·¥ååæ´", |
| | | "comment": "", |
| | | "properties": { |
| | |
| | | "uiHint": null |
| | | }, |
| | | { |
| | | "defKey": "change_order_num", |
| | | "defName": "åæ´åå·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "id": "BA992FDC-2DDA-4435-95B3-2211C2E5D9DD" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | | "defName": "ç³è¯·äºº", |
| | | "comment": "", |
| | |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "4478B303-EEFF-4F42-A389-0AC012E4DBAD", |
| | | "uiHint": null |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "E5BC8ED5-0FE8-41DB-9A72-AB5414891467", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_change", |
| | | "defName": "ææ¯ç¶æåæ´ç³è¯·", |
| | | "comment": "", |
| | | "properties": { |
| | | "partitioned by": "(date string)", |
| | | "row format delimited": "", |
| | | "fields terminated by ','": "", |
| | | "collection items terminated by '-'": "", |
| | | "map keys terminated by ':'": "", |
| | | "store as textfile;": "" |
| | | }, |
| | | "sysProps": { |
| | | "nameTemplate": "{defKey}[{defName}]" |
| | | }, |
| | | "notes": {}, |
| | | "headers": [ |
| | | { |
| | | "refKey": "hideInGraph", |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "defName", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "primaryKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "notNull", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "autoIncrement", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "domain", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "type", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "len", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "scale", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "refDict", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defaultValue", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "isStandard", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "uiHint", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "extProps", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr1", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr2", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr3", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr4", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr5", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr6", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr7", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr8", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr9", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | } |
| | | ], |
| | | "fields": [ |
| | | { |
| | | "defKey": "id", |
| | | "defName": "主é®", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": true, |
| | | "notNull": true, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "C56499D2-37C3-413D-8E4F-17E56085A1EA" |
| | | }, |
| | | { |
| | | "defKey": "create_by", |
| | | "defName": "å建人", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "9703A9FB-FB51-4240-AF3F-0BFE2AE1A284", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "create_time", |
| | | "defName": "å建æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "67CA28C1-27EA-4F24-90AC-75C57C90E82F", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "update_by", |
| | | "defName": "æ´æ°äºº", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "AF1AF632-244D-4737-8164-DB1E6880C5EB", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "update_time", |
| | | "defName": "æ´æ°æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "491A3F21-C6EE-4CA0-ACE5-1C90B57EB487", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "del_flag", |
| | | "defName": "å 餿 è®°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
| | | "extProps": {}, |
| | | "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
| | | "id": "94E9B19F-4609-40EA-94EC-12DD61E442EF" |
| | | }, |
| | | { |
| | | "defKey": "change_order_num", |
| | | "defName": "åæ´åå·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "id": "717D4057-4F2C-49DC-9FD8-E9C81700FF66" |
| | | }, |
| | | { |
| | | "defKey": "change_status", |
| | | "defName": "åæ´åç¶æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "93F32EBA-AAA0-447E-8245-C00E57E6A2D6" |
| | | }, |
| | | { |
| | | "defKey": "designer", |
| | | "defName": "ç¼å¶äºº", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "282042BC-0C41-4778-985F-0057791BBB1B" |
| | | }, |
| | | { |
| | | "defKey": "designer_time", |
| | | "defName": "ç¼å¶æ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "4256A20B-194E-4656-AFC0-C87A1F282D4C" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "988E3E7D-0A25-4FDF-A126-01685BCD3BD3" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature_time", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "E0CF80C5-1DEC-497D-A921-11F8D28FDDDD" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature_comment", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "480E845A-6BD4-48DF-AF39-2B7BD1372B44" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "80AECA33-66B4-4E52-A55E-255128B092D3" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature_time", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "C77D4C1E-8FB6-4AA4-984F-98B64E7FFE5E" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature_comment", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "9FB2FB56-7A3D-4B68-B84E-DFE6B41611C8" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "306F9BF6-990A-44D0-9585-CC5E40E639F0", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_change_detail", |
| | | "defName": "ææ¯ç¶æåæ´ç³è¯·æç»", |
| | | "comment": "", |
| | | "properties": { |
| | | "partitioned by": "(date string)", |
| | | "row format delimited": "", |
| | | "fields terminated by ','": "", |
| | | "collection items terminated by '-'": "", |
| | | "map keys terminated by ':'": "", |
| | | "store as textfile;": "" |
| | | }, |
| | | "sysProps": { |
| | | "nameTemplate": "{defKey}[{defName}]" |
| | | }, |
| | | "notes": {}, |
| | | "headers": [ |
| | | { |
| | | "refKey": "hideInGraph", |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "defName", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "primaryKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "notNull", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "autoIncrement", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "domain", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "type", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "len", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "scale", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "refDict", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defaultValue", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "isStandard", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "uiHint", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "extProps", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr1", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr2", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr3", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr4", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr5", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr6", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr7", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr8", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr9", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | } |
| | | ], |
| | | "fields": [ |
| | | { |
| | | "defKey": "id", |
| | | "defName": "主é®", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": true, |
| | | "notNull": true, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "DC9BB1FC-D5FF-4367-B77B-32C711A04483" |
| | | }, |
| | | { |
| | | "defKey": "create_by", |
| | | "defName": "å建人", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "A6D79216-32F3-4012-9BC4-5623379DDEC2", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "create_time", |
| | | "defName": "å建æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "7F466F98-692B-43CD-BAAC-2C4226A18F97", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "update_by", |
| | | "defName": "æ´æ°äºº", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "B71AB7A6-0FFE-4E62-9DD2-73712112F073", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "update_time", |
| | | "defName": "æ´æ°æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "AA935277-83FE-4AC6-A827-E10EFD3C8024", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "equipment_id", |
| | | "defName": "设å¤ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "952CD30C-1978-4035-9162-B8E489BA58CC" |
| | | }, |
| | | { |
| | | "defKey": "change_category", |
| | | "defName": "åæ´åå ", |
| | | "comment": "æ¬è¿ãå¤§ä¿®ãæ¹é ãå
¶ä»", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "5F9BF524-B568-4604-AD37-3EC6147F224E" |
| | | }, |
| | | { |
| | | "defKey": "change_date", |
| | | "defName": "åæ´æ¥æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "B52C9982-8BCA-4789-BE42-B1B279563503" |
| | | }, |
| | | { |
| | | "defKey": "change_technical_status", |
| | | "defName": "åæ´åææ¯ç¶æ", |
| | | "comment": "åæ´éè¿åé»è®¤è®¾å¤ææ¯ç¶ææ¹ä¸ºç¦ç¨", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "09A5EAF8-377F-47C2-98CF-9B7DEC5C23D1" |
| | | }, |
| | | { |
| | | "defKey": "acceptance_checker", |
| | | "defName": "éªæ¶æ£æ¥äºº", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "814CE3EC-0C25-4CC2-982D-DF04CBA755E0" |
| | | }, |
| | | { |
| | | "defKey": "acceptance_check_time", |
| | | "defName": "éªæ¶æ£æ¥æ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "247046A9-4B28-4B3F-9E32-E2650BCF0001" |
| | | }, |
| | | { |
| | | "defKey": "acceptance_check_result", |
| | | "defName": "éªæ¶æ£æ¥ç»æ", |
| | | "comment": "å¤§ä¿®ãæ¹é éè¦å¡«åéªæ¶ç»æï¼æ¬è¿æç
§ææ¯ç¶æé´å®å·¥åç»´æ¤ï¼å
¶ä»ææªä½¿ç¨å°ï¼åªé¢çæ¤ç±»å", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "589C45F0-0F8C-4497-8999-A8314DE5D601" |
| | | }, |
| | | { |
| | | "defKey": "order_id", |
| | | "defName": "ææ¯ç¶æé´å®å·¥åID", |
| | | "comment": "æ¬è¿ä½¿ç¨", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "153169DD-C196-48EC-B0B4-60626C830D64" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "6102925D-12F5-42D2-A721-5BBAE73F9087", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_evaluation_application", |
| | | "defName": "å å·¥è®¾å¤ææ¯é´å®ç³è¯·", |
| | | "comment": "ç¦ç¨ç¶æçè®¾å¤æä¸´æ¶è¿è¡ææ¯é´å®æ¶ä½¿ç¨", |
| | | "properties": { |
| | | "partitioned by": "(date string)", |
| | | "row format delimited": "", |
| | | "fields terminated by ','": "", |
| | | "collection items terminated by '-'": "", |
| | | "map keys terminated by ':'": "", |
| | | "store as textfile;": "" |
| | | }, |
| | | "sysProps": { |
| | | "nameTemplate": "{defKey}[{defName}]" |
| | | }, |
| | | "notes": {}, |
| | | "headers": [ |
| | | { |
| | | "refKey": "hideInGraph", |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "defName", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "primaryKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "notNull", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "autoIncrement", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "domain", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "type", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "len", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "scale", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "refDict", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defaultValue", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "isStandard", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "uiHint", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "extProps", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr1", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr2", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr3", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr4", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr5", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr6", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr7", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr8", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr9", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | } |
| | | ], |
| | | "fields": [ |
| | | { |
| | | "defKey": "id", |
| | | "defName": "主é®", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": true, |
| | | "notNull": true, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "99FD714F-59B6-4F89-85E4-822D4CF23A9A" |
| | | }, |
| | | { |
| | | "defKey": "create_by", |
| | | "defName": "å建人", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "2E8ADC73-5A90-463A-B31E-CDF2501F72B5", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "create_time", |
| | | "defName": "å建æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "F0794F92-0F46-41F4-A363-B9DD42E41420", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "update_by", |
| | | "defName": "æ´æ°äºº", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "48108B34-F5D8-4441-9B2D-8A2FAEEC55FD", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "update_time", |
| | | "defName": "æ´æ°æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "7C8C3F81-A701-46BD-A482-EA2CA9B9C6B8", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "del_flag", |
| | | "defName": "å 餿 è®°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
| | | "extProps": {}, |
| | | "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
| | | "id": "8F48FD63-57D5-46B4-8C22-DB75D8321E15" |
| | | }, |
| | | { |
| | | "defKey": "application_order_num", |
| | | "defName": "ç³è¯·åå·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "id": "054483BD-F2AA-4DD4-9A80-704EE7CDB735" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | | "defName": "ç³è¯·äºº", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "1AC06A69-38F6-41F5-A785-E98ABB9D0685", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "factory_org_code", |
| | | "defName": "ç³è¯·é¨é¨", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "7F94F461-B9D1-47B4-A106-EF89D09E6179", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "apply_date", |
| | | "defName": "ç³è¯·æ¥æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "B59FFE5B-DCF7-4AB2-9B43-40F83A5F7730", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "application_status", |
| | | "defName": "ç³è¯·åç¶æ", |
| | | "comment": "å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "D373EC7A-D494-4C85-8BCA-3088A7B77E0F", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature", |
| | | "defName": "ç³è¯·åä½å®¤çº§é¢å¯¼ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "2E4BDFC0-31BE-48A8-A426-51D2A03FBA30" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature_time", |
| | | "defName": "ç³è¯·åä½å®¤çº§é¢å¯¼ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "69D24654-9C0B-41E5-BACA-8205ADC593B5" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_comment", |
| | | "defName": "ç³è¯·åä½å®¤çº§é¢å¯¼æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "AC560696-58C2-4EA1-BE12-739DE6A3356D" |
| | | }, |
| | | { |
| | | "defKey": "production_header_signature", |
| | | "defName": "ç产设å¤ç®¡ç主管ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "2B1C6619-3072-46A9-BA1A-0016F657A2D7" |
| | | }, |
| | | { |
| | | "defKey": "production_header_signature_time", |
| | | "defName": "ç产设å¤ç®¡ç主管ç¾ååä»¶", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "211441D2-7629-4881-8140-77EBB38A346E" |
| | | }, |
| | | { |
| | | "defKey": "production_header_comment", |
| | | "defName": "ç产设å¤ç®¡ç主管æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "A4D30C12-831A-4BA5-95DB-9BE4E2C10157" |
| | | }, |
| | | { |
| | | "defKey": "production_support_signature", |
| | | "defName": "ç产ä¿éé¨é¢å¯¼ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "4DC62EE3-BE55-4B2D-92F6-391AC8DBC90B" |
| | | }, |
| | | { |
| | | "defKey": "production_support_signature_time", |
| | | "defName": "ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "235E86E2-B79D-456A-AFA0-0402225859F7" |
| | | }, |
| | | { |
| | | "defKey": "production_support_comment", |
| | | "defName": "ç产ä¿éé¨é¢å¯¼æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "0A1D4698-D332-4747-A96E-EF03DFAD0305" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "6221E3E7-A119-4AE7-872F-1159192BD6AC", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_deactivate", |
| | | "defName": "åç¨å 工设å¤ç³è¯·å", |
| | | "comment": "ç³è¯·åä½ç³è¯·åç¨è®¾å¤ï¼å®¡æ¹éè¿åä¿®æ¹è®¾å¤ç¶æä¸ºç¦ç¨", |
| | | "properties": { |
| | | "partitioned by": "(date string)", |
| | | "row format delimited": "", |
| | | "fields terminated by ','": "", |
| | | "collection items terminated by '-'": "", |
| | | "map keys terminated by ':'": "", |
| | | "store as textfile;": "" |
| | | }, |
| | | "sysProps": { |
| | | "nameTemplate": "{defKey}[{defName}]" |
| | | }, |
| | | "notes": {}, |
| | | "headers": [ |
| | | { |
| | | "refKey": "hideInGraph", |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "defName", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "primaryKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "notNull", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "autoIncrement", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "domain", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "type", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "len", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "scale", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "refDict", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defaultValue", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "isStandard", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "uiHint", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "extProps", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr1", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr2", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr3", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr4", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr5", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr6", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr7", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr8", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr9", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | } |
| | | ], |
| | | "fields": [ |
| | | { |
| | | "defKey": "id", |
| | | "defName": "主é®", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": true, |
| | | "notNull": true, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "F2C88E1C-5120-4886-9E45-CC7B31693BB2" |
| | | }, |
| | | { |
| | | "defKey": "create_by", |
| | | "defName": "å建人", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "DDDD512B-CCC9-4DE5-B70F-2505EAAE7C62", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "create_time", |
| | | "defName": "å建æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "8A3AC3BB-E3CF-4F12-BA3B-77B94C00951B", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "update_by", |
| | | "defName": "æ´æ°äºº", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "40C56475-B18E-4C1E-86B9-4401673BE3D4", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "update_time", |
| | | "defName": "æ´æ°æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "C05A244F-9FEF-4FBC-B7EE-94070551CCFA", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "del_flag", |
| | | "defName": "å 餿 è®°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
| | | "extProps": {}, |
| | | "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
| | | "id": "D68420BF-7F43-4D7F-ABDC-8420A7BEE9D6" |
| | | }, |
| | | { |
| | | "defKey": "deactivate_order_num", |
| | | "defName": "åç¨åå·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "C912ECE4-63A3-43CE-B630-753D22EFD6AA", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | | "defName": "ç³è¯·äºº", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "DAB38D48-1DCC-4550-A277-92A45EB13A63", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "factory_org_code", |
| | | "defName": "ç³è¯·é¨é¨", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "BE09D493-E183-402D-ACC4-EEA21EB35B8E", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "0562C099-F99E-4E21-95F4-5B549A105090", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "apply_date", |
| | | "defName": "ç³è¯·æ¥æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "A63A6872-5871-43FB-B4F1-6F59D5DA67FD", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "application_status", |
| | | "defName": "ç³è¯·åç¶æ", |
| | | "comment": "å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "A1099633-C82F-4231-862C-E54788CA2A7F", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "D9162256-DFC0-44BC-A655-C5CAB95CE69A", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature_time", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "05AE823E-F6F8-4EF9-9D01-A39EB035CFC4", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "depart_header_signature_comment", |
| | | "defName": "使ç¨åä½å®¤ä¸»ç®¡æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "A85B1391-4D22-4302-9E20-54E0DC76C7FA", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "5DF1BC4B-116D-4643-B8CC-C49A1FB6C103", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature_time", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "A0B2CBD8-2241-47B7-B80D-E5F91BEFA724", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "depart_leader_signature_comment", |
| | | "defName": "使ç¨åä½é¨ä¸»ç®¡ç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "D05DDC06-FC09-42DC-B236-CE3E3C748486", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "CB01E297-3E90-404A-883F-84A36193305F", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_technical_status_deactivate_detail", |
| | | "defName": "åç¨å å·¥è®¾å¤æç»", |
| | | "comment": "", |
| | | "properties": { |
| | | "partitioned by": "(date string)", |
| | | "row format delimited": "", |
| | | "fields terminated by ','": "", |
| | | "collection items terminated by '-'": "", |
| | | "map keys terminated by ':'": "", |
| | | "store as textfile;": "" |
| | | }, |
| | | "sysProps": { |
| | | "nameTemplate": "{defKey}[{defName}]" |
| | | }, |
| | | "notes": {}, |
| | | "headers": [ |
| | | { |
| | | "refKey": "hideInGraph", |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "defName", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "primaryKey", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "notNull", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "autoIncrement", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "domain", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "type", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "len", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "scale", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "refDict", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "defaultValue", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "isStandard", |
| | | "freeze": false, |
| | | "hideInGraph": false |
| | | }, |
| | | { |
| | | "refKey": "uiHint", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "extProps", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr1", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr2", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr3", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr4", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr5", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr6", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr7", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr8", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "refKey": "attr9", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | } |
| | | ], |
| | | "fields": [ |
| | | { |
| | | "defKey": "id", |
| | | "defName": "主é®", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": true, |
| | | "notNull": true, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "707AA3ED-8295-48C4-B3F8-9E75E5031043" |
| | | }, |
| | | { |
| | | "defKey": "create_by", |
| | | "defName": "å建人", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "6498C2CC-4BAD-4580-AE67-81F61D0163BB", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "create_time", |
| | | "defName": "å建æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "93855AAD-0A64-4674-967B-B03A16D44E62", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "update_by", |
| | | "defName": "æ´æ°äºº", |
| | | "comment": "", |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "EC43F0BF-07D0-4B71-82FC-BF642B22A1F2", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "update_time", |
| | | "defName": "æ´æ°æ¶é´", |
| | | "comment": "", |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "refDict": "", |
| | | "uiHint": "", |
| | | "id": "C8CA5EE5-181F-4FF8-9D7A-8D07401126FC", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "equipment_id", |
| | | "defName": "设å¤ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "814E8815-8591-4E8F-861A-94D4108C5605" |
| | | }, |
| | | { |
| | | "defKey": "deactivate_reason", |
| | | "defName": "åç¨åå ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "EBAC1835-5E2A-4D19-B1C8-0875B3AF5706" |
| | | }, |
| | | { |
| | | "defKey": "deactivate_duration", |
| | | "defName": "åç¨æ¶é¿", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
| | | "extProps": {}, |
| | | "domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
| | | "id": "2E37AD51-B4B4-4122-99D5-8552F099EF2A" |
| | | }, |
| | | { |
| | | "defKey": "deactivate_duration_unit", |
| | | "defName": "åç¨æ¶é¿åä½", |
| | | "comment": "天ãæãå¹´", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "583D0E63-78AF-46F4-BD7A-4224161872CF" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | |
| | | "73D3544F-E5F5-4C3F-BF5C-84D597C11BC6", |
| | | "2E990330-B98A-450F-A504-96771FDB71F1", |
| | | "882BADD5-3111-401C-9CF0-5ACAE364CA59", |
| | | "191A7D10-95F3-48A9-92DD-CA7C5AEC0A57" |
| | | "191A7D10-95F3-48A9-92DD-CA7C5AEC0A57", |
| | | "E5BC8ED5-0FE8-41DB-9A72-AB5414891467", |
| | | "306F9BF6-990A-44D0-9585-CC5E40E639F0", |
| | | "6102925D-12F5-42D2-A721-5BBAE73F9087", |
| | | "6221E3E7-A119-4AE7-872F-1159192BD6AC", |
| | | "CB01E297-3E90-404A-883F-84A36193305F" |
| | | ], |
| | | "refViews": [], |
| | | "refDiagrams": [], |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.constant; |
| | | |
| | | public enum EamMaintenanceStandardDetailCategory { |
| | | DAY_INSPECTION, //æ¥ç¹æ£ |
| | | WEEK_INSPECTION, //å¨ç¹æ£ |
| | | OPERATOR_MAINTENANCE, //æä½å·¥ |
| | | REPAIRER_MAINTENANCE //维修工 |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.constant; |
| | | |
| | | public enum TechnicalStatusEvaluationStandardEnum { |
| | | WAIT_SUBMIT, //å¾
æäº¤ |
| | | ENABLE, //å¯ç¨ |
| | | DISABLE, //ç¦ç¨ |
| | | ; |
| | | } |
| | |
| | | @ApiModelProperty(value = "设å¤åç§°") |
| | | @TableField(exist = false) |
| | | private String equipmentName; |
| | | |
| | | @ApiModelProperty(value = "设å¤åå·") |
| | | @TableField(exist = false) |
| | | private String equipmentModel; |
| | | } |
| | |
| | | /**ä¿å
»è¦æ±*/ |
| | | @ApiModelProperty(value = "ä¿å
»è¦æ±") |
| | | private String itemDemand; |
| | | /**ç¹æ£äºº*/ |
| | | @Excel(name = "ç¹æ£äºº", width = 15) |
| | | @ApiModelProperty(value = "ç¹æ£äºº") |
| | | private String inspector; |
| | | /**ç¹æ£æ¶é´*/ |
| | | @Excel(name = "ç¹æ£æ¶é´", width = 15) |
| | | @ApiModelProperty(value = "ç¹æ£æ¶é´") |
| | | private String inspectTime; |
| | | |
| | | public EamWeekInspectionDetail(){} |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.request; |
| | | |
| | | public class ImportException extends RuntimeException { |
| | | public ImportException(String message) { |
| | | super(message); |
| | | } |
| | | } |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.poi.hssf.usermodel.HSSFSheet; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.xssf.usermodel.XSSFSheet; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.jeecg.common.api.vo.FileUploadResult; |
| | | |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.util.FileUtil; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.MaintenanceCategoryEnum; |
| | | |
| | | import org.jeecg.modules.eam.constant.MaintenanceStandardStatusEnum; |
| | | import org.jeecg.modules.eam.dto.MaintenanceStandardImport; |
| | | import org.jeecg.modules.eam.dto.SecondMaintenanceStandardImport; |
| | | import org.jeecg.modules.eam.dto.ThirdMaintenanceStandardImport; |
| | | import org.jeecg.modules.eam.dto.WeekMaintenanceStandardImport; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandardDetail; |
| | | |
| | | import org.jeecg.modules.eam.request.EamMaintenanceStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.service.IEamMaintenanceStandardService; |
| | | import org.jeecg.modules.eam.vo.EamMaintenanceStandardVo; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.util.PoiPublicUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description: ä¿å
»æ å |
| | |
| | | |
| | | /** |
| | | * æµç¨å¯å¨,ä¿å对åºçæ°æ® |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "ä¿å
»æ å-æµç¨å¯å¨ä¿å对åºçæ°æ®", notes = "ä¿å
»æ å-æµç¨å¯å¨ä¿å对åºçæ°æ®") |
| | | @GetMapping(value = "/saveEamMaintenanceStandardProcess") |
| | | public Result<?> saveEamMaintenanceStandardProcess(String id){ |
| | | return Result.OK(eamMaintenanceStandardService.saveEamMaintenanceStandardProcess(id)); |
| | | public Result<?> saveEamMaintenanceStandardProcess(String id) { |
| | | return eamMaintenanceStandardService.saveEamMaintenanceStandardProcess(id); |
| | | } |
| | | |
| | | /** |
| | | * æµç¨å®¡æ ¸ |
| | | * |
| | | * @param eamMaintenanceStandardVo |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "ä¿å
»æ å-æµç¨å®¡æ ¸", notes = "ä¿å
»æ å-æµç¨å®¡æ ¸") |
| | | @PostMapping(value = "/audit") |
| | | public Result<?> auditEamMaintenanceStandard(EamMaintenanceStandardVo eamMaintenanceStandardVo){ |
| | | return Result.OK(eamMaintenanceStandardService.auditEamMaintenanceStandard(eamMaintenanceStandardVo)); |
| | | public Result<?> auditEamMaintenanceStandard(@RequestBody EamMaintenanceStandardVo eamMaintenanceStandardVo) { |
| | | return eamMaintenanceStandardService.auditEamMaintenanceStandard(eamMaintenanceStandardVo); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @AutoLog(value = "ä¿å
»æ å-åç") |
| | | @ApiOperation(value = "ä¿å
»æ å-åç", notes = "ä¿å
»æ å-åç") |
| | | @RequestMapping(value = "/upgrade", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | @PutMapping(value = "/upgrade") |
| | | public Result<?> upgrade(@RequestBody EamMaintenanceStandardRequest standardRequest) { |
| | | if (standardRequest == null) { |
| | | return Result.error("æ·»å ç对象ä¸è½ä¸ºç©ºï¼"); |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ åå表-å端å±ç¤ºè¯¥ç¨æ·æ¥æçæ å |
| | | * @param keyword 设å¤ç¼å· |
| | | * |
| | | * @param keyword 设å¤ç¼å· |
| | | * @param maintenanceCategory ä¿å
»ç±»å |
| | | * @return |
| | | */ |
| | |
| | | List<String> list = Arrays.asList(ids.split(",")); |
| | | list.forEach(id -> { |
| | | EamMaintenanceStandard entity = eamMaintenanceStandardService.getById(id); |
| | | if (entity != null) { |
| | | if (entity != null&&entity.getStandardStatus().equals(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name())) { |
| | | //åªå é¤ç¶æä¸ºå¾
æäº¤ç |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_1); |
| | | eamMaintenanceStandardService.updateById(entity); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/inspectionImportExcel", method = RequestMethod.POST) |
| | | public Result<?> inspectionImportExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | // è·åä¸ä¼ æä»¶å¯¹è±¡ |
| | | MultipartFile file = entity.getValue(); |
| | | ImportParams params = new ImportParams(); |
| | | params.setTitleRows(2); |
| | | params.setHeadRows(1); |
| | | params.setSheetNum(1); |
| | | params.setNeedSave(true); |
| | | EamMaintenanceStandardRequest standardRequest = new EamMaintenanceStandardRequest(); |
| | | try { |
| | | //读å设å¤ç¼å·ï¼å¾çç |
| | | readExcel(file, standardRequest); |
| | | EamEquipment equipment = eamEquipmentService.selectByEquipmentCode(standardRequest.getEquipmentCode()); |
| | | if(equipment == null) { |
| | | log.error("设å¤ä¸åå¨ï¼{}", standardRequest.getEquipmentCode()); |
| | | continue; |
| | | } |
| | | standardRequest.setStandardName(standardRequest.getEquipmentName() + "ç¹æ£æ å"); |
| | | standardRequest.setMaintenanceCategory(MaintenanceCategoryEnum.POINT_INSPECTION.name()); |
| | | standardRequest.setEquipmentId(equipment.getId()); |
| | | //读åä¿å
»æç»å
容 |
| | | List<MaintenanceStandardImport> list = ExcelImportUtil.importExcel(file.getInputStream(), MaintenanceStandardImport.class, params); |
| | | //æç»é¡¹ |
| | | List<EamMaintenanceStandardDetail> tableList = list.stream().map(EamMaintenanceStandardDetail::new).collect(Collectors.toList()); |
| | | standardRequest.setTableDetailList(tableList); |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | standardRequest.setStandardCode(codeSeq); |
| | | boolean b = eamMaintenanceStandardService.addMaintenanceStandard(standardRequest); |
| | | if (!b) { |
| | | log.error("ä¿åå¤±è´¥ï¼ {}", standardRequest.getEquipmentCode()); |
| | | } |
| | | } catch (Exception e) { |
| | | //update-begin-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | String msg = e.getMessage(); |
| | | log.error("æä»¶ {} å¤çå¼å¸¸ï¼ {}", file.getOriginalFilename(), msg, e); |
| | | //update-end-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | return Result.ok("æä»¶å¯¼å
¥å®æï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/weekMaintenanceImportExcel", method = RequestMethod.POST) |
| | | public Result<?> weekMaintenanceImportExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | // è·åä¸ä¼ æä»¶å¯¹è±¡ |
| | | MultipartFile file = entity.getValue(); |
| | | ImportParams params = new ImportParams(); |
| | | params.setTitleRows(2); |
| | | params.setHeadRows(1); |
| | | params.setSheetNum(1); |
| | | params.setNeedSave(true); |
| | | EamMaintenanceStandardRequest standardRequest = new EamMaintenanceStandardRequest(); |
| | | try { |
| | | //读å设å¤ç¼å·ï¼å¾çç |
| | | readWeekExcel(file, standardRequest); |
| | | EamEquipment equipment = eamEquipmentService.selectByEquipmentCode(standardRequest.getEquipmentCode()); |
| | | if(equipment == null) { |
| | | log.error("设å¤ä¸åå¨ï¼{}", standardRequest.getEquipmentCode()); |
| | | continue; |
| | | } |
| | | standardRequest.setStandardName(standardRequest.getEquipmentName() + "å¨ä¿æ å"); |
| | | standardRequest.setMaintenanceCategory(MaintenanceCategoryEnum.WEEK_MAINTENANCE.name()); |
| | | standardRequest.setEquipmentId(equipment.getId()); |
| | | //读åä¿å
»æç»å
容 |
| | | List<WeekMaintenanceStandardImport> list = ExcelImportUtil.importExcel(file.getInputStream(), WeekMaintenanceStandardImport.class, params); |
| | | //æç»é¡¹ |
| | | List<EamMaintenanceStandardDetail> tableList = list.stream().map(EamMaintenanceStandardDetail::new).collect(Collectors.toList()); |
| | | standardRequest.setTableDetailList(tableList); |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | standardRequest.setStandardCode(codeSeq); |
| | | boolean b = eamMaintenanceStandardService.addMaintenanceStandard(standardRequest); |
| | | if (!b) { |
| | | log.error("ä¿åå¤±è´¥ï¼ {}", standardRequest.getEquipmentCode()); |
| | | } |
| | | } catch (Exception e) { |
| | | //update-begin-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | String msg = e.getMessage(); |
| | | log.error("æä»¶ {} å¤çå¼å¸¸ï¼ {}", file.getOriginalFilename(), msg, e); |
| | | //update-end-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | return Result.ok("æä»¶å¯¼å
¥å®æï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/secondMaintenanceImportExcel", method = RequestMethod.POST) |
| | | public Result<?> secondMaintenanceImportExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | // è·åä¸ä¼ æä»¶å¯¹è±¡ |
| | | MultipartFile file = entity.getValue(); |
| | | ImportParams params = new ImportParams(); |
| | | params.setTitleRows(2); |
| | | params.setHeadRows(1); |
| | | params.setSheetNum(1); |
| | | params.setNeedSave(true); |
| | | EamMaintenanceStandardRequest standardRequest = new EamMaintenanceStandardRequest(); |
| | | try { |
| | | //读å设å¤ç¼å·ï¼å¾çç |
| | | readWeekExcel(file, standardRequest); |
| | | EamEquipment equipment = eamEquipmentService.selectByEquipmentCode(standardRequest.getEquipmentCode()); |
| | | if(equipment == null) { |
| | | log.error("设å¤ä¸åå¨ï¼{}", standardRequest.getEquipmentCode()); |
| | | continue; |
| | | } |
| | | standardRequest.setStandardName(standardRequest.getEquipmentName() + "äºä¿æ å"); |
| | | standardRequest.setMaintenanceCategory(MaintenanceCategoryEnum.SECOND_MAINTENANCE.name()); |
| | | standardRequest.setEquipmentId(equipment.getId()); |
| | | //读åä¿å
»æç»å
容 |
| | | List<SecondMaintenanceStandardImport> list = ExcelImportUtil.importExcel(file.getInputStream(), SecondMaintenanceStandardImport.class, params); |
| | | //æç»é¡¹ |
| | | List<EamMaintenanceStandardDetail> tableList = list.stream().map(EamMaintenanceStandardDetail::new).collect(Collectors.toList()); |
| | | standardRequest.setTableDetailList(tableList); |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | standardRequest.setStandardCode(codeSeq); |
| | | boolean b = eamMaintenanceStandardService.addMaintenanceStandard(standardRequest); |
| | | if (!b) { |
| | | log.error("ä¿åå¤±è´¥ï¼ {}", standardRequest.getEquipmentCode()); |
| | | } |
| | | } catch (Exception e) { |
| | | //update-begin-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | String msg = e.getMessage(); |
| | | log.error("æä»¶ {} å¤çå¼å¸¸ï¼ {}", file.getOriginalFilename(), msg, e); |
| | | //update-end-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | return Result.ok("æä»¶å¯¼å
¥å®æï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/thirdMaintenanceImportExcel", method = RequestMethod.POST) |
| | | public Result<?> thirdMaintenanceImportExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | // è·åä¸ä¼ æä»¶å¯¹è±¡ |
| | | MultipartFile file = entity.getValue(); |
| | | ImportParams params = new ImportParams(); |
| | | params.setTitleRows(2); |
| | | params.setHeadRows(1); |
| | | params.setSheetNum(1); |
| | | params.setNeedSave(true); |
| | | EamMaintenanceStandardRequest standardRequest = new EamMaintenanceStandardRequest(); |
| | | try { |
| | | //读å设å¤ç¼å·ï¼å¾çç |
| | | readWeekExcel(file, standardRequest); |
| | | EamEquipment equipment = eamEquipmentService.selectByEquipmentCode(standardRequest.getEquipmentCode()); |
| | | if(equipment == null) { |
| | | log.error("设å¤ä¸åå¨ï¼{}", standardRequest.getEquipmentCode()); |
| | | continue; |
| | | } |
| | | standardRequest.setStandardName(standardRequest.getEquipmentName() + "ä¸ä¿æ å"); |
| | | standardRequest.setMaintenanceCategory(MaintenanceCategoryEnum.THIRD_MAINTENANCE.name()); |
| | | standardRequest.setEquipmentId(equipment.getId()); |
| | | //读åä¿å
»æç»å
容 |
| | | List<ThirdMaintenanceStandardImport> list = ExcelImportUtil.importExcel(file.getInputStream(), ThirdMaintenanceStandardImport.class, params); |
| | | //æç»é¡¹ |
| | | List<EamMaintenanceStandardDetail> tableList = list.stream().map(EamMaintenanceStandardDetail::new).collect(Collectors.toList()); |
| | | standardRequest.setTableDetailList(tableList); |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | standardRequest.setStandardCode(codeSeq); |
| | | boolean b = eamMaintenanceStandardService.addMaintenanceStandard(standardRequest); |
| | | if (!b) { |
| | | log.error("ä¿åå¤±è´¥ï¼ {}", standardRequest.getEquipmentCode()); |
| | | } |
| | | } catch (Exception e) { |
| | | //update-begin-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | String msg = e.getMessage(); |
| | | log.error("æä»¶ {} å¤çå¼å¸¸ï¼ {}", file.getOriginalFilename(), msg, e); |
| | | //update-end-author:taoyan date:20211124 for: 导å
¥æ°æ®éå¤å¢å æç¤º |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | return Result.ok("æä»¶å¯¼å
¥å®æï¼"); |
| | | } |
| | | |
| | | /** |
| | | * 读åExcel 第ä¸è¡ï¼ 第äºè¡çä¿¡æ¯ï¼å
æ¬å¾çä¿¡æ¯ |
| | | * @param file |
| | | * @param request |
| | | */ |
| | | private void readExcel(MultipartFile file, EamMaintenanceStandardRequest request) { |
| | | Workbook book = null; |
| | | boolean isXSSFWorkbook = false; |
| | | * ç¹æ£å¯¼å
¥ |
| | | */ |
| | | @PostMapping("/importPointInspection") |
| | | public Result<?> importPointInspectionExcel(HttpServletRequest request) { |
| | | try { |
| | | book = WorkbookFactory.create(file.getInputStream()); |
| | | if (book instanceof XSSFWorkbook) { |
| | | isXSSFWorkbook = true; |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importPointInspectionExcel(file); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | |
| | | Sheet sheet = book.getSheetAt(0); |
| | | //第ä¸è¡è¯»å |
| | | Row row = sheet.getRow(0); |
| | | //设å¤ç¼ç |
| | | Cell equipmentCode = row.getCell(15); |
| | | if(CellType.NUMERIC.equals(equipmentCode.getCellType())) { |
| | | request.setEquipmentCode(String.valueOf((int) equipmentCode.getNumericCellValue())); |
| | | }else if(CellType.STRING.equals(equipmentCode.getCellType())) { |
| | | request.setEquipmentCode(equipmentCode.getStringCellValue()); |
| | | } |
| | | if (StringUtils.isBlank(request.getEquipmentCode())) { |
| | | throw new JeecgBootException("Excelã " + file.getOriginalFilename() + "ãæ²¡æè¯»åå°è®¾å¤ç¼å·ï¼å¯¼å
¥å¤±è´¥ï¼"); |
| | | } |
| | | //åå§æ¥æ |
| | | Cell initialDate = row.getCell(11); |
| | | if (DateUtil.isCellDateFormatted(initialDate)) { |
| | | request.setInitialDate(initialDate.getDateCellValue()); |
| | | } else { |
| | | request.setInitialDate(new Date()); |
| | | } |
| | | //设å¤åç§° |
| | | Cell equipmentName = row.getCell(13); |
| | | request.setEquipmentName(equipmentName.getStringCellValue()); |
| | | // æå»ºååº |
| | | Map<String, Object> response = new HashMap<>(); |
| | | response.put("results", results); |
| | | response.put("totalFiles", fileMap.size()); |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | //第äºè¡è¯»å |
| | | row = sheet.getRow(1); |
| | | //ä¿å
»å¨æ |
| | | Cell period = row.getCell(11); |
| | | if (CellType.NUMERIC.equals(period.getCellType())) { |
| | | request.setMaintenancePeriod((int) period.getNumericCellValue()); |
| | | if (failureCount == 0) { |
| | | return Result.ok("ææç¹æ£æä»¶å¯¼å
¥æå"+response); |
| | | } else if (successCount == 0) { |
| | | return Result.error("ææç¹æ£æä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } else { |
| | | //é»è®¤ç¹æ£å¨æ 1 |
| | | request.setMaintenancePeriod(1); |
| | | return Result.error("é¨åç¹æ£æä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | //æä»¶ç¼ç |
| | | Cell fileCode = row.getCell(13); |
| | | request.setFileCode(fileCode.getStringCellValue()); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("读åExcelä¿¡æ¯å¤±è´¥ï¼{}", e.getMessage(), e); |
| | | log.error("ç¹æ£å¯¼å
¥å¤çå¼å¸¸", e); |
| | | return Result.error("ç¹æ£å¯¼å
¥å¤ç失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * äºä¿å¯¼å
¥ |
| | | */ |
| | | @PostMapping("/importSecondMaintenanceStandard") |
| | | public Result<?> importSecondMaintenanceStandard(HttpServletRequest request) { |
| | | try { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | |
| | | // ç»è®¡å¯¼å
¥ç»æ |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importMaintenanceStandard(file, "SECOND"); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | |
| | | // æå»ºæç»ååº |
| | | Map<String, Object> response = new HashMap<>(); |
| | | response.put("results", results); |
| | | response.put("totalFiles", fileMap.size()); |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | if (failureCount > 0) { |
| | | return Result.error("é¨åæä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | |
| | | return Result.ok("æææä»¶å¯¼å
¥æå"+response); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("导å
¥å¤çå¼å¸¸", e); |
| | | return Result.error("导å
¥å¤ç失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 读åExcel 第ä¸è¡ï¼ 第äºè¡çä¿¡æ¯ |
| | | * @param file |
| | | * @param request |
| | | * ä¸ä¿å¯¼å
¥ |
| | | */ |
| | | public void readWeekExcel(MultipartFile file, EamMaintenanceStandardRequest request) { |
| | | Workbook book = null; |
| | | boolean isXSSFWorkbook = false; |
| | | @PostMapping("/importThirdMaintenanceStandard") |
| | | public Result<?> importThirdMaintenanceStandard(HttpServletRequest request) { |
| | | try { |
| | | book = WorkbookFactory.create(file.getInputStream()); |
| | | if (book instanceof XSSFWorkbook) { |
| | | isXSSFWorkbook = true; |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | |
| | | // ç»è®¡å¯¼å
¥ç»æ |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importMaintenanceStandard(file, "THIRD"); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | |
| | | Sheet sheet = book.getSheetAt(0); |
| | | //第ä¸è¡è¯»å |
| | | Row row = sheet.getRow(0); |
| | | //设å¤ç¼ç |
| | | Cell equipmentCode = row.getCell(10); |
| | | if(CellType.NUMERIC.equals(equipmentCode.getCellType())) { |
| | | request.setEquipmentCode(String.valueOf((int) equipmentCode.getNumericCellValue())); |
| | | }else if(CellType.STRING.equals(equipmentCode.getCellType())) { |
| | | request.setEquipmentCode(equipmentCode.getStringCellValue()); |
| | | } |
| | | if (StringUtils.isBlank(request.getEquipmentCode())) { |
| | | throw new JeecgBootException("Excelã " + file.getOriginalFilename() + "ãæ²¡æè¯»åå°è®¾å¤ç¼å·ï¼å¯¼å
¥å¤±è´¥ï¼"); |
| | | } |
| | | //åå§æ¥æ |
| | | Cell initialDate = row.getCell(6); |
| | | if (DateUtil.isCellDateFormatted(initialDate)) { |
| | | request.setInitialDate(initialDate.getDateCellValue()); |
| | | } else { |
| | | request.setInitialDate(new Date()); |
| | | } |
| | | //设å¤åç§° |
| | | Cell equipmentName = row.getCell(8); |
| | | request.setEquipmentName(equipmentName.getStringCellValue()); |
| | | // æå»ºæç»ååº |
| | | Map<String, Object> response = new HashMap<>(); |
| | | response.put("results", results); |
| | | response.put("totalFiles", fileMap.size()); |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | //第äºè¡è¯»å |
| | | row = sheet.getRow(1); |
| | | //ä¿å
»å¨æ |
| | | Cell period = row.getCell(6); |
| | | if (CellType.NUMERIC.equals(period.getCellType())) { |
| | | request.setMaintenancePeriod((int) period.getNumericCellValue()); |
| | | } else { |
| | | request.setMaintenancePeriod(null); |
| | | if (failureCount > 0) { |
| | | return Result.error("é¨åæä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | //æä»¶ç¼ç |
| | | Cell fileCode = row.getCell(8); |
| | | request.setFileCode(fileCode.getStringCellValue()); |
| | | |
| | | return Result.ok("æææä»¶å¯¼å
¥æå"+response); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("读åExcelä¿¡æ¯å¤±è´¥ï¼{}", e.getMessage(), e); |
| | | log.error("导å
¥å¤çå¼å¸¸", e); |
| | | return Result.error("导å
¥å¤ç失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | 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.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardService; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "ææ¯ç¶æé´å®è§è") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationStandard") |
| | | public class EamTechnicalStatusEvaluationStandardController extends JeecgController<EamTechnicalStatusEvaluationStandard, IEamTechnicalStatusEvaluationStandardService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationStandardService eamTechnicalStatusEvaluationStandardService; |
| | | @Autowired |
| | | private ISysBusinessCodeRuleService businessCodeRuleService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationStandard |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§è-å页å表æ¥è¯¢", notes = "ææ¯ç¶æé´å®è§è-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationStandard eamTechnicalStatusEvaluationStandard, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { |
| | | Page<EamTechnicalStatusEvaluationStandard> page = new Page<>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationStandard> pageList = eamTechnicalStatusEvaluationStandardService.queryPageList(page, eamTechnicalStatusEvaluationStandard); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®è§è-æ·»å ") |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§è-æ·»å ", notes = "ææ¯ç¶æé´å®è§è-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationStandardRequest request) { |
| | | if (request == null) { |
| | | return Result.error("æ·»å ç对象ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | if (CollectionUtil.isEmpty(request.getTableDetailList())) { |
| | | return Result.error("æ£æ¥é¡¹ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | request.setStandardCode(codeSeq); |
| | | boolean b = eamTechnicalStatusEvaluationStandardService.addEamTechnicalStatusEvaluationStandard(request); |
| | | if (!b) { |
| | | return Result.error("æ·»å 失败ï¼"); |
| | | } |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®è§è-ç¼è¾") |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§è-ç¼è¾", notes = "ææ¯ç¶æé´å®è§è-ç¼è¾") |
| | | @PutMapping(value = "/edit") |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationStandardRequest request) { |
| | | if (request == null) { |
| | | return Result.error("æ·»å ç对象ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | if (CollectionUtil.isEmpty(request.getTableDetailList())) { |
| | | return Result.error("æ£æ¥é¡¹ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | boolean b = eamTechnicalStatusEvaluationStandardService.editEamTechnicalStatusEvaluationStandard(request); |
| | | if (!b) { |
| | | return Result.error("ç¼è¾å¤±è´¥ï¼"); |
| | | } |
| | | 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) { |
| | | eamTechnicalStatusEvaluationStandardService.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.eamTechnicalStatusEvaluationStandardService.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) { |
| | | EamTechnicalStatusEvaluationStandard eamTechnicalStatusEvaluationStandard = eamTechnicalStatusEvaluationStandardService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationStandard); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationStandard.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.EamTechnicalStatusEvaluationStandardDetail; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§èæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "ææ¯ç¶æé´å®è§èæç»") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationStandardDetail") |
| | | public class EamTechnicalStatusEvaluationStandardDetailController extends JeecgController<EamTechnicalStatusEvaluationStandardDetail, IEamTechnicalStatusEvaluationStandardDetailService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationStandardDetailService eamTechnicalStatusEvaluationStandardDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationStandardDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®è§èæç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§èæç»-å页å表æ¥è¯¢", notes = "ææ¯ç¶æé´å®è§èæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationStandardDetail eamTechnicalStatusEvaluationStandardDetail, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationStandardDetail> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusEvaluationStandardDetail, req.getParameterMap()); |
| | | Page<EamTechnicalStatusEvaluationStandardDetail> page = new Page<EamTechnicalStatusEvaluationStandardDetail>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationStandardDetail> pageList = eamTechnicalStatusEvaluationStandardDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusEvaluationStandardDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®è§èæç»-æ·»å ") |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§èæç»-æ·»å ", notes = "ææ¯ç¶æé´å®è§èæç»-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationStandardDetail eamTechnicalStatusEvaluationStandardDetail) { |
| | | eamTechnicalStatusEvaluationStandardDetailService.save(eamTechnicalStatusEvaluationStandardDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationStandardDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®è§èæç»-ç¼è¾") |
| | | @ApiOperation(value = "ææ¯ç¶æé´å®è§èæç»-ç¼è¾", notes = "ææ¯ç¶æé´å®è§èæç»-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationStandardDetail eamTechnicalStatusEvaluationStandardDetail) { |
| | | eamTechnicalStatusEvaluationStandardDetailService.updateById(eamTechnicalStatusEvaluationStandardDetail); |
| | | 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) { |
| | | eamTechnicalStatusEvaluationStandardDetailService.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.eamTechnicalStatusEvaluationStandardDetailService.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) { |
| | | EamTechnicalStatusEvaluationStandardDetail eamTechnicalStatusEvaluationStandardDetail = eamTechnicalStatusEvaluationStandardDetailService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationStandardDetail); |
| | | } |
| | | |
| | | } |
| | |
| | | * æ åçæ¬ |
| | | */ |
| | | @ApiModelProperty(value = "æ åçæ¬") |
| | | private Integer standardVersion; |
| | | private String standardVersion; |
| | | /** |
| | | * ç¼å¶äºº |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | 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.jeecgframework.poi.excel.annotation.Excel; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_standard") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_standard对象", description="ææ¯ç¶æé´å®è§è") |
| | | public class EamTechnicalStatusEvaluationStandard { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**è§èåç§°*/ |
| | | @ApiModelProperty(value = "è§èåç§°") |
| | | private String standardName; |
| | | /**è§èç¼ç */ |
| | | @ApiModelProperty(value = "è§èç¼ç ") |
| | | private String standardCode; |
| | | /**é´å®å¨æ*/ |
| | | @ApiModelProperty(value = "é´å®å¨æ") |
| | | private Integer evaluationPeriod; |
| | | /**设å¤ID*/ |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /**è§èç¶æ;å¾
æäº¤ãå¯ç¨ãä½åº*/ |
| | | @ApiModelProperty(value = "è§èç¶æ;å¾
æäº¤ãå¯ç¨ãä½åº") |
| | | private String standardStatus; |
| | | /**æ¯å¦æå®å
¨è£
ç½®æ£æ¥;æ¯å¦*/ |
| | | @ApiModelProperty(value = "æ¯å¦æå®å
¨è£
ç½®æ£æ¥;æ¯å¦") |
| | | private String hasSafetyEquipmentCheck; |
| | | /**æ¯å¦æè®¾å¤ç²¾åº¦æ£æ¥;æ¯å¦*/ |
| | | @ApiModelProperty(value = "æ¯å¦æè®¾å¤ç²¾åº¦æ£æ¥;æ¯å¦") |
| | | private String hasPrecisionCheck; |
| | | /**æ¯å¦æå
¶ä»æ£æ¥;æ¯å¦*/ |
| | | @ApiModelProperty(value = "æ¯å¦æå
¶ä»æ£æ¥;æ¯å¦") |
| | | private String hasOtherCheck; |
| | | /**çæ¬ V1,V2+*/ |
| | | @ApiModelProperty(value = "çæ¬ V1,V2") |
| | | private String standardVersion; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§èæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_standard_detail") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_standard_detail对象", description="ææ¯ç¶æé´å®è§èæç»") |
| | | public class EamTechnicalStatusEvaluationStandardDetail { |
| | | |
| | | /**主é®*/ |
| | | @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; |
| | | /**è§èID*/ |
| | | @Excel(name = "è§èID", width = 15) |
| | | @ApiModelProperty(value = "è§èID") |
| | | private String standardId; |
| | | /**æ£æ¥åç±»;ç²¾åº¦æ£æ¥ãå®å
¨è£
ç½®æ£æ¥ãå
¶ä»æ£æ¥*/ |
| | | @Excel(name = "æ£æ¥åç±»;ç²¾åº¦æ£æ¥ãå®å
¨è£
ç½®æ£æ¥ãå
¶ä»æ£æ¥", width = 15) |
| | | @ApiModelProperty(value = "æ£æ¥åç±»;ç²¾åº¦æ£æ¥ãå®å
¨è£
ç½®æ£æ¥ãå
¶ä»æ£æ¥") |
| | | private String checkCategory; |
| | | /**项ç®åºå·*/ |
| | | @Excel(name = "项ç®åºå·", width = 15) |
| | | @ApiModelProperty(value = "项ç®åºå·") |
| | | private Integer itemCode; |
| | | /**æ£æ¥é¡¹ç®*/ |
| | | @Excel(name = "æ£æ¥é¡¹ç®", width = 15) |
| | | @ApiModelProperty(value = "æ£æ¥é¡¹ç®") |
| | | private String itemName; |
| | | /**å
å·®å¼;ç²¾åº¦æ£æ¥å±ç¤º*/ |
| | | @Excel(name = "å
å·®å¼;ç²¾åº¦æ£æ¥å±ç¤º", width = 15) |
| | | @ApiModelProperty(value = "å
å·®å¼;ç²¾åº¦æ£æ¥å±ç¤º") |
| | | private String toleranceValue; |
| | | /**æ£æ¥å项ç®;ç²¾åº¦æ£æ¥å±ç¤ºï¼å¯ä»¥ä¸ºç©º*/ |
| | | @Excel(name = "æ£æ¥å项ç®;ç²¾åº¦æ£æ¥å±ç¤ºï¼å¯ä»¥ä¸ºç©º", width = 15) |
| | | @ApiModelProperty(value = "æ£æ¥å项ç®;ç²¾åº¦æ£æ¥å±ç¤ºï¼å¯ä»¥ä¸ºç©º") |
| | | private String subItemName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§èæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationStandardDetailMapper extends BaseMapper<EamTechnicalStatusEvaluationStandardDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationStandardMapper extends BaseMapper<EamTechnicalStatusEvaluationStandard> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param page |
| | | * @param queryWrapper |
| | | * @return |
| | | */ |
| | | IPage<EamTechnicalStatusEvaluationStandard> queryPageList(Page<EamTechnicalStatusEvaluationStandard> page, QueryWrapper<EamTechnicalStatusEvaluationStandard> queryWrapper); |
| | | } |
| | |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamInspectionOrderMapper"> |
| | | |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamInspectionOrder"> |
| | | select wmo.*, e.equipment_code, e.equipment_name |
| | | select wmo.*, e.equipment_code, e.equipment_name, e.equipment_model |
| | | from eam_inspection_order wmo |
| | | inner join eam_equipment e |
| | | on wmo.equipment_id = e.id |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.EamTechnicalStatusEvaluationStandardDetailMapper"> |
| | | |
| | | </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.EamTechnicalStatusEvaluationStandardMapper"> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard"> |
| | | select ems.*, e.equipment_code, e.equipment_name, e.equipment_model |
| | | from eam_technical_status_evaluation_standard ems |
| | | inner join eam_equipment e |
| | | on ems.equipment_id = e.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | private String standardStatus; |
| | | /**æ åçæ¬*/ |
| | | @ApiModelProperty(value = "æ åçæ¬") |
| | | private Integer standardVersion; |
| | | private String standardVersion; |
| | | /**æä»¶ç¼å·*/ |
| | | @ApiModelProperty(value = "æä»¶ç¼å·") |
| | | private String fileCode; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.request; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_standard对象", description="ææ¯ç¶æé´å®è§è") |
| | | public class EamTechnicalStatusEvaluationStandardRequest implements Serializable { |
| | | /**主é®*/ |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**è§èç¼ç */ |
| | | @ApiModelProperty(value = "è§èç¼ç ") |
| | | private String standardCode; |
| | | /**è§èåç§°*/ |
| | | @ApiModelProperty(value = "è§èåç§°") |
| | | private String standardName; |
| | | /**é´å®å¨æ;åä½:å¹´*/ |
| | | @ApiModelProperty(value = "é´å®å¨æ;åä½:å¹´") |
| | | private Integer evaluationPeriod; |
| | | /**设å¤ID*/ |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /**å表 æ£æ¥é¡¹æç»*/ |
| | | @ApiModelProperty(value = "å表 æ£æ¥é¡¹æç»") |
| | | private List<EamTechnicalStatusEvaluationStandardDetail> tableDetailList; |
| | | /**å é¤ æ£æ¥é¡¹æç»*/ |
| | | @ApiModelProperty(value = "å é¤ æ£æ¥é¡¹æç»") |
| | | private List<EamTechnicalStatusEvaluationStandardDetail> removeDetailList; |
| | | |
| | | |
| | | } |
| | |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.request.EamMaintenanceStandardRequest; |
| | | import org.jeecg.modules.eam.vo.EamMaintenanceStandardVo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | boolean addMaintenanceStandard(EamMaintenanceStandardRequest standardRequest); |
| | | |
| | | /** |
| | | * æ°å¢ ä¿å
»æ å |
| | | * ç¼è¾ ä¿å
»æ å |
| | | * @param standardRequest |
| | | */ |
| | | boolean editMaintenanceStandard(EamMaintenanceStandardRequest standardRequest); |
| | |
| | | */ |
| | | Result<?> saveEamMaintenanceStandardProcess(String id); |
| | | |
| | | |
| | | /** |
| | | * å®¡æ¹æä½ |
| | | * @param eamMaintenanceStandardVo |
| | |
| | | */ |
| | | Result<?> auditEamMaintenanceStandard(EamMaintenanceStandardVo eamMaintenanceStandardVo); |
| | | |
| | | |
| | | /** |
| | | * ç¹æ£è¡¨å¯¼å
¥å
¥å£ |
| | | */ |
| | | public Result<?> importPointInspectionExcel(MultipartFile file); |
| | | |
| | | |
| | | Result<?> importMaintenanceStandard(MultipartFile file, String type); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§èæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationStandardDetailService extends IService<EamTechnicalStatusEvaluationStandardDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationStandardService extends IService<EamTechnicalStatusEvaluationStandard> { |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param eamTechnicalStatusEvaluationStandard |
| | | * @return |
| | | */ |
| | | IPage<EamTechnicalStatusEvaluationStandard> queryPageList(Page<EamTechnicalStatusEvaluationStandard> page, EamTechnicalStatusEvaluationStandard eamTechnicalStatusEvaluationStandard); |
| | | |
| | | /** |
| | | * æ°å¢ |
| | | * @param request |
| | | * @return |
| | | */ |
| | | boolean addEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request); |
| | | |
| | | /** |
| | | * é夿 ¡éª |
| | | * @param equipmentId |
| | | * @param id |
| | | * @return |
| | | */ |
| | | EamTechnicalStatusEvaluationStandard checkDuplicate(String equipmentId, String id); |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * @param request |
| | | * @return |
| | | */ |
| | | boolean editEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request); |
| | | } |
| | |
| | | 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 com.jeecg.weibo.exception.BusinessException; |
| | | import liquibase.pro.packaged.R; |
| | | import liquibase.pro.packaged.S; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.flowable.engine.TaskService; |
| | | import org.flowable.task.api.Task; |
| | | import org.jeecg.common.api.vo.FileUploadResult; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | |
| | | import org.jeecg.modules.eam.base.service.IBaseFactoryService; |
| | | import org.jeecg.modules.eam.base.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.EamMaintenanceStandardDetailCategory; |
| | | import org.jeecg.modules.eam.constant.MaintenanceStandardStatusEnum; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamEquipmentExtend; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandardDetail; |
| | | import org.jeecg.modules.eam.mapper.EamMaintenanceStandardMapper; |
| | | import org.jeecg.modules.eam.request.EamMaintenanceStandardRequest; |
| | | import org.jeecg.modules.eam.request.ImportException; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentExtendService; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.service.IEamMaintenanceStandardDetailService; |
| | | import org.jeecg.modules.eam.service.IEamMaintenanceStandardService; |
| | | import org.jeecg.modules.eam.vo.EamMaintenanceStandardVo; |
| | | import org.jeecg.modules.eam.vo.*; |
| | | import org.jeecg.modules.flowable.apithird.business.entity.FlowMyBusiness; |
| | | import org.jeecg.modules.flowable.apithird.business.service.IFlowMyBusinessService; |
| | | import org.jeecg.modules.flowable.apithird.service.FlowCallBackServiceI; |
| | | 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.service.ISysBusinessCodeRuleService; |
| | | import org.jeecg.modules.system.service.ISysUserService; |
| | | import org.jeecg.modules.system.vo.UserSelector; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | private ISysUserService sysUserService; |
| | | @Autowired |
| | | private IEamEquipmentService eamEquipmentService; |
| | | @Autowired |
| | | private IEamEquipmentExtendService eamEquipmentExtendService; |
| | | @Autowired |
| | | private ISysBusinessCodeRuleService businessCodeRuleService; |
| | | |
| | | // 常éå®ä¹ |
| | | private static final String REPAIR_TITLE = "维修人åä¿å
Ȍ
容"; |
| | | private static final String OPERATOR_TITLE = "æä½äººåä¿å
Ȍ
容"; |
| | | private static final Map<String, EamMaintenanceStandardDetailCategory> SECOND_CATEGORY_MAPPING = new HashMap<>(); |
| | | |
| | | // æä¸¾æ å°åå§å |
| | | static { |
| | | SECOND_CATEGORY_MAPPING.put(REPAIR_TITLE, EamMaintenanceStandardDetailCategory.REPAIRER_MAINTENANCE); |
| | | SECOND_CATEGORY_MAPPING.put(OPERATOR_TITLE, EamMaintenanceStandardDetailCategory.OPERATOR_MAINTENANCE); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<EamMaintenanceStandard> queryPageList(Page<EamMaintenanceStandard> page, EamMaintenanceStandard eamMaintenanceStandard) { |
| | | QueryWrapper<EamMaintenanceStandard> queryWrapper = new QueryWrapper<>(); |
| | |
| | | .or() |
| | | .like("e.equipment_code", eamMaintenanceStandard.getKeyword())); |
| | | } |
| | | //id |
| | | if(StringUtils.isNotBlank(eamMaintenanceStandard.getId())) { |
| | | queryWrapper.eq("ems.id", eamMaintenanceStandard.getId()); |
| | | } |
| | | } |
| | | queryWrapper.orderByDesc("ems.create_time"); |
| | | return eamMaintenanceStandardMapper.queryPageList(page, queryWrapper); |
| | |
| | | BeanUtils.copyProperties(standardRequest, entity); |
| | | entity.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | //çæ¬éå¢ |
| | | entity.setStandardVersion(CommonConstant.OPERATE_TYPE_1); |
| | | entity.setStandardVersion("v"+CommonConstant.OPERATE_TYPE_1); |
| | | //设å¤å¤ç |
| | | entity.setEquipmentId(standardRequest.getEquipmentId()); |
| | | //å 餿 è®° |
| | |
| | | if(entity == null){ |
| | | throw new JeecgBootException("ç¼è¾çæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | entity.setStandardStatus(MaintenanceStandardStatusEnum.ABOLISH.name()); |
| | | //忥çä½åº |
| | | eamMaintenanceStandardMapper.updateById(entity); |
| | | |
| | | //æ°å¢ä¸ä¸ªçæ¬ |
| | | EamMaintenanceStandard newEntity = new EamMaintenanceStandard(); |
| | |
| | | newEntity.setInitialDate(standardRequest.getInitialDate()); |
| | | newEntity.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | //çæ¬éå¢ |
| | | newEntity.setStandardVersion(entity.getStandardVersion() + 1); |
| | | //è·åæ°å |
| | | Pattern pattern = Pattern.compile("(\\d+)(?:\\.\\d+)*$"); |
| | | Matcher matcher = pattern.matcher(entity.getStandardVersion()); |
| | | if (matcher.find()) { |
| | | try { |
| | | int mainVersion = Integer.parseInt(matcher.group(1)); |
| | | newEntity.setStandardVersion("v"+(mainVersion+1)); |
| | | } catch (NumberFormatException ignored) { |
| | | } |
| | | } |
| | | //设å¤å¤ç |
| | | newEntity.setEquipmentId(standardRequest.getEquipmentId()); |
| | | //å 餿 è®° |
| | |
| | | query.setEquipmentId(equipmentId); |
| | | query.setKeyword(keyword); |
| | | query.setMaintenanceCategory(maintenanceCategory); |
| | | query.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | query.setStandardStatus(MaintenanceStandardStatusEnum.START.name()); |
| | | IPage<EamMaintenanceStandard> pageData = this.queryPageList(page, query); |
| | | return pageData.getRecords(); |
| | | } |
| | |
| | | // 设置æµç¨åé |
| | | Map<String, Object> values = setProcessVariables(eamMaintenanceStandard, userId, eamMaintenanceStandardVo); |
| | | eamMaintenanceStandardVo.setValues(values); |
| | | |
| | | eamMaintenanceStandardVo.setComment(values.get("comment").toString()); |
| | | // 宿æµç¨ä»»å¡ |
| | | Result result = flowTaskService.complete(eamMaintenanceStandardVo); |
| | | if (result.isSuccess()) { |
| | | if (eamMaintenanceStandardVo.getRepairManagerApproveResult() != null) { |
| | | if (eamMaintenanceStandardVo.getRepairManagerApproveResult().equals("1")){ |
| | | List<FlowMyBusiness> newbusinessList = flowMyBusinessService.list( |
| | | new QueryWrapper<FlowMyBusiness>() |
| | | .eq("process_instance_id", eamMaintenanceStandardVo.getInstanceId())); |
| | | FlowMyBusiness newflowMyBusiness = newbusinessList.get(0); |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_TECHNICAL_DIRECTOR.name()); |
| | | //è·åflowçæµç¨å®ä¾id,设置ä¸ä¸æ¥çå¤ç人å |
| | | EamMaintenanceStandard maintenanceStandard=this.getById(eamMaintenanceStandardVo.getDataId()); |
| | | EamEquipment eamEquipment=eamEquipmentService.getById(maintenanceStandard.getEquipmentId()); |
| | | BaseFactory baseFactory=baseFactoryService.getOne(new QueryWrapper<BaseFactory>().eq("org_code", eamEquipment.getFactoryOrgCode())); |
| | | List<UserSelector> userSelectorList=sysUserService.selectOperatorFactoryList(eamEquipment.getEquipmentCode(),baseFactory.getId(), BusinessCodeConst.PCR0008); |
| | | if (!CollectionUtils.isEmpty(userSelectorList)) { |
| | | List<String> usernameList=userSelectorList.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | newflowMyBusiness.setTodoUsers(JSON.toJSONString(usernameList)); |
| | | flowMyBusinessService.updateById(newflowMyBusiness); |
| | | } |
| | | }else { |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | } |
| | |
| | | if (eamMaintenanceStandardVo.getTechnicalManagerApproveResult() != null) { |
| | | if (eamMaintenanceStandardVo.getTechnicalManagerApproveResult().equals("1")){ |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.START.name()); |
| | | //夿æ¯å¦è¿è¡åçï¼éè¿è®¾å¤ç¼å·ãä¿å
»åç±»ãç¶æè¿è¡çé |
| | | EamMaintenanceStandard maintenanceStandard=this.getById(eamMaintenanceStandardVo.getDataId()); |
| | | QueryWrapper<EamMaintenanceStandard> queryWrapper=new QueryWrapper<>(); |
| | | queryWrapper.eq("equipment_id", maintenanceStandard.getEquipmentId()); |
| | | queryWrapper.eq("maintenance_category", maintenanceStandard.getMaintenanceCategory()); |
| | | queryWrapper.eq("standard_status", MaintenanceStandardStatusEnum.START.name()); |
| | | List<EamMaintenanceStandard> list=eamMaintenanceStandardMapper.selectList(queryWrapper); |
| | | if (!CollectionUtils.isEmpty(list)) { |
| | | //ä½åºåæ |
| | | for (EamMaintenanceStandard eamMaintenanceStandard1 : list) { |
| | | eamMaintenanceStandard1.setStandardStatus(MaintenanceStandardStatusEnum.ABOLISH.name()); |
| | | this.updateById(eamMaintenanceStandard1); |
| | | } |
| | | } |
| | | }else { |
| | | eamMaintenanceStandard.setStandardStatus(MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | } |
| | |
| | | } else { |
| | | return result; |
| | | } |
| | | |
| | | return Result.OK("æä½æå"); |
| | | } catch (Exception e) { |
| | | return Result.error("æä½å¤±è´¥ï¼" + e.getMessage()); |
| | |
| | | Map<String, Object> values = new HashMap<>(); |
| | | values.put("dataId", eamMaintenanceStandard.getId()); |
| | | values.put("assignee", userId); |
| | | values.put("organization", eamMaintenanceStandardVo.getComment()); |
| | | values.put("comment", eamMaintenanceStandardVo.getComment()); |
| | | if (eamMaintenanceStandardVo.getRepairManagerApproveResult() != null) { |
| | | values.put("repairManagerApproveResult", eamMaintenanceStandardVo.getRepairManagerApproveResult()); |
| | | values.put("organization", eamMaintenanceStandardVo.getRepairManagerApproveComment()); |
| | | values.put("comment", eamMaintenanceStandardVo.getRepairManagerApproveComment()); |
| | | } |
| | | if (eamMaintenanceStandardVo.getTechnicalManagerApproveResult() != null) { |
| | | values.put("technicalManagerApproveResult", eamMaintenanceStandardVo.getTechnicalManagerApproveResult()); |
| | | values.put("organization", eamMaintenanceStandardVo.getTechnicalManagerApproveComment()); |
| | | values.put("comment", eamMaintenanceStandardVo.getTechnicalManagerApproveComment()); |
| | | } |
| | | return values; |
| | | } |
| | |
| | | } |
| | | |
| | | /*æµç¨ä¸å¡ä»£ç --------------------------ç»æ*/ |
| | | |
| | | |
| | | /*导å
¥ç¹æ£æä»¶Excel--------------------------å¼å§*/ |
| | | /** |
| | | * ç¹æ£è¡¨å¯¼å
¥å
¥å£ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result<?> importPointInspectionExcel(MultipartFile file) { |
| | | try (Workbook workbook = WorkbookFactory.create(file.getInputStream())) { |
| | | Sheet sheet = workbook.getSheetAt(0); |
| | | |
| | | // æååç§° |
| | | String name = extractInspectionTitle(file) + "ç¹æ£è¡¨"; |
| | | |
| | | // 1. æå设å¤ä¿¡æ¯ |
| | | EamMaintenanceStandard eamMaintenanceStandard = extractDeviceInfo(sheet); |
| | | if (eamMaintenanceStandard == null) { |
| | | return Result.error("设å¤ä¿¡æ¯æå失败"); |
| | | } |
| | | |
| | | eamMaintenanceStandard.setStandardName(name); |
| | | eamMaintenanceStandardMapper.insert(eamMaintenanceStandard); |
| | | |
| | | // 2. æåæ¯æ¥ç¹æ£é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> dailyDetails = extractDailyItems(sheet, eamMaintenanceStandard); |
| | | if(dailyDetails.isEmpty()){ |
| | | return Result.error("æªæ¾å°æ¯æ¥ç¹æ£é¡¹ç®"); |
| | | } |
| | | |
| | | // 3. æåå¨ä¿å
»é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> weeklyDetails = extractWeeklyItems(sheet, eamMaintenanceStandard); |
| | | if(weeklyDetails.isEmpty()){ |
| | | return Result.error("æªæ¾å°å¨ä¿å
»é¡¹ç®"); |
| | | } |
| | | |
| | | // åå¹¶å¹¶ä¿åææé¡¹ç® |
| | | List<EamMaintenanceStandardDetail> allDetails = new ArrayList<>(); |
| | | allDetails.addAll(dailyDetails); |
| | | allDetails.addAll(weeklyDetails); |
| | | |
| | | if (!CollectionUtils.isEmpty(allDetails)) { |
| | | eamMaintenanceStandardDetailService.saveBatch(allDetails); |
| | | } |
| | | |
| | | return Result.OK("ç¹æ£è¡¨å¯¼å
¥æå"); |
| | | |
| | | } catch (Exception e) { |
| | | throw new BusinessException("ç¹æ£è¡¨å¯¼å
¥å¤±è´¥: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æåç¹æ£è¡¨æ é¢ |
| | | */ |
| | | private String extractInspectionTitle(MultipartFile file) { |
| | | try (Workbook workbook = WorkbookFactory.create(file.getInputStream())) { |
| | | Sheet sheet = workbook.getSheetAt(0); |
| | | Row firstRow = sheet.getRow(0); |
| | | |
| | | if (firstRow == null) { |
| | | return "æªæ¾å°æ é¢"; |
| | | } |
| | | |
| | | Cell firstCell = firstRow.getCell(0); |
| | | if (firstCell == null) { |
| | | return ""; |
| | | } |
| | | |
| | | String title = getCellStringValue(firstCell); |
| | | return extractTextBeforeInspection(title); |
| | | |
| | | } catch (Exception e) { |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æåç¹æ£è¡¨ä¹åçæå |
| | | */ |
| | | private String extractTextBeforeInspection(String title) { |
| | | if (StringUtils.isBlank(title)) { |
| | | return ""; |
| | | } |
| | | |
| | | int index = title.indexOf("ç¹æ£è¡¨"); |
| | | return index > 0 ? title.substring(0, index).trim() : title; |
| | | } |
| | | |
| | | /** |
| | | * æå设å¤ä¿¡æ¯ |
| | | */ |
| | | private EamMaintenanceStandard extractDeviceInfo(Sheet sheet) { |
| | | Row headerRow = sheet.getRow(0); |
| | | if (headerRow == null) { |
| | | return null; |
| | | } |
| | | |
| | | String headerText = getCellStringValue(headerRow.getCell(0)); |
| | | if (StringUtils.isBlank(headerText)) { |
| | | return null; |
| | | } |
| | | |
| | | EamMaintenanceStandard standard = new EamMaintenanceStandard(); |
| | | standard.setEquipmentName(extractField(headerText, "设å¤åç§°[:ï¼]\\s*(\\S+)")); |
| | | standard.setEquipmentId(extractField(headerText, "设å¤åå·[:ï¼]\\s*(\\S+)")); |
| | | |
| | | |
| | | // æ¥æå¤ç |
| | | String dateStr = extractField(headerText, "æ¥æ[:ï¼]\\s*(\\S+)"); |
| | | if (StringUtils.isNotBlank(dateStr)) { |
| | | try { |
| | | // æ¯æå¤ç§æ¥ææ ¼å¼ |
| | | Date date = parseDate(dateStr); |
| | | standard.setDesignTime(date); |
| | | standard.setInitialDate(date); |
| | | } catch (ParseException ignored) { |
| | | |
| | | } |
| | | } |
| | | |
| | | // å
³è设å¤ID |
| | | if (isNotBlank(standard.getEquipmentCode()) && |
| | | isNotBlank(standard.getEquipmentName())) { |
| | | |
| | | List<EamEquipment> equipments = eamEquipmentService.list( |
| | | new QueryWrapper<EamEquipment>() |
| | | .eq("equipment_code", standard.getEquipmentCode()) |
| | | .eq("equipment_name", standard.getEquipmentName()) |
| | | ); |
| | | |
| | | if (!equipments.isEmpty()) { |
| | | standard.setEquipmentId(equipments.get(0).getId()); |
| | | }else { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE); |
| | | standard.setStandardCode(codeSeq); |
| | | standard.setMaintenanceCategory("POINT_INSPECTION"); |
| | | standard.setPeriodUnit("天"); |
| | | standard.setStandardStatus(MaintenanceStandardStatusEnum.START.name()); |
| | | standard.setStandardVersion("v" + CommonConstant.OPERATE_TYPE_1); |
| | | standard.setDelFlag(0); |
| | | standard.setMaintenancePeriod(1); |
| | | |
| | | return standard; |
| | | } |
| | | |
| | | /** |
| | | * è§£ææ¥æå符串 |
| | | */ |
| | | private Date parseDate(String dateStr) throws ParseException { |
| | | // å°è¯å¤ç§æ¥ææ ¼å¼ |
| | | String[] patterns = { |
| | | "yyyyå¹´MMæ", |
| | | "yyyy-MM", |
| | | "yyyy/MM", |
| | | "yyyyMM", |
| | | "yyyyå¹´Mæ" |
| | | }; |
| | | |
| | | for (String pattern : patterns) { |
| | | try { |
| | | SimpleDateFormat sdf = new SimpleDateFormat(pattern); |
| | | sdf.setLenient(false); |
| | | return sdf.parse(dateStr); |
| | | } catch (ParseException e) { |
| | | // å°è¯ä¸ä¸ä¸ªæ ¼å¼ |
| | | } |
| | | } |
| | | |
| | | throw new ParseException("æ æ³è§£ææ¥æ: " + dateStr, 0); |
| | | } |
| | | |
| | | /** |
| | | * æåæ¯æ¥ç¹æ£é¡¹ç® |
| | | */ |
| | | 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.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) { |
| | | if (StringUtils.isBlank(text)) return ""; |
| | | Pattern pattern = Pattern.compile(regex); |
| | | Matcher matcher = pattern.matcher(text); |
| | | return matcher.find() ? matcher.group(1) : ""; |
| | | } |
| | | |
| | | /** |
| | | * è·ååå
æ ¼åç¬¦ä¸²å¼ |
| | | */ |
| | | private String getCellStringValue(Cell cell) { |
| | | if (cell == null) return ""; |
| | | switch (cell.getCellType()) { |
| | | case STRING: |
| | | return cell.getStringCellValue().trim(); |
| | | case NUMERIC: |
| | | if (DateUtil.isCellDateFormatted(cell)) { |
| | | return new SimpleDateFormat("yyyyå¹´MMæ").format(cell.getDateCellValue()); |
| | | } |
| | | return String.valueOf((int) cell.getNumericCellValue()); |
| | | case BOOLEAN: |
| | | return String.valueOf(cell.getBooleanCellValue()); |
| | | case FORMULA: |
| | | return handleFormulaCell(cell); |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å¤çå
¬å¼åå
æ ¼ |
| | | */ |
| | | private String handleFormulaCell(Cell cell) { |
| | | try { |
| | | FormulaEvaluator evaluator = cell.getSheet().getWorkbook().getCreationHelper().createFormulaEvaluator(); |
| | | CellValue cellValue = evaluator.evaluate(cell); |
| | | |
| | | if (cellValue == null) return ""; |
| | | |
| | | switch (cellValue.getCellType()) { |
| | | case STRING: return cellValue.getStringValue(); |
| | | case NUMERIC: return String.valueOf((int) cellValue.getNumberValue()); |
| | | case BOOLEAN: return String.valueOf(cellValue.getBooleanValue()); |
| | | default: return ""; |
| | | } |
| | | } catch (Exception e) { |
| | | return ""; |
| | | } |
| | | } |
| | | /*导å
¥ç¹æ£æä»¶Excel--------------------------ç»æ*/ |
| | | |
| | | /*导å
¥äºä¿ä¸ä¿æä»¶Excel--------------------------å¼å§*/ |
| | | /** |
| | | * ç»ä¸ä¿å
»è§è导å
¥å
¥å£ |
| | | * @param file ä¸ä¼ æä»¶ |
| | | * @param type ä¿å
»ç±»å (SECOND/THIRD) |
| | | * @return 导å
¥ç»æï¼å
嫿å/失败信æ¯ï¼ |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public Result<?> importMaintenanceStandard(MultipartFile file, String type) { |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | try (XWPFDocument doc = new XWPFDocument(file.getInputStream())) { |
| | | // åºç¡éªè¯ |
| | | if (doc.getTables().isEmpty()) { |
| | | return Result.error(fileName + ": ææ¡£ä¸æªæ¾å°è¡¨æ ¼"); |
| | | } |
| | | |
| | | XWPFTable table = doc.getTables().get(0); |
| | | |
| | | // ææ¡£ç±»åæ ¡éª - 鲿¢äºä¿ä¼ å
¥ä¸ä¿æåä¹ |
| | | if (isWrongDocumentType(table, type)) { |
| | | return Result.error(fileName + ": ææ¡£ç±»åä¸å¹é
- " + |
| | | ("SECOND".equals(type) ? "请导å
¥äºçº§ä¿å
»ææ¡£" : "请导å
¥ä¸çº§ä¿å
»ææ¡£")); |
| | | } |
| | | |
| | | EamMaintenanceStandard standard = extractDeviceInfo(table); |
| | | if (standard == null) { |
| | | return Result.error(fileName + ": 设å¤ä¿¡æ¯æå失败"); |
| | | } |
| | | |
| | | // é
置类åç¸å
³åæ° |
| | | configureStandard(standard, type, file); |
| | | eamMaintenanceStandardMapper.insert(standard); |
| | | String standardId = standard.getId(); |
| | | |
| | | // æåä¿å
»é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> items; |
| | | if ("SECOND".equals(type)) { |
| | | items = extractSecondMaintenanceItems(table, standardId); |
| | | } else if ("THIRD".equals(type)) { |
| | | items = extractThirdMaintenanceItems(table, standardId); |
| | | } else { |
| | | return Result.error(fileName + ": 䏿¯æçä¿å
»ç±»å: " + type); |
| | | } |
| | | |
| | | // 项ç®éªè¯ |
| | | if (items.isEmpty()) { |
| | | return Result.error(fileName + ": æªæåå°ä»»ä½ä¿å
»é¡¹ç®"); |
| | | } |
| | | |
| | | // ä¿åé¡¹ç® |
| | | eamMaintenanceStandardDetailService.saveBatch(items); |
| | | |
| | | return Result.ok(fileName + ": 导å
¥æå, é¡¹ç®æ°: " + items.size()); |
| | | |
| | | } catch (ImportException e) { |
| | | return Result.error(e.getMessage()); |
| | | } catch (Exception e) { |
| | | return Result.error(fileName + ": ç³»ç»é误 - " + e.getClass().getSimpleName()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ææ¡£ç±»åæ ¡éª - 鲿¢äºä¿ä¼ å
¥ä¸ä¿æåä¹ |
| | | */ |
| | | private boolean isWrongDocumentType(XWPFTable table, String requestedType) { |
| | | boolean hasRepairTitle = false; |
| | | boolean hasOperatorTitle = false; |
| | | boolean hasMaintenancePart = false; |
| | | |
| | | // åªæ£æ¥å10è¡ï¼é常æ é¢å¨åå è¡ï¼ |
| | | int maxRows = Math.min(table.getNumberOfRows(), 10); |
| | | |
| | | for (int i = 0; i < maxRows; i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null) continue; |
| | | |
| | | // æ£æ¥ææåå
æ ¼å
容 |
| | | for (int j = 0; j < row.getTableCells().size(); j++) { |
| | | String cellText = getCellText(row.getCell(j)); |
| | | |
| | | // æ£æ¥äºçº§ä¿å
»ç¹å¾ |
| | | if (cellText.contains(REPAIR_TITLE)) { |
| | | hasRepairTitle = true; |
| | | } |
| | | if (cellText.contains(OPERATOR_TITLE)) { |
| | | hasOperatorTitle = true; |
| | | } |
| | | |
| | | // æ£æ¥ä¸çº§ä¿å
»ç¹å¾ |
| | | if (cellText.contains("ä¿å
»é¨ä½")) { |
| | | hasMaintenancePart = true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // é»è¾å¤æ |
| | | if ("SECOND".equals(requestedType)) { |
| | | // å¦æè¯·æ±å¯¼å
¥äºçº§ä¿å
»ï¼ä½ææ¡£ä¸æä¸çº§ä¿å
»ç¹å¾ |
| | | return !(hasRepairTitle || hasOperatorTitle) || hasMaintenancePart; |
| | | } else if ("THIRD".equals(requestedType)) { |
| | | // å¦æè¯·æ±å¯¼å
¥ä¸çº§ä¿å
»ï¼ä½ææ¡£ä¸æäºçº§ä¿å
»ç¹å¾ |
| | | return !hasMaintenancePart || (hasRepairTitle || hasOperatorTitle); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * æå设å¤åºæ¬ä¿¡æ¯ |
| | | */ |
| | | private EamMaintenanceStandard extractDeviceInfo(XWPFTable table) { |
| | | if (table.getNumberOfRows() < 2) return null; |
| | | |
| | | // æååä¸¤è¡æ°æ® |
| | | Map<String, String> row1Data = extractRowData(table.getRow(0)); |
| | | Map<String, String> row2Data = extractRowData(table.getRow(1)); |
| | | |
| | | // åå»ºè®¾å¤æ å对象 |
| | | EamMaintenanceStandard standard = new EamMaintenanceStandard(); |
| | | standard.setEquipmentText(row1Data.get("设å¤ç±»å«")); |
| | | standard.setEquipmentCode(row1Data.get("设å¤ç¼å·")); |
| | | standard.setEquipmentName(row2Data.get("设å¤åç§°")); |
| | | standard.setEquipmentModel(row2Data.get("设å¤åå·")); |
| | | |
| | | // å
³è设å¤ID |
| | | if (isNotBlank(standard.getEquipmentCode()) && |
| | | isNotBlank(standard.getEquipmentName())) { |
| | | |
| | | List<EamEquipment> equipments = eamEquipmentService.list( |
| | | new QueryWrapper<EamEquipment>() |
| | | .eq("equipment_code", standard.getEquipmentCode()) |
| | | .eq("equipment_name", standard.getEquipmentName()) |
| | | ); |
| | | |
| | | if (!equipments.isEmpty()) { |
| | | standard.setEquipmentId(equipments.get(0).getId()); |
| | | }else { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | return standard; |
| | | } |
| | | |
| | | // ç®æçå符串éç©ºå¤æ |
| | | private boolean isNotBlank(String str) { |
| | | return str != null && !str.trim().isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * è¡¨æ ¼è¡æ°æ®è§£æ |
| | | */ |
| | | private Map<String, String> extractRowData(XWPFTableRow row) { |
| | | Map<String, String> data = new HashMap<>(); |
| | | int cellCount = row.getTableCells().size(); |
| | | |
| | | try { |
| | | // é®å¼å¯¹æ¨¡å¼ (æ ç¾|å¼|æ ç¾|å¼) |
| | | if (cellCount >= 4 && cellCount % 2 == 0) { |
| | | for (int i = 0; i < cellCount; i += 2) { |
| | | String key = cleanKey(getCellText(row.getCell(i))); |
| | | String value = getCellText(row.getCell(i + 1)); |
| | | if (!key.isEmpty()) data.put(key, value); |
| | | } |
| | | } |
| | | // è¿ç»åå
æ ¼æ¨¡å¼ |
| | | else { |
| | | for (int i = 0; i < cellCount; i++) { |
| | | String text = getCellText(row.getCell(i)); |
| | | int colonIndex = text.indexOf('ï¼'); |
| | | if (colonIndex > 0) { |
| | | String key = cleanKey(text.substring(0, colonIndex)); |
| | | String value = text.substring(colonIndex + 1); |
| | | data.put(key, value); |
| | | } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("è¡æ°æ®è§£æå¼å¸¸", e); |
| | | } |
| | | return data; |
| | | } |
| | | |
| | | /** |
| | | * é®åæ ååå¤ç |
| | | */ |
| | | private String cleanKey(String key) { |
| | | if (key == null) return ""; |
| | | // ç§»é¤ç©ºæ ¼å䏿åå· |
| | | return key.replaceAll("\\s", "").replace("ï¼", ""); |
| | | } |
| | | |
| | | /** |
| | | * é
ç½®ä¿å
»æ ååæ° |
| | | */ |
| | | private void configureStandard(EamMaintenanceStandard standard, String type, MultipartFile file) { |
| | | // åºç¡åæ° |
| | | String filename = file.getOriginalFilename(); |
| | | if (filename != null && filename.contains(".")) { |
| | | filename = filename.substring(0, filename.lastIndexOf('.')); |
| | | } |
| | | |
| | | standard.setStandardName(filename) |
| | | .setInitialDate(new Date()) |
| | | .setStandardStatus(MaintenanceStandardStatusEnum.START.name()) |
| | | .setStandardVersion("v1.0") |
| | | .setDelFlag(0) |
| | | .setStandardCode(businessCodeRuleService.generateBusinessCodeSeq( |
| | | BusinessCodeConst.MAINTENANCE_STANDARD_CODE_RULE |
| | | )); |
| | | |
| | | // ç±»åç¹å®åæ° |
| | | if ("SECOND".equals(type)) { |
| | | standard.setMaintenanceCategory("SECOND_MAINTENANCE") |
| | | .setMaintenancePeriod(6) |
| | | .setPeriodUnit("æ"); |
| | | } else { |
| | | standard.setMaintenanceCategory("THIRD_MAINTENANCE") |
| | | .setPeriodUnit("å¹´"); |
| | | |
| | | // è·åä¸çº§ä¿å
»å¨æ |
| | | if (standard.getEquipmentId() != null) { |
| | | EamEquipmentExtend extend = eamEquipmentExtendService.getById(standard.getEquipmentId()); |
| | | if (extend != null) { |
| | | standard.setMaintenancePeriod(extend.getThirdMaintenancePeriod()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æåäºçº§ä¿å
»é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractSecondMaintenanceItems( |
| | | XWPFTable table, String standardId) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | EamMaintenanceStandardDetailCategory currentCategory = null; |
| | | |
| | | for (int i = 0; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null) continue; |
| | | |
| | | // æ£æ¥æ¯å¦æ¯æ é¢è¡ï¼ç»´ä¿®äººåä¿å
Ȍ
容ææä½äººåä¿å
Ȍ
å®¹ï¼ |
| | | String firstCell = getCellText(row.getCell(0)); |
| | | if (firstCell != null) { |
| | | for (String title : SECOND_CATEGORY_MAPPING.keySet()) { |
| | | if (firstCell.contains(title)) { |
| | | currentCategory = SECOND_CATEGORY_MAPPING.get(title); |
| | | |
| | | // æ£æ¥ç¬¬äºåå第ä¸åæ¯å¦æ¯"åºå·"å"ä¿å
Ȍ
容" |
| | | if (row.getTableCells().size() > 2) { |
| | | String secondCell = getCellText(row.getCell(1)); |
| | | String thirdCell = getCellText(row.getCell(2)); |
| | | |
| | | // æç¡®è·³è¿æ é¢è¡ |
| | | if ("åºå·".equals(secondCell) && "ä¿å
Ȍ
容".equals(thirdCell)) { |
| | | continue; // è·³è¿è¿ä¸è¡ |
| | | } |
| | | } |
| | | |
| | | // å°è¯æåæ é¢è¡ä¸ç项ç®ï¼å¦æåå¨ï¼ |
| | | if (row.getTableCells().size() > 2) { |
| | | String content = getCellText(row.getCell(2)); |
| | | if (content != null && !content.trim().isEmpty() && |
| | | !"ä¿å
Ȍ
容".equals(content.trim())) { // è¿æ»¤æ æå
容 |
| | | items.add(createItem(currentCategory, content.trim(), standardId)); |
| | | } |
| | | } |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // å¤çæ®é项ç®è¡ |
| | | if (currentCategory != null && isValidItemRow(row)) { |
| | | // è·åå
容 |
| | | String content = row.getTableCells().size() > 2 ? |
| | | getCellText(row.getCell(2)) : ""; |
| | | |
| | | // æé¤æ é¢å
容 |
| | | if ("ä¿å
Ȍ
容".equals(content) || |
| | | "åºå·".equals(content) || |
| | | content.contains("维修人åä¿å
Ȍ
容") || |
| | | content.contains("æä½äººåä¿å
Ȍ
容")) { |
| | | continue; |
| | | } |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory(String.valueOf(currentCategory)); |
| | | item.setStandardId(standardId); |
| | | item.setItemName(cleanContent(content)); |
| | | |
| | | // å¤çåºå·ï¼ç¬¬äºåï¼ |
| | | if (row.getTableCells().size() > 1) { |
| | | String seqText = getCellText(row.getCell(1)); |
| | | try { |
| | | if (seqText != null && !seqText.trim().isEmpty()) { |
| | | item.setItemCode(Integer.parseInt(seqText.trim())); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | // 忽ç¥åºå·è§£æé误 |
| | | } |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * å建ä¿å
»é¡¹ç® |
| | | */ |
| | | private EamMaintenanceStandardDetail createItem( |
| | | EamMaintenanceStandardDetailCategory category, |
| | | String content, |
| | | String standardId) { |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory(category.name()); |
| | | item.setStandardId(standardId); |
| | | item.setItemName(cleanContent(content)); |
| | | return item; |
| | | } |
| | | |
| | | /** |
| | | * æåä¸çº§ä¿å
»é¡¹ç®ï¼æ ç±»åï¼ |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractThirdMaintenanceItems( |
| | | XWPFTable table, String standardId) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | String currentPart = ""; |
| | | int itemCount = 1; |
| | | |
| | | // ä»ç¬¬ä¸è¡å¼å§ï¼è·³è¿è¡¨å¤´å设å¤ä¿¡æ¯ï¼ |
| | | for (int i = 2; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null || isRowEmpty(row)) continue; |
| | | |
| | | // è·³è¿"ä¿å
»é¨ä½"æ é¢è¡ |
| | | String firstCell = getCellText(row.getCell(0)); |
| | | if ("ä¿å
»é¨ä½".equals(firstCell)) { |
| | | continue; |
| | | } |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | // ä¸çº§ä¿å
»ä¸éè¦ç±»åï¼ä¸è®¾ç½®itemCategory |
| | | item.setStandardId(standardId); |
| | | item.setItemCode(itemCount++); |
| | | |
| | | // å¤çé¨ä½å |
| | | if (!row.getTableCells().isEmpty()) { |
| | | String partCell = getCellText(row.getCell(0)); |
| | | if (!partCell.trim().isEmpty()) { |
| | | currentPart = partCell.trim(); |
| | | } |
| | | } |
| | | item.setItemPart(currentPart); |
| | | |
| | | // æ ¹æ®åæ°ç¡®å®å
å®¹åæ åçä½ç½® |
| | | int cellCount = row.getTableCells().size(); |
| | | if (cellCount == 3) { // é¨ä½|å
容|æ å |
| | | item.setItemName(getCellText(row.getCell(1))); |
| | | item.setItemDemand(getCellText(row.getCell(2))); |
| | | } |
| | | else if (cellCount == 2) { // å
容|æ å |
| | | item.setItemName(getCellText(row.getCell(0))); |
| | | item.setItemDemand(getCellText(row.getCell(1))); |
| | | } |
| | | else if (cellCount == 1) { // ååå
容 |
| | | item.setItemName(getCellText(row.getCell(0))); |
| | | } |
| | | else if (cellCount > 3) { // å¤åå¤ç |
| | | // å第2åä½ä¸ºå
å®¹ï¼æåä¸åä½ä¸ºæ å |
| | | item.setItemName(getCellText(row.getCell(1))); |
| | | item.setItemDemand(getCellText(row.getCell(cellCount - 1))); |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * å
¼å®¹çåå
æ ¼ææ¬æå |
| | | */ |
| | | private String getCellText(XWPFTableCell cell) { |
| | | if (cell == null) return ""; |
| | | |
| | | StringBuilder text = new StringBuilder(); |
| | | for (XWPFParagraph para : cell.getParagraphs()) { |
| | | if (para != null) { |
| | | for (XWPFRun run : para.getRuns()) { |
| | | if (run != null) { |
| | | String runText = run.getText(0); |
| | | if (runText != null) { |
| | | text.append(runText); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return text.toString(); |
| | | } |
| | | |
| | | /** |
| | | * å
容æ¸
ç |
| | | */ |
| | | private String cleanContent(String text) { |
| | | if (text == null) return ""; |
| | | |
| | | // æ¿æ¢ç¹æ®ç©ºæ ¼ååå¹¶è¿ç»ç©ºæ ¼ |
| | | text = text.replace('\u00A0', ' ') |
| | | .replace('\u2007', ' ') |
| | | .replace('\u202F', ' ') |
| | | .replaceAll("\\s+", " "); |
| | | |
| | | // è§èæ ç¹ç¬¦å· |
| | | return text.replace(',', 'ã') |
| | | .replace('ï¼', 'ã') |
| | | .replace(';', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .replace(':', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .trim(); |
| | | } |
| | | |
| | | /** |
| | | * éªè¯ææé¡¹ç®è¡ |
| | | */ |
| | | private boolean isValidItemRow(XWPFTableRow row) { |
| | | return row != null && |
| | | row.getTableCells().size() >= 2 && |
| | | !getCellText(row.getCell(1)).trim().isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * ç©ºè¡æ£æµ |
| | | */ |
| | | private boolean isRowEmpty(XWPFTableRow row) { |
| | | if (row == null) return true; |
| | | for (XWPFTableCell cell : row.getTableCells()) { |
| | | String text = getCellText(cell); |
| | | if (text != null && !text.trim().isEmpty()) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /*导å
¥äºä¿ä¸ä¿æä»¶Excel--------------------------ç»æ*/ |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationStandardDetailMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§èæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationStandardDetailServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationStandardDetailMapper, EamTechnicalStatusEvaluationStandardDetail> implements IEamTechnicalStatusEvaluationStandardDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | 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 org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.SimpleVersionGenerateUtil; |
| | | import org.jeecg.modules.eam.base.entity.BaseFactory; |
| | | import org.jeecg.modules.eam.base.entity.BaseFactoryUser; |
| | | import org.jeecg.modules.eam.base.service.IBaseFactoryService; |
| | | import org.jeecg.modules.eam.base.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.eam.constant.MaintenanceStandardStatusEnum; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationStandardEnum; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandardDetail; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationStandardMapper; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardDetailService; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-07 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationStandardServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationStandardMapper, EamTechnicalStatusEvaluationStandard> implements IEamTechnicalStatusEvaluationStandardService { |
| | | |
| | | @Autowired |
| | | private IBaseFactoryUserService baseFactoryUserService; |
| | | @Autowired |
| | | private IBaseFactoryService baseFactoryService; |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationStandardDetailService standardDetailService; |
| | | |
| | | @Override |
| | | public IPage<EamTechnicalStatusEvaluationStandard> queryPageList(Page<EamTechnicalStatusEvaluationStandard> page, EamTechnicalStatusEvaluationStandard query) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationStandard> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("ems.del_flag", CommonConstant.DEL_FLAG_0); |
| | | //ç¨æ·æ°æ®æé |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | if (sysUser == null) { |
| | | return page; |
| | | } |
| | | if (StringUtils.isNotBlank(sysUser.getEamEquipmentIds())) { |
| | | //éæ©äºè®¾å¤ï¼æ ¹æ®è®¾å¤idè¿æ»¤è®¾å¤ |
| | | List<String> equipArr = Arrays.asList(sysUser.getEamEquipmentIds().split(",")); |
| | | queryWrapper.in("e.equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®ä¸å¿è¿æ»¤è®¾å¤ |
| | | List<BaseFactoryUser> baseFactoryUserList = baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, sysUser.getId())); |
| | | if (!CollectionUtils.isEmpty(baseFactoryUserList)) { |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | queryWrapper.in("e.factory_code", factoryCode); |
| | | } else { |
| | | return page; |
| | | } |
| | | } |
| | | if (query != null) { |
| | | //ç¼ç æ¨¡ç³æ¥è¯¢ |
| | | if (StringUtils.isNotBlank(query.getStandardCode())) { |
| | | queryWrapper.like("ems.standard_code", query.getStandardCode()); |
| | | } |
| | | //åç§° æ¨¡ç³æ¥è¯¢ |
| | | if (StringUtils.isNotBlank(query.getStandardName())) { |
| | | queryWrapper.like("ems.standard_name", query.getStandardName()); |
| | | } |
| | | //è®¾å¤ |
| | | if (StringUtils.isNotBlank(query.getEquipmentId())) { |
| | | queryWrapper.eq("ems.equipment_id", query.getEquipmentId()); |
| | | } |
| | | |
| | | //ä¿å
»åç±» |
| | | if (StringUtils.isNotBlank(query.getStandardStatus())) { |
| | | queryWrapper.eq("ems.standard_status", query.getStandardStatus()); |
| | | } |
| | | } |
| | | queryWrapper.orderByDesc("ems.create_time"); |
| | | return this.getBaseMapper().queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean addEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request) { |
| | | EamTechnicalStatusEvaluationStandard entity = new EamTechnicalStatusEvaluationStandard(); |
| | | BeanUtils.copyProperties(request, entity); |
| | | entity.setStandardStatus(TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name()); |
| | | //çæ¬éå¢ |
| | | entity.setStandardVersion(SimpleVersionGenerateUtil.getInitVersion()); |
| | | //设å¤å¤ç |
| | | entity.setEquipmentId(request.getEquipmentId()); |
| | | //å 餿 è®° |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | //é夿§æ ¡éª |
| | | EamTechnicalStatusEvaluationStandard exist = checkDuplicate(entity.getEquipmentId(), null); |
| | | if(exist != null){ |
| | | throw new JeecgBootException("è§èå·²åå¨ï¼ä¸è½é夿·»å ï¼"); |
| | | } |
| | | this.getBaseMapper().insert(entity); |
| | | //å¤çæç»æ°æ® |
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setStandardId(entity.getId()); |
| | | }); |
| | | standardDetailService.saveBatch(request.getTableDetailList()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public EamTechnicalStatusEvaluationStandard checkDuplicate(String equipmentId, String id) { |
| | | LambdaQueryWrapper<EamTechnicalStatusEvaluationStandard> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(EamTechnicalStatusEvaluationStandard::getEquipmentId, equipmentId); |
| | | queryWrapper.eq(EamTechnicalStatusEvaluationStandard::getDelFlag, CommonConstant.DEL_FLAG_0); |
| | | //å¾
æäº¤ãå¯ç¨ç¶æ |
| | | queryWrapper.in(EamTechnicalStatusEvaluationStandard::getStandardStatus, Arrays.asList(TechnicalStatusEvaluationStandardEnum.ENABLE.name(), TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name())); |
| | | queryWrapper.orderByDesc(EamTechnicalStatusEvaluationStandard::getStandardVersion); |
| | | if(StringUtils.isNotBlank(id)){ |
| | | queryWrapper.ne(EamTechnicalStatusEvaluationStandard::getId, id); |
| | | } |
| | | List<EamTechnicalStatusEvaluationStandard> list = this.getBaseMapper().selectList(queryWrapper); |
| | | if(CollectionUtil.isEmpty(list)) { |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean editEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request) { |
| | | EamTechnicalStatusEvaluationStandard entity = this.getBaseMapper().selectById(request.getId()); |
| | | if(entity == null){ |
| | | throw new JeecgBootException("ç¼è¾çæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | entity.setStandardName(request.getStandardName()); |
| | | entity.setEvaluationPeriod(request.getEvaluationPeriod()); |
| | | this.getBaseMapper().updateById(entity); |
| | | //å¤ç详æ
|
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | List<EamTechnicalStatusEvaluationStandardDetail> addList = new ArrayList<>(); |
| | | List<EamTechnicalStatusEvaluationStandardDetail> updateList = new ArrayList<>(); |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setStandardId(entity.getId()); |
| | | if(tableDetail.getId() == null){ |
| | | addList.add(tableDetail); |
| | | }else { |
| | | updateList.add(tableDetail); |
| | | } |
| | | }); |
| | | if(CollectionUtil.isNotEmpty(addList)){ |
| | | standardDetailService.saveBatch(addList); |
| | | } |
| | | if(CollectionUtil.isNotEmpty(updateList)){ |
| | | standardDetailService.updateBatchById(updateList); |
| | | } |
| | | } |
| | | if(CollectionUtil.isNotEmpty(request.getRemoveDetailList())) { |
| | | List<String> ids = request.getRemoveDetailList().stream().map(EamTechnicalStatusEvaluationStandardDetail::getId).collect(Collectors.toList()); |
| | | standardDetailService.removeBatchByIds(ids); |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | |
| | | package org.jeecg.modules.system.model; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.modules.system.entity.EamBaseRepairDepart; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | private String createBy; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | private String updateBy; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |