CN112187761B - Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium - Google Patents

Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium Download PDF

Info

Publication number
CN112187761B
CN112187761B CN202011001967.3A CN202011001967A CN112187761B CN 112187761 B CN112187761 B CN 112187761B CN 202011001967 A CN202011001967 A CN 202011001967A CN 112187761 B CN112187761 B CN 112187761B
Authority
CN
China
Prior art keywords
field
message
target
name
value
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
CN202011001967.3A
Other languages
Chinese (zh)
Other versions
CN112187761A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011001967.3A priority Critical patent/CN112187761B/en
Publication of CN112187761A publication Critical patent/CN112187761A/en
Application granted granted Critical
Publication of CN112187761B publication Critical patent/CN112187761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • 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 discloses a message analyzing and constructing method and device, computer equipment and a storage medium. The message analysis method comprises the following steps: acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state; and acquiring each target message field which accords with the message field format in the message, and assigning values to the target database entity matched with each target message field by a reflection technology. By using the technical scheme of the invention, the problems of poor flexibility and relatively long message and relatively low analysis efficiency caused by the fact that the message interface needs to be correspondingly adjusted when the field is changed in the conventional message analysis mode are solved, and flexible and efficient message analysis can be realized.

Description

Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to a data transmission technology, in particular to a message analyzing and constructing method, a message analyzing and constructing device, computer equipment and a storage medium.
Background
With the expansion of banking business and the increase of loan business, in order to realize the supervision of the whole loan process, the related information of each loan needs to be input into a banking system.
In the prior art, loan information is input, fields in a loan application form are identified through a COST intensive input platform, the fields, the field values and corresponding state information are generated into messages, the messages are sent to the loan platform through an interface, the loan platform analyzes the messages, a database entity is generated, and data obtained through analysis are stored in a database. By adopting the message constructing and analyzing mode, when the field is changed, the message interface needs to be correspondingly adjusted, the flexibility is poor, the message is relatively long, and the analyzing efficiency is relatively low.
Disclosure of Invention
The embodiment of the invention provides a message analyzing and constructing method and device, computer equipment and a storage medium, so as to realize flexible and efficient message analysis.
In a first aspect, an embodiment of the present invention provides a method for parsing a packet, where the method includes:
acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state;
and acquiring each target message field which accords with the message field format in the message, and assigning values to the target database entity matched with each target message field by a reflection technology.
In a second aspect, an embodiment of the present invention further provides a message construction method, where the method includes:
acquiring at least one scanning field name, and a field value and a field state corresponding to the scanning field name;
assembling the scanning field name, the field value and the field state to generate a message field;
and generating a message in a chain table form according to each message field, and sending the message in the chain table form to the loan platform through an interface.
In a third aspect, an embodiment of the present invention further provides a message parsing apparatus, where the apparatus includes:
the message acquisition module is used for acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state;
and the entity assignment module is used for acquiring each target message field which accords with the message field format in the message and assigning the target database entity matched with each target message field through a reflection technology.
In a fourth aspect, an embodiment of the present invention further provides a packet constructing apparatus, where the apparatus includes:
the scanning field name acquisition module is used for acquiring at least one scanning field name and a field value and a field state corresponding to the scanning field name;
the message field generating module is used for splicing the scanning field name, the field value and the field state to generate a message field;
and the message generation module is used for generating a message in a chain table form according to each message field and sending the message in the chain table form to the loan platform through an interface.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the message parsing method according to any one of the embodiments of the present invention or implements the message constructing method according to any one of the embodiments of the present invention when executing the program.
In a sixth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a packet parsing method according to any one of the embodiments of the present invention, or implement a packet construction method according to any one of the embodiments of the present invention.
The embodiment of the invention sets the message into a linked list form, the linked list comprises a plurality of message fields which are obtained by splicing the name of the scanned field, the field value and the field state, and after the loan platform receives the message sent by the information input platform, the loan platform assigns values to the database entity according to the target message field conforming to the format of the message field and the reflection technology. The problems that in the prior art, when a field is changed, a message interface needs to be correspondingly adjusted in a message analyzing mode, the flexibility is poor, the message is relatively long, and the analyzing efficiency is low are solved, and flexible and efficient message analysis is realized.
Drawings
Fig. 1 is a flowchart of a message parsing method in an embodiment of the present invention;
fig. 2 is a flowchart of a message parsing method in the second embodiment of the present invention;
fig. 3 is a flowchart of a message construction method in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message parsing apparatus in the fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message constructing apparatus in the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a message parsing method according to an embodiment of the present invention, where the method may be applied to parsing a message sent by an information entry platform, and corresponding to a database entity, and storing data.
As shown in fig. 1, the technical solution of the embodiment of the present invention specifically includes the following steps:
s110, obtaining a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by assembling a scanning field name, a field value and a field state.
The information entry platform is a platform for scanning and identifying fields and field values and entering various information, and can be a COST intensive entry platform for scanning loan application forms, automatically identifying the fields in the application forms and uploading the fields and the field values. The message field is each group forming the message, the scanning field name is the field name identified by the information input platform, the field value is the data corresponding to the scanning field name, and the field state is the state information corresponding to the scanning field name.
In the prior art, a mode of directly constructing a message according to a field, a field value and state information and sending the message to a loan platform through an interface is adopted, and when the field scanned and identified by an information input platform needs to be changed, the corresponding interface format needs to be correspondingly adjusted again. In order to avoid frequently changing the interface format, a message format in a linked list form can be adopted. The linked list is a chain storage structure of the linear list, the linked list stores data in the linear list by using a group of arbitrary storage units, the storage units are not necessarily continuous, the length of the linked list is not fixed, and the insertion and deletion operations of nodes can be very conveniently realized by the characteristic of the linked list data. In the embodiment of the invention, the change of the message field in the linked list does not influence the form of the linked list, so that when the message field in the linked list is changed, the corresponding interface format is not influenced, the flexibility and the efficiency of message analysis can be improved, and the change of the interface format is reduced.
In the prior art, a message is constructed according to a scanning field name, a field value and field state information, the message corresponding to the method is relatively long, and the problem is difficult to be solved when abnormal data occurs. In the embodiment of the invention, the message field is obtained by splicing the name, the field value and the field state of the scanning field, the field transmitted by the message is reduced after the name, the field value and the field state of the scanning field are spliced, the message conversion efficiency is improved, and the problem troubleshooting is convenient when abnormal data occurs.
In an optional embodiment of the present invention, the obtaining of the message in the form of the linked list sent by the information entry platform may include: obtaining a message in a linked list form sent by an information input platform through an interface, wherein the interface is matched with the information input platform.
In the embodiment of the invention, the information input platform sends the messages in the form of the linked list to the loan platform through the interface, and when the message fields in the messages in the form of the linked list are changed, the format of the interface is not required to be modified.
S120, obtaining each target message field in the message according with the message field format, and assigning the value of the target database entity matched with each target message field through a reflection technology.
The message field format corresponds to the assembly format of the scanning field name, the field value and the field state, the information input platform assembles the scanning field name, the field value and the field state according to the assembly format to obtain the message field, and when the loan platform receives the message, the loan platform firstly needs to judge whether the message field in the message meets the message field format.
The reflection technique may obtain information of a class according to a specified class name when a program is run, and a database entity is various data management objects set, and may be, for example, customer information, loan information, and the like.
In the embodiment of the invention, the loan platform can assign values to the target database entity according to each target message field conforming to the message field format through a reflection technology, so that the data input by the information input platform is stored in the database.
According to the technical scheme of the embodiment, the message is set to be in a linked list form, the linked list comprises a plurality of message fields obtained by splicing the name of the scanned field, the field value and the field state, and after the message sent by the information input platform is received by the loan platform, the loan platform assigns values to the database entity according to the target message field conforming to the format of the message field and the reflection technology. The problems that in the prior art, when a field is changed, a message interface needs to be correspondingly adjusted in a message analyzing mode, the flexibility is poor, the message is relatively long, and the analyzing efficiency is low are solved, and flexible and efficient message analysis is realized.
Example two
Fig. 2 is a flowchart of a message parsing method according to a second embodiment of the present invention, where the embodiment of the present invention further embodies a process of obtaining a field of a target message and a process of assigning a value to a target database entity on the basis of the above-mentioned embodiment.
Correspondingly, as shown in fig. 2, the technical solution of the embodiment of the present invention specifically includes the following steps:
s210, obtaining a message in a chain table form sent by an information input platform through an interface, wherein the interface is matched with the information input platform.
The linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state.
S220, acquiring the message field which is divided into three sections by the two separators in each message field of the message, and taking the message field as a target message field conforming to the format of the message field.
In the embodiment of the invention, the information entry platform can assemble the scanning field name, the field value and the field state into the message field by inserting separators among the scanning field name, the field value and the field state. Correspondingly, after the loan platform receives the message, for each message field, it should first be determined whether the message field contains a separator, and the message field is divided into three segments by two separators.
If the message field does not accord with the condition of containing the separator and being divided into three sections by the two separators, returning to be abnormal, and continuing to judge the next message field in the message until all target message fields which accord with the message field format in the message are found.
And S230, acquiring a target database entity matched with the target message field.
In the embodiment of the invention, before the assignment is carried out on the database entity, the database entity matched with the message field can be automatically created through a reflection technology. One database entity can correspond to a plurality of message fields, so that when the target message field is processed, whether the target database entity corresponding to the target message field exists or not can be judged, if yes, the target database entity is obtained, and otherwise, the target database entity can be automatically created through a reflection technology.
S240, segmenting the target message field according to the separator, and generating a field linked list according to the segmented target message field, wherein the field linked list comprises a scanning field name, a field state name, a field value and a field state value.
Dividing the target message field into a scanning field name, a field value and a field state according to separators in the target message field, analyzing the divided scanning field name, field value and field state according to a pre-stored field analysis rule table, and generating a field linked list, wherein the field linked list comprises the scanning field name, the field state name, the field value and the field state value.
And S250, assigning values to the target database entity according to the field chain table and the reflection technology.
In the embodiment of the invention, the database entity can be assigned according to each field linked list by a reflection technology.
According to the technical scheme, the message is set to be in a linked list form, the linked list comprises a plurality of message fields which are obtained by splicing the name of a scanned field, the field value and the field state, after the message sent by the information input platform is received by the loan platform, a target message field which accords with the format of the message field is obtained, a database entity which is matched with the target message field is obtained, the field linked list is generated according to the target message field, and the database entity is assigned according to the field linked list and the reflection technology. The problems that in the prior art, when a field is changed, a message interface needs to be correspondingly adjusted in a message analyzing mode, the flexibility is poor, the message is relatively long, and the analyzing efficiency is low are solved, and the flexible and efficient message analysis is realized.
EXAMPLE III
Fig. 3 is a flowchart of a message construction method according to a third embodiment of the present invention, where this embodiment is applicable to a case where loan information is scanned and entered, and a constructed message is sent to a loan platform, and the method may be executed by a message construction device, which may be implemented by software and/or hardware and is generally integrated in a computer device equipped with an information entry platform.
As shown in fig. 3, the technical solution of the embodiment of the present invention specifically includes the following steps:
s310, at least one scanning field name is obtained, and a field value and a field state corresponding to the scanning field name are obtained.
In the embodiment of the invention, the information input platform scans the loan information table, automatically identifies the scanning field name in the loan information table, inputs the scanning field name and the corresponding field value, and also needs to acquire the corresponding field state.
S320, assembling the scanning field name, the field value and the field state to generate a message field.
In the embodiment of the invention, the scanning field name, the field value and the field state are spliced into one message field, so that the transmission length of the message can be reduced, and the message analysis efficiency of the loan platform is further improved.
In an optional embodiment of the present invention, the assembling the scan field name, the field value, and the field state to generate the message field may include: and adding separators between the name of the scanning field and the field value and between the field value and the field state to assemble the message field.
In the embodiment of the present invention, two separators may be added between the scan field name, the field value, and the field state to form the message field, but the embodiment of the present invention does not limit the specific manner of assembling the scan field name, the field value, and the field state into the message field.
And S330, generating a message in a chain table form according to each message field, and sending the message in the chain table form to a loan platform through an interface.
In the embodiment of the invention, after each assembled message field is generated, each message field is put into the linked list, and the setting has the advantage that when the message field is changed, the message structure and the interface format do not need to be correspondingly changed, so that the method has more flexibility.
Optionally, after obtaining at least one scan field name, and a field value and a field state corresponding to the scan field name, the method may further include: when the scanning field name is determined to be a relevant field of the client information, saving the scanning field name, the field value and the field state to a client information intermediate table; and when the scanning field name is determined to be the loan information related field, saving the scanning field name, the field value and the field state to a loan information intermediate table.
In the embodiment of the invention, after the information entry platform acquires the scanning field name, the field value and the field state, the scanning field name, the field value and the field state are stored in the matched client information intermediate table or loan information intermediate table. The loan platform has the advantage that when scanned data in the loan platform is abnormal, abnormal data can be conveniently located, and problem troubleshooting can be conveniently carried out.
Optionally, after sending the message in the form of the linked list to the loan platform, the method may further include: when a data exception prompt sent by a loan platform is received, comparing the exception field name, the exception field value and the exception field state matched with the data exception prompt with the scanning field name, the field value and the field state in a customer information intermediate table and/or a loan information intermediate table respectively, and feeding back the comparison result to the loan platform.
In the embodiment of the invention, if abnormal data occurs in the loan platform, abnormal data can be checked by comparing the abnormal data with data stored in a customer information intermediate table and/or a loan information intermediate table of the information entry platform and locating the abnormal data in time.
According to the technical scheme of the embodiment, the message fields are obtained by splicing the scanned field names, field values and field states obtained through scanning, and the message in the form of a chain table generated by each message field is sent to the loan platform. The problems that in the prior art, due to the mode of constructing the message, when the field is changed, the message interface needs to be correspondingly adjusted, the flexibility is poor, the message is relatively long, and the analysis efficiency is low are solved, the effects of flexibly coping with the interface change speed, reducing the message transmission length and facilitating abnormal data positioning are achieved.
Example four
Fig. 4 is a schematic structural diagram of a message parsing apparatus according to a fourth embodiment of the present invention, which may be implemented by software and/or hardware and is generally integrated in a computer device installed with a loan platform. The device includes: a message acquisition module 410 and an entity assignment module 420. Wherein:
the message acquiring module 410 is configured to acquire a linked list type message sent by an information entry platform, where the linked list includes at least one message field, and the message field is obtained by assembling a scan field name, a field value, and a field state;
and the entity assignment module 420 is configured to acquire each target packet field in the packet according with the packet field format, and assign a value to a target database entity matched with each target packet field by using a reflection technology.
According to the technical scheme of the embodiment, the message is set to be in a linked list form, the linked list comprises a plurality of message fields obtained by splicing the name of the scanned field, the field value and the field state, and after the message sent by the information input platform is received by the loan platform, the loan platform assigns values to the database entity according to the target message field conforming to the format of the message field and the reflection technology. The problems that in the prior art, when a field is changed, a message interface needs to be correspondingly adjusted in a message analyzing mode, the flexibility is poor, the message is relatively long, and the analyzing efficiency is low are solved, and flexible and efficient message analysis is realized.
On the basis of the above embodiment, the entity assigning module 420 includes:
and the target message field acquisition unit is used for acquiring the message field which is divided into three sections by the two separators in each message field of the message and is used as the target message field conforming to the format of the message field.
On the basis of the above embodiment, the entity assigning module 420 includes:
a target database entity obtaining unit, configured to obtain a target database entity matched with the target message field;
a field linked list generating unit, configured to divide a target packet field according to the separator, and generate a field linked list according to the divided target packet field, where the field linked list includes a scan field name, a field state name, a field value, and a field state value;
and the target database entity assignment unit is used for assigning the target database entity according to the field chain table and the reflection technology.
On the basis of the foregoing embodiment, the packet obtaining module 410 includes:
the message acquisition unit is used for acquiring a linked list type message sent by an information input platform through an interface, wherein the interface is matched with the information input platform.
The message analysis device provided by the embodiment of the invention can execute the message analysis method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a message constructing apparatus according to a fifth embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a computer device installed with an information entry platform. The device includes: a scan field name acquisition module 510, a message field generation module 520, and a message generation module 530. Wherein:
a scan field name obtaining module 510, configured to obtain at least one scan field name, and a field value and a field state corresponding to the scan field name;
a message field generating module 520, configured to assemble the scan field name, the field value, and the field state to generate a message field;
the message generating module 530 is configured to generate a message in a chain table form according to each message field, and send the message in the chain table form to the loan platform through the interface.
According to the technical scheme of the embodiment, the message fields are obtained by splicing the scanned field names, field values and field states obtained through scanning, and the message in the form of a chain table generated by each message field is sent to the loan platform. The problems that in the prior art, due to the mode of constructing the message, when the field is changed, the message interface needs to be correspondingly adjusted, the flexibility is poor, the message is relatively long, and the analysis efficiency is low are solved, the effects of flexibly coping with the interface change speed, reducing the message transmission length and facilitating abnormal data positioning are achieved.
On the basis of the foregoing embodiment, the message field generating module 520 includes:
and the message field assembling unit is used for adding separators between the scan field name and the field value and between the field value and the field state to assemble the message field.
On the basis of the above embodiment, the apparatus further includes:
the first data storage unit is used for storing the name of the scanning field, the field value and the field state into a client information intermediate table when the name of the scanning field is determined to be the client information related field;
and the second data saving unit is used for saving the scanning field name, the field value and the field state to the loan information intermediate table when the scanning field name is determined to be the loan information related field.
On the basis of the above embodiment, the apparatus further includes:
and the comparison result feedback unit is used for comparing the abnormal field names, the abnormal field values and the abnormal field states matched with the data abnormal prompts with the scanning field names, the field values and the field states in the client information intermediate table and/or the loan information intermediate table respectively when receiving the data abnormal prompts sent by the loan platform, and feeding back comparison results to the loan platform.
The message construction device provided by the embodiment of the invention can execute the message construction method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer apparatus according to a sixth embodiment of the present invention, as shown in fig. 6, the computer apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the computer device may be one or more, and one processor 70 is taken as an example in fig. 6; the processor 70, the memory 71, the input device 72 and the output device 73 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6.
The memory 71 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as modules corresponding to the message parsing method in the embodiment of the present invention (for example, the message obtaining module 410 and the entity assigning module 420 in the message parsing apparatus), or modules corresponding to the message constructing method in the embodiment of the present invention (for example, the scan field name obtaining module 510, the message field generating module 520, and the message generating module 530 in the message constructing apparatus). The processor 70 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 71, that is, implements the message parsing method described above. The method comprises the following steps:
acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by assembling a scanning field name, a field value and a field state;
and acquiring each target message field which accords with the message field format in the message, and assigning values to the target database entity matched with each target message field by a reflection technology.
Or, the above message construction method is implemented. The method comprises the following steps:
acquiring at least one scanning field name, and a field value and a field state corresponding to the scanning field name;
assembling the scanning field name, the field value and the field state to generate a message field;
and generating a message in a chain table form according to each message field, and sending the message in the chain table form to a loan platform through an interface.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the computer device. The output device 73 may include a display device such as a display screen.
EXAMPLE seven
A seventh embodiment of the present invention provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a message parsing method, and the method includes:
acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state;
and obtaining each target message field which accords with the message field format in the message, and assigning values to the target database entity matched with each target message field through a reflection technology.
The method can also be used for executing a message construction method, and the method comprises the following steps:
acquiring at least one scanning field name, and a field value and a field state corresponding to the scanning field name;
assembling the scanning field name, the field value and the field state to generate a message field;
and generating a message in a chain table form according to each message field, and sending the message in the chain table form to a loan platform through an interface.
Of course, the storage medium provided by the embodiment of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the message parsing method or the message constructing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiments of the message parsing apparatus and the message constructing apparatus, each unit and each module included in the embodiments are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A message parsing method is characterized by comprising the following steps:
acquiring a linked list type message sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state;
obtaining each target message field which accords with the message field format in the message, and assigning values to target database entities matched with each target message field through a reflection technology;
wherein, obtaining each target message field in the message according with the message field format comprises:
acquiring a message field which is divided into three sections by two separators in each message field of the message, and taking the message field as a target message field conforming to the format of the message field;
wherein, the assigning the target database entity matched with each target message field by the reflection technology comprises:
acquiring a target database entity matched with the target message field;
segmenting a target message field according to the separator, and generating a field linked list according to the segmented target message field, wherein the field linked list comprises a scanning field name, a field state name, a field value and a field state value;
and assigning the target database entity according to the field chain table and the reflection technology.
2. The method according to claim 1, wherein the obtaining of the message in the form of a linked list sent by the information entry platform comprises:
obtaining a message in a linked list form sent by an information input platform through an interface, wherein the interface is matched with the information input platform.
3. A message construction method is characterized by comprising the following steps:
acquiring at least one scanning field name, and a field value and a field state corresponding to the scanning field name;
assembling the scanned field name, the field value and the field state to generate a message field;
generating a message in a chain table form according to each message field, sending the message in the chain table form to a loan platform through an interface, obtaining each target message field in the message which accords with the format of the message field by the loan platform, and assigning values to target database entities matched with each target message field through a reflection technology;
the loan platform acquires each target message field in the message according with the message field format, and assigns a target database entity matched with each target message field by a reflection technology, wherein the loan platform comprises:
acquiring a message field which is divided into three sections by two separators in each message field of the message, and taking the message field as a target message field conforming to the format of the message field;
acquiring a target database entity matched with the target message field;
segmenting a target message field according to the separator, and generating a field linked list according to the segmented target message field, wherein the field linked list comprises a scanning field name, a field state name, a field value and a field state value;
and assigning the target database entity according to the field chain table and the reflection technology.
4. The method of claim 3, wherein the assembling the scan field name, the field value, and the field status to generate the message field comprises:
and adding separators between the name of the scanning field and the field value and between the field value and the field state to assemble the message field.
5. The method of claim 3, further comprising, after obtaining at least one scan field name, and a field value and a field status corresponding to the scan field name:
when the scanning field name is determined to be a relevant field of the client information, saving the scanning field name, the field value and the field state to a client information intermediate table;
and when the scanning field name is determined to be the loan information related field, saving the scanning field name, the field value and the field state to a loan information intermediate table.
6. The method of claim 5, wherein after sending the message in the form of the linked list to a loan platform, further comprising:
when a data exception prompt sent by a loan platform is received, comparing the exception field name, the exception field value and the exception field state matched with the data exception prompt with the scanning field name, the field value and the field state in a customer information intermediate table and/or a loan information intermediate table respectively, and feeding back the comparison result to the loan platform.
7. A message parsing apparatus, comprising:
the message acquisition module is used for acquiring messages in a linked list form sent by an information input platform, wherein the linked list comprises at least one message field, and the message field is obtained by splicing a scanning field name, a field value and a field state;
the entity assignment module is used for acquiring each target message field which accords with the message field format in the message and assigning the target database entity matched with each target message field through a reflection technology;
wherein, the entity assigning module comprises:
a target message field acquiring unit, configured to acquire, in each message field of the message, a message field divided into three segments by two delimiters, where the message field is used as a target message field conforming to a message field format;
a target database entity obtaining unit, configured to obtain a target database entity matched with the target message field;
a field linked list generating unit, configured to segment a target packet field according to the separator, and generate a field linked list according to the segmented target packet field, where the field linked list includes a scan field name, a field state name, a field value, and a field state value;
and the target database entity assignment unit is used for assigning the target database entity according to the field chain table and the reflection technology.
8. A message construction apparatus, comprising:
the scanning field name acquisition module is used for acquiring at least one scanning field name and a field value and a field state corresponding to the scanning field name;
the message field generating module is used for splicing the name of the scanning field, the field value and the field state to generate a message field;
the message generation module is used for generating a message in a chain table form according to each message field, sending the message in the chain table form to a loan platform through an interface so that the loan platform can acquire each target message field in the message, which accords with the format of the message field, and assigning values to target database entities matched with each target message field through a reflection technology;
the loan platform acquires each target message field in the message according with the message field format, and assigns a target database entity matched with each target message field by a reflection technology, wherein the loan platform comprises:
acquiring a message field which is divided into three sections by two separators in each message field of the message, and taking the message field as a target message field conforming to the format of the message field;
acquiring a target database entity matched with the target message field;
segmenting a target message field according to the separator, and generating a field linked list according to the segmented target message field, wherein the field linked list comprises a scanning field name, a field state name, a field value and a field state value;
and assigning the target database entity according to the field chain table and the reflection technology.
9. The apparatus of claim 8, wherein the message field generating module comprises:
and the message field splicing unit is used for adding separators between the name of the scanning field and the field value and between the field value and the field state to splice the message fields.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the message parsing method according to any one of claims 1-2 or implements the message construction method according to any one of claims 3-6 when executing the program.
11. A storage medium containing computer-executable instructions for performing the message parsing method of any one of claims 1-2 or implementing the message construction method of any one of claims 3-6 when executed by a computer processor.
CN202011001967.3A 2020-09-22 2020-09-22 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium Active CN112187761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011001967.3A CN112187761B (en) 2020-09-22 2020-09-22 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011001967.3A CN112187761B (en) 2020-09-22 2020-09-22 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112187761A CN112187761A (en) 2021-01-05
CN112187761B true CN112187761B (en) 2022-12-13

Family

ID=73957091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011001967.3A Active CN112187761B (en) 2020-09-22 2020-09-22 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112187761B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115050135A (en) * 2022-07-08 2022-09-13 中国银行股份有限公司 Cash counting method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159682A (en) * 2007-09-28 2008-04-09 中兴通讯股份有限公司 Method and equipment of implementing stream conversion
CN103957241A (en) * 2014-04-16 2014-07-30 中国工商银行股份有限公司 Communication method and device based on message data
WO2016131225A1 (en) * 2015-02-16 2016-08-25 中兴通讯股份有限公司 Message forward processing method, apparatus, controller and routing forward device
CN106528823A (en) * 2016-11-18 2017-03-22 中国银行股份有限公司 Message configuration and output method and device
CN110334144A (en) * 2019-06-13 2019-10-15 平安银行股份有限公司 Message methods of exhibiting, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159682A (en) * 2007-09-28 2008-04-09 中兴通讯股份有限公司 Method and equipment of implementing stream conversion
CN103957241A (en) * 2014-04-16 2014-07-30 中国工商银行股份有限公司 Communication method and device based on message data
WO2016131225A1 (en) * 2015-02-16 2016-08-25 中兴通讯股份有限公司 Message forward processing method, apparatus, controller and routing forward device
CN106528823A (en) * 2016-11-18 2017-03-22 中国银行股份有限公司 Message configuration and output method and device
CN110334144A (en) * 2019-06-13 2019-10-15 平安银行股份有限公司 Message methods of exhibiting, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112187761A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
US11645122B2 (en) Method, device, and computer program product for managing jobs in processing system
CN108427619B (en) Log management method and device, computing equipment and storage medium
CN112532408B (en) Method, device and storage medium for extracting fault propagation condition
US11934287B2 (en) Method, electronic device and computer program product for processing data
CN112187761B (en) Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
CN110781180A (en) Data screening method and data screening device
CN110602171B (en) Interaction method and device
CN114817190A (en) Log synchronization method, device, system, equipment and storage medium
CN113885880A (en) Multi-rule matching method, device and equipment
CN111885190B (en) Service request processing method and system
CN113779422A (en) Method and device for realizing relation chain label, electronic equipment and storage medium
CN110716866A (en) Code quality scanning method and device, computer equipment and storage medium
CN113453371B (en) Method, base station, and computer storage medium for wireless communication
CN112580092B (en) Sensitive file identification method and device
CN115048913A (en) Command processing method and device and electronic equipment
CN112199092B (en) Application development method and device and electronic equipment
CN110602172B (en) Link identification generation method and device
CN110909288B (en) Service data processing method, device, platform, service end, system and medium
CN113837382A (en) Method and system for training graph neural network
CN113691403A (en) Topological node configuration method, related device and computer program product
CN112508518A (en) RPA flow generation method combining RPA and AI, corresponding device and readable storage medium
CN113141407A (en) Page resource loading method and device and electronic equipment
EP3793171A1 (en) Message processing method, apparatus, and system
CN112231011B (en) Activiti-based flow chart adjustment method and device, electronic equipment and storage medium

Legal Events

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