CN109254768B - Method for acquiring certificate making information, terminal equipment and medium - Google Patents

Method for acquiring certificate making information, terminal equipment and medium Download PDF

Info

Publication number
CN109254768B
CN109254768B CN201810933621.3A CN201810933621A CN109254768B CN 109254768 B CN109254768 B CN 109254768B CN 201810933621 A CN201810933621 A CN 201810933621A CN 109254768 B CN109254768 B CN 109254768B
Authority
CN
China
Prior art keywords
certification
control codes
logic control
service data
function
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
CN201810933621.3A
Other languages
Chinese (zh)
Other versions
CN109254768A (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 Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810933621.3A priority Critical patent/CN109254768B/en
Publication of CN109254768A publication Critical patent/CN109254768A/en
Application granted granted Critical
Publication of CN109254768B publication Critical patent/CN109254768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The invention is applicable to the technical field of information processing, and provides a method for acquiring certification information, terminal equipment and a medium, wherein the method comprises the following steps: creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode; creating an electronic certificate object according to the received object creation instruction; respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading logic control codes corresponding to the identifiers when receiving a selection instruction sent by a user; acquiring additional control codes input by a user in a configurable field contained in the attribute setting list, and integrating the logic control codes and the additional control codes; if the business data matched with the electronic certificate object is detected, the business data is subjected to certificate making based on the integrated certificate making code so as to output certificate making information. The invention reduces repeated development of codes and improves development efficiency and certification efficiency.

Description

Method for acquiring certificate making information, terminal equipment and medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method for obtaining certification information, a terminal device, and a computer readable storage medium.
Background
Conventional certification methods generally include: the business data is manually collected, format audit is carried out on the business data, necessary certificate making information such as certificate making date is added, and finally the business data subjected to the format audit and the added certificate making information are stored in a certificate making table together, so that certificate making is completed.
In order to improve the efficiency of certificate making, each large enterprise is online with an accounting system to complete the automatic certificate making processing of service data through a preset certificate making logic code. However, accounting rules and account set categories used in the certification process are different for different types of business data, and thus, when new types of business data occur, developers have to make updates to the logic code and modifications to the system hierarchy architecture of the accounting system. Because the development and update period of the system is longer and the development efficiency is lower, when receiving the new type of business data, the system is often difficult to timely perform the certification processing on the business data, thereby reducing the certification efficiency.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method for obtaining certification information, a terminal device, and a computer readable storage medium, so as to solve the problem in the prior art that certification efficiency is low because timely certification processing on various types of service data is difficult to achieve.
A first aspect of an embodiment of the present invention provides a method for obtaining certification information, including:
creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode;
creating an electronic certificate object according to the received object creation instruction;
respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user to the identifier;
acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes;
and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
A second aspect of an embodiment of the present invention provides a terminal device, including a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing the following steps when executing the computer program:
Creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode;
creating an electronic certificate object according to the received object creation instruction;
respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user to the identifier;
acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes;
and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
A third aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program which when executed by a processor performs the steps of:
creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode;
Creating an electronic certificate object according to the received object creation instruction;
respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user to the identifier;
acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes;
and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
In the embodiment of the invention, by creating a plurality of father class credential templates, each father class credential template is associated with a logic control code corresponding to one type of accounting rule, so that when a system receives any type of business data, the system can quickly call the existing partial logic control codes based on the created father class credential templates, thereby reducing the maintenance complexity of the codes, reducing the repeated development of the codes and improving the development efficiency; meanwhile, when the new type of service data is detected, the embodiment of the invention can rapidly obtain the logic control code suitable for carrying out the certification processing on the current service data based on the accounting system with shorter development and update period, thereby improving the certification efficiency and ensuring the certification timeliness of the service data; in the embodiment of the invention, besides the logic control codes associated with the parent class credential templates, the developer can also add the additional control codes in a self-defined way, so that the expansibility and the development flexibility of the accounting system are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an implementation of a method for obtaining certification information according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific implementation of the method S104 for obtaining certification information according to the embodiment of the present invention;
fig. 3 is a flowchart of a specific implementation of the method S105 for obtaining certification information according to the embodiment of the present invention;
FIG. 4 is a flowchart of a specific implementation of a method S1053 for obtaining certification information according to an embodiment of the present invention;
FIG. 5 is a flowchart of another embodiment of a method S105 for obtaining certification information according to the present invention;
FIG. 6 is a block diagram of a device for acquiring certification information according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Fig. 1 shows an implementation flow of a method for obtaining certification information according to an embodiment of the present invention, where the method flow includes steps S101 to S106. The specific implementation principle of each step is as follows:
s101: creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode.
The management system used in the enterprise operation process is a business system and comprises a financial management system, an accounting management system, a account reporting management system, a settlement system and the like which are related to various financial data. The various data stored by the service system are service data.
In the embodiment of the invention, the accounting mode used in the certification process is different for different types of business data. And for each type of service data existing in the service system, determining a certification algorithm for executing certification processing on the type of service data according to the accounting mode corresponding to the type of service data. Wherein, the certification algorithm is determined based on logic control codes input by developers. Each type of traffic data is associated with a set of logical control codes.
In the embodiment of the invention, a plurality of parent class credential templates are created in a credential platform according to received credential template input instructions. The parent class credential template is used for providing a code inheritance template for the logic control code corresponding to the service data. In the embodiment of the invention, each parent class credential template is associated and bound with a set of pre-stored logic control codes.
S102: and creating the electronic certificate object according to the received object creation instruction.
The electronic certificate object is a basic element in the certificate making platform. In the embodiment of the invention, each electronic certificate object is created according to the received object creation instruction. When an application request is detected with respect to any one of the electronic credential objects, the credential platform will invoke a credential code corresponding to the electronic credential object.
S103: and respectively displaying identifiers of the parent class credential templates in the attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user for the identifier.
Each electronic certificate object has its corresponding attribute information. Specifically, after the electronic credential object is created, or when an attribute setting instruction is received, an attribute setting list of the electronic credential object is presented. In the embodiment of the invention, in order to identify each created parent class credential template, a user-defined identifier is allocated to each parent class credential template, and each identifier is displayed in the attribute setting list.
When receiving a selection instruction sent by a user to any identifier, determining that the user needs to call a parent class credential template corresponding to the identifier, and loading a logic control code corresponding to the identifier.
S104: and acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes.
In the embodiment of the invention, a plurality of configurable fields are displayed in the attribute setting list in addition to identifiers of the parent class credential templates. The configurable field is used for receiving parameter information related to the certification algorithm, which is input by a user. For example, the configurable field may be an editable text entry box, at which time the program code entered by the user in the text entry box may be retrieved to determine the portion of program code as additional control code to be added to the logical control code.
In the embodiment of the present invention, the logic control code obtained by loading in S103 and the additional control code obtained currently are integrated, so as to output the certification code required by the user.
As an embodiment example of the present invention, the integrating the logic control code with the additional control code specifically includes: and acquiring each function called by the logic control code, detecting a reserved function in which the function body is null, and adding an additional control code into the function body of the reserved function.
As another embodiment example of the present invention, the integrating the logic control code with the additional control code specifically includes: after the additional control code is added to the logic control code, the logic control code and the additional control code are sequentially executed when the integrated certification code is executed.
As an embodiment of the present invention, fig. 2 shows a specific implementation flow of the method S104 for obtaining certification information provided in the embodiment of the present invention, which is described in detail below:
s1041: respectively displaying each function component option and each parameter option in a component configuration field and a parameter configuration field contained in the attribute setting list; each of the function component options corresponds to a function component of a software function, and the parameter options correspond to field parameters associated with the function component.
In the embodiment of the invention, a component configuration field and a parameter configuration field are respectively displayed in an attribute setting list of the electronic certificate object. Wherein, a plurality of function component options are displayed in the component configuration field, a plurality of parameter options are displayed in the parameter configuration field, and each parameter option in the parameter configuration field is associated with one function component option selected in real time currently.
For example, three selection values of the function component a, the function component B, and the function component C are shown in the component configuration field, and only one selection value is in the real-time selection state at any time. If the selection value in the real-time selection state is the function component C, each parameter option associated with the function component C is displayed in the parameter configuration field.
S1042: and loading corresponding function component codes and parameter configuration values according to the option values respectively determined by the user in the component configuration field and the parameter configuration field.
In the embodiment of the invention, each function component option corresponds to a software function, and the function component codes for realizing the software function are preset by a developer. And according to the selection instruction sent by the user, determining that the user loads the corresponding functional component codes in the component configuration field.
S1043: and combining the function component codes and the parameter configuration values based on a preset algorithm to obtain additional control codes, and integrating and storing the logic control codes and the additional control codes.
According to the option value determined by the user in the parameter configuration field, reading the parameter configuration value associated with the function component field, and adaptively adding the parameter configuration value into the function component code, thereby realizing flexible adjustment of the assignable fields such as functions or parameters contained in the function component code, and obtaining the adjusted additional control code.
In the embodiment of the invention, the component configuration field and the parameter configuration field are provided in the attribute setting list, so that a developer can automatically generate the additional control code after quickly determining the required functional components and parameter configuration values based on the selection instruction, thereby improving the development efficiency of the additional control code and reducing the operation complexity of inputting the additional control code.
S105: and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
After outputting the certification code associated with the electronic certification object based on the step S104, obtaining the service data type selected by the user from the service data type options displayed in the attribute setting list, and binding the service data type with the current electronic certification object for application. Wherein, each service data type is associated with a preset data screening algorithm.
In the embodiment of the invention, for each electronic certificate object which is currently applied, according to the data screening algorithm associated with the electronic certificate object, the service data uploaded by the service system in real time is detected to judge whether the service data accords with the data screening algorithm.
And if the service data accords with the data screening algorithm associated with the electronic certificate object, determining that the service data is matched with the electronic certificate object. At this time, according to the certification code corresponding to the electronic certification object, certification processing is performed on the currently received service data to generate certification information.
In the embodiment of the invention, by creating a plurality of father class credential templates, each father class credential template is associated with a logic control code corresponding to one type of accounting rule, so that when a system receives any type of business data, the system can quickly call the existing partial logic control codes based on the created father class credential templates, thereby reducing the maintenance complexity of the codes, reducing the repeated development of the codes and improving the development efficiency; meanwhile, when the new type of service data is detected, the embodiment of the invention can rapidly obtain the logic control code suitable for carrying out the certification processing on the current service data based on the accounting system with shorter development and update period, thereby improving the certification efficiency and ensuring the certification timeliness of the service data; in the embodiment of the invention, besides the logic control codes associated with the parent class credential templates, the developer can also add the additional control codes in a self-defined way, so that the expansibility and the development flexibility of the accounting system are improved.
As an embodiment of the present invention, fig. 3 shows a specific implementation flow of the method S105 for obtaining certification information provided in the embodiment of the present invention, which is described in detail below:
s1051: dividing the integrated certification making code into a plurality of functional modules, wherein each functional module comprises a number obtaining module, a checking module and a certification making module, and each functional module corresponds to one functional task.
In the embodiment of the invention, the integrated certification code is output and displayed for each electronic certificate object, so that after the certification code is read by a user, a function module dividing instruction sent by the user is received. Based on the function module dividing instruction, the certification code is divided into three function modules respectively, wherein the three function modules comprise a number obtaining module, a checking module and a certification module. Wherein each functional module corresponds to a functional task. Specifically, the fetch module is used for reading the business data matched with the electronic certificate object; the accounting module is used for accounting the read business data; and the certification making module is used for adding necessary certification making information to the business data after accounting is completed so as to complete certification making.
S1052: and if the business data matched with the electronic certificate object is detected, respectively creating working threads for executing the functional tasks.
In the embodiment of the invention, if the service data matched with the electronic certificate object is detected, three functional modules associated with the electronic certificate object are determined to be required to be triggered currently, so that working threads for executing all the functional tasks are respectively created according to the functional tasks corresponding to each functional module.
S1053: sequentially starting the working threads corresponding to the functional modules according to the preset arrangement sequence of the functional modules; and when the execution completion of the functional task corresponding to the working thread sequenced in the front is detected, starting the next working thread sequenced in the rear.
The functional tasks respectively corresponding to the acquisition module, the accounting module and the evidence making module are an acquisition task, an accounting task and an evidence making task. Because the certification task needs to certify the service data with the accounting completed, and the accounting task needs to finish reading the service data in advance, in the embodiment of the invention, the number taking task, the accounting task and the certification task need to be sequentially executed, so that the arrangement sequence of each functional module is recorded as the number taking module, the accounting module and the certification module in the certification platform.
When the service data matched with the electronic certificate object is detected, the working thread corresponding to each functional module is started in sequence according to the arrangement sequence of each functional module. That is, the working thread corresponding to the number obtaining module is started first, then the working thread corresponding to the accounting module is started, and finally the working thread corresponding to the certification module is started. And triggering the next working thread sequenced after the starting to execute the corresponding functional task only when the completion of the execution of the functional task corresponding to the working thread started before is detected.
In the embodiment of the invention, each functional task is executed by the corresponding one working thread, and the plurality of functional tasks correspond to the plurality of working threads, so that the situation that the same business data is accessed and processed by the plurality of working threads simultaneously is avoided by starting the working threads respectively corresponding to the functional modules in sequence and starting the next working thread after the completion of the execution of the functional tasks corresponding to the working threads before the sequencing is detected. In addition, in the implementation of the invention, when the certification codes matched with the obtained service data are obtained, the certification codes are split into a plurality of functional modules in advance, so that the strong coupling among the certification codes is relieved, each working thread only processes the flow task corresponding to one certification stage, and the management of the codes by developers is facilitated, thereby improving the maintainability of the system.
Fig. 4 shows a specific implementation flow of the method S1053 for obtaining certification information according to the embodiment of the present invention, which is described in detail below:
s10531: and is connected with a pre-created message bus MQ queue.
In the embodiment of the present invention, a Message Queue (MQ) Queue is a first-in first-out Queue, and the MQ Queue is used for storing Message messages to be transmitted. In the certification platform, an MQ queue is created in advance. After each working thread in the certification platform is started, the working thread is connected with the pre-created MQ queue.
When the information needs to be transferred between any two working threads, the information is transferred through the MQ queue.
S10532: when the execution completion of the functional task corresponding to the current working thread is detected, the MQ message created in real time is inserted into the MQ queue; wherein the MQ message carries a tag value identifying the next working thread ordered thereafter.
In the embodiment of the invention, for the working thread started at the current moment, the execution state of the functional task corresponding to the working thread is detected in real time. If the completion of the execution of the functional task corresponding to the worker thread is detected, an MQ message for notifying the start of the next worker thread is created.
And determining the next working thread sequenced after the current working thread according to the preset arrangement sequence of each working thread, and acquiring the label value of the next working thread. Wherein the tag value is used to uniquely identify each worker thread that has been created.
And adding the obtained tag value into the created MQ message, and inserting the MQ message carrying the tag value into a connected MQ queue.
S10533: and searching and starting the working thread matched with the tag value in each working thread which establishes a subscription relation with the MQ queue according to the tag value.
In the MQ queue, if it is required to distribute an MQ message to other consumers, the relationship between the consumers and the MQ queue is referred to as a subscription relationship. In the embodiment of the invention, after each working thread corresponding to the functional module is created, each created working thread is respectively in a subscription relation with the MQ queue. After the MQ message is inserted into the MQ queue, the tag value carried by the MQ message is identified, and the working thread matched with the tag value is found out from the working threads which establish a subscription relation with the MQ queue. And sending the MQ message to the searched working thread to enable the working thread to start. In the embodiment of the invention, the sent MQ message is removed from the MQ queue.
In the embodiment of the invention, when the execution completion of the functional task corresponding to the current working thread is detected, the MQ message is sent to the pre-connected MQ queue, so that the MQ queue can accurately send the MQ message to the matched next working thread. Because the speed of processing the information by different working threads is different, buffering and decoupling between the different working threads can be realized based on the MQ queue, so that the expandability and the reliability of the system are improved; because the MQ queue can provide a subscription interface for each working thread, other working threads with subscription relation can timely monitor and receive the MQ messages in the MQ queue, and therefore each working thread can quickly respond when receiving the matched MQ messages.
On the basis of the above embodiment, as another embodiment of the present invention, as shown in fig. 5, the step S105 sequentially starts the working threads corresponding to the functional modules according to a preset arrangement sequence of the functional modules, and further includes:
s1054: and acquiring the preset execution time length of the functional task for the functional task executed by the currently started working thread.
In the embodiment of the invention, the preset execution duration of each working thread is prestored in the certification platform. The preset execution duration of each working thread is used for judging whether the working thread is executed completely, and the preset execution duration of each working thread can be set according to the average duration from the start of execution to the completion of execution of one working thread.
S1055: and restarting the working thread and recording the restarting times of the working thread if the MQ message for marking the completion of the execution of the functional task is not detected at the ending moment corresponding to the preset execution duration.
S1056: if the restart times of the working thread are detected to be larger than a preset threshold value, sending overtime alarm prompt information; the overtime alarm prompt information is used for prompting a user whether to terminate the working thread.
And starting a timer to count when each working thread is started. When the timing time is greater than or equal to the preset execution duration, if the MQ message for identifying the completion of the execution of the functional task is still not detected, determining that the task of the current working thread is abnormal in execution, and therefore restarting the working thread and resetting the timer. And, each time a worker thread is restarted, the number of times the worker thread is restarted is increased by one.
After the restarting times of the working threads are recorded each time, before determining the restarting operation of the working threads, judging whether the restarting times are larger than a preset threshold value. If the judgment result is negative, restarting the working thread; if yes, sending overtime alarm information. The overtime alarm prompt information comprises information of the working thread and is used for informing a developer of the certification platform whether to terminate the currently started working thread.
In this embodiment, when the actual execution time of the working thread is longer than or equal to the preset execution time, the working thread is not directly ended, but the user is prompted to perform the intervention operation in an alarm manner, so that legal working threads are prevented from being killed when the data processing amount is more, and the verification efficiency of the data is improved. When the user determines that the current working thread is normally executed, the instruction for continuing to execute can be triggered through the interactive interface of the certification platform so as to control the certification platform to continue to execute the working thread.
When the user determines that the current working thread is overtime due to the data abnormality, the user can trigger a working thread termination instruction through an interactive interface of the certification platform, and at the moment, the corresponding working thread is restarted according to the information of the working thread contained in the working thread termination instruction, so that the certification platform is prevented from directly starting the next working thread when the current moment reaches the ending moment corresponding to the preset execution duration of the target working thread, and the ordered execution of the data is ensured.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Corresponding to the method for acquiring the certification information provided by the embodiment of the present invention, fig. 6 shows a block diagram of a device for acquiring the certification information provided by the embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the apparatus includes:
the template creation unit 61 is configured to create a plurality of parent class credential templates, where each of the parent class credential templates is associated with a logic control code corresponding to a class of accounting mode.
The object creating unit 62 is configured to create an electronic certificate object according to the received object creation instruction.
And a display unit 63, configured to display identifiers of the parent credential templates in the attribute setting list of the electronic credential object, and load the logic control code corresponding to the identifier when receiving a selection instruction sent by a user to any one of the identifiers.
The first obtaining unit 64 is configured to obtain, from each configurable field included in the attribute setting list, an additional control code input by a user, and integrate and store the logic control code and the additional control code.
And the certification unit 65 is configured to perform certification processing on the service data based on the integrated certification code and output certification information if the service data matched with the electronic certificate object is detected.
Optionally, the certification unit 65 includes:
the system comprises a dividing subunit, a verification module and a verification module, wherein the dividing subunit is used for dividing the integrated verification code into a plurality of functional modules, each functional module comprises a number obtaining module, a checking module and a verification module, and each functional module corresponds to one functional task.
And the creation subunit is used for respectively creating working threads for executing the functional tasks if the business data matched with the electronic certificate object is detected.
The starting unit is used for sequentially starting the working threads corresponding to the functional modules according to the preset arrangement sequence of the functional modules; and when the execution completion of the functional task corresponding to the working thread sequenced in the front is detected, starting the next working thread sequenced in the rear.
Optionally, the promoter unit is specifically configured to:
connecting with a pre-established message bus MQ queue;
when the execution completion of the functional task corresponding to the current working thread is detected, the MQ message created in real time is inserted into the MQ queue; the MQ message carries a tag value for identifying the next working thread sequenced later;
And searching and starting the working thread matched with the tag value in each working thread which establishes a subscription relation with the MQ queue according to the tag value.
Optionally, the first obtaining unit 64 includes:
the display subunit is used for respectively displaying each function component option and each parameter option in the component configuration field and the parameter configuration field contained in the attribute setting list; each of the function component options corresponds to a function component of a software function, and the parameter options correspond to field parameters associated with the function component.
And the loading subunit is used for loading the corresponding function component codes and parameter configuration values according to the option values respectively determined in the component configuration field and the parameter configuration field by the user.
And the storage subunit is used for combining the functional component codes and the parameter configuration values based on a preset algorithm to obtain additional control codes, and integrating and storing the logic control codes and the additional control codes.
Optionally, the device for acquiring the certificate making information further includes:
the second obtaining unit is used for obtaining the preset execution duration of the functional task executed by the currently started working thread.
And the recording unit is used for restarting the working thread and recording the restarting times of the working thread if the MQ message for marking the completion of the execution of the functional task is not detected at the ending moment corresponding to the preset execution time.
The sending unit is used for sending overtime alarm prompt information if detecting that the restarting times of the working thread is larger than a preset threshold value; the overtime alarm prompt information is used for prompting a user whether to terminate the working thread.
Fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72 stored in the memory 71 and executable on the processor 70, such as a certification information acquisition program. The processor 70, when executing the computer program 72, performs the steps of the above-described respective method embodiments for obtaining certification information, such as steps 101 to 105 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the units 61-65 shown in fig. 6.
By way of example, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 72 in the terminal device 7.
The terminal device 7 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the terminal device 7 and does not constitute a limitation of the terminal device 7, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 71 may also be used for temporarily storing data that has been output or is to be output.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The method for acquiring the certificate making information is characterized by comprising the following steps:
creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode; the parent class credential template is used for providing a code inheritance template for a logic control code corresponding to the service data; for different types of service data, the accounting modes used in the certification process are different, and for each type of service data existing in the service system, a certification algorithm for executing certification processing on the type of service data is determined according to the accounting mode corresponding to the type of service data, wherein the certification algorithm is determined based on logic control codes input by developers;
Creating an electronic certificate object according to the received object creation instruction; respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user to the identifier;
acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes; wherein, the integrating the logic control code with the additional control code specifically includes: acquiring each function called by the logic control code, detecting a reserved function in which a function body is null, and adding the additional control code into the function body of the reserved function;
and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
2. The method for obtaining certification information of claim 1, wherein if the service data matched with the electronic certificate object is detected, performing certification processing on the service data based on the integrated certification code to output certification information, comprising:
Dividing the integrated certification making code into a plurality of functional modules, wherein each functional module comprises a number obtaining module, a checking module and a certification making module, and each functional module corresponds to one functional task;
if the business data matched with the electronic certificate object is detected, respectively creating working threads for executing the functional tasks;
sequentially starting the working threads corresponding to the functional modules according to the preset arrangement sequence of the functional modules; and when the execution completion of the functional task corresponding to the working thread sequenced in the front is detected, starting the next working thread sequenced in the rear.
3. The method for obtaining certification information according to claim 2, wherein the sequentially starting the working threads corresponding to the function modules according to the preset arrangement sequence of the function modules includes:
connecting with a pre-established message bus MQ queue;
when the execution completion of the functional task corresponding to the current working thread is detected, the MQ message created in real time is inserted into the MQ queue; the MQ message carries a tag value for identifying the next working thread sequenced later;
And searching and starting the working thread matched with the tag value in each working thread which establishes a subscription relation with the MQ queue according to the tag value.
4. The method for obtaining certification information of claim 2, wherein the steps of obtaining additional control codes inputted by the user in the respective configurable fields included in the attribute setting list, integrating the logic control codes with the additional control codes, and storing the integrated logic control codes comprise:
respectively displaying each function component option and each parameter option in a component configuration field and a parameter configuration field contained in the attribute setting list; each function component option corresponds to a function component of a software function, and the parameter option corresponds to a field parameter associated with the function component;
loading corresponding function component codes and parameter configuration values according to option values respectively determined by a user in the component configuration field and the parameter configuration field;
and combining the function component codes and the parameter configuration values based on a preset algorithm to obtain additional control codes, and integrating and storing the logic control codes and the additional control codes.
5. The method for obtaining certification information according to claim 3, wherein the sequentially starting the working threads corresponding to the function modules according to a preset arrangement sequence of the function modules further comprises:
acquiring a preset execution duration of a functional task executed by the currently started working thread;
restarting the working thread and recording the restarting times of the working thread if the MQ message for marking the completion of the execution of the functional task is not detected at the ending moment corresponding to the preset execution duration;
if the restart times of the working thread are detected to be larger than a preset threshold value, sending overtime alarm prompt information; the overtime alarm prompt information is used for prompting a user whether to terminate the working thread.
6. A terminal device comprising a memory and a processor, said memory storing a computer program executable on said processor, characterized in that said processor when executing said computer program performs the steps of:
creating a plurality of parent class credential templates, wherein each parent class credential template is associated with a logic control code corresponding to a class of accounting mode; the parent class credential template is used for providing a code inheritance template for a logic control code corresponding to the service data; for different types of service data, the accounting modes used in the certification process are different, and for each type of service data existing in the service system, a certification algorithm for executing certification processing on the type of service data is determined according to the accounting mode corresponding to the type of service data, wherein the certification algorithm is determined based on logic control codes input by developers;
Creating an electronic certificate object according to the received object creation instruction;
respectively displaying identifiers of the parent class credential templates in an attribute setting list of the electronic credential object, and loading the logic control codes corresponding to any identifier when receiving a selection instruction sent by a user to the identifier;
acquiring additional control codes input by a user from each configurable field contained in the attribute setting list, integrating the logic control codes and the additional control codes, and storing the integrated logic control codes and the additional control codes; wherein, the integrating the logic control code with the additional control code specifically includes: acquiring each function called by the logic control code, detecting a reserved function in which a function body is null, and adding the additional control code into the function body of the reserved function;
and if the service data matched with the electronic certificate object is detected, executing the certificate making process on the service data based on the integrated certificate making code, and outputting certificate making information.
7. The terminal device of claim 6, wherein if the service data matching the electronic certificate object is detected, based on the integrated certification code, performing certification processing on the service data, and outputting certification information, the method specifically comprising:
Dividing the integrated certification making code into a plurality of functional modules, wherein each functional module comprises a number obtaining module, a checking module and a certification making module, and each functional module corresponds to one functional task;
if the business data matched with the electronic certificate object is detected, respectively creating working threads for executing the functional tasks;
sequentially starting the working threads corresponding to the functional modules according to the preset arrangement sequence of the functional modules; and when the execution completion of the functional task corresponding to the working thread sequenced in the front is detected, starting the next working thread sequenced in the rear.
8. The terminal device according to claim 7, wherein the step of sequentially starting the worker threads corresponding to the function modules according to a preset arrangement sequence of the function modules specifically includes:
connecting with a pre-established message bus MQ queue;
when the execution completion of the functional task corresponding to the current working thread is detected, the MQ message created in real time is inserted into the MQ queue; the MQ message carries a tag value for identifying the next working thread sequenced later;
And searching and starting the working thread matched with the tag value in each working thread which establishes a subscription relation with the MQ queue according to the tag value.
9. The terminal device according to claim 7, wherein the step of acquiring additional control codes input by a user in each configurable field included in the attribute setting list, and integrating and storing the logic control codes and the additional control codes, specifically includes:
respectively displaying each function component option and each parameter option in a component configuration field and a parameter configuration field contained in the attribute setting list; each function component option corresponds to a function component of a software function, and the parameter option corresponds to a field parameter associated with the function component;
loading corresponding function component codes and parameter configuration values according to option values respectively determined by a user in the component configuration field and the parameter configuration field;
and combining the function component codes and the parameter configuration values based on a preset algorithm to obtain additional control codes, and integrating and storing the logic control codes and the additional control codes.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN201810933621.3A 2018-08-16 2018-08-16 Method for acquiring certificate making information, terminal equipment and medium Active CN109254768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810933621.3A CN109254768B (en) 2018-08-16 2018-08-16 Method for acquiring certificate making information, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810933621.3A CN109254768B (en) 2018-08-16 2018-08-16 Method for acquiring certificate making information, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN109254768A CN109254768A (en) 2019-01-22
CN109254768B true CN109254768B (en) 2024-04-12

Family

ID=65049942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810933621.3A Active CN109254768B (en) 2018-08-16 2018-08-16 Method for acquiring certificate making information, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN109254768B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009007A (en) * 2006-01-25 2007-08-01 广东省电信有限公司研究院 Integrated electronic transaction service system used in telecommunications and implement method therefor
CN106155681A (en) * 2016-06-28 2016-11-23 成都诺铱科技有限公司 Voucher resource edit method
US9563751B1 (en) * 2010-10-13 2017-02-07 The Boeing Company License utilization management system service suite
CN107679819A (en) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 Financial data processing method, device, computer equipment and storage medium
CN107688924A (en) * 2017-06-26 2018-02-13 平安科技(深圳)有限公司 Accreditation method, apparatus and computer-readable recording medium
CN107783829A (en) * 2017-09-05 2018-03-09 平安科技(深圳)有限公司 Task processing method, device, storage medium and computer equipment
CN107784579A (en) * 2017-08-30 2018-03-09 平安科技(深圳)有限公司 Accreditation method, apparatus, storage medium and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009151919A2 (en) * 2008-05-24 2009-12-17 Bally Gaming, Inc. Networked gaming system with enterprise accounting methods and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009007A (en) * 2006-01-25 2007-08-01 广东省电信有限公司研究院 Integrated electronic transaction service system used in telecommunications and implement method therefor
US9563751B1 (en) * 2010-10-13 2017-02-07 The Boeing Company License utilization management system service suite
CN106155681A (en) * 2016-06-28 2016-11-23 成都诺铱科技有限公司 Voucher resource edit method
CN107679819A (en) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 Financial data processing method, device, computer equipment and storage medium
CN107688924A (en) * 2017-06-26 2018-02-13 平安科技(深圳)有限公司 Accreditation method, apparatus and computer-readable recording medium
CN107784579A (en) * 2017-08-30 2018-03-09 平安科技(深圳)有限公司 Accreditation method, apparatus, storage medium and computer equipment
CN107783829A (en) * 2017-09-05 2018-03-09 平安科技(深圳)有限公司 Task processing method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN109254768A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN108923972B (en) Weight-reducing flow prompting method, device, server and storage medium
CN108255620B (en) Service logic processing method, device, service server and system
CN110275992B (en) Emergency processing method, device, server and computer readable storage medium
CN106685894B (en) Risk identification method, device and system
CN111694677A (en) Message queue management method, device, terminal and computer-readable storage medium
CN109324959B (en) Method for automatically transferring data, server and computer readable storage medium
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
CN111124591B (en) Mirror image transmission method and device, electronic equipment and storage medium
CN109254768B (en) Method for acquiring certificate making information, terminal equipment and medium
CN114647548A (en) Log generation method and device
CN113034778A (en) Invoice information approval method and system
CN116303320A (en) Real-time task management method, device, equipment and medium based on log file
CN115983991A (en) Flow adjusting method, device, equipment and medium
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN115934513A (en) Demand analysis and test design adaptation method, device, equipment and medium
CN112131180B (en) Data reporting method, device and storage medium
CN113297149A (en) Method and device for monitoring data processing request
CN112132544B (en) Inspection method and device of business system
CN111198986B (en) Information transmission method, device, electronic equipment and storage medium
CN110113187B (en) Configuration updating method and device, configuration server and configuration system
CN112541810A (en) Risk handling method and device for business data and computer readable storage medium
CN113595762A (en) Network card configuration storage method and device
CN111222928A (en) Method and system for monitoring enterprise standard invoicing
CN113641399B (en) Configuration data processing system, method, electronic device and storage medium
US20180046568A1 (en) Systems and Methods for Continuity of Dataflow Operations

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