CN109447806B - Front-end control method and device, storage medium and electronic equipment - Google Patents

Front-end control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109447806B
CN109447806B CN201811295060.5A CN201811295060A CN109447806B CN 109447806 B CN109447806 B CN 109447806B CN 201811295060 A CN201811295060 A CN 201811295060A CN 109447806 B CN109447806 B CN 109447806B
Authority
CN
China
Prior art keywords
transaction
data
input
message
transaction data
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
CN201811295060.5A
Other languages
Chinese (zh)
Other versions
CN109447806A (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.)
Bank of China Ltd
Original Assignee
Bank 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201811295060.5A priority Critical patent/CN109447806B/en
Publication of CN109447806A publication Critical patent/CN109447806A/en
Application granted granted Critical
Publication of CN109447806B publication Critical patent/CN109447806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Abstract

The invention provides a front-end control method, which comprises the following steps: when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field; receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule; when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval; when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data; when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data; and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result. The front-end control method provided by the invention accelerates the online speed of trading new products in a trading data configuration mode.

Description

Front-end control method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of control, and in particular, to a front-end control method and apparatus, a storage medium, and an electronic device.
Background
The transaction platform of the bank is a transaction platform which provides transaction service for customers and centrally manages and controls the comprehensive credit authorization risk and other risks of the customers in real time. The bank transaction function is realized through a front-end transaction platform of the bank transaction platform, and the bank transaction platform provides a large number of interfaces and transactions for the front-end transaction platform. Due to rapid development of business, change of risk control and supervision requirements, the bank transaction platform needs to provide new functional interfaces and new transactions continuously.
The existing front-end transaction platform adopts a traditional development mode, when a bank transaction platform provides a new interface or a new transaction, front-end pages related in the front-end transaction platform need to be modified one by one, a large amount of coding development work needs to be carried out, the new functions of the bank transaction platform cannot be quickly brought on line, and the rapid development of services and the change of risk control cannot be adapted.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a front-end control method, which can realize the updating of a front-end transaction platform page by updating a transaction data configuration mode and improve the upper linear speed of new functions of the transaction platform.
The invention also provides a front-end control device which is used for ensuring the realization and the application of the method in practice.
A front end control method, comprising:
when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field;
receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule;
when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval;
when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data;
when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result.
Optionally, in the method, when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a preconfigured input field includes:
loading a pre-established transaction list;
numbering the transaction corresponding to the transaction request according to the transaction list;
thread caching is carried out on the numbered transactions;
inquiring a transaction input field of the thread cache transaction according to a preset input field table;
and loading and displaying an input view corresponding to the transaction request according to the transaction input field obtained by query.
Optionally, the method for verifying the input transaction data according to the preconfigured data rule includes:
verifying the user authority of the transaction user corresponding to the transaction data;
after the user authority of the transaction user passes verification, verifying whether the input format of the transaction data meets the preset input requirement;
if the transaction data are matched, performing on-the-way verification on the transaction data, and verifying whether a user initiates the same or mutually exclusive transaction on the transaction data;
and after passing the on-the-way verification, performing service logic verification on the transaction data, and verifying whether the transaction logic corresponding to the transaction data conforms to a preset service logic execution process.
Optionally, the method for starting a preset process approval process to process approval on the transaction data includes:
calling Business Process Management (BPM) to initiate a process, and splicing the transaction data into JSON format data;
transmitting JSON format data corresponding to the transaction data to a pre-generated transaction input list, and extracting public information in the JSON format data corresponding to the transaction data from the transaction input list;
and when the extracted public information meets a preset process approval rule, process approval of the transaction data is passed.
Optionally, in the method, when the transaction data does not need to be subjected to process approval, the transaction data is subjected to message processing until a transaction result corresponding to the transaction data is obtained.
Optionally, the method for performing packet processing on the transaction data subjected to the process approval to obtain the packet processing data corresponding to the transaction data includes:
according to a preset message assembly mode, carrying out message assembly on the transaction data subjected to process approval;
according to a preset sending rule, sending the transaction data assembled by the messages to a corresponding external machine for transaction processing;
when transaction processing data returned by the external unit are received, the transaction processing data returned by the external unit are analyzed according to a preset message analysis rule, and message processing data corresponding to the transaction data are obtained.
Optionally, the method for processing the transaction result of the message processing data includes:
acquiring a result processing class corresponding to the message processing data;
judging whether the obtained result processing class is empty or not;
if so, acquiring a default result processing class, and processing the transaction result of the message processing data according to a result processing method of the default result processing class;
if not, the transaction result processing is carried out on the message processing data according to the result processing method of the obtained result processing class.
A front-end control device comprising:
the input unit is used for loading and displaying an input view corresponding to the transaction request according to a preset input field when the transaction request is received;
the background verification unit is used for receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule;
the process approval unit is used for starting a preset process approval process and carrying out process approval on the transaction data when the process approval is required;
the message processing unit is used for performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
the online unit is used for connecting an external machine and carrying out data transmission with the external machine;
the result processing unit is used for processing the transaction result of the message processing data to obtain a transaction result corresponding to the transaction data;
the output unit is used for loading and displaying an output view corresponding to the transaction result;
the configuration unit is used for configuring transaction data of the input unit, the background verification unit, the process approval unit, the message processing unit, the result processing unit and the output unit;
and the storage unit is used for storing the transaction result data.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium is located to perform the front-end control method.
An electronic device comprising a memory, and one or more instructions stored in the memory and configured to be executed by the one or more processors to perform the front-end control method described above.
Compared with the prior art, the invention has the following advantages:
the invention provides a front-end control method, which comprises the following steps: when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field; receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule; when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval; when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data; when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data; and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result. The front-end control method provided by the invention can realize the updating of the front-end transaction platform page only by adjusting the preset transaction data configuration, thereby improving the upper linear speed of the new functions of the bank transaction platform.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a method of a front-end control method according to the present invention;
FIG. 2 is a flowchart of another method of a front-end control method according to the present invention;
fig. 3 is a schematic structural diagram of a front-end control device according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a front-end control method, which can be applied to a bank front-end transaction platform, wherein an execution main body of the method can be a front-end transaction platform processor, and a flow chart of the method is shown in figure 1 and specifically comprises the following steps:
s101: when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field;
in the method provided by the embodiment of the invention, a user logs in a transaction platform to perform transaction, and when a processor receives a transaction request of the user, an input view is loaded and displayed for the user according to a configuration of a transaction input field.
S102: receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule;
in the method provided by the embodiment of the invention, when a user inputs a transaction view to input transaction information, a processor receives transaction data input by the user through the input view, and performs background verification on the transaction data input into a transaction page according to a pre-configured data rule, wherein the pre-configured data rule can be transaction information configuration.
S103: when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval;
in the method provided by the embodiment of the invention, after the transaction data input by the user passes the inspection, whether the process approval of the transaction data is required is judged.
S104: when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data;
in the method provided by the embodiment of the invention, if the process approval is required, a preset process approval process is started, wherein the preset process approval process can be to start a corresponding approval process according to a predefined transaction configuration template to perform process approval on the transaction.
S105: when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
in the method provided by the embodiment of the invention, after the process approval, the transaction data subjected to the process approval is subjected to message processing according to the preset message configuration, wherein the message configuration can be the message configuration of a transaction input field table.
S106: and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result.
In the method provided by the embodiment of the invention, the message processing data is processed to obtain the transaction result corresponding to the transaction data, and the transaction result is loaded to an output page according to the configuration of the transaction output field.
In the method provided in the embodiment of the present invention, it should be noted that the transaction information configuration at least includes: transaction code, transaction type, initiable role, maximum number of circulations, input page, output page, transaction input table, transaction result table, pre-query transaction, flow template, loading page processor, on-road checker, service logic checker, result processor, unknown processor, message processor, and whether to delete.
In the method provided in the embodiment of the present invention, it should be noted that the configuration of the transaction input field at least includes: transaction code, field name, field Chinese, field sequence, cycle identifier, WEB base check, input type, code table or set, whether modifiable, default value, whether modifiable after storage, JS event, whether to group message, message sequence number, message start bit, message length, message data format, message type, and transaction system.
In the method provided in the embodiment of the present invention, it should be noted that the configuration of the transaction output field at least includes: transaction code, field name, field Chinese, field sequence, cycle identifier, code table or set, message serial number, message start bit, message length, message data format, message type, transaction system transaction field mapping table configuration: transaction code, field to be updated, and field value.
In the method provided by the embodiment of the present invention, it should be further explained that the transaction information configuration, the transaction input field configuration, and the transaction output field configuration are configurations that can be updated, and when a transaction platform needs to update a transaction product, the configuration can be updated to update a front-end transaction platform page, thereby achieving the purpose of quickly updating the transaction product.
The invention provides a front-end control method, which comprises the following steps: when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field; receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule; when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval; when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data; when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data; and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result. The front-end control method provided by the invention can realize the updating of the front-end transaction platform page only by adjusting the preset transaction data configuration, thereby improving the upper linear speed of the new functions of the bank transaction platform.
In the front-end control method provided by the embodiment of the present invention, when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a preconfigured input field includes:
loading a pre-established transaction list;
numbering the transaction corresponding to the transaction request according to the transaction list;
thread caching is carried out on the numbered transactions;
inquiring a transaction input field of the thread cache transaction according to a preset input field table;
and loading and displaying an input view corresponding to the transaction request according to the transaction input field obtained by query.
In the method provided by the embodiment of the invention, when a transaction request is received, a processor inquires the transaction conforming to the current user role according to the current login user role to obtain the transaction data corresponding to the user request, the transaction data is transmitted to a front end view in a JSON format, the front end view receives and analyzes the transaction data in the JSON format, converts the transaction data in the JSON format into a selectable transaction list, numbers the transaction corresponding to the transaction request to enable the transaction to have a corresponding transaction code, then activates a thread cache to perform thread cache on the numbered transaction, stores the hash code of an inquiry condition and the key value pair of the transaction result data in the thread cache to realize that the same hash code only calls one transaction in the same thread and prevent the same transaction from being called for multiple times under the same condition in one thread, resulting in wasted trading platform resources.
After thread caching is carried out, according to the preset input field table configuration, inquiring the transaction input field of thread caching transaction, loading the corresponding transaction page according to the input field, carrying out page layout and verification according to the configuration mode of the transaction page, and loading and displaying a transaction input view. The configuration mode of the transaction page may include: field type (e.g., text entry box, drop down list, check box, date, etc.), field location order, field entry format check (e.g., must-input, read-only, length, data type, etc.), default, JS event, loop body, etc.
In the method provided by the embodiment of the invention, preferably, when the user inputs data in the view, the transaction platform performs view level check according to the transaction input field configuration, the WEB basic check and the JS event, and if the check fails, corresponding error information is prompted on the input view in real time. If the verification is passed, the transaction platform processor converts the data input by the user in the input view into JSON format data convenient for network transmission and submits the JSON format data to the background processing.
In the method provided by the embodiment of the present invention, verifying the input transaction data according to a pre-configured data rule includes:
verifying the user authority of the transaction user corresponding to the transaction data;
after the user authority of the transaction user passes verification, verifying whether the input format of the transaction data meets the preset input requirement;
if the transaction data are matched, performing on-the-way verification on the transaction data, and verifying whether a user initiates the same or mutually exclusive transaction on the transaction data;
and after passing the on-the-way verification, performing service logic verification on the transaction data, and verifying whether the transaction logic corresponding to the transaction data conforms to a preset service logic execution process.
According to the method provided by the embodiment of the invention, when the transaction data input by the user is submitted to the background verification, the transaction authority verification is firstly carried out, and whether the user authority of the transaction user corresponding to the transaction data meets the preset authority rule or not is checked. After the authority verification of the user passes, verifying whether the input format of the transaction data meets the preset input requirement, wherein the input format can be as follows: whether it is necessary to input, whether the length is consistent, whether the data type is correct, and the like. After the input format of the transaction data is verified, transaction in-transit verification is carried out, and the step is to prevent a user from initiating the same or mutually exclusive transaction to the same transaction data at the same time. And finally, business logic verification is carried out to verify whether the business logic corresponding to the business data conforms to a preset business logic execution process, and the business logic verification is an expansion of input data verification, so that the final success rate of the transaction is effectively improved.
In the method provided by the embodiment of the present invention, starting a preset process approval process to perform process approval on the transaction data includes:
calling Business Process Management (BPM) to initiate a process, and splicing the transaction data into JSON format data;
transmitting JSON format data corresponding to the transaction data to a pre-generated transaction input list, and extracting public information in the JSON format data corresponding to the transaction data from the transaction input list;
and when the extracted public information meets a preset process approval rule, process approval of the transaction data is passed.
In the method provided by the embodiment of the invention, when the process approval is carried out, a preset process approval process is started, wherein the preset process approval process can be that a corresponding approval process is started according to a configured process template, firstly, a business process management BPM is called to initiate a process, the transaction data is spliced into JSON format data, the JSON format data is transmitted to a pre-generated transaction input list, finally, public information extraction is carried out, public information in the JSON format data is extracted from the transaction input list, important transaction data in the public information is recorded, and a user can conveniently inquire and count transactions.
In the method provided by the embodiment of the invention, when the transaction data does not need to be subjected to process approval, the transaction data is subjected to message processing until a transaction result corresponding to the transaction data is obtained.
In the method provided by the embodiment of the invention, when the transaction data does not need to be subjected to process approval, the transaction data is subjected to message processing according to a preset message processing rule until a transaction result corresponding to the transaction data is obtained, and the transaction result is loaded on a transaction output page.
In the method provided by the embodiment of the present invention, preferably, when the transaction data does not need to be subjected to process approval, the transaction data may be directly transmitted to the corresponding external machine according to a predetermined sending rule, the GLMS is called online to perform transaction data processing, the transaction result data is obtained, and the transaction result page is loaded according to the preset configuration of the transaction result output field.
In the method provided by the embodiment of the present invention, the performing packet processing on the transaction data subjected to the process approval to obtain packet processing data corresponding to the transaction data includes:
according to a preset message assembly mode, carrying out message assembly on the transaction data subjected to process approval;
according to a preset sending rule, sending the transaction data assembled by the messages to a corresponding external machine for transaction processing;
when transaction processing data returned by the external unit are received, the transaction processing data returned by the external unit are analyzed according to a preset message analysis rule, and message processing data corresponding to the transaction data are obtained.
In the method provided by the embodiment of the invention, a corresponding message processor is called according to the message configuration of the transaction input field table, the message processor performs message assembly on the transaction data subjected to process approval according to a preset message assembly mode, sends the assembled message to a corresponding external unit for transaction processing, and synchronously receives and analyzes the message processing result returned by the external unit according to a preset message analysis rule, wherein the message analysis rule can be an analysis rule of transaction output message configuration.
In the method provided by the embodiment of the present invention, the processing of the transaction result on the message processing data includes:
acquiring a result processing class corresponding to the message processing data;
judging whether the obtained result processing class is empty or not;
if so, acquiring a default result processing class, and processing the transaction result of the message processing data according to a result processing method of the default result processing class;
if not, the transaction result processing is carried out on the message processing data according to the result processing method of the obtained result processing class.
In the method provided by the embodiment of the invention, according to the returned message processing data after the message processing, a result processing class corresponding to the message processing data is obtained, whether the result processing class is empty or not is judged, and if not, the transaction result processing is carried out on the message processing data according to the result processing method of the obtained result processing class; and if so, acquiring a default result processing class and processing the transaction result of the message processing data, wherein the default result processing class is acquired according to the pre-configured transaction result data.
In the method provided by the embodiment of the present invention, preferably, the transaction platform is a bank transaction platform, and with reference to fig. 2, a detailed flowchart of front-end control is provided, and the method provided by the embodiment of the present invention is described in detail with reference to the flowchart, specifically as follows:
according to the method provided by the embodiment of the invention, when a transaction request is received, a transaction platform processor inquires the transaction conforming to the current user role according to the current login user role, loads a transaction list, then numbers the transaction, enables the transaction to have a corresponding transaction code, and performs authority check on the authority of the user, wherein the process of loading the transaction list and the authority check is performed according to a pre-configured transaction authority list. Thread caching is then activated to prevent multiple invocations of the same transaction by the same conditions in one thread. After the thread cache is finished, inquiring a field input by transaction according to a preset input field table, loading a transaction view according to the input field, inputting transaction data in the transaction view by a user, splicing the transaction data into a form, submitting a policy, and checking a view page.
And after the view page verification is passed, performing background verification according to the transaction information configuration, wherein the background verification comprises input data format verification, on-the-way verification and service logic verification. The input format verification is to verify whether the input format of the transaction data meets the preset input requirement, and after the input format of the transaction data passes the verification, the transaction in-transit verification is performed, which is to prevent a user from initiating the same or mutually exclusive transaction for the same transaction data at the same time, and finally, is to verify whether the transaction logic corresponding to the transaction data meets the preset service logic execution process.
And after the background check is passed, judging whether the transaction data corresponding to the transaction request needs process approval, if not, directly carrying out transaction data processing by an online debugging GLMS (global system for mobile communications), acquiring transaction result data, and loading a transaction result view according to preset configuration of a transaction result output field. And then closing the thread cache and combining the whole process.
After the background check is passed, judging whether the transaction data corresponding to the transaction request needs process approval, if so, initiating a process, starting a corresponding approval process according to a pre-configured process template, firstly calling a Business Process Management (BPM) to initiate the process, assembling the transaction data into JSON format data, transmitting the JSON format data to a pre-generated transaction input list, finally extracting public information, extracting the public information in the JSON format data from the transaction input list, and recording important transaction data in the public information, thereby facilitating the query and statistics of transactions of users.
And after the process is approved, message processing is carried out, the transaction platform calls a corresponding message processor to assemble the messages according to the message configuration of the transaction input field table, the assembled messages are sent to the external unit for transaction processing, and meanwhile, the message processing results returned by the external unit are synchronously received and analyzed according to a preset message analysis rule.
Obtaining a transaction processing result according to data returned by message processing, firstly, obtaining a result processing class corresponding to the transaction processing result, judging whether the result processing class is empty, and if not, processing the transaction result of the message processing data according to a result processing method of the obtained result processing class; if so, acquiring a default result processing class, performing transaction result processing on the message processing data, acquiring transaction result data, loading a transaction result view according to preset transaction result output field configuration, and finally closing thread cache to combine the whole process.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a front-end control device, which is used to implement the method in fig. 1 specifically, and the front-end control device provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the front-end control device is shown in fig. 3, and includes:
the input unit is used for loading and displaying an input view corresponding to the transaction request according to a preset input field when the transaction request is received;
the background verification unit is used for receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule;
the process approval unit is used for starting a preset process approval process and carrying out process approval on the transaction data when the process approval is required;
the message processing unit is used for performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
the online unit is used for connecting an external machine and carrying out data transmission with the external machine;
the result processing unit is used for processing the transaction result of the message processing data to obtain a transaction result corresponding to the transaction data;
the output unit is used for loading and displaying an output view corresponding to the transaction result;
the configuration unit is used for configuring transaction data of the input unit, the background verification unit, the process approval unit, the message processing unit, the result processing unit and the output unit;
and the storage unit is used for storing the transaction result data.
The front-end control device provided by the invention loads and displays an input view corresponding to a transaction request according to a pre-configured input field when the transaction request is received; receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule; when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval; when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data; when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data; and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result. By applying the front-end control method provided by the invention, the page of the front-end transaction platform can be updated only by adjusting the preset transaction data configuration, and the upper linear speed of the new functions of the bank transaction platform is improved.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the front-end control method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 4, which specifically includes a memory 401 and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field;
receiving transaction data input by a user through the input view; verifying the input transaction data according to a pre-configured data rule;
when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval;
when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data;
when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
and processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The foregoing detailed description is directed to a front-end control method and apparatus, and the principles and embodiments of the present invention are described herein with reference to specific examples, which are provided only to help understand the method and core concepts of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A front-end control method, comprising:
when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a pre-configured input field;
receiving transaction data input by a user through the input view; and verifying the input transaction data according to a preconfigured data rule, wherein the preconfigured data rule at least comprises: transaction code, transaction type, initiable role, maximum number of circulations, input page, output page, transaction input table, transaction result table, pre-query transaction, flow template, loading page processor, on-road checker, service logic checker, result processor, unknown processor, message processor, and whether to delete;
when the transaction data passes the verification, judging whether the transaction data needs to be subjected to process approval;
when the process approval is needed, starting a preset process approval process, and performing process approval on the transaction data;
when the process approval is finished, performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
processing the message processing data to obtain a transaction result corresponding to the transaction data, and outputting the transaction result;
wherein, when a transaction request is received, loading and displaying an input view corresponding to the transaction request according to a preconfigured input field, and the method comprises the following steps:
loading a pre-established transaction list;
numbering the transaction corresponding to the transaction request according to the transaction list;
thread caching is carried out on the numbered transactions;
inquiring a transaction input field of the thread cache transaction according to a preset input field table, wherein the transaction input field comprises: transaction code, field name, field Chinese, field sequence, cycle identifier, WEB basic check, input type, code table or set, whether the code table or set can be modified, default value, whether the code table or set can be modified after storage, JS event, whether the message is grouped, message serial number, message start bit, message length, message data format, message type and transaction system;
and loading and displaying an input view corresponding to the transaction request according to the transaction input field obtained by query.
2. The method of claim 1, wherein the validating the transaction data entered according to preconfigured data rules comprises:
verifying the user authority of the transaction user corresponding to the transaction data;
after the user authority of the transaction user passes verification, verifying whether the input format of the transaction data meets the preset input requirement;
if the transaction data are matched, performing on-the-way verification on the transaction data, and verifying whether a user initiates the same or mutually exclusive transaction on the transaction data;
and after passing the on-the-way verification, performing service logic verification on the transaction data, and verifying whether the transaction logic corresponding to the transaction data conforms to a preset service logic execution process.
3. The method of claim 1, wherein the initiating a pre-defined process approval process to process approval of the transaction data comprises:
calling Business Process Management (BPM) to initiate a process, and splicing the transaction data into JSON format data;
transmitting JSON format data corresponding to the transaction data to a pre-generated transaction input list, and extracting public information in the JSON format data corresponding to the transaction data from the transaction input list;
and when the extracted public information meets a preset process approval rule, process approval of the transaction data is passed.
4. The method of claim 1, further comprising: and when the transaction data does not need to be subjected to process approval, performing message processing on the transaction data until a transaction result corresponding to the transaction data is obtained.
5. The method according to claim 1, wherein the performing message processing on the transaction data subjected to the process approval to obtain the message processing data corresponding to the transaction data comprises:
according to a preset message assembly mode, carrying out message assembly on the transaction data subjected to process approval;
according to a preset sending rule, sending the transaction data assembled by the messages to a corresponding external machine for transaction processing;
when transaction processing data returned by the external unit are received, the transaction processing data returned by the external unit are analyzed according to a preset message analysis rule, and message processing data corresponding to the transaction data are obtained.
6. The method of claim 1, wherein the processing the message processing data for transaction results comprises:
acquiring a result processing class corresponding to the message processing data;
judging whether the obtained result processing class is empty or not;
if so, acquiring a default result processing class, and processing the transaction result of the message processing data according to a result processing method of the default result processing class;
if not, the transaction result processing is carried out on the message processing data according to the result processing method of the obtained result processing class.
7. A front-end control device, comprising:
the input unit is used for loading and displaying an input view corresponding to a transaction request according to a preconfigured input field when the transaction request is received, and comprises the following steps: loading a pre-established transaction list; numbering the transaction corresponding to the transaction request according to the transaction list; thread caching is carried out on the numbered transactions; inquiring a transaction input field of the thread cache transaction according to a preset input field table, wherein the transaction input field comprises: transaction code, field name, field Chinese, field sequence, cycle identifier, WEB basic check, input type, code table or set, whether the code table or set can be modified, default value, whether the code table or set can be modified after storage, JS event, whether the message is grouped, message serial number, message start bit, message length, message data format, message type and transaction system; loading and displaying an input view corresponding to the transaction request according to the transaction input field obtained by query;
the background verification unit is used for receiving transaction data input by a user through the input view; and verifying the input transaction data according to a preconfigured data rule, wherein the preconfigured data rule at least comprises: transaction code, transaction type, initiable role, maximum number of circulations, input page, output page, transaction input table, transaction result table, pre-query transaction, flow template, loading page processor, on-road checker, service logic checker, result processor, unknown processor, message processor, and whether to delete;
the process approval unit is used for starting a preset process approval process and carrying out process approval on the transaction data when the process approval is required;
the message processing unit is used for performing message processing on the transaction data subjected to the process approval to obtain message processing data corresponding to the transaction data;
the online unit is used for connecting an external machine and carrying out data transmission with the external machine;
the result processing unit is used for processing the transaction result of the message processing data to obtain a transaction result corresponding to the transaction data;
the output unit is used for loading and displaying an output view corresponding to the transaction result;
the configuration unit is used for configuring transaction data of the input unit, the background verification unit, the process approval unit, the message processing unit, the result processing unit and the output unit;
and the storage unit is used for storing the transaction result data.
8. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform the front-end control method according to any one of claims 1 to 6.
9. An electronic device comprising a memory, and one or more instructions stored in the memory and configured to be executed by the one or more processors to perform the front-end control method of any one of claims 1-6.
CN201811295060.5A 2018-11-01 2018-11-01 Front-end control method and device, storage medium and electronic equipment Active CN109447806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811295060.5A CN109447806B (en) 2018-11-01 2018-11-01 Front-end control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811295060.5A CN109447806B (en) 2018-11-01 2018-11-01 Front-end control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109447806A CN109447806A (en) 2019-03-08
CN109447806B true CN109447806B (en) 2021-06-01

Family

ID=65550325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811295060.5A Active CN109447806B (en) 2018-11-01 2018-11-01 Front-end control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109447806B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694745A (en) * 2020-06-15 2020-09-22 北京首汽智行科技有限公司 Vehicle cost simulation calculation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291437A (en) * 2011-07-27 2011-12-21 武汉天喻信息产业股份有限公司 System and method for realizing application of cross-platform internet
CN104320482A (en) * 2014-11-04 2015-01-28 中国银行股份有限公司 Bank teller front-end system
CN106339457A (en) * 2016-08-26 2017-01-18 山东尚捷信息科技有限公司 Counter system based on B/S architecture and data transmission method thereof
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework
CN107958551A (en) * 2017-12-29 2018-04-24 福建省农村信用社联合社 A kind of full channel remote centralized authoring system of the expansible bank of business
CN107995274A (en) * 2017-11-27 2018-05-04 中国银行股份有限公司 A kind of information cuing method and front-end server based on business scenario coding

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5827261A (en) * 1981-08-10 1983-02-17 Sharp Corp Money paying and peceiving system
WO2000033264A1 (en) * 1998-12-02 2000-06-08 Swisscom Ag Method and system for charging or recharging an account with a value corresponding to a sum of money
US20160247223A1 (en) * 2015-02-13 2016-08-25 Michael Arnall Fully Automated Consumer-Facing Mortgage Processing Systems, Processes Methods and Products
CN204759516U (en) * 2015-06-19 2015-11-11 中国工商银行股份有限公司 Voucher management system
CN107437222B (en) * 2017-08-03 2021-05-25 中国银行股份有限公司 Processing method and system of online business data based on front end of bank counter
CN108229563A (en) * 2018-01-04 2018-06-29 众安信息技术服务有限公司 A kind of treasury bond futures actively do city's system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291437A (en) * 2011-07-27 2011-12-21 武汉天喻信息产业股份有限公司 System and method for realizing application of cross-platform internet
CN104320482A (en) * 2014-11-04 2015-01-28 中国银行股份有限公司 Bank teller front-end system
CN106339457A (en) * 2016-08-26 2017-01-18 山东尚捷信息科技有限公司 Counter system based on B/S architecture and data transmission method thereof
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework
CN107995274A (en) * 2017-11-27 2018-05-04 中国银行股份有限公司 A kind of information cuing method and front-end server based on business scenario coding
CN107958551A (en) * 2017-12-29 2018-04-24 福建省农村信用社联合社 A kind of full channel remote centralized authoring system of the expansible bank of business

Also Published As

Publication number Publication date
CN109447806A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN108415832B (en) Interface automation test method, device, equipment and storage medium
US10698581B2 (en) Dialog reuse for a visual bot builder
US20200082810A1 (en) System and method for mapping a customer journey to a category
US11880821B2 (en) Systems and methods for automatically identifying a checkout webpage and injecting a virtual token
CN105378703A (en) Methods and systems for validating multiple methods of input using unified rule set
CN104753909A (en) Updated information authentication method, device and system
CN108958711A (en) A kind of implementation method and device of interface platform
CN110795305A (en) System, apparatus and method for processing and managing WEB traffic data
CN112711640A (en) Method and device for configuring business handling process
CN112308590B (en) Parameter processing method and device, computing equipment and storage medium
US20190362241A1 (en) Systems and methods for configuring an online decision engine
CN109447806B (en) Front-end control method and device, storage medium and electronic equipment
CN106817296B (en) Information recommendation test method and device and electronic equipment
CN111801696A (en) Payment page management method, payment page management device, payment system and storage medium
CN115801873A (en) Service distribution method, system, electronic device and storage medium
CN115422202A (en) Service model generation method, service data query method, device and equipment
CN112947963A (en) Interface operation and maintenance method and device, computer equipment and storage medium
US20170262904A1 (en) Weighted reviews of applications based on usage history
US11250213B2 (en) Form-based transactional conversation system design
CN110992166A (en) Testing method and device for online loan application
CN111415245A (en) Account opening method and device
CN108038750A (en) Sequence information generation method and device
EP4044091A1 (en) Method and system for generating customized electronic checkout user interfaces
US20230107397A1 (en) Software orchestration framework for implementing application programming interfaces
CN116483327A (en) Function point generation method and device, electronic equipment and computer 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