Message processing method and device, electronic equipment and storage medium
Through the automated message review method, the audit model is used to automatically review and exception handle the message content, which solves the problem of low manual review efficiency and achieves efficient processing of message review.
Patent Information
- Application Number
- CN202410639042.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, manual review of messages by business personnel is cumbersome and inefficient, and cannot effectively improve the efficiency of message review.
By responding to the message processing instructions, the message information is obtained and audit identification is generated, the audit model is called to automatically audit the fields to be audited, exception records are extracted and a display page is generated. Users can add marks to the page to facilitate exception handling.
It realizes the automation of message review, simplifies the operation process, improves review efficiency, and handles abnormal message content in a timely and accurate manner.
Smart Images

Figure CN118540394A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a message processing method, device, electronic equipment and storage medium. Background Art
[0002] In business processing in various fields, data transmission between business systems is often required through messages, so the review and processing of message content has become an important issue. For example, in the bank's document review business, it is usually necessary to review the messages related to freight to determine the accuracy of the freight information. In related technologies, business personnel usually review the messages manually, which is not only cumbersome to operate, but also inefficient. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for message processing, which can solve the problem that manual review of messages by business personnel is cumbersome and inefficient.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for message processing is provided.
[0005] A message processing method according to an embodiment of the present invention includes: in response to a message processing instruction, obtaining corresponding message information to query an associated message to be processed;
[0006] Based on the message information, the corresponding business type and status parameters are obtained to generate an audit mark, each field to be audited associated with the audit mark in the message to be processed is obtained, the audit type of each field to be audited is queried, and the corresponding audit model is called to audit the message content of the field to be audited to obtain the audit result;
[0007] Extracting each abnormal record from the audit result, calling a preset display component to generate a display page corresponding to each abnormal record and the message to be processed, wherein each abnormal record is associated with a corresponding field in the message content;
[0008] In response to an operation instruction input based on the display page, a target exception record corresponding to the operation instruction is obtained, and position information of a field associated with the target exception record in the display page is determined to add a preset mark to the display page based on the position information.
[0009] In one embodiment, the calling of the corresponding audit model to audit the message content of the field to be audited to obtain the audit result includes:
[0010] In response to the audit type being the first type, the field group to which the field to be audited belongs is queried, so as to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result; in response to the audit type being the second type, the corresponding audit parameter is queried to obtain the parameter value of the audit parameter corresponding to the field to be audited, and the corresponding audit model is called to audit the message content of the field to be audited and obtain the audit result.
[0011] In yet another embodiment, calling a corresponding audit model to audit the message content of the to-be-audited field includes:
[0012] Obtain a parameter array corresponding to the field group, extract the audit parameter corresponding to each field in the field group, identify the parameter value of the audit parameter from the message content corresponding to the field, and call the corresponding audit model to audit the parameter value.
[0013] In yet another embodiment, the audit type of each of the fields to be audited is queried, and the corresponding audit model is called to audit the message content of the fields to be audited:
[0014] Sorting the fields to be reviewed to generate a review sequence;
[0015] Read the fields to be reviewed in the review sequence in sequence to determine the current review fields, and query the review type of each current review field;
[0016] In response to the audit type being the first type, querying each field group to which the current audit field belongs;
[0017] For each of the field groups, in response to each field included in the field group being sequentially located before the current audit field in the audit sequence, the audit operation on the current audit field based on the field group is stopped.
[0018] In yet another embodiment, obtaining a corresponding service type and status parameter based on the message information to generate an audit mark includes:
[0019] Based on the message information, the field value of the preset field is extracted, the status parameter corresponding to the message to be processed is identified, and the corresponding business type is obtained based on the message information to obtain the business file information associated with the status parameter and the business type, and the preset generation model is called to generate an audit mark.
[0020] In yet another embodiment, extracting each abnormal record from the audit result includes:
[0021] Filtering the abnormal fields whose audit results are abnormal, obtaining the field numbers of the abnormal fields, and generating an abnormal record table in combination with the corresponding audit results;
[0022] Determining the position information of the column associated with the target abnormal record in the display page includes:
[0023] The target column number corresponding to the target exception record is obtained from the exception record table, and the target column number is identified in the display page to determine the corresponding position information.
[0024] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for message processing is provided.
[0025] A message processing device according to an embodiment of the present invention comprises: a query unit, configured to obtain corresponding message information in response to a message processing instruction, so as to query an associated message to be processed;
[0026] An audit unit, used to obtain the corresponding business type and status parameters based on the message information to generate an audit mark, obtain each field to be audited associated with the audit mark in the message to be processed, query the audit type of each field to be audited, call the corresponding audit model to audit the message content of the field to be audited, and obtain the audit result;
[0027] A generating unit, used for extracting each abnormal record from the audit result, calling a preset display component to generate a display page corresponding to each abnormal record and the message to be processed, wherein each abnormal record is associated with a corresponding field in the message content;
[0028] A processing unit is used to respond to an operation instruction input based on the display page, obtain a target exception record corresponding to the operation instruction, determine the position information of a field associated with the target exception record in the display page, and add a preset mark to the display page based on the position information.
[0029] In one embodiment, the audit unit is specifically used to:
[0030] In response to the audit type being the first type, the field group to which the field to be audited belongs is queried, so as to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result; in response to the audit type being the second type, the corresponding audit parameter is queried to obtain the parameter value of the audit parameter corresponding to the field to be audited, and the corresponding audit model is called to audit the message content of the field to be audited and obtain the audit result.
[0031] In one embodiment, the audit unit is specifically used to:
[0032] Calling the corresponding audit model to audit the message content of the field to be audited includes:
[0033] Obtain a parameter array corresponding to the field group, extract the audit parameter corresponding to each field in the field group, identify the parameter value of the audit parameter from the message content corresponding to the field, and call the corresponding audit model to audit the parameter value.
[0034] In one embodiment, the audit unit is specifically used to:
[0035] Sorting the fields to be reviewed to generate a review sequence;
[0036] Read the fields to be reviewed in the review sequence in sequence to determine the current review fields, and query the review type of each current review field;
[0037] In response to the audit type being the first type, querying each field group to which the current audit field belongs;
[0038] For each of the field groups, in response to each field included in the field group being sequentially located before the current audit field in the audit sequence, the audit operation on the current audit field based on the field group is stopped.
[0039] In one embodiment, the audit unit is specifically used to:
[0040] Based on the message information, the field value of the preset field is extracted, the status parameter corresponding to the message to be processed is identified, and the corresponding business type is obtained based on the message information to obtain the business file information associated with the status parameter and the business type, and the preset generation model is called to generate an audit mark.
[0041] In one embodiment, the generating unit is specifically used to screen the abnormal fields whose audit results are abnormal, obtain the field numbers of the abnormal fields, and generate an abnormal record table in combination with the corresponding audit results;
[0042] The processing unit is specifically configured to obtain a target column number corresponding to the target exception record from the exception record table, and identify the target column number in the display page to determine corresponding position information.
[0043] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0044] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the message processing method provided by the embodiment of the present invention.
[0045] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0046] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method for message processing provided by the embodiment of the present invention is implemented.
[0047] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.
[0048] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for message processing provided by the embodiment of the present invention is implemented.
[0049] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, in response to a message processing instruction, its corresponding message information can be determined to query the message to be processed; based on the business type and status parameters of the message, an audit mark can be generated to obtain the audited field that needs to be audited in the message to be processed, that is, the message content that needs to be audited for the message to be processed, and then the audit operation can be performed through the audit model to obtain the audit result; since exceptions may occur during the message audit, in order to facilitate the handling of message exceptions, each exception record can be extracted from the audit result, and a corresponding display page can be generated to display the display page to relevant personnel, and after receiving the operation instruction of the display page, the position of the associated message field in the display page can be determined according to the target exception record of the operation, and then a preset mark can be added to the display page to prompt the message content. In an embodiment of the present invention, the message audit can obtain each field to be audited by generating an audit identifier, so as to perform automatic audit through the corresponding audit model, which is not only simple to operate but also can improve the audit efficiency; and in an embodiment of the present invention, the abnormal records and message contents in the audit record are displayed on the page, and the corresponding message fields are marked in the display page when the user operates the abnormal record, so that the abnormal content of the message can be determined in a timely and accurate manner, so as to facilitate the processing of the message abnormality and improve the processing efficiency.
[0050] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0052] Figure 1 is a schematic diagram of a main process of a method for message processing according to an embodiment of the present invention;
[0053] Figure 2is a schematic diagram of another main process of the message processing method according to an embodiment of the present invention;
[0054] Figure 3 is a schematic diagram of main units of a message processing device according to an embodiment of the present invention;
[0055] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0056] Figure 5 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0058] It should be pointed out that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0059] An embodiment of the present invention provides a message processing system, which can be used in a message processing scenario, and specifically can be used in a scenario of performing abnormal review and processing on messages.
[0060] For example, in the business field of shipping, some agreements and contracts involved in business processing can be communicated and negotiated by sending messages, so the content of the message needs to be reviewed during the business processing. The message content usually includes multiple fields, each field will be set with a field number, the content recorded in each field is pre-agreed, and each field is represented in a fixed format so that the fields in the message can be distinguished. For example, the message uses the format of ":XX:" to represent the field, where XX can represent the field number.
[0061] Taking the shipping business processing as an example, the content of the message can be as follows.
[0062] :27:SEQUENCE OF TOTAL 1 / 1
[0063] :40A:FORM OF DOCUMENTARY CREDIT IRREVOCABLE
[0064] In the above message content, 27 and 40A represent the field numbers of the message fields, and the content after ":27:" and ":40A:" represents the message content of the corresponding fields. In the embodiment of the present invention, the message processing system can review the message content of each field in the message.
[0065] The embodiment of the present invention provides a method for message processing, which can be executed by a message processing system, such as Figure 1 As shown, the method includes:
[0066] S101: In response to a message processing instruction, corresponding message information is obtained to query associated messages to be processed.
[0067] The message processing instruction may be automatically triggered or sent by other systems. For example, the message processing system may be set to automatically trigger the message processing instruction after receiving the message. The message processing instruction may include message information, such as message identification, receiving time, sender information, receiver information, etc., so that the message corresponding to the message processing instruction can be determined, that is, the associated message to be processed can be queried.
[0068] S102: Based on the message information, the corresponding business type and status parameters are obtained to generate an audit mark, and each field to be audited associated with the audit mark in the message to be processed is obtained, and the audit type of each field to be audited is queried, and the corresponding audit model is called to audit the message content of the field to be audited to obtain the audit result.
[0069] Among them, the message information may also include business information corresponding to the message, such as business field and state parameters, and the state parameters may represent the state of business execution. Since the audit requirements for message content are different for different businesses and different stages, the audit fields required for messages of different businesses and different stages may be preset in the embodiment of the present invention, and the association between the audit fields required for the message and the business type and state parameters may be established. For example, an audit mark may be generated based on the business type and state parameters, so that the association between the audit field required for the message and the business type and state parameters may be established through the audit mark. Therefore, in this step, the audit mark may be generated after obtaining the business type and state parameters, and then the fields to be audited associated with the audit mark described in the message to be processed may be obtained.
[0070] It should be noted that, in an embodiment of the present invention, since the message may include some parameters used in business processing, the content in the message may represent content associated with the business. In order to facilitate business processing, the meanings of different fields of different messages may be pre-set, and then it may be determined which fields in the message need to be reviewed according to demand.
[0071] In one embodiment, generating an audit identifier can be specifically performed as follows: extracting the field value of a preset field based on the message information, identifying the status parameters corresponding to the message to be processed, obtaining the corresponding business type based on the message information to obtain the business file information associated with the status parameters and the business type, and calling the preset generation model to generate the audit identifier.
[0072] The state parameter may include the state of the business processing, such as the business initial stage, the business negotiation stage, etc. Taking the sea freight business as an example, the state parameter may include the business order establishment stage, the business order placement stage, and the business order transportation stage, etc. Therefore, the preset field in the message represents the state parameter, so the state parameter is determined by identifying the field value of the preset field. In this step, the business type can be obtained based on the message information, such as after obtaining the message identifier, the corresponding business type can be queried, or the business type can be directly obtained in the message information. For messages of different business types and different state parameters, the embodiment of the present invention can pre-set business files to store the field information that needs to be reviewed, so in this step, after obtaining the business type and state parameter, the associated business file information can be obtained, and then the review identifier can be generated, and the corresponding business file can be queried to obtain the field to be reviewed from the business file. The generation model can be pre-configured, which can be implemented by a hash algorithm, etc. The business file information can be set based on demand, such as including the name and version of the business file, etc.
[0073] It should be noted that, in an embodiment of the present invention, the fields to be reviewed corresponding to the review identifier can be pre-configured, so that according to the review identifier, it can be determined which fields need to be reviewed, and then it can be matched with the fields in the message to be processed to determine the fields that need to be reviewed in the message to be processed, that is, the fields to be reviewed associated with the review identifier in the message to be processed.
[0074] After determining each field to be reviewed, the review type of the field to be reviewed may be determined first, so as to review the message using a corresponding review model based on different review types.
[0075] Since the contents of some fields in the message are interrelated, the field review can be reviewed by combining two or more fields. Therefore, the review types of the fields to be reviewed are the first type and the second type. The first type represents the combined review type, and the second type represents the individual review type.
[0076] For the first type, you can pre-set the field group that needs to be audited together, that is, the fields in the field group are the fields that need to be audited together, and you can set the corresponding audit model at the same time. The audit model is configured with the audit rules for each field in the field group. Therefore, for the first type of fields to be audited, you can first query the field group to which the field to be audited belongs, and then call the corresponding audit model to audit the message content of the field to be audited to obtain the audit result. The audit rules can be set based on demand. For example, in the shipping business, the currency involved in the amount of each field in the message needs to be unified, so the fields involving the currency can be combined into a field group, and the audit rule is determined as the currency of the content of each field in the field group is consistent.
[0077] It should be noted that in some audits, different parameters in each field in the same field group are audited. For example, in shipping business, it can be audited whether the destination port in one field and the destination area in another field match. Therefore, a parameter array can be set in an embodiment of the present invention. Each element in the parameter array corresponds one-to-one to the parameter required to be audited in each field in the field group. Therefore, after obtaining the field group, the parameter array corresponding to the field group can be obtained to extract the audit parameters corresponding to each field in the field group, and then the parameter value of the audit parameter is identified from the corresponding field content, and it is input into the corresponding audit model in the form of an array to call the corresponding audit model to audit the parameter value.
[0078] For the second type, since the content of its field is audited separately, the corresponding audit parameters can be queried, that is, the parameters in the field content that need to be audited, and then the parameter values of the audit parameters corresponding to the field to be audited are obtained, and then the corresponding audit model is called to audit the message content of the field to be audited to obtain the audit result. The audit parameter can be determined based on the audit rule. For example, the audit rule is whether the business type in the audit field content is consistent with the preset business type, so the audit parameter is the business type. In this step, the business type corresponding to the field to be audited can be obtained from the field content. The audit rules can be pre-configured in the audit model, and the parameter values of the audit parameters are input into the audit model to obtain the audit result.
[0079] In another embodiment, in an embodiment of the present invention, in order to facilitate the audit of each field to be audited, each field to be audited can be sorted first to generate an audit sequence, such as sorting each field to be audited based on the field number. For the audit sequence, the fields to be audited in the audit sequence can be read in sequence to determine the current audit field, so as to perform an audit on the current audit field. For the current audit field, the audit type of each current audit field can be queried first. If the audit type is the second type, the audit can be performed in accordance with the above processing method; if the audit type is the second type, the field groups to which the current audit field belongs can be queried first, and then it can be determined that each field included in the field group is located before the current audit field in the audit sequence. If the fields included in the field group are all located before the current audit field in the audit sequence, it can be said that the audit of the field group has been executed and does not need to be executed again, so the audit operation on the current audit field based on the field group can be stopped; if the fields included in the field group are not all located before the current audit field in the audit sequence, it can be said that the audit of the field group has not been executed, so the field group to which the field to be audited belongs can be queried to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result.
[0080] It should be noted that if the audit type of the field to be audited includes both the first type and the second type, it is necessary to perform two types of audits on the message content of the field to be audited through the corresponding audit models respectively.
[0081] S103: extracting each abnormal record from the audit result, calling a preset display component to generate a display page corresponding to each abnormal record and the message to be processed.
[0082] Among them, each abnormal record is associated with a corresponding field in the message content. If there is an abnormal record in the audit result, it means that there is an abnormality in the message content. At this time, it is usually necessary to process the abnormality in the message. Therefore, in this step, each abnormal record can be extracted from the audit result, and a display page including each abnormal record and the message to be processed is generated based on a preset display component, so that the abnormal record and the message content can be displayed through each terminal or device.
[0083] Specifically, in this step, an exception record table can be generated for each exception record, that is, the exception fields with abnormal audit results are screened, and the field numbers of the exception fields are obtained to generate the exception record table in combination with the corresponding audit results. In this way, the exception records and message contents can be associated through the field numbers in the exception record table.
[0084] S104: In response to an operation instruction input based on the display page, a target exception record corresponding to the operation instruction is obtained, and position information of a column associated with the target exception record in the display page is determined to add a preset mark to the display page based on the position information.
[0085] Among them, after the display page is generated in step S103, it can be displayed based on demand, and the user or relevant personnel can input the operation instruction by operating the display page, such as the user can input the operation instruction by clicking. The operation instruction may include the operation position, and the target abnormal record corresponding to the operation instruction can be obtained based on the operation position, and then the field associated with the target abnormal record can be determined by the association between the abnormal record and the message, and then the position information of the field in the display page, such as coordinates, etc., can be determined, and then a preset mark can be added to the display page based on the position information to highlight the position of the message content corresponding to the target abnormal record.
[0086] In an embodiment of the present invention, the message audit can obtain each field to be audited by generating an audit identifier, so as to perform automatic audit through the corresponding audit model, which is not only simple to operate but also can improve the audit efficiency; and in an embodiment of the present invention, the abnormal records and message contents in the audit record are displayed on the page, and the corresponding message fields are marked in the display page when the user operates the abnormal record, so that the abnormal content of the message can be determined in a timely and accurate manner, so as to facilitate the processing of the message abnormality and improve the processing efficiency.
[0087] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for message processing in the embodiment of the present invention. Figure 2 As shown, the method includes:
[0088] S201: In response to a message processing instruction, corresponding message information is obtained to query associated messages to be processed.
[0089] S202: Obtain the corresponding business type and status parameters based on the message information to generate an audit mark, obtain each field to be audited associated with the audit mark in the message to be processed, and query the audit type of each field to be audited.
[0090] S203: In response to the audit type being the first type, query the field group to which the field to be audited belongs, so as to call the corresponding audit model to audit the message content of the field to be audited, and obtain the audit result; in response to the audit type being the second type, query the corresponding audit parameter to obtain the parameter value of the audit parameter corresponding to the field to be audited, call the corresponding audit model to audit the message content of the field to be audited, and obtain the audit result.
[0091] S204: Filter the abnormal fields with abnormal audit results, obtain the field numbers of the abnormal fields, and generate an abnormal record table in combination with the corresponding audit results.
[0092] S205: calling a preset display component to generate and display the display pages corresponding to each abnormal record table and the message to be processed.
[0093] S206: In response to an operation instruction input based on the display page, a target exception record corresponding to the operation instruction is obtained, and position information of a column associated with the target exception record in the display page is determined to add a preset mark to the display page based on the position information.
[0094] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.
[0095] In order to solve the problems existing in the prior art, the embodiment of the present invention provides a message processing device 300, such as Figure 3 As shown, the device 300 includes:
[0096] The receiving unit 301 is used to obtain corresponding message information in response to the message processing instruction to query the associated message to be processed;
[0097] The audit unit 302 is used to obtain the corresponding business type and state parameter based on the message information to generate an audit mark, obtain each field to be audited associated with the audit mark in the message to be processed, query the audit type of each field to be audited, call the corresponding audit model to audit the message content of the field to be audited, and obtain the audit result;
[0098] A generating unit 303 is used to extract each abnormal record from the audit result, and call a preset display component to generate a display page corresponding to each abnormal record and the message to be processed, wherein each abnormal record is associated with a corresponding field in the message content;
[0099] The processing unit 304 is used to respond to an operation instruction input based on the display page, obtain a target exception record corresponding to the operation instruction, determine the position information of the field associated with the target exception record in the display page, and add a preset mark to the display page based on the position information.
[0100] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be repeated here.
[0101] In one embodiment, the review unit 302 is specifically configured to:
[0102] In response to the audit type being the first type, the field group to which the field to be audited belongs is queried, so as to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result; in response to the audit type being the second type, the corresponding audit parameter is queried to obtain the parameter value of the audit parameter corresponding to the field to be audited, and the corresponding audit model is called to audit the message content of the field to be audited and obtain the audit result.
[0103] In one embodiment, the review unit 302 is specifically configured to:
[0104] Calling the corresponding audit model to audit the message content of the field to be audited includes:
[0105] Obtain a parameter array corresponding to the field group, extract the audit parameter corresponding to each field in the field group, identify the parameter value of the audit parameter from the message content corresponding to the field, and call the corresponding audit model to audit the parameter value.
[0106] In one embodiment, the review unit 302 is specifically configured to:
[0107] Sorting the fields to be reviewed to generate a review sequence;
[0108] Read the fields to be reviewed in the review sequence in sequence to determine the current review fields, and query the review type of each current review field;
[0109] In response to the audit type being the first type, querying each field group to which the current audit field belongs;
[0110] For each of the field groups, in response to each field included in the field group being sequentially located before the current audit field in the audit sequence, the audit operation on the current audit field based on the field group is stopped.
[0111] In one embodiment, the review unit 302 is specifically configured to:
[0112] Based on the message information, the field value of the preset field is extracted, the status parameter corresponding to the message to be processed is identified, and the corresponding business type is obtained based on the message information to obtain the business file information associated with the status parameter and the business type, and the preset generation model is called to generate an audit mark.
[0113] In one embodiment, the generating unit 303 is specifically used to screen the abnormal fields whose audit results are abnormal, obtain the field numbers of the abnormal fields, and generate an abnormal record table in combination with the corresponding audit results;
[0114] The processing unit 304 is specifically configured to obtain a target column number corresponding to the target exception record from the exception record table, and identify the target column number in the display page to determine corresponding position information.
[0115] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 , 2 The method of the illustrated embodiment is the same and will not be repeated here.
[0116] In an embodiment of the present invention, the message audit can obtain each field to be audited by generating an audit identifier, so as to perform automatic audit through the corresponding audit model, which is not only simple to operate but also can improve the audit efficiency; and in an embodiment of the present invention, the abnormal records and message contents in the audit record are displayed on the page, and the corresponding message fields are marked in the display page when the user operates the abnormal record, so that the abnormal content of the message can be determined in a timely and accurate manner, so as to facilitate the processing of the message abnormality and improve the processing efficiency.
[0117] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.
[0118] The electronic device of an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for message processing provided by the embodiment of the present invention.
[0119] Figure 4 An exemplary system architecture 400 is shown to which the message processing method or message processing apparatus according to the embodiment of the present invention can be applied.
[0120] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0121] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various client applications can be installed on the terminal devices 401, 402, 403.
[0122] The terminal devices 401 , 402 , and 403 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0123] The server 405 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.
[0124] It should be noted that the message processing method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the message processing device is generally arranged in the server 405 .
[0125] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0126] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 suitable for implementing an embodiment of the present invention. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0127] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0128] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0129] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0130] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor. For example, they may be described as: a processor includes a query unit, an audit unit, a generation unit, and a processing unit. The names of these units do not, in some cases, constitute limitations on the units themselves. For example, the query unit may also be described as a "query function unit."
[0133] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the message processing method provided by the present invention.
[0134] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the message processing method provided in an embodiment of the present invention.
[0135] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A message processing method, characterized in that: include: In response to the message processing instruction, obtain corresponding message information to query the associated to-be-processed message; Based on the message information, the corresponding business type and status parameters are obtained to generate an audit mark, each field to be audited associated with the audit mark in the message to be processed is obtained, the audit type of each field to be audited is queried, and the corresponding audit model is called to audit the message content of the field to be audited to obtain the audit result; Extracting each abnormal record from the audit result, calling a preset display component to generate a display page corresponding to each abnormal record and the message to be processed, wherein each abnormal record is associated with a corresponding field in the message content; In response to an operation instruction input based on the display page, a target exception record corresponding to the operation instruction is obtained, and position information of a field associated with the target exception record in the display page is determined to add a preset mark to the display page based on the position information.
2. The method according to claim 1, characterized in that The calling of the corresponding audit model to audit the message content of the field to be audited, and obtaining the audit result, includes: In response to the audit type being the first type, the field group to which the field to be audited belongs is queried, so as to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result; in response to the audit type being the second type, the corresponding audit parameter is queried to obtain the parameter value of the audit parameter corresponding to the field to be audited, and the corresponding audit model is called to audit the message content of the field to be audited and obtain the audit result.
3. The method according to claim 2, characterized in that Calling the corresponding audit model to audit the message content of the field to be audited includes: Obtain a parameter array corresponding to the field group, extract the audit parameter corresponding to each field in the field group, identify the parameter value of the audit parameter from the message content corresponding to the field, and call the corresponding audit model to audit the parameter value.
4. The method according to claim 1, characterized in that: Query the audit type of each field to be audited, and call the corresponding audit model to audit the message content of the field to be audited: Sorting the fields to be reviewed to generate a review sequence; Read the fields to be reviewed in the review sequence in sequence to determine the current review fields, and query the review type of each current review field; In response to the audit type being the first type, querying each field group to which the current audit field belongs; For each of the field groups, in response to each field included in the field group being sequentially located before the current audit field in the audit sequence, the audit operation on the current audit field based on the field group is stopped.
5. The method according to claim 1, characterized in that Acquiring corresponding service types and status parameters based on the message information to generate an audit mark includes: Based on the message information, the field value of the preset field is extracted, the status parameter corresponding to the message to be processed is identified, and the corresponding business type is obtained based on the message information to obtain the business file information associated with the status parameter and the business type, and the preset generation model is called to generate an audit mark.
6. The method according to claim 1, characterized in that Extract each abnormal record from the audit result, including: Filtering the abnormal fields whose audit results are abnormal, obtaining the field numbers of the abnormal fields, and generating an abnormal record table in combination with the corresponding audit results; Determining the position information of the column associated with the target abnormal record in the display page includes: The target column number corresponding to the target exception record is obtained from the exception record table, and the target column number is identified in the display page to determine the corresponding position information.
7. A message processing device, characterized in that: include: A receiving unit, configured to obtain corresponding message information in response to a message processing instruction to query associated messages to be processed; An audit unit, used to obtain the corresponding business type and status parameters based on the message information to generate an audit mark, obtain each field to be audited associated with the audit mark in the message to be processed, query the audit type of each field to be audited, call the corresponding audit model to audit the message content of the field to be audited, and obtain the audit result; A generating unit, used for extracting each abnormal record from the audit result, calling a preset display component to generate a display page corresponding to each abnormal record and the message to be processed, wherein each abnormal record is associated with a corresponding field in the message content; A processing unit is used to respond to an operation instruction input based on the display page, obtain a target exception record corresponding to the operation instruction, determine the position information of a field associated with the target exception record in the display page, and add a preset mark to the display page based on the position information.
8. The device according to claim 7, characterized in that The audit unit is specifically used for: In response to the audit type being the first type, the field group to which the field to be audited belongs is queried, so as to call the corresponding audit model to audit the message content of the field to be audited and obtain the audit result; in response to the audit type being the second type, the corresponding audit parameter is queried to obtain the parameter value of the audit parameter corresponding to the field to be audited, and the corresponding audit model is called to audit the message content of the field to be audited and obtain the audit result.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Clearing message processing method and device, electronic equipment and readable storage medium
CN119809825A
