Business information preprocessing methods and apparatus, storage media, and computer equipment
By constructing a set of city code mapping relationships and an early warning mechanism, the problem of high error rate and low efficiency in business processing caused by differences in city codes was solved, realizing the accuracy and convenient management of city code conversion, and improving the accuracy and efficiency of business processing.
Patent Information
- Application Number
- CN202211114515.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-09-14
AI Technical Summary
Because city codes are set by individual companies without a unified set of rules, there are significant differences in city codes between companies, resulting in high error rates and low efficiency in business processing.
By constructing a set of city code mapping relationships, the conversion from the initial city code to the target city code is realized. This includes obtaining target business information, identifying the target city code, and updating it to the execution end. It supports bidirectional conversion and updates the mapping relationship through an early warning mechanism and page configuration.
It reduces business processing failures caused by city code non-recognition, shortens city code conversion time, enables convenient management and maintenance of city code conversion, and improves the accuracy and efficiency of business processing.
Smart Images

Figure CN115310862B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information processing, and in particular to a business information preprocessing method and apparatus, storage medium, and computer equipment. Background Technology
[0002] With the rapid development of computer and internet technologies, businesses can process orders and reconcile accounts through business platforms integrated with airline ticketing, hotel, and taxi service partners. To differentiate transactions between different cities, each city has a unique city code to identify the transactions occurring in that city.
[0003] Because city codes are set by individual companies without a unified set of rules, there are differences between city codes. In business dealings between different companies, the inability of companies to identify each other's city codes leads to high error rates and low processing efficiency in business transactions involving city codes. Summary of the Invention
[0004] In view of this, the present invention provides a business information preprocessing method and apparatus, storage medium and computer equipment, the main purpose of which is to address the problem of low business processing efficiency in existing businesses involving city codes.
[0005] According to one aspect of the present invention, a business information preprocessing method is provided, comprising:
[0006] In response to the execution request of the target service, the target service information is obtained. The target service information includes the target service category, the target service object, and the initial city code. The initial city code is a feature city code or a standard city code corresponding to the target service object.
[0007] Identify the target city code that matches the target business information from the city code mapping relationship set, wherein the city code mapping relationship set includes the mapping relationship between the standard city code and the feature city codes corresponding to different business categories and different business objects;
[0008] The initial city code in the target service information is updated to the target city code, and the updated target service information is sent to the execution terminal of the target service.
[0009] Furthermore, before identifying the target city code matching the target business information from the city code mapping relationship set, the method further includes:
[0010] Obtain the feature city code of the global business object under the global business category, and the city information corresponding to the feature city code;
[0011] For each business object under each business category, a mapping relationship between the feature city code and the standard city code is constructed based on the same city information to obtain a subset of city code mapping relationships for different business objects under different business categories.
[0012] Based on the subset of city code mapping relationships for different business objects under different business categories, a set of city code mapping relationships is constructed.
[0013] Furthermore, the method also includes:
[0014] Obtain the expected business object or expected city code for the expected target business;
[0015] The city code mapping relationship set is queried and verified based on the expected business object or the expected city code.
[0016] If the query verification result is that the verification fails, then an early warning message is generated based on the expected business object or the expected city code to indicate that the city code mapping relationship is missing, and the early warning message is sent to the maintenance personnel terminal.
[0017] Furthermore, after sending the warning information to the maintenance personnel's terminal, the method further includes:
[0018] In response to a page configuration operation instruction, the page configuration content carried by the page configuration operation instruction is parsed to obtain the new city code mapping relationship. The page configuration operation instruction is used to indicate the creation of a new city code mapping relationship.
[0019] Update the newly added city code mapping relationship to the city code mapping relationship set.
[0020] Further, identifying the target city code matching the target business information from the city code mapping relationship set includes:
[0021] Identify a first subset of city code mapping relationships that matches the target business category from the set of city code mapping relationships;
[0022] Identify a second subset of city code mapping relationships that matches the target business object from the first subset of city code mapping relationships;
[0023] Identify target city codes that have a mapping relationship with the initial city codes from the second city code mapping subset.
[0024] Furthermore, the method also includes:
[0025] If the target business category is order placement, then the initial city code is a standard city code and the target city code is a characteristic city code;
[0026] If the target business category is reconciliation business, then the initial city code is the standard city code, and the target city code is the characteristic city code; or,
[0027] The initial city code is the characteristic city code, and the target city code is the standard city code.
[0028] Furthermore, after constructing a set of city code mapping relationships based on subsets of city code mapping relationships for different business objects under different business categories, the method further includes:
[0029] The set of city code mapping relationships is stored in a preset storage space, which is used for querying by at least one business execution terminal or at least one city code conversion component.
[0030] According to another aspect of the present invention, a business information preprocessing apparatus is provided, comprising:
[0031] The acquisition module is used to acquire target business information in response to the execution request of the target business. The target business information includes target business category, target business object, and initial city code. The initial city code is a feature city code or a standard city code corresponding to the target business object.
[0032] The identification module is used to identify the target city code that matches the target business information from the city code mapping relationship set, wherein the city code mapping relationship set includes the mapping relationship between the standard city code and the feature city codes corresponding to different business categories and different business objects;
[0033] An update module is used to update the initial city code in the target service information to the target city code, and send the updated target service information to the execution terminal of the target service.
[0034] Furthermore, the device also includes:
[0035] The acquisition module is also used to acquire the feature city code of the global business object under the global business category, and the city information corresponding to the feature city code;
[0036] For each business object under each business category, a mapping relationship between the feature city code and the standard city code is constructed based on the same city information to obtain a subset of city code mapping relationships for different business objects under different business categories.
[0037] Based on the subset of city code mapping relationships for different business objects under different business categories, a set of city code mapping relationships is constructed.
[0038] Furthermore, the device also includes:
[0039] The acquisition module is also used to acquire the expected business object or expected city code of the expected target business;
[0040] The verification module is used to query and verify the set of city code mapping relationships based on the expected business object or the expected city code;
[0041] The early warning module is used to generate early warning information indicating the absence of city code mapping relationship based on the expected business object or the expected city code if the query verification result is that the verification fails, and send the early warning information to the maintenance personnel terminal.
[0042] Furthermore, the device also includes:
[0043] The parsing module is used to respond to the page configuration operation command, parse the page configuration content carried by the page configuration operation command to obtain the new city code mapping relationship, and the page configuration operation command is used to indicate the creation of the new city code mapping relationship;
[0044] The update module is used to update the newly added city code mapping relationship to the city code mapping relationship set.
[0045] Furthermore, the identification module includes:
[0046] The first identification unit is used to identify a first subset of city code mapping relationships that matches the target business category from the city code mapping relationship set;
[0047] The second identification unit is used to identify a second city code mapping relationship subset that matches the target business object from the first city code mapping relationship subset;
[0048] The third identification unit is used to identify target city codes that have a mapping relationship with the initial city codes from the second city code mapping relationship subset.
[0049] Furthermore, in specific application scenarios,
[0050] If the target business category is order placement, then the initial city code is a standard city code and the target city code is a characteristic city code; or,
[0051] The initial city code is the characteristic city code, and the target city code is the standard city code.
[0052] Furthermore, the device also includes:
[0053] The storage module is used to store the set of city code mapping relationships into a preset storage space, which is used for querying by at least one business execution terminal or at least one city code conversion component.
[0054] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored therein, the executable instruction causing a processor to perform an operation corresponding to the above-described business information preprocessing method.
[0055] According to another aspect of the present invention, a computer device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0056] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-mentioned business information preprocessing method.
[0057] By employing the above-described technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:
[0058] This invention provides a business information preprocessing method, apparatus, storage medium, and computer equipment. In response to an execution request of a target business, the invention obtains target business information, including a target business category, a target business object, and an initial city code. The initial city code is a feature city code or a standard city code corresponding to the target business object. A target city code matching the target business information is identified from a city code mapping relationship set, which includes mapping relationships between the standard city code and the feature city codes corresponding to different business categories and different business objects. The initial city code in the target business information is updated to the target city code, and the updated target business information is sent to the execution end of the target business. This significantly reduces business processing failures due to city code misidentification, reduces city code conversion time, reduces the space occupied by city code information in the system, achieves convenient management and maintenance of city code conversion, and ensures the accuracy of city code conversion, thereby effectively improving the accuracy and efficiency of business processing.
[0059] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0060] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0061] Figure 1 A flowchart of a business information preprocessing method provided by an embodiment of the present invention is shown;
[0062] Figure 2 A flowchart of another business information preprocessing method provided by an embodiment of the present invention is shown;
[0063] Figure 3 This invention provides a flowchart of another business information preprocessing method according to an embodiment of the invention.
[0064] Figure 4 This diagram illustrates a block diagram of a business information preprocessing device provided in an embodiment of the present invention.
[0065] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention is shown. Detailed Implementation
[0066] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0067] To address the problem that existing city codes are defined by individual enterprises without a unified set of rules, leading to inconsistencies between enterprise city codes and difficulties in identifying each other's city codes during business transactions, resulting in high error rates and low processing efficiency in city code-related business processes, this invention provides a business information preprocessing method, such as... Figure 1 As shown, the method includes:
[0068] 101. In response to the execution request of the target service, obtain the target service information of the target service.
[0069] In this embodiment of the invention, the target business can be the ordering or booking of air tickets, train tickets, hotels, or taxis, or it can be the reconciliation business between the enterprise and the corresponding business partners. Since air ticket and hotel bookings can occur in any city, each transaction corresponds to a city code used to identify the city where the transaction takes place. Because each enterprise's city code is defined internally, without a unified definition specification or standard, there are differences in format and content between city codes between enterprises and business partners, and between different business partners. Therefore, when exchanging business information between the enterprise and its business partners, it is necessary to convert the enterprise's defined city code into the business partner's city code so that the business partner can recognize it. When a request to execute the target business is received, the target business information is retrieved from the corresponding database of the target business. The target business information includes the target business category, the target business object, and the initial city code. The target business category is the business type of the target business, for example, an air ticket booking business. The target business object is the business partner cooperating with the enterprise, for example, Ctrip. The initial city code is the city code in the target business information.
[0070] It should be noted that the initial city code is either a characteristic city code or a standard city code corresponding to the target business object. The standard city code is a unified city code within the enterprise, defined uniformly within the enterprise, and applicable to various systems within the enterprise. The characteristic city code is a city code that cannot be recognized by various systems within the enterprise, and cannot be recognized by different business objects. Characteristic city codes include city codes corresponding to specific global business objects. Examples include Ctrip city codes and Didi city codes. Since the initial city code is either a characteristic city code or a standard city code corresponding to the target business object, the city code conversion object can be either a characteristic city code or an internal standard city code, enabling bidirectional conversion of city codes and thus improving the applicability of city code conversion to different businesses.
[0071] 102. Identify the target city code that matches the target business information from the city code mapping relationship set.
[0072] In this embodiment of the invention, after obtaining the target business information, in order to determine the target city code to be converted from the initial city code, the target business category, target business object, and initial city code are used as input parameters to obtain the target city code from a database storing a set of city code mapping relationships. The set of city code mapping relationships includes the mapping relationships between standard city codes and feature city codes of different business objects under different business categories. For example, if the target business information includes AIR (air tickets), LONGTENG (Longteng business partners), and 100023 (initial city code), the air tickets subset is found in the city code mapping relationship set, the Longteng subset is found in the air tickets subset, and the feature city code corresponding to 100023 in the Longteng subset is the target city code. The target city code is different from the initial city code. If the initial city code is a standard city code, the target city code is a feature city code; conversely, if the initial city code is a feature city code, the target city code is a standard city code.
[0073] It should be noted that by establishing a mapping relationship between the feature city codes corresponding to different business categories and different business objects and the standard city codes, the target city code corresponding to the initial city code can be accurately obtained based on the target business category, the target business object, and the initial city code. This improves the efficiency of city code conversion while ensuring the accuracy of city code conversion, thereby improving the efficiency of city code conversion.
[0074] 103. Update the initial city code in the target service information to the target city code, and send the updated target service information to the execution terminal of the target service.
[0075] In this embodiment of the invention, after obtaining the target city code, in order to execute the target business based on the target city code, the initial city code in the target business information is replaced with the target city code to obtain target business information that can be recognized by the target business execution terminal. The target business execution terminal can be an internal system on the enterprise side or a system on the business partner side; this embodiment of the invention does not specifically limit this. For example, if the target business type is a reconciliation business, specifically reconciling invoice information based on the business partner's invoice information and the enterprise's invoice information, then the initial city code is a feature city code, and the target city code is a standard city code. The feature city code in the business partner's invoice information is converted into a standard city code that the enterprise's reconciliation system can recognize, and then the business partner's invoice information is sent to the enterprise's reconciliation system so that the reconciliation system can execute the reconciliation business.
[0076] It should be noted that the code for the above-mentioned business information preprocessing process, namely the city code conversion process, is encapsulated in the city code conversion plugin. This city code conversion plugin can be called by any business processing system. The city code conversion process is executed by this city code conversion plugin. The conversion of the city code is completed without the business system being aware of the characteristic city code of the business partner, realizing mutual recognition of city codes between different enterprise systems, thereby improving the accuracy and efficiency of business processing.
[0077] In one embodiment of the present invention, for further illustration and limitation, such as Figure 2 As shown, before step 102, which involves identifying the target city code matching the target business information from the city code mapping relationship set, the method further includes:
[0078] 201. Obtain the characteristic city code of the global business object under the global business category.
[0079] 202. For each business object under each business category, construct a mapping relationship between the feature city code and the standard city code based on the same city information to obtain a subset of city code mapping relationships for different business objects under different business categories.
[0080] 203. Based on the subset of city code mapping relationships for different business objects under the different business categories, construct a set of city code mapping relationships.
[0081] In this embodiment of the invention, the global business category refers to all business categories requiring city code conversion, including but not limited to reconciliation, authorization, and order placement. The global business object refers to the partners within each business category that have a business relationship with the enterprise. City information refers to the city information represented by the feature city code, such as Beijing or Guangzhou, Guangdong Province. The city code corresponding to each business object includes city codes from various cities domestically or globally. For each city's feature city code within each business object under each business category, the corresponding standard city code for that city is found, and a mapping relationship is established between the standard city code and the feature city code for the same city. The mapping relationship between the standard city code and the feature city code for the same business object constitutes a subset of the city code mapping relationships for that business object. The subset of the city code mapping relationships for business objects under the same business category constitutes a subset of the mapping relationships for that business category, and then a set of city code mapping relationships is constructed based on the subset of city code mapping relationships for the global business category. By constructing a set of mapping relationships between standard city codes and feature city codes, the system's internal city code for each city is associated with different city codes of different business partners, avoiding the need to query city information during business processing, thereby effectively improving business processing efficiency.
[0082] In one embodiment of the present invention, for further illustration and limitation, such as Figure 3 As shown, the method further includes:
[0083] 301. Obtain the expected business object or expected city code of the expected target business.
[0084] 302. Query and verify the set of city code mapping relationships based on the expected business object or the expected city code.
[0085] 303. If the query verification result is that the verification fails, then generate early warning information to indicate that the city code mapping relationship is missing based on the expected business object or the expected city code.
[0086] In this embodiment of the invention, the expected target business is the business that is expected to require city code conversion. The expected business object is the business object that is expected to generate a business execution request. The expected city code is the characteristic city code of the expected business object. A company's business partners are not static; new business partners may join at any time, and the characteristic city codes of these partners may change due to business expansion. To promptly update the characteristic city codes of newly added business partners, or newly added characteristic city codes of existing business partners, to the city code mapping relationship set, before receiving the target business execution request, the business that is expected to require city code conversion is first obtained. The expected business object or expected city code in this business is used as the query target in the city code mapping relationship set. If the city code mapping relationship set does not include the expected business object or expected city code, i.e., the query verification result is a failure, it indicates that the city code mapping relationship for this business partner (expected business object) is missing, or the expected city code is missing. In this case, an early warning message needs to be generated to notify the developers to promptly establish a mapping relationship between the characteristic city code and the standard city code of the expected business object and update it to the city code mapping relationship set.
[0087] It should be noted that by querying and verifying the expected business object or expected city code with the city code mapping relationship set, and generating an early warning message when the query verification result is unsuccessful, it is possible to promptly identify new business partners or new city codes, and promptly update the characteristic city code corresponding to the new business partner or the new city code to the city code mapping relationship set, so as to ensure the integrity of the city code mapping relationship set information, thereby effectively improving the timeliness and success rate of business processing.
[0088] In one embodiment of the present invention, for further explanation and limitation, after sending the warning information to the maintenance personnel's terminal, the method further includes:
[0089] In response to the page configuration operation command, the page configuration content carried by the page configuration operation command is parsed to obtain the new city code mapping relationship.
[0090] Update the newly added city code mapping relationship to the city code mapping relationship set.
[0091] In this embodiment of the invention, the page configuration operation instruction is used to instruct the creation of a new city code mapping relationship. Because the business partners and their characteristic city codes change frequently, the database often suffers from untimely updates to these codes, making it impossible to obtain relevant information in real time. To avoid impacting business processing efficiency and accelerate the update speed of the city code mapping relationship set, a new mapping relationship is constructed through web page configuration. This eliminates the need for releasing existing mapping relationships, speeds up the update of the mapping relationship set, and makes the construction of city code mapping relationships more flexible, thereby effectively ensuring the efficiency and success rate of city code conversion during business execution.
[0092] In one embodiment of the present invention, for further explanation and limitation, identifying the target city code matching the target business information from the city code mapping relationship set includes:
[0093] Identify a first subset of city code mapping relationships from the set of city code mapping relationships that matches the target business category.
[0094] Identify a second city code mapping subset that matches the target business object from the first city code mapping subset.
[0095] Identify target city codes that have a mapping relationship with the initial city codes from the second city code mapping subset.
[0096] In this embodiment of the invention, since the services requiring city code conversion include multiple business categories, such as flight booking and hotel booking, the city code mapping relationship set includes subsets of city code mapping relationships corresponding to different business categories. The first subset of city code mapping relationships is the subset of city code mapping relationships in the city code mapping relationship set that is the same as the target business category. Furthermore, since different business partners correspond to the same business type, and each business partner has a different characteristic city code, it is necessary to identify the second subset of city code mapping relationships containing the characteristic city code of the target business object from the first subset of city code mapping relationships based on the target business object in the target business information. Then, based on the characteristic city code or standard city code in the initial city code, the target city code that has a mapping relationship with the initial city code is identified from the second subset of city code mapping relationships.
[0097] It should be noted that by obtaining the target city code from the city code mapping relationship set based on the target business category, target business object, and initial city code, accurate querying of the target city code can be achieved, thereby effectively ensuring the accuracy of city code conversion.
[0098] In one embodiment of the present invention, for further explanation and limitation, the method further includes:
[0099] If the target business category is order placement, then the initial city code is a standard city code and the target city code is a characteristic city code.
[0100] If the target business category is reconciliation business, then the initial city code is the standard city code and the target city code is the feature city code, or the initial city code is the feature city code and the target city code is the standard city code.
[0101] In this embodiment of the invention, the conversion of city codes involves a two-way conversion between the enterprise's internal standard city code and the business partner's characteristic city code. In an order placement scenario, when an enterprise places an order with a business partner, it needs to convert its internal standard city code into a characteristic city code that can be recognized by the business partner. In this case, the initial city code is the enterprise's internal standard city code, and the target city code is the characteristic city code. In a reconciliation scenario, when providing reconciliation information to a business partner, the enterprise's internal standard city code needs to be converted into a characteristic city code that can be recognized by the business partner. In this case, the initial city code is the enterprise's internal standard city code, and the target city code is the characteristic city code. When reconciliation is needed based on the reconciliation information provided by the business partner, the characteristic city code recognized by the business partner needs to be converted into a standard city code that can be recognized by the enterprise's internal reconciliation system. In this case, the initial city code is the characteristic city code, and the target city code is the enterprise's internal standard city code.
[0102] In one embodiment of the present invention, for further explanation and limitation, the method further includes: storing the city code mapping relationship set into a preset storage space, the preset storage space being used for querying by at least one business execution terminal or at least one city code conversion component.
[0103] In this embodiment of the invention, the preset storage space is a non-volatile storage medium, which can be Oracle or MySQL; no specific limitation is made in this embodiment. The set of city code mapping relationships is stored in the preset city code storage space, and the data in the city code storage space can be queried and retrieved by any business system. This effectively avoids the management and maintenance of city codes by business systems, and stores a large number of business partner city codes in all business systems involving city codes, thereby greatly reducing the resource consumption of business systems caused by city code conversion.
[0104] This invention provides a business information preprocessing method. In response to an execution request of a target business, the method obtains target business information, including a target business category, a target business object, and an initial city code. The initial city code is a feature city code or a standard city code corresponding to the target business object. The method identifies a target city code matching the target business information from a city code mapping relationship set, which includes mapping relationships between the standard city code and the feature city codes corresponding to different business categories and different business objects. The method updates the initial city code in the target business information to the target city code and sends the updated target business information to the execution end of the target business. This significantly reduces business processing failures due to city code misidentification, reduces city code conversion time, reduces the space occupied by city code information in the system, achieves convenient management and maintenance of city code conversion, and ensures the accuracy of city code conversion, thereby effectively improving the accuracy and efficiency of business processing.
[0105] Furthermore, as a response to the above Figure 1 The implementation of the method shown in this invention provides a business information preprocessing device, such as... Figure 4 As shown, the device includes:
[0106] The acquisition module 41 is used to acquire target business information of the target business in response to the execution request of the target business. The target business information includes target business category, target business object, and initial city code. The initial city code is a feature city code or a standard city code corresponding to the target business object.
[0107] The identification module 42 is used to identify the target city code that matches the target business information from the city code mapping relationship set, wherein the city code mapping relationship set includes the mapping relationship between the standard city code and the feature city codes corresponding to different business categories and different business objects;
[0108] The update module 43 is used to update the initial city code in the target service information to the target city code, and send the updated target service information to the execution terminal of the target service.
[0109] Furthermore, the device also includes:
[0110] The acquisition module is also used to acquire the feature city code of the global business object under the global business category, and the city information corresponding to the feature city code;
[0111] For each business object under each business category, a mapping relationship between the feature city code and the standard city code is constructed based on the same city information to obtain a subset of city code mapping relationships for different business objects under different business categories.
[0112] Based on the subset of city code mapping relationships for different business objects under different business categories, a set of city code mapping relationships is constructed.
[0113] Furthermore, the device also includes:
[0114] The acquisition module is also used to acquire the expected business object or expected city code of the expected target business;
[0115] The verification module is used to query and verify the set of city code mapping relationships based on the expected business object or the expected city code;
[0116] The early warning module is used to generate early warning information indicating the absence of city code mapping relationship based on the expected business object or the expected city code if the query verification result is that the verification fails, and send the early warning information to the maintenance personnel terminal.
[0117] Furthermore, the device also includes:
[0118] The parsing module is used to respond to the page configuration operation command, parse the page configuration content carried by the page configuration operation command to obtain the new city code mapping relationship, and the page configuration operation command is used to indicate the creation of the new city code mapping relationship;
[0119] The update module is used to update the newly added city code mapping relationship to the city code mapping relationship set.
[0120] Furthermore, the identification module includes:
[0121] The first identification unit is used to identify a first subset of city code mapping relationships that matches the target business category from the city code mapping relationship set;
[0122] The second identification unit is used to identify a second city code mapping relationship subset that matches the target business object from the first city code mapping relationship subset;
[0123] The third identification unit is used to identify target city codes that have a mapping relationship with the initial city codes from the second city code mapping relationship subset.
[0124] Furthermore, in specific application scenarios,
[0125] If the target business category is order placement, then the initial city code is a standard city code and the target city code is a characteristic city code;
[0126] If the target business category is reconciliation business, then the initial city code is the standard city code, and the target city code is the characteristic city code; or,
[0127] The initial city code is the characteristic city code, and the target city code is the standard city code.
[0128] Furthermore, the device also includes:
[0129] The storage module is used to store the set of city code mapping relationships into a preset storage space, which can be queried by at least one business execution terminal or at least one city code conversion component.
[0130] This invention provides a business information preprocessing device. In response to an execution request of a target business, the device acquires target business information, including a target business category, a target business object, and an initial city code. The initial city code is a feature city code or a standard city code corresponding to the target business object. It then identifies a target city code matching the target business information from a city code mapping relationship set, which includes mapping relationships between the standard city code and the feature city codes corresponding to different business categories and different business objects. Finally, it updates the initial city code in the target business information to the target city code and sends the updated target business information to the execution end of the target business. This significantly reduces business processing failures due to city code misidentification, reduces city code conversion time, lowers the space occupied by city code information in the system, enables convenient management and maintenance of city code conversion, and ensures the accuracy of city code conversion, thereby effectively improving the accuracy and efficiency of business processing.
[0131] According to one embodiment of the present invention, a storage medium is provided, the storage medium storing at least one executable instruction, which can execute the business information preprocessing method in any of the above method embodiments.
[0132] Figure 5 The diagram illustrates a structural schematic of a computer device according to an embodiment of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the computer device.
[0133] like Figure 5As shown, the computer device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
[0134] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.
[0135] Communication interface 504 is used to communicate with other network elements such as clients or other servers.
[0136] The processor 502 is used to execute program 510, specifically to perform the relevant steps in the above-described business information preprocessing method embodiment.
[0137] Specifically, program 510 may include program code that includes computer operation instructions.
[0138] Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The computer device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0139] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0140] Specifically, program 510 can be used to cause processor 502 to perform the following operations:
[0141] In response to the execution request of the target service, the target service information is obtained. The target service information includes the target service category, the target service object, and the initial city code. The initial city code is a feature city code or a standard city code corresponding to the target service object.
[0142] Identify the target city code that matches the target business information from the city code mapping relationship set, wherein the city code mapping relationship set includes the mapping relationship between the standard city code and the feature city codes corresponding to different business categories and different business objects;
[0143] The initial city code in the target service information is updated to the target city code, and the updated target service information is sent to the execution terminal of the target service.
[0144] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular hardware and software combination.
[0145] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A service information preprocessing method, characterized by, The method comprises the following steps: in response to an execution request of a target service, obtaining target service information of the target service, the target service information comprising a target service category, a target service object, and an initial city code, the initial city code being a characteristic city code or a standard city code corresponding to the target service object; identifying a target city code matching the target service information from a city code mapping relationship set, the city code mapping relationship set comprising mapping relationships between the standard city code and the characteristic city code corresponding to different service categories and different service objects, wherein the target city code is different from the city code type of the initial city code, the initial city code being the standard city code, and the target city code being the characteristic city code, or vice versa; updating the initial city code in the target service information to the target city code, and sending the updated target service information to an execution end of the target service, wherein the execution end of the target service is an internal system of an enterprise side or a system of a business cooperation party side.
2. The method of claim 1, wherein, Before the step of identifying the target city code matching the target service information from the city code mapping relationship set, the method further comprises the following steps: obtaining a characteristic city code of a global service object under a global service category and city information corresponding to the characteristic city code; for each service object under each service category, constructing a mapping relationship between the characteristic city code and the standard city code based on the same city information, to obtain a city code mapping relationship subset of different service objects under different service categories; constructing the city code mapping relationship set according to the city code mapping relationship subset of different service objects under different service categories.
3. The method of claim 1, wherein, The method further comprises the following steps: obtaining an expected service object or an expected city code of an expected target service; querying and verifying the city code mapping relationship set according to the expected service object or the expected city code; if the result of the querying and verifying is that the verification fails, generating early warning information for indicating a missing city code mapping relationship according to the expected service object or the expected city code, and sending the early warning information to a maintenance personnel terminal.
4. The method of claim 3, wherein, After the step of sending the early warning information to the maintenance personnel terminal, the method further comprises the following steps: in response to a page configuration operation instruction, analyzing page configuration content carried by the page configuration operation instruction to obtain an added city code mapping relationship, the page configuration operation instruction being used for indicating a newly created city code mapping relationship; updating the added city code mapping relationship to the city code mapping relationship set.
5. The method of claim 1, wherein, The step of identifying the target city code matching the target service information from the city code mapping relationship set comprises the following steps: identifying a first city code mapping relationship subset matching the target service category from the city code mapping relationship set; identifying a second city code mapping relationship subset matching the target service object from the first city code mapping relationship subset; identifying the target city code having a mapping relationship with the initial city code from the second city code mapping relationship subset.
6. The method of claim 1, wherein, The method further comprises the following steps: If the target service type is an order service, the initial city code is a standard city code and the target city code is a feature city code; or The initial city code is the feature city code and the target city code is the standard city code.
7. The method of claim 2, wherein, After the city code mapping relationship set is constructed according to the city code mapping relationship subsets of different service objects in different service types, the method further comprises: The city code mapping relationship set is stored in a preset storage space, and the preset storage space is used for querying by at least one service execution terminal or at least one city code conversion component.
8. A service information preprocessing apparatus, characterized by comprising: Comprise: An acquisition module is configured to acquire target service information of a target service in response to an execution request of the target service, the target service information comprising a target service type, a target service object, and an initial city code, the initial city code being a feature city code corresponding to the target service object or a standard city code, wherein the target city code is different from the initial city code in city code type, the initial city code is the standard city code, and the target city code is the feature city code, or vice versa. An identification module is configured to identify a target city code matching the target service information from a city code mapping relationship set, the city code mapping relationship set comprising mapping relationships between the standard city code and the feature city codes corresponding to different service types and different service objects. An update module is configured to update the initial city code in the target service information to the target city code and send the updated target service information to an execution end of the target service, wherein the execution end of the target service is an internal system of an enterprise side or a system of a business cooperation party side. 9.A storage medium, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the service information preprocessing method according to any one of claims 1-7.
10. A computer device comprising: A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface completing communication with each other through the communication bus; The memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the service information preprocessing method according to any one of claims 1-7.
Citation Information
Patent Citations
Information transmission method and device, electronic equipment and storage medium
CN111988384A