Target service interface generation method and device, medium and electronic equipment

By extracting data structures from the business table to generate approval processes, and using AI model training to generate target business interfaces that are adapted to different developers' habits, the complexity of business interface development and maintenance in the marine manufacturing business scenario is solved, and efficient business interface adaptation and maintenance is achieved.

CN119938010APending Publication Date: 2025-05-06JIANGNAN SHIPYARD (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510003182.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the marine manufacturing business scenario, due to the different business needs of each business department, different business interfaces need to be made, and business needs are constantly changing, and new business interfaces need to be manually developed and maintained, resulting in time-consuming and laborious development and maintenance.

Method used

By obtaining the business data structure in the business table, generating an approval process, and inputting the initial and modified business interfaces as training sets into the AI ​​model for training, the trained AI model is obtained, thereby generating a target business interface that is adapted to the development and maintenance habits of different developers.

Benefits of technology

It realizes the generation of target business interfaces that are adapted to the development and maintenance habits of different developers, reduces the workload of manual development and maintenance, and improves the adaptability and efficiency of business interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938010A_ABST
    Figure CN119938010A_ABST
Patent Text Reader

Abstract

The invention provides a target service interface generation method and device, a medium and electronic equipment. The target service interface generation method comprises the following steps: making a service data logic table (service table for short) by a service analyst, and obtaining a service data structure from the service table; creating a data table in a preset database, generating an approval process and generating an initial service interface; modifying the initial service interface to obtain a modified service interface; inputting the initial service interface and the modified service interface as a training set into a preset AI model for training to obtain a trained AI model; a service data structure obtained from the service table is input into the trained AI model, a target service interface is obtained, and the target service interface can adapt to development and maintenance habits of different developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of shipbuilding, and in particular relates to a method and device for generating a target business interface, a medium, and an electronic device. Background Art

[0002] At present, the shipbuilding business scenario is very complex, including: manufacturing workshop management, site management, material management, transportation management, personnel management, administrative management and life logistics management. Different business scenarios correspond to different business departments. Each business department proposes corresponding business requirements to developers by filling in the business logic table (hereinafter referred to as the business table) on a specific platform. The business table involves the approval process, approvers and approval conditions related to business activities. Developers develop and maintain business interfaces based on the business table. With the help of the business interface, they can update the current status of the approval request and notify the corresponding approvers to approve and other matters.

[0003] Since the business needs of each business department are different, different business interfaces need to be created. Moreover, business needs are constantly changing, and new business interfaces need to be developed and the original business interfaces need to be maintained manually to meet new business needs. In addition, different developers will adjust the business interfaces according to their own development and maintenance habits during the development and maintenance of business interfaces. The need to process different business interfaces makes development and maintenance work time-consuming and laborious. Summary of the invention

[0004] One of the purposes of the present application is to provide a method and device, medium, and electronic device for generating a target business interface, which can generate a target business interface that can adapt to the development and maintenance habits of different developers.

[0005] To achieve the above-mentioned purpose and other related purposes, the present application provides a method for generating a target service interface in a first aspect, comprising the following steps:

[0006] Obtaining a business table, and obtaining a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field;

[0007] Creating a data table related to the business table in a preset database; generating an approval process in the data table according to the selection field; and generating an initial business interface after modifying the approval process; modifying the initial business interface to obtain a modified business interface;

[0008] Input the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model;

[0009] The business data structure obtained from the business table is input into the trained AI model to obtain a target business interface, which can adapt to the development and maintenance habits of different developers.

[0010] A second aspect of the present application provides a target service interface generation device, including:

[0011] Acquisition data module; the acquisition data module is used to acquire a business table, and acquire a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field;

[0012] An approval process generation module; the approval process generation module is used to create a data table related to the business table in a preset database; based on the selected fields, an approval process is generated in the data table; a business interface generation module; the business interface generation module is used to modify the approval process and then generate an initial business interface;

[0013] A service interface modification module; the service interface modification module is used to modify the initial service interface to obtain a modified service interface;

[0014] AI model training module; the AI ​​model training module is used to input the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model;

[0015] Target business interface generation module; the target business interface generation module is used to input the business data structure obtained from the business table into the trained AI model to obtain a target business interface, and the target business interface can adapt to the development and maintenance habits of different developers.

[0016] A third aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the above-mentioned target service interface generation method.

[0017] A fourth aspect of the present application provides an electronic device, comprising: at least one memory for storing a program;

[0018] At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the above-mentioned target service interface generation method.

[0019] This application has at least the following beneficial effects:

[0020] The present application provides a method and device, medium, and electronic device for generating a target business interface, which obtains data from a business table by means of AI visual recognition; inserts data extracted from the business table into a preset database table structure to generate an approval process; selects whether to call a process engine to execute the corresponding approval process based on a decision field in the business table to generate an initial business interface; inputs the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model; inputs the business data structure obtained from the business table into the trained AI model to obtain a target business interface, and the target business interface can adapt to the development and maintenance habits of different developers. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 It is a flowchart of a method for generating a target service interface according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following describes the implementation methods of the present application through specific specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in the present application can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0024] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be considered as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0025] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc., and multiple elements refer to two or more elements, etc.

[0026] This embodiment provides a method for generating a target service interface, including the following steps:

[0027] Obtaining a business table, and obtaining a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field;

[0028] The business data structure may include: business application node data, business approval node data and business operation data. Among them, business application node data includes: applicant data, business name data, business number data, operation location data, etc.; business approval node data includes: approver data, approval result data and approval date data at different approval stages, etc.; business operation data includes: document status data, withdrawal operation data, etc., and withdrawal operation data includes withdrawal reason data and withdrawal time data.

[0029] The business data structure may include: table name, field name, character length and field type according to data type. Business personnel can fill in the table name, field name and field content in the user interface (such as PC end), where the table name and field name can be in Chinese. The field name includes the decision field, which is used to determine whether to use the business approval node data and which business approval node data to select.

[0030] Business tables may include business main tables and business sub-tables according to table names. Business main tables are used to store basic data of business application node data, basic data of business approval node data, and basic data of business operation data, such as work location data; business sub-tables are used to store extended data of business application node data, extended data of business approval node data, and extended data of business operation data, such as work tool data related to work location data. Business sub-tables are associated with the primary key of the business main table through foreign keys.

[0031] In some embodiments of the present application, the basic data of the business application node data in the business main table and the extended data of the business application node data in the business sub-table are marked with the same color, and / or the basic data of the business approval node data in the business main table and the extended data of the business approval node data in the business sub-table are marked with the same color, and / or the basic data of the business operation data in the business main table and the extended data of the business operation data in the business sub-table are marked with the same color, and the same color marking is used to identify data in the business main table related to the business sub-table and data in the business sub-table related to the business main table.

[0032] In some embodiments of the present application, data at different approval stages in the business approval node data may be marked with colors from light to dark in the order of the approval process.

[0033] Business application node data, business approval node data and business operation data can be extracted from the business table according to the content through AI visual recognition. The table name, field name, character length and field type can also be extracted from the business table according to the data type.

[0034] Specifically, AI visual recognition can be used to obtain an image of the business table, pre-process the image of the business table, and extract the above data according to the data type in the business data structure. AI visual recognition can also extract the same color parts in the business main table and the business sub-table by identifying colors, and extract data at different approval stages in the business approval node data according to the order of light to dark colors.

[0035] While extracting fields (or data) from business tables through AI visual recognition, the storage space for the extracted fields (or data) can also be determined. For example, if the field content is in Chinese, the storage space can be allocated based on the Chinese meaning of the field name and field type. For example, if the field name is an applicant or approver in Chinese, the storage space required for the personnel ID is reserved. If the field name is a date in Chinese, the storage space required for the date is reserved.

[0036] By generating SQL statements through the Create Table statement of the SQL database operation language, you can generate business-related main tables and sub-tables in the database.

[0037] In some embodiments of the present application, when the field name is Chinese data, the step of obtaining the business data structure from the business table also includes translating the field name visually recognized by the AI ​​into English.

[0038] A data table related to the business table is created in a preset database; the data table related to the business table includes a preset process name information table, a preset approval node table, a preset approver group table, a preset approval method table, etc. The preset process name information table includes multiple preset business names; the preset approval node table is associated with the preset process information table, and the preset approval node table includes multiple preset approval nodes corresponding to the preset business names of the preset process name information table (different preset approval nodes correspond to different preset approval node levels). The preset approver group table is associated with the preset approval node table, and the preset approver group table includes multiple preset approver groups corresponding to the preset approval nodes of the preset approval node table. The preset approval method table is related to the preset approval node table to determine whether skipping is allowed and whether single-person approval is required.

[0039] The data tables related to the business table can be packaged into a functional module (i.e., a process engine) to facilitate program calls. Specifically, based on the preset database table structure, combined with the functions of adding approval process (i.e., adding business approval node), approval (i.e., approving the current approval node), withdrawal (i.e., returning to the previous approval node), and skipping (i.e., skipping the current approval node), etc., they are packaged into a DLL file.

[0040] According to the selected fields, an approval process is generated in the data table; and an initial business interface is generated after the approval process is modified;

[0041] According to the selection field, the step of generating the approval process in the data table includes: creating a data table related to the business table in a preset database, the data table related to the business table includes a process engine basic data table, and the process engine basic data table is used to generate data related to the approval process.

[0042] The data table includes an approval process basic data table, and the target business interface generation method includes configuring a process engine by inserting data in the business data structure into the approval process basic data table, and the process engine is used to manage the approval process related to the business table. Specifically, the process information is used as a parameter to call the generation process, process flow, process jump and other modules in the process engine to realize the generation of the approval process and the corresponding approval process functions.

[0043] The target business interface generation method also includes configuring a process engine and configuring a visual process configuration interface;

[0044] The visual process configuration interface is mainly used for: after using the process engine to generate process data, developers can modify the approval process on the visual process configuration interface, specifically modify the approval nodes, approval methods, etc. in the approval process.

[0045] The developer modifies the initial business interface to obtain a modified business interface; the initial business interface and the modified business interface are input into the AI ​​model as training sets for training to obtain a trained AI model; the business data structure obtained from the business table is input into the trained AI model to obtain a target business interface.

[0046] The business interface includes at least one business interface related to the business table: an application interface, an application history query interface, an application withdrawal interface, a pending approval query interface, an approval interface, an approval record query interface, and a report interface.

[0047] Among them, in the process of generating at least one business interface including the application interface, application withdrawal interface, pending approval query interface, approval interface and approval record query interface related to the business table, it can be determined whether to call the process engine to participate in the generation of the business interface based on the decision field in the business table to realize the approval flow in the interface.

[0048] Generating an application interface related to the business table includes: obtaining business application node data and decision fields, judging whether to use the process engine to execute according to the decision fields, and adding the function of creating an approval flow while generating the business application interface. The data containing the "application" field in the business table can be used as a parameter of the application interface related to the business table, and the business application node data is used as a return value.

[0049] Generating an application history query interface related to the business table includes: obtaining business application node data, using the data containing the "application" field in the business table as parameters of the application history query interface related to the business table, and using the business application node data as the return value, so as to facilitate front-end developers to call the application history query interface related to the business table.

[0050] Generating an application withdrawal interface related to the business table includes: obtaining a decision field, judging whether the withdrawal operation requires approval based on the decision field, and whether to use the process engine to execute the approval process generated in the previous step. For example, judging by the decision field. If approval is not required, calling the process engine to terminate the approval method set in the process engine; if approval is required, executing the corresponding approval process. Generating an application withdrawal interface related to the business table also includes: changing the document status data of the business table to a withdrawal status; and updating the field data related to the withdrawal in the business table.

[0051] Generating an approval-pending query interface related to the business table includes: obtaining business application node data and business approval node data, using the approver data of the business approval node data and the business number data of the business application node data as parameters of the approval-pending query interface related to the business table; using the process engine to execute a query method to query all the approval-pending business number data corresponding to the approver data, and returning the data in the business table data structure corresponding to all the approval-pending business number data to the developer at the front end.

[0052] Generating an approval interface related to the business table includes: using the data structure corresponding to all the business number data to be approved in the step of generating the pending approval query interface related to the business table (including approver data, approval result data, and approval date data) as parameters of the approval interface related to the business table, calling the process engine to execute the approval process, and updating the document status data of the business table to the next business approval node, and notifying the approver of the next business approval node.

[0053] Generating an approval record query interface related to the business table includes: obtaining business application node data and business approval node data, using the approver data of the business approval node data and the business number data of the business application node data as parameters of the pending approval query interface related to the business table; using the process engine to execute the query method to query all approved business number data corresponding to the approver data, and returning the data of the business table corresponding to all approved business number data (including approval result data of each stage) to the developer at the front end.

[0054] Generating a report interface related to the business table includes: obtaining business application node data and business approval node data, using the approver data of the business approval node data and the applicant data of the business application node data and the data containing the "application" field in the business table as parameters of the report interface related to the business table, and generating a report interface including approval record query, report information and document details.

[0055] Modifying the initial business interface includes: adjusting the generated business interface according to the developer's development habits or historical modification records; and / or adjusting the writing standards of the code used to generate the business interface; and / or optimizing the performance of the generated business interface.

[0056] The initial business interface and the modified business interface are used as training sets to input the AI ​​model for training. Through supervised learning, the AI ​​model learns the development habits of different developers. The AI ​​model can generate target business interfaces for different developers based on the content of the business table. The target business interface is the business interface generated by the trained AI model, and the target business interface can adapt to the development and maintenance habits of different developers.

[0057] A second aspect of the present application provides a target service interface generation device, including:

[0058] Acquisition data module; the acquisition data module is used to acquire a business table, and acquire a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field;

[0059] An approval process generation module; the approval process generation module is used to create a data table related to the business table in a preset database; and generate an approval process in the data table according to the selection field;

[0060] A business interface generation module; the business interface generation module is used to generate an initial business interface after modifying the approval process;

[0061] A service interface modification module; the service interface modification module is used to modify the initial service interface to obtain a modified service interface;

[0062] AI model training module; the AI ​​model training module is used to input the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model;

[0063] Target business interface generation module; the target business interface generation module is used to input the business data structure obtained from the business table into the trained AI model to obtain a target business interface, and the target business interface can adapt to the development and maintenance habits of different developers.

[0064] The third aspect of the present application provides a computer-readable storage medium, on which a program of a target business interface generation method is stored, so that the target business interface generation method provided in the first aspect of the present application is executed. As for the aforementioned computer-readable storage medium, those skilled in the art can understand that the implementation example of the functions of the aforementioned system and each unit can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, it executes an implementation example including the functions of the aforementioned system and each unit. The aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM or optical disk.

[0065] In a fourth aspect, the present application provides an electronic device, comprising: at least one memory for storing programs; at least one processor for executing the programs stored in the memory. The electronic device may be a server. The electronic device comprises a processor, a memory, a network interface and a database connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device comprises a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, the function or step of generating a target business interface is realized.

[0066] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present application. These improvements and substitutions should also be regarded as the scope of protection of the present application.

Claims

1. A method for generating a target service interface, characterized in that: The following steps are involved: Obtaining a business table, and obtaining a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field; Creating a data table related to the business table in a preset database; Generate an approval process in the data table according to the selected fields; After modifying the approval process, an initial business interface is generated; Modifying the initial service interface to obtain a modified service interface; Input the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model; The business data structure obtained from the business table is input into the trained AI model to obtain a target business interface, which can adapt to the development and maintenance habits of different developers.

2. The target service interface generation method according to claim 1, characterized in that: The data structure that conforms to the business logic is obtained from the business table through AI visual recognition.

3. The target service interface generation method according to claim 2, characterized in that: The business data structure of the business table includes: business application node field information, business approval node field information and business operation related fields; The business table includes, by table name: a business main table and a business sub-table; the business main table is used to store the basic data of the business application node data, the basic data of the business approval node data and the basic data of the business operation data; the business sub-table is used to store the extended data of the business application node data, the extended data of the business approval node data and the extended data of the business operation data; The basic data of the business application node data in the business main table and the extended data of the business application node data in the business sub-table are marked with the same color, and / or the basic data of the business approval node data in the business main table and the extended data of the business approval node data in the business sub-table are marked with the same color, and / or the basic data of the business operation data in the business main table and the extended data of the business operation data in the business sub-table are marked with the same color, and the same color is used to identify the data related to the business sub-table in the business main table and the data related to the business main table in the business sub-table; By means of AI visual recognition, data of the same color can be extracted from the business main table and the business sub-table.

4. The target service interface generation method according to claim 2, characterized in that: The business data structure of the business table includes, by type: table name, field name, character length and field type; the field name is in Chinese; the step of obtaining the business data structure from the business table also includes translating the field name identified by AI vision into an English field, and the English field is used to generate the data table.

5. The method for generating a target service interface according to claim 1, characterized in that: The data table includes an approval process basic data table, and the target business interface generation method includes configuring a process engine by inserting data in the business data structure into the approval process basic data table, and the process engine is used to manage the approval process related to the business table.

6. The method for generating a target service interface according to claim 1, characterized in that: The target business interface generation method includes modifying the approval nodes and approval methods in the generated approval process basic data table on the visual process configuration interface.

7. The method for generating a target service interface according to claim 1, characterized in that: The business interface includes at least one business interface related to the business table: an application interface, an application history query interface, an application withdrawal interface, a pending approval query interface, an approval interface, an approval record query interface, and a report interface.

8. The method for generating a target service interface according to claim 7, characterized in that: The field name includes a decision field; the decision field is used to determine whether to call the process engine to participate in generating at least one business interface related to the business table and with an approval flow function, including an application interface, an application withdrawal interface, an approval query interface, an approval interface, and an approval record query interface.

9. The method for generating a target service interface according to claim 1, characterized in that: The modification of the generated business interface includes: adjusting the generated business interface according to the development habits or historical modification records of the developers; and / or adjusting the writing standards of the code used to generate the business interface; and / or optimizing the performance of the generated business interface.

10. A target service interface generating device, characterized in that: include: Acquisition data module; the acquisition data module is used to acquire a business table, and acquire a business data structure that conforms to the business logic from the business table; the business data structure includes a decision field; Approval process generation module; The approval process generation module is used to create a data table related to the business table in a preset database; Generate an approval process in the data table according to the selected fields; Business interface generation module; The business interface generation module is used to generate an initial business interface after modifying the approval process; A service interface modification module; the service interface modification module is used to modify the initial service interface to obtain a modified service interface; AI model training module; The AI ​​model training module is used to input the initial business interface and the modified business interface as training sets into a preset AI model for training to obtain a trained AI model; Target business interface generation module; The target business interface generation module is used to input the business data structure obtained from the business table into the trained AI model to obtain a target business interface, and the target business interface can adapt to the development and maintenance habits of different developers.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a processor, the processor executes the target service interface generation method according to any one of claims 1 to 9.

12. An electronic device, characterized in that: include: at least one memory for storing a program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the target service interface generation method as described in any one of claims 1 to 9.