Merge remote-tracking branch 'origin/master'
| | |
| | | "avatar": "", |
| | | "version": "4.9.2", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-6-6 10:13:46", |
| | | "updatedTime": "2025-6-9 10:59:32", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | "#DDE5FF" |
| | | ], |
| | | "DDLToggleCase": "L", |
| | | "menuWidth": "336px" |
| | | "menuWidth": "420px" |
| | | }, |
| | | "entities": [ |
| | | { |
| | |
| | | "id": "F0A26536-E486-44CE-A4D8-874A7753D20D" |
| | | }, |
| | | { |
| | | "defKey": "repair_confirm", |
| | | "defName": "维修确认", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
| | | "id": "74A93393-824F-4652-9A66-E9BA869A03A9" |
| | | }, |
| | | { |
| | | "defKey": "repair_confirm_comment", |
| | | "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": "7658B2A6-A43B-4C1D-BAFD-93ADC3422234" |
| | | }, |
| | | { |
| | | "defKey": "repair_confirm_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": "E3BD4018-31D8-412D-AD9C-00ED3F068906" |
| | | }, |
| | | { |
| | | "defKey": "fault_reason", |
| | | "defName": "æ
éåå ", |
| | | "comment": "", |
| | |
| | | }, |
| | | { |
| | | "defKey": "repairer", |
| | | "defName": "ç»´ä¿®è´è´£äºº", |
| | | "defName": "维修人", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "id": "39B6A4DB-4B2F-4997-BE68-04267F517AD6" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_flag", |
| | | "defName": "æ¯å¦å§å¤", |
| | | "defKey": "leader_user", |
| | | "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": "BE863706-C9DD-45D3-9303-4180F1A444E2" |
| | | }, |
| | | { |
| | | "defKey": "leader_confirm", |
| | | "defName": "é¢å¯¼ç¡®è®¤ç»æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
| | | "id": "DA146E97-BBC5-4384-A5BB-DDC93B583CE5" |
| | | "id": "958A9D56-586D-483A-B670-EA3351BEEF50" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_repair_decription", |
| | | "defName": "å§å¤ç»´ä¿®æè¿°", |
| | | "defKey": "leader_confirm_comment", |
| | | "defName": "é¢å¯¼æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "69CB22EB-2B80-49A7-B805-7C4F1F1C1CB2" |
| | | "id": "F7BAD961-9011-4A25-B80B-7D6865B93F92" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_start_time", |
| | | "defName": "å§å¤ç»´ä¿®å¼å§æ¶é´", |
| | | "defKey": "leader_confirm_time", |
| | | "defName": "é¢å¯¼ç¡®è®¤æ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "FA66CD6A-B56E-4498-B9CA-51DFE0C04AE5" |
| | | "id": "32CAA017-36BD-4EB3-B4E5-88F972CEE9CD" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_end_time", |
| | | "defName": "å§å¤ç»´ä¿®ç»ææ¶é´", |
| | | "defKey": "external_repairer", |
| | | "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": "AC27EA79-E7DA-4B72-B39B-8ECA8D968958" |
| | | }, |
| | | { |
| | | "defKey": "external_confirm", |
| | | "defName": "æºå¨åç¡®è®¤ç»æ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
| | | "id": "ED829432-3B4C-49D4-8B91-05DF171070E9" |
| | | }, |
| | | { |
| | | "defKey": "external_confirm_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": "16D85E43-DC62-4809-BC8C-8274A8EACD4C" |
| | | }, |
| | | { |
| | | "defKey": "external_confirm_time", |
| | | "defName": "æºå¨å确认æ¶é´", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
| | | "extProps": {}, |
| | | "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
| | | "id": "C48C41A7-1AC7-43E4-98D8-DEFEE359B4AA" |
| | | "id": "1FFC3F79-6226-4B7C-9F96-233CCEB9FE6E" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_person", |
| | | "defKey": "outsourced_user", |
| | | "defName": "å§å¤è´è´£äºº", |
| | | "comment": "", |
| | | "type": "", |
| | |
| | | "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075" |
| | | }, |
| | | { |
| | | "defKey": "is_use_spare", |
| | | "defName": "æ¯å¦é¢ç¨å¤ä»¶", |
| | | "defKey": "confirmer", |
| | | "defName": "æä½å·¥", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
| | | "id": "36816184-4B15-4AC7-A460-4E8EC004871D" |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "D12E8E73-B626-404F-9C60-E1D260F2DD9C" |
| | | }, |
| | | { |
| | | "defKey": "spare_part_description", |
| | | "defName": "å¤ä»¶æè¿°", |
| | | "defKey": "confirm_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": "73F12932-B17A-43D7-8ABE-E492DBD081A4" |
| | | }, |
| | | { |
| | | "defKey": "confirm_comment", |
| | | "defName": "æä½å·¥ç¡®è®¤æè§", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "3945E6D0-A58E-4B40-AFDA-6D8D477DE78F" |
| | | "id": "D78104A0-7502-4867-BE4D-6727F35FAE54" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | |
| | | "id": "85CDAFC1-967B-4CB3-982E-8E8BF03A09BC" |
| | | }, |
| | | { |
| | | "defKey": "equipment_id", |
| | | "defName": "设å¤ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "6903B4C4-A6B4-41CE-9738-55F019462350", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "repair_type", |
| | | "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": "19D358EF-F8CA-4B59-9174-DBF9D9031D15" |
| | | }, |
| | | { |
| | | "defKey": "plan_start_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": "A7BF0506-46FD-49EB-94F4-6D1FB00364B6" |
| | | }, |
| | | { |
| | | "defKey": "plan_end_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": "AFB42D15-7B7C-472C-80C3-0C99A8D45E37" |
| | | }, |
| | | { |
| | | "defKey": "repair_code", |
| | | "defName": "ç»´ä¿®ç¼ç ", |
| | | "comment": "", |
| | |
| | | }, |
| | | { |
| | | "defKey": "repair_name", |
| | | "defName": "ç»´ä¿®åç§°", |
| | | "defName": "项ç®åç§°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "6A9F4674-955E-4632-ADE4-37B8642F302F" |
| | | }, |
| | | { |
| | | "defKey": "repair_type", |
| | | "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": "19D358EF-F8CA-4B59-9174-DBF9D9031D15" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | | "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": "BAF0FBEF-F52F-4C30-B32C-50804ECDBA5E" |
| | | }, |
| | | { |
| | | "defKey": "applicant_production", |
| | | "defName": "ç³è¯·è½¦é´", |
| | | "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": "A676B900-E220-48C2-8D39-897C7510CE7D" |
| | | }, |
| | | { |
| | | "defKey": "plan_start_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": "A7BF0506-46FD-49EB-94F4-6D1FB00364B6" |
| | | }, |
| | | { |
| | | "defKey": "plan_end_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": "AFB42D15-7B7C-472C-80C3-0C99A8D45E37" |
| | | }, |
| | | { |
| | | "defKey": "actual_start_time", |
| | |
| | | "id": "9E38846A-B6B9-4758-80AB-D516B7069740" |
| | | }, |
| | | { |
| | | "defKey": "attachment", |
| | | "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": "A7DC8D03-1A32-4B93-8CCA-C640BC4B3C23" |
| | | }, |
| | | { |
| | | "defKey": "repair_description", |
| | | "defName": "ç»´ä¿®æè¿°", |
| | | "defKey": "fault_description", |
| | | "defName": "æ
éæè¿°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "id": "3A15FA62-968C-4BF4-B0AD-BBDC1403714F" |
| | | }, |
| | | { |
| | | "defKey": "repair_method", |
| | | "defName": "ç»´ä¿®æ¹å¼", |
| | | "defKey": "applicant_reason", |
| | | "defName": "ç³è¯·åå ", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "98FEFCC8-35AE-449E-A871-3EC16A77EE8B" |
| | | }, |
| | | { |
| | | "defKey": "outsourced_company", |
| | | "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": "D603234A-461B-49B8-93C1-4712D7B44F43" |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "B04C4899-7FB7-45DA-B14C-BB23498403A5" |
| | | }, |
| | | { |
| | | "defKey": "responsible_person", |
| | |
| | | "extProps": {}, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "id": "9371C30D-BFE6-4A65-879D-3F9FCEF04422" |
| | | }, |
| | | { |
| | | "defKey": "remark", |
| | | "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": "C44003D7-D3F9-4C2C-98F2-E85D64731D4B" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | |
| | | "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": "7CF8393A-0CF1-41F7-B042-8E39796F1EE0" |
| | | }, |
| | | { |
| | | "defKey": "emergency_degree", |
| | | "defName": "ç´§æ¥ç¨åº¦", |
| | | "defKey": "equipment_id", |
| | | "defName": "设å¤ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "D7EDEEBD-6CA9-419D-B501-B763E8EAB296" |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "id": "FB7C630E-7620-4FAF-B7B3-993C35C04380" |
| | | }, |
| | | { |
| | | "defKey": "unit_price", |
| | | "defName": "åä»·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
| | | "extProps": {}, |
| | | "domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
| | | "id": "CF1BDE59-06BB-4C63-9D87-FEAA51BCD77B" |
| | | }, |
| | | { |
| | | "defKey": "repair_result", |
| | |
| | | "attr9": "", |
| | | "id": "C45C1700-635C-4F3B-B92F-D488BB4BB27A", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "scrap_status", |
| | | "defName": "æ¥åºç¶æ", |
| | | "comment": "1ï¼å¾
æ¥åºï¼2ï¼å·²æ¥åº", |
| | | "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": "DD95E111-E409-44AE-A481-B88D5ED11766" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | |
| | | ], |
| | | "correlations": [], |
| | | "notes": {} |
| | | }, |
| | | { |
| | | "id": "7BD6579A-5569-4F7F-A8B3-CA17908A43AC", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_equipment_purchase_plan", |
| | | "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": "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": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "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": "70E16932-3261-4AAE-BCF4-E513D3F2AB16" |
| | | }, |
| | | { |
| | | "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": "100D82CC-D045-479B-A211-4063271207F7", |
| | | "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": "DE68092A-CBAC-49A0-B96B-75503C53AFD7", |
| | | "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": "97945365-94EE-4CBC-B0B4-27ADAD68F798", |
| | | "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": "081C0F7E-C583-4522-823D-FE2A4E17BB25", |
| | | "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": "5AD25E7A-6B4A-4462-8F76-AC05660FF9DC" |
| | | }, |
| | | { |
| | | "defKey": "plan_name", |
| | | "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": "C757C668-468C-4A05-BEFC-F40A19F14338" |
| | | }, |
| | | { |
| | | "defKey": "plan_code", |
| | | "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": "E0EFB1AC-0AFE-426F-A307-0F104DA5B02A" |
| | | }, |
| | | { |
| | | "defKey": "plan_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": "8E41BF7D-AB4F-4C75-951A-58DC90370E80" |
| | | }, |
| | | { |
| | | "defKey": "equipment_model", |
| | | "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": "9565E68F-6079-40CB-9C87-8352DF1E7699" |
| | | }, |
| | | { |
| | | "defKey": "purchase_number", |
| | | "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": "70268A4D-EC14-4389-8B7D-67A306878886" |
| | | }, |
| | | { |
| | | "defKey": "estimated_unit_price", |
| | | "defName": "é¢è®¡åä»·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
| | | "extProps": {}, |
| | | "domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
| | | "id": "DBAD45BD-25D9-429B-ACAD-7D04E61830ED" |
| | | }, |
| | | { |
| | | "defKey": "total_price", |
| | | "defName": "æ»ä»·", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
| | | "extProps": {}, |
| | | "domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
| | | "id": "751CC71D-DC9A-46E1-B1BE-C3F3F03FE62A" |
| | | }, |
| | | { |
| | | "defKey": "overall_contract_amount", |
| | | "defName": "ååæ»éé¢", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
| | | "extProps": {}, |
| | | "domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
| | | "id": "643CC9A0-34DE-4409-93AB-9FEB2BA6A026" |
| | | }, |
| | | { |
| | | "defKey": "equipment_importance", |
| | | "defName": "ABCæ è¯(管çåç±»)", |
| | | "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": "108879A4-40F9-4829-A3D9-1A4C87219838" |
| | | }, |
| | | { |
| | | "defKey": "plan_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": "25F8D58C-A2B6-4A14-9398-F0988F362834" |
| | | }, |
| | | { |
| | | "defKey": "applicant", |
| | | "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": "377544C4-9A38-40EA-A036-89F1AD9BA6B4" |
| | | }, |
| | | { |
| | | "defKey": "applicant_production", |
| | | "defName": "ç³è¯·è½¦é´", |
| | | "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": "A6E80149-A12F-4659-A875-9C3A231B62FB" |
| | | }, |
| | | { |
| | | "defKey": "plan_start_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": "7C0317FE-3DB9-422A-8CAB-38BCE0D7C5B3" |
| | | }, |
| | | { |
| | | "defKey": "plan_end_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": "96B68373-7BA6-4B11-B996-85064E58FB2B" |
| | | }, |
| | | { |
| | | "defKey": "plan_description", |
| | | "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": "F45CEBBC-B9A2-4D43-B92A-1AF7DAB57404" |
| | | }, |
| | | { |
| | | "defKey": "related_departs", |
| | | "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": "21A927DB-4353-4139-B089-B47CAE3AAACD" |
| | | }, |
| | | { |
| | | "defKey": "remark", |
| | | "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": "2F7EDE10-5B72-46E8-A7FF-895280887508" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "3EDC2496-813C-427C-9456-C04253A4B06A", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_purchase_plan_attachment", |
| | | "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": "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": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "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": "8E112BE0-FF7F-4177-A215-523379C39964" |
| | | }, |
| | | { |
| | | "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": "6CC7CF9F-D8D3-4B4C-B7D0-14BBF01D970D", |
| | | "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": "4C7CB8E4-70FD-46D0-91B3-00D4FF9C6F40", |
| | | "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": "E164EEEB-C23A-44C4-8162-3DFEE06847B3", |
| | | "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": "292340D3-D2B2-4022-A749-FD965C9376FA", |
| | | "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098" |
| | | }, |
| | | { |
| | | "defKey": "plan_id", |
| | | "defName": "计åID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "B9190341-C37B-4BA3-A3F1-1A88C7DA4BD5", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "file_encode_name", |
| | | "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": "018B7F70-B9F4-4A35-993A-DDA3844690D3", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "file_name", |
| | | "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": "AC1A9B68-9223-4B80-BBD0-12137AEC946A", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "file_path", |
| | | "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": "F4A78F44-220C-462C-A27B-6B5715F13D09", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "file_suffix", |
| | | "defName": "æä»¶åç¼å", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": true, |
| | | "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "20266E6B-28F9-469C-8489-E8874A771668", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "file_size", |
| | | "defName": "æä»¶å¤§å°", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "2E60DFAE-915E-4328-AEE2-6ED5FB43BAF5", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "0770FBC9-FB9E-42DC-9FA4-85BD7BDA6BB1", |
| | | "baseType": "A48A12F5-2E10-4F0A-8449-60887F0D30E0" |
| | | }, |
| | | { |
| | | "defKey": "description", |
| | | "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": "0F1A1409-2FAC-4EE1-81EC-E41BB2E57D56", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "46306C3F-BCD6-4EF3-9D5A-ABFFCE89F519", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_fluid", |
| | | "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": "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": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "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": "279D367E-55FC-4456-878A-84ABD78F8E6E" |
| | | }, |
| | | { |
| | | "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": "1039A834-33CB-4F12-9EF5-8FD14D94ABFA", |
| | | "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": "6A4DB154-B0BC-428C-A3B8-887FC3DFA6DA", |
| | | "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": "900E517B-2931-43CB-BE9B-B1CBC4E1121A", |
| | | "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": "FC4ECAC9-F67E-45C1-8B45-B9760E3AEB65", |
| | | "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": "FE0C2577-7F4A-4516-A7D6-6E94616DEEE0" |
| | | }, |
| | | { |
| | | "defKey": "fluid_name", |
| | | "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": "9F1E7AC9-9CF6-4589-9F8A-F43B54590327" |
| | | }, |
| | | { |
| | | "defKey": "fluid_code", |
| | | "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": "F8D5CB8A-7528-45E4-83E8-7D928522EE5D" |
| | | }, |
| | | { |
| | | "defKey": "remark", |
| | | "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": "8BEB0101-F9E9-4D7A-BFE6-988569E8F5EC" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | }, |
| | | { |
| | | "id": "B5E08543-A1B9-4D84-944D-3883C1BFD8DC", |
| | | "env": { |
| | | "base": { |
| | | "nameSpace": "", |
| | | "codeRoot": "" |
| | | } |
| | | }, |
| | | "defKey": "eam_equipment_fluid", |
| | | "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": "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": "comment", |
| | | "freeze": false, |
| | | "hideInGraph": true |
| | | }, |
| | | { |
| | | "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": "2A49CE3C-D7B7-4832-99E2-D835045929BB" |
| | | }, |
| | | { |
| | | "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": "72D8BFD4-1D58-4616-977E-0C30AF1AEF91", |
| | | "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": "9A2E721C-2B3B-4974-825E-96EB1FE264D9", |
| | | "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": "3972E0CD-AA9D-4D9D-81A2-09EF81E385C5", |
| | | "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": "19AC25E3-49B7-4A9F-A2A0-93A0D0F409D3", |
| | | "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": "96D63F73-563A-4292-809B-61B43777B0B1" |
| | | }, |
| | | { |
| | | "defKey": "fluid_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": "7DE665B8-9D9E-4B9B-9955-E3B80A970C6C" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | | "indexes": [], |
| | | "type": "P" |
| | | } |
| | | ], |
| | | "views": [], |
| | |
| | | "71B42532-3485-411A-88FF-712C439AE60E", |
| | | "804A08AE-C5BE-49C9-BCA3-B6521C236EE1", |
| | | "918CE0CD-78C7-4BEF-95F3-BAE2C4F828ED", |
| | | "378CF92C-B63B-4D7F-84DF-5D2F84CE4753" |
| | | "378CF92C-B63B-4D7F-84DF-5D2F84CE4753", |
| | | "7BD6579A-5569-4F7F-A8B3-CA17908A43AC", |
| | | "3EDC2496-813C-427C-9456-C04253A4B06A", |
| | | "46306C3F-BCD6-4EF3-9D5A-ABFFCE89F519", |
| | | "B5E08543-A1B9-4D84-944D-3883C1BFD8DC" |
| | | ], |
| | | "refViews": [], |
| | | "refDiagrams": [], |
| | |
| | | break; |
| | | } |
| | | } |
| | | result.add(dictText); |
| | | if(StringUtils.isNotBlank(dictText)) { |
| | | result.add(dictText); |
| | | } |
| | | } |
| | | if(CollectionUtil.isEmpty(result)) { |
| | | return ""; |
| | | } |
| | | return String.join(",", result); |
| | | } |
| | |
| | | |
| | | public enum ReportRepairEnum { |
| | | WAIT_REPAIR, // å¾
ç»´ä¿® |
| | | WAIT_INTERNAL_CONFIRM, // å¾
维修确认 |
| | | UNDER_INTERNAL_REPAIR, // å
é¨ç»´ä¿®ä¸ |
| | | EXTERNAL_REPAIR_CONFIRM, // å¤é¨ç»´ä¿®ç¡®è®¤ä¸ 设å¤ç®¡çåï¼ |
| | | WAIT_EXTERNAL_RECEIVE, // å¾
æºå¨åæ¥å |
| | | WAIT_LEADER_CONFIRM, // å¾
é¢å¯¼ç¡®è®¤ 设å¤ç®¡çå |
| | | WAIT_EXTERNAL_CONFIRM, // å¾
æºå¨å确认 |
| | | UNDER_EXTERNAL_REPAIR, // æºå¨åç»´ä¿®ä¸ |
| | | UNDER_OUTSIDE_REPAIR, // å§å¤ç»´ä¿®ä¸ 责任人æ¯è°ï¼ |
| | | WAIT_CONFIRM, // å¾
确认 |
| | | WAIT_CONFIRM, // æä½å·¥å¾
确认 |
| | | COMPLETE, // 已宿 |
| | | ABOLISH, // å·²ä½åº |
| | | ; |
| | |
| | | */ |
| | | @Excel(name = "设å¤ID", width = 15) |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code") |
| | | // @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code") |
| | | private String equipmentId; |
| | | /** |
| | | * ç»´ä¿®ç¶æ |
| | |
| | | */ |
| | | @ApiModelProperty(value = "ç»´ä¿®ç»ææ¶é´") |
| | | private Date actualEndTime; |
| | | |
| | | /** |
| | | * æ¯å¦é¢ç¨å¤ä»¶ 1ï¼æ¯ 0ï¼å¦ |
| | | * ç»´ä¿®ç¡®è®¤ç»æ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦é¢ç¨å¤ä»¶") |
| | | private Integer isUseSpare; |
| | | @ApiModelProperty(value = "ç»´ä¿®ç¡®è®¤ç»æ") |
| | | @Dict(dicCode = "yn") |
| | | private String repairConfirm; |
| | | /** |
| | | * å¤ä»¶æè¿° |
| | | * 维修确认æè§ |
| | | */ |
| | | @ApiModelProperty(value = "å¤ä»¶æè¿°") |
| | | private String sparePartDescription; |
| | | @ApiModelProperty(value = "维修确认æè§") |
| | | private String repairConfirmComment; |
| | | /** |
| | | * 维修确认æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "维修确认æ¶é´") |
| | | private Date repairConfirmTime; |
| | | /** |
| | | * æ
éåå |
| | | */ |
| | |
| | | @ApiModelProperty(value = "ç»´ä¿®è´è´£äºº") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String repairer; |
| | | |
| | | /** |
| | | * æ¯å¦å§å¤ |
| | | * 确认é¢å¯¼ |
| | | */ |
| | | @Excel(name = "æ¯å¦å§å¤", width = 15) |
| | | @ApiModelProperty(value = "æ¯å¦å§å¤") |
| | | private String outsourcedFlag; |
| | | @ApiModelProperty(value = "确认é¢å¯¼") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String leaderUser; |
| | | /** |
| | | * å§å¤ç»´ä¿®æè¿° |
| | | * é¢å¯¼ç¡®è®¤ç»æ |
| | | */ |
| | | @Excel(name = "å§å¤ç»´ä¿®æè¿°", width = 15) |
| | | @ApiModelProperty(value = "å§å¤ç»´ä¿®æè¿°") |
| | | private String outsourcedRepairDescription; |
| | | @ApiModelProperty(value = "é¢å¯¼ç¡®è®¤ç»æ") |
| | | @Dict(dicCode = "yn") |
| | | private String leaderConfirm; |
| | | /** |
| | | * å§å¤ç»´ä¿®å¼å§æ¶é´ |
| | | * 确认æè§ |
| | | */ |
| | | @ApiModelProperty(value = "å§å¤ç»´ä¿®å¼å§æ¶é´") |
| | | private Date outsourcedStartTime; |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String leaderConfirmComment; |
| | | /** |
| | | * å§å¤ç»´ä¿®ç»ææ¶é´ |
| | | * 确认æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å§å¤ç»´ä¿®ç»ææ¶é´") |
| | | private Date outsourcedEndTime; |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date leaderConfirmTime; |
| | | /** |
| | | * æºå¨å维修人 |
| | | */ |
| | | @ApiModelProperty(value = "æºå¨å维修人") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String externalRepairer; |
| | | /** |
| | | * æºå¨åç¡®è®¤ç»æ |
| | | */ |
| | | @ApiModelProperty(value = "æºå¨åç¡®è®¤ç»æ") |
| | | @Dict(dicCode = "yn") |
| | | private String externalConfirm; |
| | | /** |
| | | * æºå¨å确认æè§ |
| | | */ |
| | | @ApiModelProperty(value = "æºå¨å确认æè§") |
| | | private String externalConfirmComment; |
| | | /** |
| | | * æºå¨å确认æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æºå¨å确认æ¶é´") |
| | | private Date externalConfirmTime; |
| | | /** |
| | | * å§å¤è´è´£äºº |
| | | */ |
| | | @Excel(name = "å§å¤è´è´£äºº", width = 15) |
| | | @ApiModelProperty(value = "å§å¤è´è´£äºº") |
| | | private String outsourcedPerson; |
| | | private String outsourcedUser; |
| | | /** |
| | | * ç
§çæä»¶ids;id以éå·åé |
| | | */ |
| | | @Excel(name = "ç
§çæä»¶ids;id以éå·åé", width = 15) |
| | | @ApiModelProperty(value = "ç
§çæä»¶ids;id以éå·åé") |
| | | private String imageFiles; |
| | | /** |
| | | * æä½å·¥ç¡®è®¤ |
| | | */ |
| | | @ApiModelProperty(value = "æä½å·¥ç¡®è®¤") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String confirmer; |
| | | /** |
| | | * æä½å·¥ç¡®è®¤æè§ |
| | | */ |
| | | @ApiModelProperty(value = "æä½å·¥ç¡®è®¤æè§") |
| | | private String confirmComment; |
| | | /** |
| | | * æä½å·¥ç¡®è®¤æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æä½å·¥ç¡®è®¤æ¶é´") |
| | | private Date confirmTime; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "设å¤åç§°") |
| | | private String equipmentName; |
| | | /** |
| | | * 设å¤ç¼ç |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "设å¤ç¼ç ") |
| | | private String equipmentCode; |
| | | @TableField(exist = false) |
| | | private String installationPosition; |
| | | } |
| | |
| | | */ |
| | | @Excel(name = "设å¤ID", width = 15, dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code") |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code") |
| | | // @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code") |
| | | private String equipmentId; |
| | | /** |
| | | * 设å¤åç§° |
| | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | //å表å±ç¤º |
| | | @TableField(exist = false) |
| | | private String equipmentCode; |
| | | @TableField(exist = false) |
| | | private String installationPosition; |
| | | |
| | | } |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamRepairOrder; |
| | |
| | | * @return |
| | | */ |
| | | IPage<EamRepairOrder> pageList(Page<EamRepairOrder> page, @Param("eamRepairOrder") EamRepairOrderQuery eamRepairOrder, @Param("userId") String userId, @Param("equipmentIds") List<String> equipmentIds); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param page |
| | | * @param queryWrapper |
| | | * @return |
| | | */ |
| | | IPage<EamRepairOrder> queryPageList(Page<EamRepairOrder> page, @Param(Constants.WRAPPER) QueryWrapper<EamRepairOrder> queryWrapper); |
| | | } |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamReportRepair; |
| | |
| | | * @return |
| | | */ |
| | | IPage<EamReportRepair> pageList(Page<EamReportRepair> page, @Param("eamReportRepair") EamReportRepairQuery eamReportRepairQuery, @Param("userId") String userId, @Param("equipmentIds") List<String> equipmentIds); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param page |
| | | * @param queryWrapper |
| | | * @return |
| | | */ |
| | | IPage<EamReportRepair> queryPageList(Page<EamReportRepair> page, @Param(Constants.WRAPPER) QueryWrapper<EamReportRepair> queryWrapper); |
| | | } |
| | |
| | | </where> |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamRepairOrder"> |
| | | select wmo.*, e.equipment_code, e.equipment_name, e.installation_position |
| | | from eam_repair_order wmo |
| | | inner join eam_equipment e |
| | | on wmo.equipment_id = e.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | </where> |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamReportRepair"> |
| | | select wmo.*, e.equipment_code, e.equipment_name, e.installation_position |
| | | from eam_report_repair wmo |
| | | inner join eam_equipment e |
| | | on wmo.equipment_id = e.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | |
| | | private static final long serialVersionUID = 7710893031748864058L; |
| | | |
| | | /** |
| | | * 设å¤ç¼ç |
| | | */ |
| | | @ApiModelProperty(value = "设å¤ç¼ç ") |
| | | private String equipmentCode; |
| | | |
| | | |
| | | private String column; |
| | | private String order; |
| | | } |
| | |
| | | private String equipmentId; |
| | | |
| | | /** |
| | | * ç»´ä¿®ç¶æ |
| | | */ |
| | | @ApiModelProperty(value = "ç»´ä¿®ç¶æ") |
| | | private String repairStatus; |
| | | |
| | | /** |
| | | * æ¯å¦éè¦é¢ç¨å¤ä»¶ 1:æ¯ 0:å¦ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦éè¦é¢ç¨å¤ä»¶") |
| | | private Integer isUseSpare; |
| | | |
| | | /** |
| | | * æ
éåå |
| | | */ |
| | | @ApiModelProperty(value = "æ
éåå ") |
| | |
| | | @ApiModelProperty(value = "ç»´ä¿®å¾çéå") |
| | | private List<FileUploadResult> imageFilesResult; |
| | | |
| | | /**å¤ä»¶æè¿°*/ |
| | | @ApiModelProperty(value = "å¤ä»¶æè¿°") |
| | | private String sparePartDescription; |
| | | /** |
| | | * 维修人确认 |
| | | */ |
| | | private String repairConfirm; |
| | | private String repairConfirmComment; |
| | | |
| | | /** |
| | | * é¢å¯¼ç¡®è®¤ |
| | | */ |
| | | private String leaderConfirm; |
| | | private String leaderConfirmComment; |
| | | |
| | | /** |
| | | * æºå¨å确认 |
| | | */ |
| | | private String externalConfirm; |
| | | private String externalConfirmComment; |
| | | |
| | | /** |
| | | * æä½å·¥ç¡®è®¤æè§ |
| | | */ |
| | | private String confirmComment; |
| | | } |
| | |
| | | * ææ´¾äººï¼ç»´ä¿®è´è´£äººï¼ |
| | | */ |
| | | private String repairer; |
| | | |
| | | private String column; |
| | | private String order; |
| | | } |
| | |
| | | } else { |
| | | eamInspectionOrder.setEquipmentCode(equipment.getEquipmentCode()); |
| | | } |
| | | System.out.println("设å¤ç¹æ£ï¼" + eamInspectionOrder.getId()); |
| | | flowCommonService.initActBusiness("å·¥åå·ï¼" + eamInspectionOrder.getOrderNum() + "设å¤ç¼å·" + eamInspectionOrder.getEquipmentCode() + "è¿è¡è®¾å¤ç¹æ£", |
| | | flowCommonService.initActBusiness("å·¥åå·: " + eamInspectionOrder.getOrderNum() + ";设å¤ç¼å·: " + eamInspectionOrder.getEquipmentCode() + ";å®è£
ä½ç½®: " + equipment.getInstallationPosition(), |
| | | eamInspectionOrder.getId(), "IEamInspectionOrderService", "eam_inspection", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", eamInspectionOrder.getId()); |
| | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | |
| | | import org.jeecg.common.api.vo.FileUploadResult; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.constant.DataBaseConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog; |
| | | import org.jeecg.modules.eam.constant.*; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | |
| | | import org.jeecg.modules.flowable.service.IFlowTaskService; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | 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 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description: 维修工å |
| | |
| | | @Resource |
| | | private IEamEquipmentExtendService eamEquipmentExtendService; |
| | | |
| | | @Autowired |
| | | private ISysUserService sysUserService; |
| | | |
| | | /** |
| | | * å页å表 |
| | | * |
| | | * @param page |
| | | * @param eamRepairOrderQuery |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<EamRepairOrder> pageList(Page<EamRepairOrder> page, EamRepairOrderQuery eamRepairOrderQuery) { |
| | | public IPage<EamRepairOrder> pageList(Page<EamRepairOrder> page, EamRepairOrderQuery query) { |
| | | QueryWrapper<EamRepairOrder> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("wmo.del_flag", CommonConstant.DEL_FLAG_0); |
| | | //ç¨æ·æ°æ®æé |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | if (sysUser == null) { |
| | | return page; |
| | | } |
| | | List<String> equipmentIds = new ArrayList<>(); |
| | | if (StringUtils.isNotBlank(sysUser.getEquipmentIds())) { |
| | | //éæ©äºè®¾å¤ï¼æ ¹æ®è®¾å¤idè¿æ»¤è®¾å¤ |
| | | equipmentIds = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | List<String> equipArr = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | queryWrapper.in("e.equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®è½¦é´è¿æ»¤è®¾å¤ |
| | | queryWrapper.exists("select 1 from mdc_user_production t where t.user_id={0} and t.pro_id=e.org_id ", sysUser.getId()); |
| | | } |
| | | return this.baseMapper.pageList(page, eamRepairOrderQuery, sysUser.getId(), equipmentIds); |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | | if (query != null) { |
| | | if (StringUtils.isNotBlank(query.getEquipmentId())) { |
| | | queryWrapper.eq("wmo.equipment_id", query.getEquipmentId()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getEquipmentCode())) { |
| | | queryWrapper.like("e.equipment_code", query.getEquipmentCode()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getEquipmentName())) { |
| | | queryWrapper.like("e.equipment_name", query.getEquipmentName()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getRepairStatus())) { |
| | | queryWrapper.eq("wmo.repair_status", query.getRepairStatus()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getRepairer())) { |
| | | queryWrapper.like("wmo.repairer", query.getRepairer()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getRepairCode())) { |
| | | queryWrapper.like("wmo.repair_code", query.getRepairCode()); |
| | | } |
| | | // if(query.getStartTime() != null && query.getEndTime() != null) { |
| | | // queryWrapper.between("wmo.fault_start_time", query.getStartTime(), query.getEndTime()); |
| | | // } |
| | | //æåº |
| | | if (StringUtils.isNotBlank(query.getColumn()) && StringUtils.isNotBlank(query.getOrder())) { |
| | | String column = query.getColumn(); |
| | | if (column.endsWith(CommonConstant.DICT_TEXT_SUFFIX)) { |
| | | column = column.substring(0, column.lastIndexOf(CommonConstant.DICT_TEXT_SUFFIX)); |
| | | } |
| | | if (DataBaseConstant.SQL_ASC.equalsIgnoreCase(query.getOrder())) { |
| | | queryWrapper.orderByAsc("wmo." + oConvertUtils.camelToUnderline(column)); |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo." + oConvertUtils.camelToUnderline(column)); |
| | | } |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo.create_time"); |
| | | } |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo.create_time"); |
| | | } |
| | | |
| | | return baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.REPAIR_ORDER_CODE_RULE); |
| | | eamRepairOrder.setRepairCode(codeSeq); |
| | | EamReportRepair eamReportRepair = eamReportRepairService.getById(eamRepairOrder.getReportId()); |
| | | if(eamReportRepair == null){ |
| | | throw new JeecgBootException("æ
éæ¥ä¿®ä¸åå¨ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | eamRepairOrder.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | eamRepairOrder.setEquipmentId(eamReportRepair.getEquipmentId()); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.WAIT_INTERNAL_CONFIRM.name()); |
| | | eamRepairOrder.setActualStartTime(DateUtils.getNow()); |
| | | eamRepairOrder.setIsUseSpare(0); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | eamRepairOrder.setRepairer(user.getUsername()); |
| | | super.save(eamRepairOrder); |
| | | EamEquipment eamEquipment = eamEquipmentService.getById(eamReportRepair.getEquipmentId()); |
| | | // å¯å¨ç»´ä¿®æµç¨ |
| | | flowCommonService.initActBusiness("维修工åå·ï¼" + codeSeq + ", 设å¤ç¼å·ï¼" + eamEquipment.getEquipmentCode() + "å¼å§ç»´ä¿®", |
| | | flowCommonService.initActBusiness("å·¥åå·ï¼" + codeSeq + ", 设å¤ç¼å·ï¼" + eamEquipment.getEquipmentCode() + ";å®è£
ä½ç½®: " + eamEquipment.getInstallationPosition(), |
| | | eamRepairOrder.getId(), |
| | | "IEamRepairOrderService", |
| | | "eam_repair", |
| | |
| | | if (!result.isSuccess()) { |
| | | super.removeById(eamRepairOrder); |
| | | } else { |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_INTERNAL_CONFIRM.name()); |
| | | eamReportRepairService.updateById(eamReportRepair); |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.UNDER_REPAIR.name()); |
| | |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.REPAIR_ORDER_CODE_RULE); |
| | | eamRepairOrder.setRepairCode(codeSeq); |
| | | EamReportRepair eamReportRepair = eamReportRepairService.getById(eamReportRepairQuery.getId()); |
| | | if(eamReportRepair == null){ |
| | | throw new JeecgBootException("æ
éæ¥ä¿®ä¸åå¨ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | eamRepairOrder.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | eamRepairOrder.setEquipmentId(eamReportRepair.getEquipmentId()); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.WAIT_INTERNAL_CONFIRM.name()); |
| | | eamRepairOrder.setActualStartTime(DateUtils.getNow()); |
| | | eamRepairOrder.setIsUseSpare(0); |
| | | eamRepairOrder.setRepairer(eamReportRepairQuery.getRepairer()); |
| | | super.save(eamRepairOrder); |
| | | EamEquipment eamEquipment = eamEquipmentService.getById(eamReportRepair.getEquipmentId()); |
| | | // å¯å¨ç»´ä¿®æµç¨ |
| | | flowCommonService.initActBusiness("维修工åå·ï¼" + codeSeq + ", 设å¤ç¼å·ï¼" + eamEquipment.getEquipmentCode() + "å¼å§ç»´ä¿®", |
| | | flowCommonService.initActBusiness("å·¥åå·ï¼" + codeSeq + ", 设å¤ç¼å·ï¼" + eamEquipment.getEquipmentCode() + ";å®è£
ä½ç½®: " + eamEquipment.getInstallationPosition(), |
| | | eamRepairOrder.getId(), |
| | | "IEamRepairOrderService", |
| | | "eam_repair", |
| | |
| | | if (!result.isSuccess()) { |
| | | super.removeById(eamRepairOrder); |
| | | } else { |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_INTERNAL_CONFIRM.name()); |
| | | eamReportRepairService.updateById(eamReportRepair); |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.UNDER_REPAIR.name()); |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @EquipmentHistoryLog(operationTag = EquipmentOperationTagEnum.REPAIRED, businessTable = "eam_repair_order") |
| | | public EamRepairOrder perform(EamRepairOrderRequest request) { |
| | | EamRepairOrder eamRepairOrder = this.baseMapper.selectById(request.getId()); |
| | | EamReportRepair eamReportRepair = eamReportRepairService.getById(eamRepairOrder.getReportId()); |
| | | if (eamRepairOrder == null) { |
| | | throw new JeecgBootException("审æ¹çæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | EamRepairOrder order = this.baseMapper.selectById(request.getId()); |
| | | if (order == null) { |
| | | throw new JeecgBootException("维修工åä¸åå¨ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | EamReportRepair eamReportRepair = eamReportRepairService.getById(order.getReportId()); |
| | | if (eamReportRepair == null) { |
| | | throw new JeecgBootException("æ
éæ¥ä¿®ä¸åå¨ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | // è·åå½åç»å½ç¨æ· |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | |
| | | throw new JeecgBootException("设å¤ä¸åå¨ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | |
| | | ReportRepairEnum status = ReportRepairEnum.getInstance(eamRepairOrder.getRepairStatus()); |
| | | ReportRepairEnum status = ReportRepairEnum.getInstance(order.getRepairStatus()); |
| | | if (status == null) { |
| | | return null; |
| | | throw new JeecgBootException("å·¥åç¶æä¸åæ³ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //æµç¨åé |
| | | Map<String, Object> values = new HashMap<>(); |
| | | List<UserSelector> userSelectors; |
| | | List<String> userApprovalList; |
| | | switch (status) { |
| | | case UNDER_INTERNAL_REPAIR: |
| | | //ç»´ä¿®ä¸ï¼ä¸ä¸æ¥ 夿æ¯å¦éè¦å¤ä»¶, éè¦å¤ä»¶è½¬è®¾å¤ç®¡çåé¢ç¨å¤ä»¶, ä¸éè¦å转å°è®¾å¤æ¥ä¿®åç¡®è®¤ç»´ä¿®å®æ |
| | | if (request.getIsUseSpare() == 1) { |
| | | // éè¦ |
| | | if (StringUtils.isBlank(equipment.getEquipmentManager())) { |
| | | throw new JeecgBootException("è®¾å¤æªåé
设å¤ç®¡çåï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | } |
| | | if (StringUtils.isBlank(eamRepairOrder.getSparePartDescription())) { |
| | | values.put("dataId", eamRepairOrder.getId()); |
| | | values.put("organization", "维修工åè¿å
¥çå¤ä»¶ç¶æ"); |
| | | values.put("comment", "维修工åè¿å
¥çå¤ä»¶ç¶æ"); |
| | | values.put("NextAssignee", Arrays.asList(equipment.getEquipmentManager().split(","))); |
| | | values.put("status", 1); |
| | | request.setComment("维修工åè¿å
¥çå¤ä»¶ç¶æ"); |
| | | // eamRepairOrder.setRepairStatus(ReportRepairEnum.WAIT_SPARES.name()); |
| | | // eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_SPARES.name()); |
| | | eamRepairOrder.setIsUseSpare(1); |
| | | } else { |
| | | values.put("dataId", eamRepairOrder.getId()); |
| | | values.put("organization", "维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | values.put("comment", "维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | request.setComment("维修工åè¿å
¥çå¤ä»¶ç¶æ"); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamRepairOrder.setFaultReason(request.getFaultReason()); |
| | | eamRepairOrder.setRepairDescription(request.getRepairDescription()); |
| | | // å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | eamRepairOrder.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_CONFIRM.name()); |
| | | } |
| | | } else { |
| | | // ä¸éè¦ |
| | | values.put("dataId", eamRepairOrder.getId()); |
| | | values.put("organization", "维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | values.put("comment", "维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | values.put("status", 0); |
| | | request.setComment("维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamRepairOrder.setFaultReason(request.getFaultReason()); |
| | | eamRepairOrder.setRepairDescription(request.getRepairDescription()); |
| | | eamRepairOrder.setIsUseSpare(0); |
| | | // å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | eamRepairOrder.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_CONFIRM.name()); |
| | | case WAIT_INTERNAL_CONFIRM: |
| | | order.setRepairConfirm(request.getRepairConfirm()); |
| | | order.setRepairConfirmComment(request.getRepairConfirmComment()); |
| | | order.setRepairConfirmTime(new Date()); |
| | | values.put("dataId", order.getId()); |
| | | values.put("repairConfirm", request.getRepairConfirm()); |
| | | if(StringUtils.isNotBlank(request.getRepairConfirmComment())){ |
| | | values.put("organization", request.getRepairConfirmComment()); |
| | | values.put("comment", request.getRepairConfirmComment()); |
| | | request.setComment(request.getRepairConfirmComment()); |
| | | }else { |
| | | values.put("organization", "维修工åç»´ä¿®äººç¡®è®¤å®æ"); |
| | | values.put("comment", "维修工åç»´ä¿®äººç¡®è®¤å®æ"); |
| | | request.setComment("维修工åç»´ä¿®äººç¡®è®¤å®æ"); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(request.getRepairConfirm())) { |
| | | //å¯å
é¨ç»´ä¿® 维修人è¿è¡ç»´ä¿® |
| | | values.put("NextAssignee", Arrays.asList(order.getRepairer().split(","))); |
| | | |
| | | order.setRepairStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | }else { |
| | | //æäº¤æºå¨åç»´ä¿®ï¼è½¦é´ç®¡çå确认 |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), equipment.getOrgId(), BusinessCodeConst.PCR0003); |
| | | if (CollectionUtil.isEmpty(userSelectors)) { |
| | | throw new JeecgBootException("è®¾å¤æªåé
ç»çç»é¿ï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | } |
| | | userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | values.put("NextAssignee", userApprovalList); |
| | | order.setRepairStatus(ReportRepairEnum.WAIT_LEADER_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_LEADER_CONFIRM.name()); |
| | | } |
| | | break; |
| | | case UNDER_INTERNAL_REPAIR: |
| | | // å
é¨ç»´ä¿® |
| | | values.put("dataId", order.getId()); |
| | | values.put("organization", "维修工åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("comment", "维修工åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | request.setComment("维修工åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | order.setRepairStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | order.setFaultReason(request.getFaultReason()); |
| | | order.setRepairDescription(request.getRepairDescription()); |
| | | order.setActualEndTime(new Date()); |
| | | // å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | order.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_CONFIRM.name()); |
| | | break; |
| | | case WAIT_LEADER_CONFIRM: |
| | | order.setLeaderConfirm(request.getLeaderConfirm()); |
| | | order.setLeaderConfirmComment(request.getLeaderConfirmComment()); |
| | | order.setLeaderUser(user.getUsername()); |
| | | order.setLeaderConfirmTime(new Date()); |
| | | values.put("dataId", order.getId()); |
| | | values.put("leaderConfirm", request.getLeaderConfirm()); |
| | | if(StringUtils.isNotBlank(request.getLeaderConfirmComment())){ |
| | | values.put("organization", request.getLeaderConfirmComment()); |
| | | values.put("comment", request.getLeaderConfirmComment()); |
| | | request.setComment(request.getLeaderConfirmComment()); |
| | | }else { |
| | | values.put("organization", "维修工åé¢å¯¼ç¡®è®¤å®æ"); |
| | | values.put("comment", "维修工åé¢å¯¼ç¡®è®¤å®æ"); |
| | | request.setComment("维修工åé¢å¯¼ç¡®è®¤å®æ"); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(request.getLeaderConfirm())) { |
| | | //éè¿ æäº¤æºå¨åç»´ä¿® |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), equipment.getOrgId(), BusinessCodeConst.PCR0006); |
| | | if (CollectionUtil.isEmpty(userSelectors)) { |
| | | throw new JeecgBootException("è®¾å¤æªåé
ç»å
¬å¸ç®¡çåï¼æ æ³è¿å
¥ä¸çº§å®¡æ¹ï¼"); |
| | | } |
| | | userApprovalList = userSelectors.stream().map(UserSelector::getUsername).collect(Collectors.toList()); |
| | | values.put("NextAssignee", userApprovalList); |
| | | order.setRepairStatus(ReportRepairEnum.WAIT_EXTERNAL_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_EXTERNAL_CONFIRM.name()); |
| | | }else { |
| | | //驳å å¯å
é¨ç»´ä¿® 维修人è¿è¡ç»´ä¿® |
| | | values.put("NextAssignee", Arrays.asList(order.getRepairer().split(","))); |
| | | order.setRepairStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_INTERNAL_REPAIR.name()); |
| | | } |
| | | break; |
| | | case WAIT_EXTERNAL_CONFIRM: |
| | | order.setExternalConfirm(request.getExternalConfirm()); |
| | | order.setExternalConfirmComment(request.getExternalConfirmComment()); |
| | | order.setExternalRepairer(user.getUsername()); |
| | | order.setExternalConfirmTime(new Date()); |
| | | values.put("dataId", order.getId()); |
| | | values.put("externalConfirm", request.getExternalConfirm()); |
| | | if(StringUtils.isNotBlank(request.getExternalConfirmComment())){ |
| | | values.put("organization", request.getExternalConfirmComment()); |
| | | values.put("comment", request.getExternalConfirmComment()); |
| | | request.setComment(request.getExternalConfirmComment()); |
| | | }else { |
| | | values.put("organization", "ç»´ä¿®å·¥åæºå¨åç¡®è®¤å®æ"); |
| | | values.put("comment", "ç»´ä¿®å·¥åæºå¨åç¡®è®¤å®æ"); |
| | | request.setComment("ç»´ä¿®å·¥åæºå¨åç¡®è®¤å®æ"); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(request.getExternalConfirm())) { |
| | | //æºå¨åå¯ç»´ä¿® æºå¨å维修人è¿è¡ç»´ä¿® |
| | | values.put("NextAssignee", Arrays.asList(order.getExternalRepairer().split(","))); |
| | | order.setRepairStatus(ReportRepairEnum.UNDER_EXTERNAL_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_EXTERNAL_REPAIR.name()); |
| | | }else { |
| | | //æºå¨åä¸å¯ç»´ä¿® è¿è¡å§å¤ç»´ä¿® |
| | | values.put("NextAssignee", Arrays.asList(order.getExternalRepairer().split(","))); |
| | | order.setRepairStatus(ReportRepairEnum.UNDER_OUTSIDE_REPAIR.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.UNDER_OUTSIDE_REPAIR.name()); |
| | | } |
| | | break; |
| | | case UNDER_EXTERNAL_REPAIR: |
| | | // æºå¨åç»´ä¿® |
| | | values.put("dataId", order.getId()); |
| | | values.put("organization", "ç»´ä¿®å·¥åæºå¨åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("comment", "ç»´ä¿®å·¥åæºå¨åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | request.setComment("ç»´ä¿®å·¥åæºå¨åç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | order.setRepairStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | order.setFaultReason(request.getFaultReason()); |
| | | order.setRepairDescription(request.getRepairDescription()); |
| | | order.setActualEndTime(new Date()); |
| | | // å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | order.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_CONFIRM.name()); |
| | | break; |
| | | case UNDER_OUTSIDE_REPAIR: |
| | | // æºå¨åç»´ä¿® |
| | | values.put("dataId", order.getId()); |
| | | values.put("organization", "维修工åå§å¤ç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("comment", "维修工åå§å¤ç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | request.setComment("维修工åå§å¤ç»´ä¿®å®æå¾
æä½å·¥ç¡®è®¤"); |
| | | order.setRepairStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | order.setOutsourcedUser(user.getUsername()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.WAIT_CONFIRM.name()); |
| | | order.setFaultReason(request.getFaultReason()); |
| | | order.setRepairDescription(request.getRepairDescription()); |
| | | order.setActualEndTime(new Date()); |
| | | // å¤çéä»¶ |
| | | if (CollectionUtil.isNotEmpty(request.getImageFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getImageFilesResult(); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | String referenceFile = mapper.writeValueAsString(fileUploadResultList); |
| | | order.setImageFiles(referenceFile); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JSON转æ¢å¤±è´¥ï¼" + e.getMessage(), e); |
| | | } |
| | | } |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_CONFIRM.name()); |
| | | break; |
| | | case WAIT_CONFIRM: |
| | | // å¾
确认, ç»´ä¿®åç»´ä¿®å®æï¼æ¥ä¿®äººç¡®è®¤ç»ææµç¨ |
| | | values.put("dataId", eamRepairOrder.getId()); |
| | | values.put("dataId", order.getId()); |
| | | values.put("organization", "ç»´ä¿®å·¥åæµç¨ç»æ"); |
| | | values.put("comment", "ç»´ä¿®å·¥åæµç¨ç»æ"); |
| | | values.put("NextAssignee", Arrays.asList(eamReportRepair.getCreateBy().split(","))); |
| | | values.put("status", 0); |
| | | request.setComment("维修工åè¿å
¥æ¥ä¿®åç¡®è®¤é¶æ®µ"); |
| | | eamRepairOrder.setRepairStatus(ReportRepairEnum.COMPLETE.name()); |
| | | request.setComment("ç»´ä¿®å·¥åæµç¨ç»æ"); |
| | | order.setRepairStatus(ReportRepairEnum.COMPLETE.name()); |
| | | eamReportRepair.setReportStatus(ReportRepairEnum.COMPLETE.name()); |
| | | eamRepairOrder.setActualEndTime(new Date()); |
| | | order.setConfirmComment(request.getConfirmComment()); |
| | | order.setConfirmTime(new Date()); |
| | | order.setConfirmer(user.getUsername()); |
| | | //æ´æ°è®¾å¤ç»´ä¿®ç¶æ |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.NORMAL.name()); |
| | | break; |
| | |
| | | throw new JeecgBootException("审æ¹å¤±è´¥ï¼è¯·å·æ°æ¥çï¼"); |
| | | } |
| | | //ä¿åå·¥å |
| | | this.baseMapper.updateById(eamRepairOrder); |
| | | this.baseMapper.updateById(order); |
| | | // åæ¥æ´æ°æ¥ä¿®è¡¨ç¶æ |
| | | eamReportRepairService.updateById(eamReportRepair); |
| | | return eamRepairOrder; |
| | | return order; |
| | | } |
| | | |
| | | @Override |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.api.vo.FileUploadResult; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.constant.DataBaseConstant; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog; |
| | | import org.jeecg.modules.eam.constant.*; |
| | | import org.jeecg.modules.eam.entity.*; |
| | |
| | | * å页å表 |
| | | * |
| | | * @param page |
| | | * @param eamReportRepairQuery |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<EamReportRepair> pageList(Page<EamReportRepair> page, EamReportRepairQuery eamReportRepairQuery) { |
| | | public IPage<EamReportRepair> pageList(Page<EamReportRepair> page, EamReportRepairQuery query) { |
| | | QueryWrapper<EamReportRepair> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("wmo.del_flag", CommonConstant.DEL_FLAG_0); |
| | | //ç¨æ·æ°æ®æé |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | if (sysUser == null) { |
| | | return page; |
| | | } |
| | | List<String> equipmentIds = new ArrayList<>(); |
| | | if (StringUtils.isNotBlank(sysUser.getEquipmentIds())) { |
| | | //éæ©äºè®¾å¤ï¼æ ¹æ®è®¾å¤idè¿æ»¤è®¾å¤ |
| | | equipmentIds = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | List<String> equipArr = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | queryWrapper.in("e.equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®è½¦é´è¿æ»¤è®¾å¤ |
| | | queryWrapper.exists("select 1 from mdc_user_production t where t.user_id={0} and t.pro_id=e.org_id ", sysUser.getId()); |
| | | } |
| | | return this.baseMapper.pageList(page, eamReportRepairQuery, sysUser.getId(), equipmentIds); |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | | if (query != null) { |
| | | if (StringUtils.isNotBlank(query.getEquipmentId())) { |
| | | queryWrapper.eq("wmo.equipment_id", query.getEquipmentId()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getEquipmentCode())) { |
| | | queryWrapper.like("e.equipment_code", query.getEquipmentCode()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getEquipmentName())) { |
| | | queryWrapper.like("e.equipment_name", query.getEquipmentName()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getBreakdownFlag())) { |
| | | queryWrapper.eq("wmo.breakdown_flag", query.getBreakdownFlag()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getReportStatus())) { |
| | | queryWrapper.eq("wmo.report_status", query.getReportStatus()); |
| | | } |
| | | if (StringUtils.isNotBlank(query.getFaultDescription())) { |
| | | queryWrapper.like("wmo.fault_description", query.getFaultDescription()); |
| | | } |
| | | if(query.getStartTime() != null && query.getEndTime() != null) { |
| | | queryWrapper.between("wmo.fault_start_time", query.getStartTime(), query.getEndTime()); |
| | | } |
| | | //æåº |
| | | if (StringUtils.isNotBlank(query.getColumn()) && StringUtils.isNotBlank(query.getOrder())) { |
| | | String column = query.getColumn(); |
| | | if (column.endsWith(CommonConstant.DICT_TEXT_SUFFIX)) { |
| | | column = column.substring(0, column.lastIndexOf(CommonConstant.DICT_TEXT_SUFFIX)); |
| | | } |
| | | if (DataBaseConstant.SQL_ASC.equalsIgnoreCase(query.getOrder())) { |
| | | queryWrapper.orderByAsc("wmo." + oConvertUtils.camelToUnderline(column)); |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo." + oConvertUtils.camelToUnderline(column)); |
| | | } |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo.create_time"); |
| | | } |
| | | } else { |
| | | queryWrapper.orderByDesc("wmo.create_time"); |
| | | } |
| | | |
| | | return baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | |
| | | //夿æ¯å¦åå¨ä¿å
»äºº 妿åå¨åå¯å¨æµç¨ |
| | | if (StringUtils.isNotBlank(order.getOperator())) { |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + order.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤äºä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·: " + order.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | order.getId(), "IEamSecondMaintenanceOrderService", "second_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", order.getId()); |
| | |
| | | //夿æ¯å¦åå¨ä¿å
»äºº 妿åå¨åå¯å¨æµç¨ |
| | | if (StringUtils.isNotBlank(entity.getOperator())) { |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤äºä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·: " + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamSecondMaintenanceOrderService", "second_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", entity.getId()); |
| | |
| | | eamSecondMaintenanceOrderMapper.updateById(entity); |
| | | |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤äºä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·: " + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamSecondMaintenanceOrderService", "second_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", entity.getId()); |
| | |
| | | //夿æ¯å¦åå¨ä¿å
»äºº 妿åå¨åå¯å¨æµç¨ |
| | | if (StringUtils.isNotBlank(order.getOperator())) { |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + order.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤ä¸ä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·:" + order.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | order.getId(), "IEamThirdMaintenanceOrderService", "third_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", order.getId()); |
| | |
| | | //夿æ¯å¦åå¨ä¿å
»äºº 妿åå¨åå¯å¨æµç¨ |
| | | if (StringUtils.isNotBlank(entity.getOperator())) { |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤ä¸ä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamThirdMaintenanceOrderService", "third_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", entity.getId()); |
| | |
| | | eamThirdMaintenanceOrderMapper.updateById(entity); |
| | | |
| | | //å¯å¨æµç¨ |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";è¿è¡è®¾å¤ä¸ä¿", |
| | | flowCommonService.initActBusiness("å·¥åå·:" + entity.getOrderNum() + ";设å¤ç¼å·: " + equipment.getEquipmentCode() + ";å®è£
ä½ç½®" + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamThirdMaintenanceOrderService", "third_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | boolean equipmentPrecisionFlag = precisionCheckDetailService.hasPrecisionCheckDetail(entity.getId()); |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.tms.entity.OutStoreDetail; |
| | | import org.jeecg.modules.tms.entity.ToolLedger; |
| | | import org.jeecg.modules.tms.entity.vo.OutStoreDetailVo; |
| | | import org.jeecg.modules.tms.service.IOutStoreDetailService; |
| | | |
| | |
| | | return super.importExcel(request, response, OutStoreDetail.class); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-åºåºå页é¢å表æ¥è¯¢ |
| | | * |
| | | * @param outStoreDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-åºåºå页é¢å表æ¥è¯¢", notes="å·¥å
·å°è´¦-åºåºå页é¢å表æ¥è¯¢") |
| | | @GetMapping(value = "/outStoreDetailList") |
| | | public Result<?> outStoreDetailList(OutStoreDetail outStoreDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = outStoreDetailService.outStoreDetailList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |
| | |
| | | return super.importExcel(request, response, ToolLedger.class); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-å表æ¥è¯¢ |
| | | * |
| | | * @param toolLedger |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-å表æ¥è¯¢", notes="å·¥å
·å°è´¦-å表æ¥è¯¢") |
| | | @GetMapping(value = "/toolLedgerList") |
| | | public Result<?> toolLedgerList(ToolLedger toolLedger, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolLedgerService.toolLedgerList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |
| | |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-æ¥è¯¢æå· |
| | | * |
| | | * @param toolLedgerDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-æ¥è¯¢æå·", notes="å·¥å
·å°è´¦-æ¥è¯¢æå·") |
| | | @GetMapping(value = "/queryToolLedgerDetailList") |
| | | public Result<?> queryToolLedgerDetailList(ToolLedgerDetail toolLedgerDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolLedgerDetailService.queryToolLedgerDetailList(pageNo, pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |
| | |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.tms.entity.OutStoreDetail; |
| | | import org.jeecg.modules.tms.entity.ToolLedger; |
| | | import org.jeecg.modules.tms.entity.ToolSharpening; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | |
| | | @ApiOperation(value="tms_tool_sharpening-æ·»å ", notes="tms_tool_sharpening-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody ToolSharpening toolSharpening) { |
| | | toolSharpening.setSharpeningStatus("1"); |
| | | toolSharpeningService.save(toolSharpening); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | |
| | | toolSharpeningService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-å磨å页é¢å表æ¥è¯¢ |
| | | * |
| | | * @param toolSharpening |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-å磨å页é¢å表æ¥è¯¢", notes="å·¥å
·å°è´¦-å磨å页é¢å表æ¥è¯¢") |
| | | @GetMapping(value = "/toolSharpeningList") |
| | | public Result<?> toolSharpeningList(ToolSharpening toolSharpening, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolSharpeningService.toolSharpeningList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | } |
| | |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.tms.entity.OutboundDetail; |
| | | import org.jeecg.modules.tms.entity.OutboundOrder; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBound; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | | import org.jeecg.modules.tms.entity.*; |
| | | import org.jeecg.modules.tms.entity.dto.LossBoundFlowDto; |
| | | import org.jeecg.modules.tms.entity.dto.OutBoundOrderFlowDto; |
| | | import org.jeecg.modules.tms.entity.vo.OutboundDetailVo; |
| | |
| | | IPage<ToolsLossBoundDetail> pageList = toolsLossBoundDetailService.queryPageList(page, parameterMap); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-æ¥æå页é¢å表æ¥è¯¢ |
| | | * |
| | | * @param toolsLossBoundDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-æ¥æå页é¢å表æ¥è¯¢", notes="å·¥å
·å°è´¦-æ¥æå页é¢å表æ¥è¯¢") |
| | | @GetMapping(value = "/toolLossDetailList") |
| | | public Result<?> toolLossDetailList(ToolsLossBoundDetail toolsLossBoundDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolsLossBoundDetailService.toolLossDetailList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | } |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.jeecg.modules.tms.entity.BaseTools; |
| | | import org.jeecg.modules.tms.entity.ToolSharpening; |
| | | import org.jeecg.modules.tms.entity.ToolsStocktakingBound; |
| | | import org.jeecg.modules.tms.entity.ToolsStocktakingBoundDetail; |
| | | import org.jeecg.modules.tms.entity.dto.LossBoundFlowDto; |
| | |
| | | return Result.OK("æä»¶å¯¼å
¥å¤±è´¥ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * å·¥å
·å°è´¦-çç¹å页é¢å表æ¥è¯¢ |
| | | * |
| | | * @param toolsStocktakingBound |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å·¥å
·å°è´¦-çç¹å页é¢å表æ¥è¯¢", notes="å·¥å
·å°è´¦-çç¹å页é¢å表æ¥è¯¢") |
| | | @GetMapping(value = "/toolsStocktakingList") |
| | | public Result<?> toolsStocktakingList(ToolsStocktakingBound toolsStocktakingBound, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolsStocktakingBoundDetailService.toolsStocktakingList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |
| | |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | private String toolMaterial; |
| | | |
| | | @TableField(exist = false) |
| | | private String partMaterial; |
| | | |
| | | @TableField(exist = false) |
| | | private String toolModel; |
| | | /** |
| | | * åºä½å· |
| | |
| | | package org.jeecg.modules.tms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | |
| | | IPage<OutStoreDetailVo> queryPageList(Page<OutStoreDetailVo> page, |
| | | @Param(Constants.WRAPPER) Wrapper<OutStoreDetailVo> queryWrapper); |
| | | |
| | | public IPage<Map<String, Object>> outStoreDetailList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | IPage<Map<String, Object>> queryLendTool(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | |
| | | IPage<Map<String, Object>> querySharpenTool(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | |
| | | IPage<Map<String, Object>> queryToolLedgerDetailList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | package org.jeecg.modules.tms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.tms.entity.ToolLedger; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | */ |
| | | public interface ToolLedgerMapper extends BaseMapper<ToolLedger> { |
| | | |
| | | public IPage<Map<String, Object>> toolLedgerList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: æèåæç» |
| | |
| | | |
| | | IPage<ToolsLossBoundDetail> queryPageList(Page<ToolsLossBoundDetail> page, |
| | | @Param(Constants.WRAPPER) Wrapper<ToolsLossBoundDetail> queryWrapper); |
| | | |
| | | public IPage<Map<String, Object>> toolLossDetailList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | import org.jeecg.modules.tms.entity.vo.OutboundDetailVo; |
| | | import org.jeecg.modules.tms.entity.vo.ToolSharpeningVo; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: tms_tool_sharpening Mapper æ¥å£ |
| | | * @Author: ä¾¯æ° |
| | |
| | | public interface ToolsSharpeningMapper extends BaseMapper<ToolSharpening> { |
| | | IPage<ToolSharpeningVo> queryPageList(Page<ToolSharpeningVo> page, |
| | | @Param(Constants.WRAPPER) Wrapper<ToolSharpeningVo> queryWrapper); |
| | | |
| | | public IPage<Map<String, Object>> toolSharpeningList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | import org.jeecg.modules.tms.entity.ToolsStocktakingBoundDetail; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public interface ToolsStocktakingBoundDetailMapper extends BaseMapper<ToolsStocktakingBoundDetail> { |
| | | |
| | |
| | | IPage<ToolsStocktakingBoundDetail> selectByMainId(Page<ToolsStocktakingBoundDetail> page, |
| | | @Param(Constants.WRAPPER) Wrapper<ToolsStocktakingBoundDetail> queryWrapper); |
| | | |
| | | public IPage<Map<String, Object>> toolsStocktakingList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | |
| | | } |
| | |
| | | |
| | | <select id="pageWithLedgerAndConfig" resultType="org.jeecg.modules.tms.entity.vo.StocktakingPoundVo"> |
| | | SELECT |
| | | DISTINCT |
| | | t.id, |
| | | t.classify_id AS classifyId, |
| | | t.tool_id AS toolId, |
| | | t1.classify_id AS classifyId, |
| | | t.tool_code AS toolCode, |
| | | t.foreign_language_name AS foreignLanguageName, |
| | | t.standard_level AS standardLevel, |
| | | t.standard_code AS standardCode, |
| | | t.tool_model AS toolModel, |
| | | t.parama_table_name AS paramaTableName, |
| | | t.tool_id AS toolId, |
| | | t2.tool_model AS toolModel, |
| | | t2.parama_table_name AS paramaTableName, |
| | | t1.total_count AS totalCount, |
| | | t1.available_count AS availableCount, |
| | | t3.position_code AS positionCode, |
| | | t3.application_type AS applicationType, |
| | | t3.chinese_name AS chineseName, |
| | | t2.chinese_name AS chineseName, |
| | | t3.supplier_id AS supplierId, |
| | | t3.storage_location AS storageLocation, |
| | | t3.main_unit AS mainUnit, |
| | |
| | | c.part_material AS partMaterial |
| | | </otherwise> |
| | | </choose> |
| | | |
| | | FROM tms_base_tools t |
| | | LEFT JOIN tms_tool_ledger t1 ON t1.tool_id = t.id |
| | | LEFT JOIN tms_tools_config_property t3 ON t3.tool_code = t.id |
| | | FROM tms_tool_ledger_detail t |
| | | left join tms_tool_ledger t1 ON t1.tool_id= t.tool_Code |
| | | left join tms_tools_classify t4 on t4.id = t1.classify_id |
| | | left join tms_base_tools t2 on t2.id = t.tool_code |
| | | left join tms_tools_config_property t3 on t3.tool_code = t.tool_code |
| | | |
| | | |
| | | <!-- å¨æè¡¨å
³èï¼ç¡®ä¿æææ
åµé½æå¯¹åºç LEFT JOIN --> |
| | |
| | | </choose> |
| | | |
| | | <where> |
| | | <if test="ew.paramNameValuePairs.toolCode != null and ew.paramNameValuePairs.toolCode != ''"> |
| | | AND t.tool_code LIKE CONCAT('%', #{ew.paramNameValuePairs.toolCode}, '%') |
| | | <if test="ew.paramNameValuePairs.toolId != null and ew.paramNameValuePairs.toolId != ''"> |
| | | AND t.tool_id LIKE CONCAT('%', #{ew.paramNameValuePairs.toolId}, '%') |
| | | </if> |
| | | </where> |
| | | |
| | |
| | | |
| | | <select id="pageWithSharpedAndConfig" resultType="org.jeecg.modules.tms.entity.vo.SharpeeningVo"> |
| | | SELECT |
| | | DISTINCT |
| | | t.id, |
| | | t.create_time AS createTime, |
| | | t.classify_id AS classifyId, |
| | | t.tool_code AS toolCode, |
| | | t.foreign_language_name AS foreignLanguageName, |
| | | t.standard_level AS standardLevel, |
| | | t.standard_code AS standardCode, |
| | | t.tool_model AS toolModel, |
| | | t.parama_table_name AS paramaTableName, |
| | | t2.tool_model AS toolModel, |
| | | t2.parama_table_name AS paramaTableName, |
| | | t.tool_id AS toolId, |
| | | t1.total_count AS totalCount, |
| | | t1.available_count AS availableCount, |
| | | t3.position_code AS positionCode, |
| | | t3.application_type AS applicationType, |
| | | t3.chinese_name AS chineseName, |
| | |
| | | t3.storage_location AS storageLocation, |
| | | t3.main_unit AS mainUnit, |
| | | t3.warehouse_id AS warehouseId, |
| | | t4.classify_id AS classifyId, |
| | | t3.province_city AS provinceCity |
| | | |
| | | FROM tms_base_tools t |
| | | LEFT JOIN tms_tool_ledger t1 ON t1.tool_id = t.id |
| | | LEFT JOIN tms_tools_config_property t3 ON t3.tool_code = t.id |
| | | FROM tms_tool_ledger_detail t |
| | | left join tms_tool_ledger t1 ON t1.tool_id= t.tool_Code |
| | | left join tms_tools_classify t4 on t4.id = t1.classify_id |
| | | left join tms_base_tools t2 on t2.id = t.tool_code |
| | | left join tms_tools_config_property t3 on t3.tool_code = t.tool_code |
| | | -- FROM tms_base_tools t |
| | | -- LEFT JOIN tms_tool_ledger t1 ON t1.tool_id = t.id |
| | | -- LEFT JOIN tms_tools_config_property t3 ON t3.tool_code = t.id |
| | | |
| | | |
| | | <where> |
| | | <if test="ew.paramNameValuePairs.toolCode != null and ew.paramNameValuePairs.toolCode != ''"> |
| | | AND t.tool_code LIKE CONCAT('%', #{ew.paramNameValuePairs.toolCode}, '%') |
| | | <if test="ew.paramNameValuePairs.toolId != null and ew.paramNameValuePairs.toolId != ''"> |
| | | AND t.tool_id LIKE CONCAT('%', #{ew.paramNameValuePairs.toolId}, '%') |
| | | </if> |
| | | </where> |
| | | |
| | |
| | | t.id, |
| | | t.tool_id onlyCode, |
| | | t.in_storehouse_type inStorehouseType, |
| | | t.goods_shelves_id goodsShelvesId, |
| | | t10.location_code locationCode, |
| | | t.in_number inNumber, |
| | | t.in_storehouse_id inStorehouseId, |
| | | t.inbound_time inboundTime, |
| | |
| | | LEFT JOIN (select * from v_sys_dict where dict_code='in_status') t7 on t7.item_value = t3.in_status |
| | | LEFT JOIN (select * from v_sys_dict where dict_code='in_bill_status') t8 on t8.item_value = t3.order_status |
| | | left join (select * from v_sys_dict where dict_code='in_storehouse_type') t9 on t9.item_value = t.in_storehouse_type |
| | | left join tms_goods_shelves t10 on t10.id = t.goods_shelves_id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | </choose> |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <select id="outStoreDetailList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_id onlyCode, |
| | | t1.out_storehouse_type outStorehouseType, |
| | | t1.out_number outNumber, |
| | | t1.out_storehouse_id outStorehouseId, |
| | | t4.outbound_time outboundTime, |
| | | t1.create_by createBy, |
| | | t1.create_time createTime, |
| | | t1.update_by updateBy, |
| | | t1.update_time updateTime, |
| | | t2.tool_code toolCode, |
| | | t2.chinese_name chineseName, |
| | | t2.tool_model toolModel, |
| | | t3.classify_id classifyNum, |
| | | t4.out_num outNum, |
| | | t4.subject_matter subjectMatter, |
| | | t5.realname handler, |
| | | t6.realname reviewer, |
| | | t7.item_text inStatus, |
| | | t8.item_text orderStatus, |
| | | t9.item_text outStorehouseTypeName, |
| | | t10.item_text operateType |
| | | FROM |
| | | tms_out_store_detail t1 |
| | | LEFT JOIN tms_base_tools t2 ON t2.id = t1.tool_code |
| | | LEFT JOIN tms_tools_classify t3 ON t3.id = t2.classify_id |
| | | LEFT JOIN tms_outbound_order t4 ON t4.id = t1.out_storehouse_id |
| | | LEFT JOIN sys_user t5 ON t5.username = t4.handler |
| | | LEFT JOIN sys_user t6 ON t6.username = t4.reviewer |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'out_status' ) t7 ON t7.item_value = t4.out_status |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'out_bill_status' ) t8 ON t8.item_value = t4.order_status |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'out_storehouse_type' ) t9 ON t9.item_value = t1.out_storehouse_type |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'inbound_operate_type' ) t10 ON t10.item_value = t1.operate_type |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | ) |
| | | ) temp |
| | | </select> |
| | | <select id="queryToolLedgerDetailList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_code toolCodeId, |
| | | t2.tool_code toolCode, |
| | | t1.tool_id onlyCode, |
| | | t2.chinese_name chineseName, |
| | | t2.tool_model toolModel, |
| | | t1.quantity, |
| | | t1.warehouse_id warehouseId, |
| | | ISNULL(t3.warehouse_id, '') + '/' + ISNULL(t3.warehouse_name, '') warehouseName, |
| | | t1.position_code positionCode, |
| | | t5.item_text applicationType |
| | | FROM tms_tool_ledger_detail t1 |
| | | LEFT JOIN tms_base_tools t2 on t1.tool_code = t2.id |
| | | LEFT JOIN tms_warehouse t3 on t1.warehouse_id = t3.id |
| | | left join tms_tools_config_property t4 on t4.tool_code = t2.id |
| | | left join (select * from v_sys_dict where dict_code ='application_type') t5 on t5.item_value = t4.application_type |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.tms.mapper.ToolLedgerMapper"> |
| | | |
| | | <select id="toolLedgerList" resultType="map" parameterType="String"> |
| | | select |
| | | t1.id, |
| | | t1.total_count totalCount, |
| | | t1.available_count availableCount, |
| | | t1.lend_count lendCount, |
| | | t1.loss_count lossCount, |
| | | t1.repair_count repairCount, |
| | | t1.sharpening_count sharpeningCount, |
| | | t1.detection_count detectionCount, |
| | | t2.id toolCodeId, |
| | | t2.tool_code toolCode, |
| | | t2.chinese_name chineseName, |
| | | t2.tool_model toolModel, |
| | | t2.sign_code signCode, |
| | | t2.accuracy_class accuracyClass, |
| | | t2.standard_code standardCode, |
| | | t2.standard_level standardLevel, |
| | | t3.position_code positionCode, |
| | | t3.storage_location storageLocation, |
| | | t3.highest_inventory highestInventory, |
| | | t3.lower_inventory lowerInventory, |
| | | t4.item_text applicationType |
| | | from tms_tool_ledger t1 |
| | | left join tms_base_tools t2 on t1.tool_id = t2.id |
| | | left join tms_tools_config_property t3 on t3.tool_code = t2.id |
| | | left join (select * from v_sys_dict where dict_code = 'application_type') t4 on t4.item_value = t3.application_type |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | </select> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.tms.entity.ToolsLossBoundDetail"> |
| | | SELECT |
| | | t1.*, |
| | | t2.chinese_name chineseName, |
| | | t2.tool_model toolModel, |
| | | t2.classify_id classifyId, |
| | | t2.parama_table_name paramaTableName, |
| | | t3.application_type applicationType, |
| | | t3.supplier_id supplierId, |
| | | t.*, |
| | | t1.classify_id AS classifyId, |
| | | t2.tool_model AS toolModel, |
| | | t2.parama_table_name AS paramaTableName, |
| | | t3.position_code AS positionCode, |
| | | t3.application_type AS applicationType, |
| | | t2.chinese_name AS chineseName, |
| | | t3.supplier_id AS supplierId, |
| | | t3.storage_location AS storageLocation, |
| | | <choose> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '1'"> |
| | | t4.tool_material toolMaterial, |
| | | t4.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '2'"> |
| | | t5.tool_material toolMaterial, |
| | | t5.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '3'"> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '2'"> |
| | | t6.tool_material toolMaterial, |
| | | t6.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '4'"> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '3'"> |
| | | t7.tool_material toolMaterial, |
| | | t7.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '5'"> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '4'"> |
| | | t8.tool_material toolMaterial, |
| | | t8.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '6'"> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '5'"> |
| | | t9.tool_material toolMaterial, |
| | | t9.part_material partMaterial |
| | | </when> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '6'"> |
| | | t10.tool_material toolMaterial, |
| | | t10.part_material partMaterial |
| | | </when> |
| | | <otherwise> |
| | | t10.tool_material toolMaterial, |
| | | t10.part_material partMaterial |
| | | </otherwise> |
| | | </choose> |
| | | FROM tms_loss_bound_detail t1 |
| | | LEFT JOIN tms_base_tools t2 on t1.tool_id = t2.id |
| | | LEFT JOIN tms_tools_config_property t3 on t3.tool_code = t2.id |
| | | FROM tms_loss_bound_detail t |
| | | left join tms_tool_ledger t1 ON t1.tool_id= t.tool_Code |
| | | left join tms_tools_classify t4 on t4.id = t1.classify_id |
| | | left join tms_base_tools t2 on t2.id = t.tool_code |
| | | left join tms_tools_config_property t3 on t3.tool_code = t.tool_code |
| | | |
| | | |
| | | -- LEFT JOIN tms_base_tools t2 on t1.tool_id = t2.id |
| | | -- LEFT JOIN tms_tools_config_property t3 on t3.tool_code = t2.id |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <choose> |
| | | <when test="ew.paramNameValuePairs.paramaTableName == '1'"> |
| | |
| | | </choose> |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | |
| | | <select id="toolLossDetailList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_id onlyCode, |
| | | t1.loss_number lossNumber, |
| | | t1.loss_reason lossReason, |
| | | t2.order_code orderCode, |
| | | t2.loss_time lossTime, |
| | | t3.id toolCodeId, |
| | | t3.tool_code toolCode, |
| | | t3.chinese_name chineseName, |
| | | t3.tool_model toolModel, |
| | | t4.classify_id classifyNum, |
| | | t5.item_text handler |
| | | FROM |
| | | tms_loss_bound_detail t1 |
| | | LEFT JOIN tms_loss_bound t2 ON t2.id = t1.loss_bound_id |
| | | LEFT JOIN tms_base_tools t3 ON t3.id = t1.tool_code |
| | | LEFT JOIN tms_tools_classify t4 ON t4.id = t3.classify_id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'sys_user' ) t5 ON t5.item_value = t2.handler |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.tms.mapper.ToolsSharpeningMapper"> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.tms.entity.vo.ToolSharpeningVo"> |
| | | SELECT |
| | | t.*, |
| | | t1.classify_id AS classifyId, |
| | | t1.parama_table_name AS paramaTableName, |
| | | t2.type_name AS typeName, |
| | | t3.application_type AS applicationType, |
| | | t3.tool_model AS toolModel, |
| | | t3.province_city AS provinceCity, |
| | | t3.chinese_name AS chineseName, |
| | | t3.supplier_id AS supplierId, |
| | | t3.storage_location AS storageLocation, |
| | | t3.main_unit AS mainUnit, |
| | | t4.position_code AS positionCode, |
| | | t4.warehouse_id AS warehouseId |
| | | |
| | | |
| | | SELECT t.*, |
| | | t2.tool_model AS toolModel, |
| | | t2.parama_table_name AS paramaTableName, |
| | | t.tool_id AS toolId, |
| | | t3.position_code AS positionCode, |
| | | t3.application_type AS applicationType, |
| | | t3.chinese_name AS chineseName, |
| | | t3.supplier_id AS supplierId, |
| | | t3.storage_location AS storageLocation, |
| | | t3.main_unit AS mainUnit, |
| | | t3.warehouse_id AS warehouseId, |
| | | t4.classify_id AS classifyId, |
| | | t3.province_city AS provinceCity |
| | | FROM tms_tool_sharpening t |
| | | LEFT JOIN tms_base_tools t1 ON t1.id = t.tool_code |
| | | LEFT JOIN tms_tools_classify t2 ON t1.classify_id = t2.id |
| | | LEFT JOIN tms_tools_config_property t3 ON t3.tool_code = t.tool_id |
| | | LEFT JOIN tms_tool_ledger_detail t4 ON t4.tool_code = t.tool_id |
| | | ${ew.customSqlSegment} |
| | | |
| | | left join tms_tool_ledger t1 ON t1.tool_id = t.tool_Code |
| | | left join tms_tool_ledger_detail t5 ON t5.tool_id = t.tool_Code |
| | | left join tms_tools_classify t4 on t4.id = t1.classify_id |
| | | left join tms_base_tools t2 on t2.id = t.tool_code |
| | | left join tms_tools_config_property t3 on t3.tool_code = t.tool_code |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <select id="toolSharpeningList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_id onlyCode, |
| | | t1.sharpening_time sharpeningTime, |
| | | t1.sharpening_result sharpeningResult, |
| | | t1.sharpening_status sharpeningStatus, |
| | | t1.responsible_person responsiblePerson, |
| | | t2.tool_code toolCode, |
| | | t2.chinese_name chineseName, |
| | | t2.tool_model toolModel, |
| | | t3.classify_id classifyNum, |
| | | t4.item_text sharpeningStatusName |
| | | FROM |
| | | tms_tool_sharpening t1 |
| | | LEFT JOIN tms_base_tools t2 ON t2.id = t1.tool_code |
| | | LEFT JOIN tms_tools_classify t3 ON t3.id = t2.classify_id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'sharpening_status' ) t4 ON t4.item_value = t1.sharpening_status |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | ${ew.customSqlSegment} |
| | | |
| | | </select> |
| | | |
| | | <select id="toolsStocktakingList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.tool_id onlyCode, |
| | | t1.book_quantity bookQuantity, |
| | | t1.available_quantity availableQuantity, |
| | | t1.practical_quantity practicalQuantity, |
| | | t1.surplus_deficit surplusDeficit, |
| | | t1.stocktaking_date stocktakingDate, |
| | | t2.order_code orderCode, |
| | | t2.stocktaking_type stocktakingType, |
| | | t2.stocktaking_name stocktakingName, |
| | | t3.tool_code toolCode, |
| | | t3.chinese_name chineseName, |
| | | t3.tool_model toolModel, |
| | | t4.classify_id classifyNum, |
| | | t5.item_text handler |
| | | FROM |
| | | tms_stocktaking_bound_detail t1 |
| | | LEFT JOIN tms_stocktaking_bound t2 ON t2.id = t1.stocktaking_bound_id |
| | | LEFT JOIN tms_base_tools t3 ON t3.id = t1.tool_code |
| | | LEFT JOIN tms_tools_classify t4 ON t4.id = t3.classify_id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'sys_user' ) t5 ON t5.item_value = t2.handler |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | public interface IOutStoreDetailService extends IService<OutStoreDetail> { |
| | | |
| | | IPage<OutStoreDetailVo> queryPageList(Page<OutStoreDetailVo> page, Map<String, String[]> parameterMap); |
| | | |
| | | IPage<Map<String, Object>> outStoreDetailList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | IPage<Map<String, Object>> queryLendTool(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | |
| | | IPage<Map<String, Object>> querySharpenTool(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | |
| | | IPage<Map<String, Object>> queryToolLedgerDetailList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | package org.jeecg.modules.tms.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.jeecg.modules.tms.entity.ToolLedger; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: tms_tool_ledger |
| | |
| | | */ |
| | | public interface IToolLedgerService extends IService<ToolLedger> { |
| | | |
| | | IPage<Map<String, Object>> toolLedgerList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | */ |
| | | public interface IToolsLossBoundDetailService extends IService<ToolsLossBoundDetail> { |
| | | IPage<ToolsLossBoundDetail> queryPageList(Page<ToolsLossBoundDetail> page, Map<String, String[]> parameterMap); |
| | | |
| | | IPage<Map<String, Object>> toolLossDetailList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | */ |
| | | public interface IToolsSharpeningService extends IService<ToolSharpening> { |
| | | IPage<ToolSharpeningVo> queryPageList(Page<ToolSharpeningVo> page, Map<String, String[]> parameterMap); |
| | | |
| | | IPage<Map<String, Object>> toolSharpeningList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | */ |
| | | public IPage<ToolsStocktakingBoundDetail> selectByMainId(Page<ToolsStocktakingBoundDetail> page, Map<String, String[]> parameterMap); |
| | | |
| | | |
| | | IPage<Map<String, Object>> toolsStocktakingList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | } |
| | |
| | | |
| | | @Autowired |
| | | private IInboundDetailService inboundDetailService; |
| | | |
| | | @Autowired |
| | | private IGoodsShelvesService goodsShelvesService; |
| | | @Override |
| | | public boolean submit(String id) { |
| | | InboundOrder inboundOrder = this.getById(id); |
| | |
| | | @Override |
| | | public void addInStorage(JSONObject jSONObject) { |
| | | String inStorehouseType = jSONObject.getString("inStorehouseType"); |
| | | String locationCodeId = jSONObject.getString("locationCodeId"); |
| | | String classifyId = jSONObject.getString("classifyId"); |
| | | Date inboundTime = jSONObject.getDate("inboundTime"); |
| | | //è·åå
¥åºæç» |
| | |
| | | inStoreDetail.setInStorehouseType("1"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getToolCode()+"-"+result); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //å¢å åºåæç» |
| | | ToolLedgerDetail toolLedgerDetail = new ToolLedgerDetail(); |
| | |
| | | inStoreDetail.setInNumber(inboundDetailVo.getInStorageQuantity()); |
| | | inStoreDetail.setInStorehouseType("1"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //æ¥è¯¢åºåæç»ä¸æ¯å¦åå¨è¯¥å·¥å
· |
| | | ToolLedgerDetail toolLedgerDetail = toolLedgerDetailService.lambdaQuery().eq(ToolLedgerDetail::getToolCode,inboundDetailVo.getToolCodeId()).one(); |
| | |
| | | inStoreDetail.setInStorehouseType("2"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getOnlyCode()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //ä¸ç®¡å°æ |
| | | }else { |
| | |
| | | inStoreDetail.setInNumber(inboundDetailVo.getInStorageQuantity()); |
| | | inStoreDetail.setInStorehouseType("2"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | } |
| | | |
| | |
| | | inStoreDetail.setInStorehouseType("5"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getOnlyCode()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //ä¸ç®¡å°æ |
| | | }else { |
| | |
| | | inStoreDetail.setInNumber(inboundDetailVo.getInStorageQuantity()); |
| | | inStoreDetail.setInStorehouseType("5"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public void addApplyInStorage(JSONObject jSONObject) { |
| | | String inStorehouseType = jSONObject.getString("inStorehouseType"); |
| | | String locationCodeId = jSONObject.getString("locationCodeId"); |
| | | //å
¥åºç³è¯·åid |
| | | String orderId = jSONObject.getString("orderId"); |
| | | //è·åå
¥åºæç» |
| | |
| | | inStoreDetail.setInStorehouseType("1"); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getToolCode()+"-"+result); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //å¢å åºåæç» |
| | | ToolLedgerDetail toolLedgerDetail = new ToolLedgerDetail(); |
| | |
| | | inStoreDetail.setInStorehouseType("1"); |
| | | inStoreDetail.setInStorehouseId(orderId); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //æ¥è¯¢åºåæç»ä¸æ¯å¦åå¨è¯¥å·¥å
· |
| | | ToolLedgerDetail toolLedgerDetail = toolLedgerDetailService.lambdaQuery().eq(ToolLedgerDetail::getToolCode,inboundDetailVo.getToolCodeId()).one(); |
| | |
| | | inStoreDetail.setInStorehouseId(orderId); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getOnlyCode()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //ä¸ç®¡å°æ |
| | | }else { |
| | |
| | | inStoreDetail.setInStorehouseType("2"); |
| | | inStoreDetail.setInStorehouseId(orderId); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | } |
| | | //æ´æ¹æç»å
¥åºç¶æåå®é
å
¥åºæ°é |
| | |
| | | inStoreDetail.setInStorehouseId(orderId); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setToolId(inboundDetailVo.getOnlyCode()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | //ä¸ç®¡å°æ |
| | | }else { |
| | |
| | | inStoreDetail.setInStorehouseType("5"); |
| | | inStoreDetail.setInStorehouseId(orderId); |
| | | inStoreDetail.setToolCode(inboundDetailVo.getToolCodeId()); |
| | | inStoreDetail.setGoodsShelvesId(locationCodeId); |
| | | inStoreDetailService.save(inStoreDetail); |
| | | } |
| | | //æ´æ¹æç»å
¥åºç¶æåå®é
å
¥åºæ°é |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.jeecg.common.exception.ExceptionCast; |
| | | import org.jeecg.modules.tms.entity.OutStoreDetail; |
| | | import org.jeecg.modules.tms.entity.vo.OutStoreDetailVo; |
| | | import org.jeecg.modules.tms.mapper.OutStoreDetailMapper; |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | queryWrapper.orderByDesc("t1.create_time"); |
| | | return this.baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> outStoreDetailList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.eq("t2.classify_id", classifyId); |
| | | } |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t2.tool_code", toolCode); |
| | | } |
| | | String toolModel = query.get("toolModel"); |
| | | if (StringUtils.isNotBlank(toolModel)) { |
| | | queryWrapper.like("t2.tool_mode", toolModel); |
| | | } |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t1.create_time")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().outStoreDetailList(pageData,queryWrapper); |
| | | } |
| | | } |
| | |
| | | } |
| | | return this.baseMapper.querySharpenTool(pageData,queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> queryToolLedgerDetailList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t2.tool_code", toolCode); |
| | | } |
| | | String status = query.get("status"); |
| | | if (StringUtils.isNotBlank(status)) { |
| | | queryWrapper.eq("t1.status", status); |
| | | } |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.like("t2.classify_id", classifyId); |
| | | } |
| | | } |
| | | return this.baseMapper.queryToolLedgerDetailList(pageData,queryWrapper); |
| | | } |
| | | } |
| | |
| | | package org.jeecg.modules.tms.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.jeecg.common.exception.ExceptionCast; |
| | | import org.jeecg.modules.tms.entity.ToolLedger; |
| | | import org.jeecg.modules.tms.mapper.ToolLedgerMapper; |
| | | import org.jeecg.modules.tms.service.IToolLedgerService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: tms_tool_ledger |
| | |
| | | @Service |
| | | public class ToolLedgerServiceImpl extends ServiceImpl<ToolLedgerMapper, ToolLedger> implements IToolLedgerService { |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> toolLedgerList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.eq("t1.classify_id", classifyId); |
| | | } |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t2.tool_code", toolCode); |
| | | } |
| | | String toolModel = query.get("toolModel"); |
| | | if (StringUtils.isNotBlank(toolModel)) { |
| | | queryWrapper.like("t2.tool_mode", toolModel); |
| | | } |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t1.create_time")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().toolLedgerList(pageData,queryWrapper); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.jeecg.common.exception.ExceptionCast; |
| | | import org.jeecg.modules.tms.entity.OutboundDetail; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBound; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | QueryWrapper<ToolsLossBoundDetail> queryWrapper = Wrappers.query(); |
| | | String[] outStorehouseIds = parameterMap.get("lossBoundId"); |
| | | if (outStorehouseIds != null && outStorehouseIds.length > 0) { |
| | | queryWrapper.eq("t1.loss_bound_id", outStorehouseIds[0]); |
| | | queryWrapper.eq("t.loss_bound_id", outStorehouseIds[0]); |
| | | } |
| | | return this.baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> toolLossDetailList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.eq("t3.classify_id", classifyId); |
| | | } |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t3.tool_code", toolCode); |
| | | } |
| | | String toolModel = query.get("toolModel"); |
| | | if (StringUtils.isNotBlank(toolModel)) { |
| | | queryWrapper.like("t3.tool_mode", toolModel); |
| | | } |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t1.create_time")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().toolLossDetailList(pageData,queryWrapper); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.jeecg.common.exception.ExceptionCast; |
| | | import org.jeecg.modules.tms.entity.ToolSharpening; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | | import org.jeecg.modules.tms.entity.vo.ToolSharpeningVo; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | return this.baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> toolSharpeningList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.eq("t2.classify_id", classifyId); |
| | | } |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t2.tool_code", toolCode); |
| | | } |
| | | String toolModel = query.get("toolModel"); |
| | | if (StringUtils.isNotBlank(toolModel)) { |
| | | queryWrapper.like("t2.tool_mode", toolModel); |
| | | } |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t1.create_time")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().toolSharpeningList(pageData,queryWrapper); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.jeecg.common.exception.ExceptionCast; |
| | | import org.jeecg.modules.tms.entity.ToolsStocktakingBoundDetail; |
| | | import org.jeecg.modules.tms.mapper.ToolsStocktakingBoundDetailMapper; |
| | | import org.jeecg.modules.tms.service.IToolsStocktakingBoundDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | return toolsStocktakingBoundDetailMapper.selectByMainId(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> toolsStocktakingList(Integer pageNo, Integer pageSize, Map<String, String> query) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != query) { |
| | | String classifyId = query.get("classifyId"); |
| | | if (StringUtils.isNotBlank(classifyId)) { |
| | | queryWrapper.eq("t3.classify_id", classifyId); |
| | | } |
| | | String toolCode = query.get("toolCode"); |
| | | if (StringUtils.isNotBlank(toolCode)) { |
| | | queryWrapper.like("t3.tool_code", toolCode); |
| | | } |
| | | String toolModel = query.get("toolModel"); |
| | | if (StringUtils.isNotBlank(toolModel)) { |
| | | queryWrapper.like("t3.tool_mode", toolModel); |
| | | } |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t1.create_time")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().toolsStocktakingList(pageData,queryWrapper); |
| | | } |
| | | |
| | | } |