CN110502350B - Node calling method and device, terminal and computer readable storage medium - Google Patents

Node calling method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110502350B
CN110502350B CN201910627372.XA CN201910627372A CN110502350B CN 110502350 B CN110502350 B CN 110502350B CN 201910627372 A CN201910627372 A CN 201910627372A CN 110502350 B CN110502350 B CN 110502350B
Authority
CN
China
Prior art keywords
information
program
identifier
code
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910627372.XA
Other languages
Chinese (zh)
Other versions
CN110502350A (en
Inventor
谢威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910627372.XA priority Critical patent/CN110502350B/en
Publication of CN110502350A publication Critical patent/CN110502350A/en
Application granted granted Critical
Publication of CN110502350B publication Critical patent/CN110502350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a device, a terminal and a computer readable storage medium for calling nodes, wherein the method comprises the following steps: receiving a node calling instruction sent by an external program, and determining a preset function module corresponding to the interface identifier, wherein the node calling instruction comprises the program identifier of the external program and the interface identifier required to be called by the external program; acquiring sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset functional modules; returning the referral information to the external program. The method and the device are used for optimizing the research and development process, and the fields in the preset functional module are sequenced through the sequencing information, so that the field combination can be carried out according to different requirements, and the requirements of different external programs are met.

Description

Node calling method and device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for calling a node, a terminal, and a computer-readable storage medium.
Background
In the existing application program, different function modules are set to correspond to different services, and an external program gives a calling interface to call the different function modules to realize corresponding functions. The execution sequence and parameters of the codes in each functional module are stored in the existing application codes through hard coding, when the service change needs, the codes in the functional modules need to be corresponded, and because the requirements of each external program are different, the external programs can be normally called for maintenance, so that the modification work needs to consider the influence on each external program, the modification workload is large, and the maintenance cost is high.
Therefore, how to solve the technical problems of high coupling and high maintenance cost of the existing functional module becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a node calling method, a node calling device, a terminal and a computer readable storage medium, and aims to solve the technical problems of high coupling and high maintenance cost of the conventional functional module.
In order to achieve the above object, the present invention provides a method for calling a node, where the method for calling a node includes:
receiving a node calling instruction sent by an external program, and determining a preset function module corresponding to the interface identifier, wherein the node calling instruction comprises the program identifier of the external program and the interface identifier required to be called by the external program;
acquiring sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset functional modules;
returning the referral information to the external program.
Preferably, the code identification is SQL-ID; the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing the fields corresponding to the code identifiers according to the code identifier sequence in the sorting information, and generating the parameter information comprises the following steps:
acquiring sequencing information corresponding to the program identifier in a database;
sorting the fields corresponding to the SQL-ID through a rank function and the sorting information, sequentially executing codes corresponding to the SQL-ID, and generating the parameter information.
Preferably, the step of sorting the fields corresponding to the SQL-IDs by the rank function and the sorting information, sequentially executing the codes corresponding to the SQL-IDs, and generating the parameter information includes:
sorting the fields corresponding to the SQL-ID through a rank function and the sorting information;
and executing codes corresponding to the code identifications, calling dynamic configuration information corresponding to the code identifications and the program identifications in the database, and generating the reference information.
Preferably, the node call instruction further includes entry information; the step of executing the code corresponding to each code identifier, calling the dynamic configuration information corresponding to each code identifier and corresponding to the program identifier in the database, and generating the parameter information includes:
executing the code corresponding to each code identifier, calling the dynamic configuration information corresponding to each code identifier and the program identifier in the database, calling the parameter-entering information, and generating parameter-exiting information.
Preferably, after the step of receiving a node call instruction sent by an external program and determining a preset function module corresponding to the interface identifier, the method includes:
inquiring a corresponding check-in and check-out rule according to the preset function module;
judging whether the participation information conforms to the participation verification rule or not;
if the entry information does not accord with the entry checking rule, generating prompt information and returning the prompt information to the external program;
if the participation information accords with the participation verification rule, executing: and acquiring sequencing information corresponding to the program identifiers from a database, and sequentially executing codes corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate the parameter information.
Preferably, the code is identified as an attribute value of the data unit Bean; the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing the fields corresponding to the code identifiers according to the code identifier sequence in the sorting information, and generating the parameter information comprises the following steps:
acquiring sequencing information corresponding to the program identifier in a database;
and sorting the fields corresponding to the data unit beans through a rank function and the attribute values, and sequentially executing codes corresponding to the data unit beans to generate the parameter information.
Preferably, the method for calling the node includes:
receiving an output flow instruction, wherein the output flow instruction comprises the interface identifier;
and generating flow information corresponding to the interface identification, wherein the flow information comprises an interface document and sequencing information corresponding to the interface identification, and a field comment corresponding to the code identification in the sequencing information.
The invention also provides a node calling device, which comprises:
the receiving module is used for receiving a node calling instruction sent by an external program and determining a preset function module corresponding to the interface identifier, wherein the node calling instruction comprises a program identifier of the external program and the interface identifier required to be called by the external program;
the generating module is used for acquiring sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information, and generating reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset function module;
a sending module, configured to return the participation information to the external program.
The invention also provides a terminal, which is characterized by comprising a processor, a memory, a communicator and a calling program of a node which is stored on the memory and can be executed by the processor, wherein when the calling program of the node is executed by the processor, the steps of the calling method of the node are realized.
The invention also provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores a calling program of a node, wherein when the calling program of the node is executed by a processor, the steps of the calling method of the node are realized.
In the technical scheme of the invention, the fields in the preset function modules are sequenced through the sequencing information, so that the field combination can be carried out according to different requirements aiming at each developed preset function module so as to meet the requirements of different external programs; the sequencing information is put into the database, so that the coupling of the preset functional module is reduced, and when the field sequence needs to be changed, the sequencing information in the database can be changed.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for invoking a node according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a node calling method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a node invocation method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a method for invoking a node according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a node invocation method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth embodiment of a method for invoking a node according to the present invention;
FIG. 8 is a flowchart illustrating a seventh embodiment of a node invocation method according to the present invention;
fig. 9 is a block diagram of a node calling apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The method for calling the node is mainly applied to the terminal, and the terminal is equipment with a processing function, can be a portable computer and can also be a server.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal structure according to an embodiment of the present invention. In the embodiment of the present invention, the terminal may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for implementing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation of the apparatus, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer-readable storage medium, may include an operating system, a network communication module, and a calling program of a node.
In fig. 1, the network communication module is mainly used for connecting the user terminal and performing data communication with the user terminal; and the processor 1001 may call a calling program of the node stored in the memory 1005 and perform steps of a calling method of the node.
Based on the hardware structure of the terminal, the invention provides various embodiments of the calling method of the node.
The invention provides a method for calling nodes.
Referring to fig. 2, in a first embodiment of the present invention, a method for calling a node includes the following steps:
step S100, receiving a node calling instruction which is sent by an external program and comprises a program identifier of the external program and an interface identifier required to be called by the external program, and determining a preset function module corresponding to the interface identifier;
a plurality of preset function modules are prestored in the terminal, each preset function module is composed of codes, and the codes are executed to realize preset functions. When the external program needs to call the preset function module to realize the preset function, a node calling instruction is sent to call the preset function module to finish the preset function, and the external program does not need to be rewritten by codes corresponding to the external program and an interface is provided for the external program. The interface identifier is a character for distinguishing each interface, and specifically may be a call interface address URL.
Step S200, obtaining sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information, and generating reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset function module;
the database is pre-stored with the sequencing information corresponding to each preset functional module, and the code identifications in the sequencing information are arranged according to a preset sequence. One code identification corresponds to one section of code (field), and the codes corresponding to the code identifications are sequentially executed according to the sequence of the code identifications so as to generate the parameter information. And sequencing the fields corresponding to the preset function module according to the sequencing information, so that codes can be executed according to different external programs in different orders, and different parameter information is generated.
For example: the external program needs to realize the function of generating the user information table A, the external program sends a node calling instruction to the interface, the sequencing information of the user information table A is determined and generated according to the node calling instruction, fields corresponding to the sequencing information are fields a1, b1 and c1 in sequence, the fields a1, b1 and c1 are executed, the parameter information of the fields a1, b1 and c1 is generated in sequence, and the parameter information of the fields a1, b1 and c1 forms the user information table A. If the external program needs to generate the user information table B, the user information table B is composed of the parameter information of a1, B1 and d1, wherein the parameter information of the d1 field needs to be called in the execution process of the B1 field, the sequencing information of the user information table B is sequentially arranged among a1, d1 and B1, so that the d1 field is executed first and then the B1 field is executed in execution.
And step S300, returning the parameter information to the external program.
And returning the parameter information according to the program identifier and the original path, and receiving the parameter information by an external program to finish the node calling.
In the invention, the fields in the preset function modules are sequenced through the sequencing information, so that the field combination can be carried out according to different requirements aiming at each developed preset function module so as to meet the requirements of different external programs; the sequencing information is put into the database, so that the coupling of the preset functional module is reduced, and when the field sequence needs to be changed, the sequencing information in the database can be changed.
Further, referring to fig. 3, fig. 3 is a schematic flowchart of a second embodiment of the calling method of the node according to the present invention, where based on the first embodiment, the code identifier is SQL-ID; the step S200 includes:
step S210, obtaining the sequencing information corresponding to the program identification in a database;
and S220, sequencing the fields corresponding to the SQL-ID through a rank function and the sequencing information, sequentially executing codes corresponding to the SQL-ID, and generating the parameter information.
SQL-ID is the only identification representing SQL statement, and the system finds the corresponding SQL statement according to SQL-ID. The sequencing information comprises a plurality of SQL-IDs arranged in sequence, and each SQL-ID corresponds to one SQL statement. The sequence is pre-edited by those skilled in the art according to the SQL statements required by different requirements of the external program, so that different pieces of the participating information are generated by arranging different SQL statements according to the sequence in the ordering information. The SQL-ID can be generated automatically or modified according to actual needs.
And sequentially acquiring SQL sentences according to the SQL-ID sequence in the sequencing information by calling a rank function to form a code to be executed, and sequentially executing the code to generate the required parameter information. By setting the sequencing information, the same SQL sentences can be realized, and the reference information conforming to each external program is generated according to different arrangement orders.
Further, referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the method for invoking a node according to the present invention, and based on the second embodiment, the step S220 includes:
step S221, sorting the fields corresponding to the SQL-ID through a rank function and the sorting information;
step S222, executing the code corresponding to each code identifier, and calling the dynamic configuration information corresponding to each code identifier and corresponding to the program identifier in the database to generate the parameter information.
The dynamic configuration information is parameter data pre-stored in a database according to actual needs by those skilled in the art. Different external programs correspond to different dynamic configuration information so as to realize that the parameter information generated by executing the preset function module meets the requirements of the external programs. When the dynamic configuration information needs to be changed, the dynamic configuration information in the database is directly modified without modifying the field in the preset function module, so that abnormal calling of other external programs B, C, D and the like caused by modifying the field in the preset function module by the external program A is avoided.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of the method for calling a node according to the present invention, where based on the third embodiment, the node calling instruction further includes entry information; the step 222 includes:
step S223 is to execute the code corresponding to each code identifier, call the dynamic configuration information corresponding to each code identifier and corresponding to the program identifier in the database, and call the parameter entry information to generate parameter exit information.
The parameter information is parameter information given by an external program for realizing a certain function. In this embodiment, in the process of generating the parameter information by the preset function module, the dynamic configuration information and the parameter information need to be called.
Further, referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of the method for invoking a node according to the present invention, and based on the fourth embodiment, after the step S100, the method includes:
step S400, inquiring a corresponding check-in rule according to the preset function module;
the entry check rule can judge whether the data type of the entry information accords with a preset type or not; and judging whether the access information is blank or not, whether the access information is any one of a plurality of preset information is consistent or not, and the like so as to avoid operation and output errors caused by the error of the access information.
Step S500, judging whether the participation information accords with the participation checking rule;
step S600, if the participation information does not accord with the participation checking rule, generating prompt information and returning the prompt information to the external program;
if the participation information accords with the participation checking rule, executing: the step S200.
For example, if the preset rule is that the data type of the entry information is a numerical value, step S500 specifically includes: and judging whether the data type of the access information is a numerical value or not, and if the received access information is a character, generating prompt information and returning the prompt information to the external program. Preferably, the participating information is also provided with participating verification rules corresponding to the preset function module so as to ensure the accuracy of the participating information.
In another embodiment, the step S600 may further be:
if the participation information does not accord with the participation checking rule, judging whether the participation information is provided with a default value corresponding to the participation information;
if the access information has a default value corresponding to the access information, setting the access information as the default value;
and if the access information has no default value corresponding to the access information, generating prompt information and returning the prompt information to the external program.
For the entry information which is not checked to pass, error information can be generated and returned; the entry information may also be set to a default value. For example, the accession information is "sex: "the original entry information is blank information, and the default value corresponding to the gender is" male ", the entry information is modified to" gender: after the male ", step S200 is performed.
Further, referring to fig. 7, fig. 7 is a flowchart illustrating a sixth embodiment of the method for calling a node according to the present invention, where based on the first embodiment, the code identifier is an attribute value of a data unit Bean; the step S200 includes:
step S230, obtaining the sequencing information corresponding to the program identification in a database;
and step S240, sorting the fields corresponding to the data unit beans through a rank function and the attribute values, sequentially executing codes corresponding to the data unit beans, and generating the parameter information.
A preset function module may be composed of one data unit Bean, or may be composed of a plurality of data unit beans. Each data unit Bean includes attributes (properties), methods (methods) and events (events), and the attribute values of the data unit beans used in different pieces of ordering information may be the same or different, for example: and the attribute value of the data unit Bean adopted in the sorting information A is a node number ID, codes corresponding to the data unit Bean are sorted through a rank function and the node number ID, and then the parameter generating information is sequentially generated.
Further, referring to fig. 8, fig. 8 is a flowchart illustrating a seventh embodiment of a method for calling a node according to the present invention, where based on the first embodiment, the method for calling a node includes:
step S800, receiving an output flow instruction, wherein the output flow instruction comprises the interface identifier;
step S900, generating flow information corresponding to the interface identifier, wherein the flow information comprises an interface document and sequencing information corresponding to the interface identifier, and a field comment corresponding to a code identifier in the sequencing information.
The interface document specifically includes: interface description, request mode (GET/POST/RETRIEVE/UPDATE), call URL (interface address), type and limitation of the parameter information, parameter information (return packet structure), and the like. And generating flow information corresponding to the interface identifier by giving the interface identifier so as to facilitate maintenance personnel of an external program to set a node calling instruction and access reference information according to the interface document.
Further, the calling method further comprises:
and verifying the interface document according to a preset verification rule, and marking the part which does not accord with the preset verification rule. For example: and marking the entry parameter information a corresponding to the interface A as unnecessary in the generated interface document, marking the part if the entry parameter information a corresponding to the interface A is obtained as an essential item according to the verification rule, and modifying by a developer according to the marked part.
In addition, the present invention also provides a node calling apparatus, including:
a receiving module 10, where the receiving module 10 is configured to receive a node call instruction sent by an external program, and determine a preset function module corresponding to the interface identifier, where the node call instruction includes a program identifier of the external program and an interface identifier that the external program needs to call;
a generating module 20, where the generating module 20 is configured to obtain sorting information corresponding to the program identifier from a database, sequentially execute fields corresponding to each code identifier according to a code identifier order in the sorting information, and generate reference information, where the sorting information includes the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset function module;
a sending module 30, wherein the sending module 30 is configured to return the parameter information to the external program.
Further, the code identification is SQL-ID; the generating module 20 includes:
a first obtaining unit, configured to obtain, in a database, ranking information corresponding to the program identifier;
and the first sequencing unit is used for sequencing the fields corresponding to the SQL-IDs through a rank function and the sequencing information, sequentially executing codes corresponding to the SQL-IDs and generating the parameter information.
Further, the first sorting unit is configured to sort the fields corresponding to the SQL-ID through a rank function and the sorting information;
executing codes corresponding to the code identifications, calling dynamic configuration information corresponding to the code identifications and the program identifications in the database, and generating the parameter information.
Further, the node calling instruction further comprises entry parameter information; the first sequencing unit is used for executing the codes corresponding to the code identifications, calling the dynamic configuration information corresponding to the code identifications and the program identifications in the database, calling the parameter-entering information and generating parameter-exiting information.
Further, the receiving module 10 includes:
the query unit is used for querying the corresponding check-in and check-out rules according to the preset functional module;
the judging unit is used for judging whether the participation information conforms to the participation verification rule or not;
the prompting unit is used for generating prompting information and returning the prompting information to the external program if the entry information does not accord with the entry checking rule;
if the entry information conforms to the entry verification rule, the generation module 20 is configured to obtain sorting information corresponding to the program identifier from a database, sequentially execute codes corresponding to the code identifiers according to a code identifier order in the sorting information, and generate entry information.
Further, the code is identified as an attribute value of the data unit Bean; the generating module 20 includes:
a second obtaining unit configured to obtain, in a database, ranking information corresponding to the program identifier;
and the second sorting unit sorts the fields corresponding to the data unit beans through a rank function and the attribute values, sequentially executes codes corresponding to the data unit beans and generates the parameter information.
Further, the air conditioner is provided with a fan,
the receiving module 10 is configured to receive an output flow instruction, where the output flow instruction includes the interface identifier;
the generating module 20 is configured to generate flow information corresponding to the interface identifier, where the flow information includes an interface document and ranking information corresponding to the interface identifier, and a field comment corresponding to a code identifier in the ranking information.
In addition, the present invention also provides a computer readable storage medium, on which a calling program of a node is stored, wherein when the calling program of the node is executed by a processor, the steps of the calling method of the node are implemented.
The method implemented when the calling program of the node is executed may refer to various embodiments of the calling method of the node of the present invention, and details thereof are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (4)

1. A calling method of a node is characterized in that the calling method of the node comprises the following steps:
receiving a node calling instruction sent by an external program, and determining a preset function module corresponding to an interface identifier, wherein the node calling instruction comprises the program identifier of the external program and the interface identifier required to be called by the external program;
acquiring sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset functional modules;
returning the referral information to the external program;
wherein the code identification is SQL-ID; the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing the fields corresponding to the code identifiers according to the code identifier sequence in the sorting information, and generating the parameter information comprises the following steps:
acquiring sequencing information corresponding to the program identifier in a database;
sorting fields corresponding to the SQL-ID through a rank function and the sorting information, and sequentially executing codes corresponding to each SQL-ID to generate reference information;
the step of sorting the fields corresponding to the SQL-ID through the rank function and the sorting information, sequentially executing the codes corresponding to the SQL-ID, and generating the parameter information comprises the following steps of:
sorting the fields corresponding to the SQL-ID through a rank function and the sorting information;
sequentially executing codes corresponding to the SQL-ID, calling dynamic configuration information corresponding to the program identification and the code identification in the database, and generating parameter information;
the node calling instruction further comprises entry information; the step of executing the codes corresponding to the SQL-ID in sequence, calling the dynamic configuration information corresponding to the program identifier and the code identifier in the database and generating the parameter information comprises the following steps:
sequentially executing codes corresponding to the SQL-ID, calling dynamic configuration information corresponding to the program identifier and the code identifier in the database, calling the parameter-entering information and generating parameter-exiting information;
after the step of receiving a node call instruction sent by an external program and determining a preset function module corresponding to an interface identifier, the method further includes:
inquiring a corresponding check-in and check-out rule according to the preset function module;
judging whether the participation information conforms to the participation verification rule or not;
if the entry information does not accord with the entry checking rule, generating prompt information and returning the prompt information to the external program;
if the participation information accords with the participation checking rule, executing: acquiring sequencing information corresponding to the program identifiers from a database, and sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate the parameter information;
the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing fields corresponding to the code identifiers according to the code identifier order in the sorting information, and generating the parameter information further includes:
acquiring sequencing information corresponding to the program identifier in a database;
sorting fields corresponding to data unit beans through a rank function and an attribute value, and sequentially executing the fields corresponding to the data unit beans to generate parameter information;
the calling method of the node further comprises the following steps:
receiving an output flow instruction, wherein the output flow instruction comprises the interface identifier;
and generating flow information corresponding to the interface identification, wherein the flow information comprises an interface document and sequencing information corresponding to the interface identification, and a field comment corresponding to the code identification in the sequencing information.
2. A node call apparatus, wherein the node call apparatus comprises:
the receiving module is used for receiving a node calling instruction sent by an external program and determining a preset function module corresponding to an interface identifier, wherein the node calling instruction comprises the program identifier of the external program and the interface identifier required to be called by the external program;
the generating module is used for acquiring sequencing information corresponding to the program identifiers in a database, sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information and generating reference information, wherein the sequencing information comprises the arranged code identifiers, and the code identifiers respectively correspond to the fields of the preset function module;
a sending module, configured to return the participation information to the external program;
wherein the code identification is SQL-ID; the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing the fields corresponding to the code identifiers according to the code identifier sequence in the sorting information, and generating the parameter information comprises the following steps:
acquiring sequencing information corresponding to the program identifier in a database;
sorting fields corresponding to the SQL-ID through a rank function and the sorting information, and sequentially executing codes corresponding to each SQL-ID to generate reference information;
the step of sorting the fields corresponding to the SQL-ID through the rank function and the sorting information, sequentially executing the codes corresponding to the SQL-ID, and generating the parameter information comprises the following steps of:
sorting the fields corresponding to the SQL-ID through a rank function and the sorting information;
sequentially executing codes corresponding to the SQL-ID, calling dynamic configuration information corresponding to the program identification and the code identification in the database, and generating parameter information;
the node calling instruction further comprises entry information; the step of executing the codes corresponding to the SQL-ID in sequence, calling the dynamic configuration information corresponding to the program identifier and the code identifier in the database and generating the parameter information comprises the following steps:
sequentially executing codes corresponding to the SQL-IDs, calling dynamic configuration information corresponding to the program identifiers and the code identifiers in the database, calling the parameter input information and generating parameter output information;
after the step of receiving a node call instruction sent by an external program and determining a preset function module corresponding to an interface identifier, the method further includes:
inquiring a corresponding check-in and check-out rule according to the preset function module;
judging whether the participation information conforms to the participation verification rule or not;
if the participation information does not accord with the participation checking rule, generating prompt information and returning the prompt information to the external program;
if the participation information accords with the participation verification rule, executing: acquiring sequencing information corresponding to the program identifiers from a database, and sequentially executing fields corresponding to the code identifiers according to the code identifier sequence in the sequencing information to generate the parameter information;
the step of obtaining the sorting information corresponding to the program identifier from the database, sequentially executing fields corresponding to the code identifiers according to the code identifier order in the sorting information, and generating the parameter information further includes:
acquiring sequencing information corresponding to the program identifier in a database;
sorting fields corresponding to data unit beans through a rank function and an attribute value, and sequentially executing the fields corresponding to the data unit beans to generate parameter information;
the receiving module is further configured to:
receiving an output flow instruction, wherein the output flow instruction comprises the interface identifier;
the generation module is further configured to:
and generating flow information corresponding to the interface identification, wherein the flow information comprises an interface document and sequencing information corresponding to the interface identification, and a field comment corresponding to the code identification in the sequencing information.
3. An electronic terminal comprising a processor, a memory, a communicator, and a calling program of a node stored on the memory and executable by the processor, wherein the calling program of the node, when executed by the processor, implements the steps of the calling method of the node according to claim 1.
4. A computer-readable storage medium, wherein a calling program of a node is stored on the computer-readable storage medium, and wherein the calling program of the node, when executed by a processor, implements the steps of the calling method of the node according to claim 1.
CN201910627372.XA 2019-07-11 2019-07-11 Node calling method and device, terminal and computer readable storage medium Active CN110502350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910627372.XA CN110502350B (en) 2019-07-11 2019-07-11 Node calling method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910627372.XA CN110502350B (en) 2019-07-11 2019-07-11 Node calling method and device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110502350A CN110502350A (en) 2019-11-26
CN110502350B true CN110502350B (en) 2023-03-21

Family

ID=68586102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910627372.XA Active CN110502350B (en) 2019-07-11 2019-07-11 Node calling method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110502350B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254029B (en) * 2020-12-30 2024-02-02 深圳怡化电脑股份有限公司 Peripheral interface setting method and device of terminal equipment and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6249783B1 (en) * 1998-12-17 2001-06-19 International Business Machines Corporation Method and apparatus for efficiently executing built-in functions
JP2012128628A (en) * 2010-12-15 2012-07-05 Internatl Business Mach Corp <Ibm> Optimization apparatus for program, optimization method and optimization program
CN106936937A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 For the implementation method and device of the general-purpose interface of Internet service interaction
CN108776710A (en) * 2018-06-28 2018-11-09 农信银资金清算中心有限责任公司 A kind of concurrent stowage and device of database data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6249783B1 (en) * 1998-12-17 2001-06-19 International Business Machines Corporation Method and apparatus for efficiently executing built-in functions
JP2012128628A (en) * 2010-12-15 2012-07-05 Internatl Business Mach Corp <Ibm> Optimization apparatus for program, optimization method and optimization program
CN106936937A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 For the implementation method and device of the general-purpose interface of Internet service interaction
CN108776710A (en) * 2018-06-28 2018-11-09 农信银资金清算中心有限责任公司 A kind of concurrent stowage and device of database data

Also Published As

Publication number Publication date
CN110502350A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
US6629098B2 (en) Method and system for validating data submitted to a database application
CN109814856B (en) Data entry method, device, terminal and computer readable storage medium
CN110750442A (en) Test case generation method, device, equipment and storage medium
CN109657128B (en) Data query method, device and storage medium
CN108984712A (en) Counting method, equipment and readable storage medium storing program for executing are made based on business scenario
CN110134576B (en) Batch log query method, terminal and computer readable storage medium
JP2007025868A (en) Category setting support method and device
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN110377697B (en) Method, device and equipment for updating metadata standard and storage medium
CN104756113A (en) Method, apparatus and computer program for detecting deviations in data sources
CN111083017A (en) Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN110909013A (en) Service list generation method, device, equipment and computer readable storage medium
WO2004023342A1 (en) Method and system for registering goods information
CN111026670A (en) Test case generation method, test case generation device, and storage medium
CN110502350B (en) Node calling method and device, terminal and computer readable storage medium
CN112306004B (en) Semiconductor process recipe management method and system
CN115439080A (en) Work order automatic processing method and electronic equipment
CN106708897B (en) Data warehouse quality guarantee method, device and system
CN111831286B (en) User complaint processing method and device
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN112214532A (en) Service data auditing method and related device
CN110188432B (en) System architecture verification method, electronic device and computer-readable storage medium
CN112052262A (en) Method and device for displaying payment order processing line and electronic equipment
CN110866007A (en) Information management method, system and computer equipment for big data application and table
CN114997592A (en) Vehicle part assembly point inspection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant