Information reporting method and device
By storing item restriction rules and information collection requirements in each area in the configuration center, and using local servers to generate and report relevant information, the dynamic adjustment of item restriction policies and information collection requirements in administrative areas is solved, and rapid response and business compliance are achieved , reduces the amount of code maintenance.
Patent Information
- Application Number
- CN202310849493.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, the item restriction strategies and information collection requirements in administrative areas are sudden and dynamic, resulting in frequent adjustment of codes on the server platform, resulting in large code maintenance and low work efficiency, and being unable to respond quickly to the strategies of each area and Requires adjustment.
By storing item restrictions and information collection requirements in each area in the configuration center, using the local server to read the corresponding rules and requirements from the configuration center, generating information collection pages and reporting relevant information, avoiding frequent changes in hard-coded codes and realizing dynamics Adjust and respond quickly.
It realizes rapid response and implementation of item restriction strategies and information collection requirements in various regions, reduces the amount of code maintenance, ensures business compliance of the server platform, and solves the confusion caused by inconsistent data field names.
Smart Images

Figure CN119313416A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pharmaceutical supply chain, and in particular to an information reporting method and device. Background Art
[0002] During a specific period, some administrative regions will restrict the purchase of specific items, and buyers need to provide relevant information to successfully purchase. In the prior art, the item restriction policies issued by various regional management departments are often sudden and easy to adjust frequently. The information collection requirements of various regions are also different and easy to adjust dynamically. The server platform generally implements the implementation of item restriction policies and generates information collection pages through hard coding, resulting in a large amount of code maintenance, low work efficiency, and inability to quickly respond to adjustments to item restriction policies and information collection requirements in various regions. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides an information reporting method and device, which can maintain dynamically adjusted item restriction strategies and information collection requirements for each area through background configuration, thereby avoiding frequent code changes in traditional hard-coding methods, and facilitating rapid response to item restriction strategies and information collection requirements in each area.
[0004] To achieve the above objective, according to one aspect of the present invention, a method for reporting information is provided.
[0005] The information reporting method of the embodiment of the present invention includes: obtaining item restriction strategies and information collection requirements of multiple areas; creating item restriction rules for each area based on the item restriction strategies, and storing the item restriction rules and information collection requirements for each area in a pre-established configuration center; in response to a user order arriving at a preset first node, determining whether the user order complies with any item restriction rule of the configuration center; if so, generating an information collection page for display to the user based on the information collection requirements of the area to which the compliant item restriction rules belong; obtaining the item restriction associated information filled in by the user on the information collection page, and reporting the item restriction associated information to the server of the area to which the compliant item restriction rules belong.
[0006] Optionally, the item restriction rule for each area indicates the identification of the area and the identification of the restricted items in the area; and, judging whether the user order complies with any item restriction rule of the configuration center, includes: for the user order and the same item restriction rule of the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, judging that the user order complies with the item restriction rule.
[0007] Optionally, the information collection requirements of any area indicate the name of the information collection field of the area; and the information collection page is generated according to the information collection requirements of the area to which the item restriction rules are met, including: generating a to-be-filled item based on each information collection field name indicated by the information collection requirements of the area to which the item restriction rules are met, and the information collection page is formed by the to-be-filled items.
[0008] Optionally, the method is executed by a local server, the information collection field names of the local server constitute a first field set, and the information collection field names of any area constitute a second field set of the area; the item restriction association information is key-value pair data, and the key data in the item restriction association information is an element in the first field set; and the method further includes: pre-storing the field name mapping relationship between the first field set and the second field set of each area in the configuration center; before reporting the item restriction association information to the server of the area to which the compliant item restriction rules belong, using the field name mapping relationship between the first field set and the second field set of the area, converting the key data in the item restriction association information into the information collection field name of the area.
[0009] Optionally, the method further includes: after creating item restriction rules for each area based on the item restriction policy, adding specific marks to the restricted items indicated by the item restriction rules; in response to a user order arriving at a preset first node, determining whether there are items with the specific marks in the user order; if so, executing the step of determining whether the user order complies with any item restriction rule of the configuration center.
[0010] Optionally, reporting the item restriction associated information to a server in an area to which the item restriction rule is applied includes: upon monitoring that the user order arrives at a preset second node, reporting the item restriction associated information to a server in an area to which the item restriction rule is applied.
[0011] Optionally, the first node is creation of an order submission page, the second node is completion of order splitting, order production or order review, and the restricted items are medicines.
[0012] To achieve the above objective, according to another aspect of the present invention, an information reporting device is provided.
[0013] The information reporting device of the embodiment of the present invention may include: an external data acquisition unit, used to obtain item restriction strategies and information collection requirements of multiple areas; a configuration unit, used to create item restriction rules for each area based on the item restriction strategy, and store the item restriction rules and information collection requirements for each area in a pre-established configuration center; a decision unit, used to: in response to a user order arriving at a preset first node, determine whether the user order complies with any item restriction rule of the configuration center; if so, generate an information collection page for display to the user based on the information collection requirements of the area to which the compliant item restriction rules belong; a data reporting unit, used to obtain the item restriction association information filled in by the user on the information collection page, and report the item restriction association information to the server of the area to which the compliant item restriction rules belong.
[0014] Optionally, the item restriction rule for each area indicates the identification of the area and the identification of the restricted items in the area; and the decision unit may be further used to: for the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, determine that the user order complies with the item restriction rule.
[0015] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.
[0016] An electronic device 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 information reporting method provided by the present invention.
[0017] To achieve the above objective, according to yet another aspect of the present invention, a computer-readable storage medium is provided.
[0018] A computer-readable storage medium of the present invention stores a computer program, and when the program is executed by a processor, the information reporting method provided by the present invention is implemented.
[0019] According to the technical solution of the present invention, the embodiments of the above invention have the following advantages or beneficial effects:
[0020] First, the local server obtains the item restriction strategy and information collection requirements of each area, then creates the item restriction rules of each area according to the item restriction strategy, and stores the item restriction rules and information collection requirements of each area in the configuration center. After that, when the user order arrives at the first node, the local server determines whether the user order meets the item restriction rules of the configuration center according to the delivery address and the order items; if it meets the requirements, the local server generates an information collection page for display to the user according to the information collection requirements of the area to which the item restriction rules meet. Finally, the local server obtains the item restriction related information filled in by the user on the information collection page, and reports the item restriction related information to the server of the area to which the item restriction rules meet. Through the above steps, the local server maintains its dynamically adjusted item restriction strategy and information collection requirements for each area in the form of background configuration. When the user purchases restricted items, the local server automatically reads the corresponding item restriction rules from the configuration center and is automatically triggered when the order meets the requirements, and then generates an information collection page according to the pre-configured information collection requirements of the corresponding area to collect relevant information and finally upload it to the server of the corresponding area (for example, the server of the corresponding area management department), thereby avoiding frequent changes in the code of the traditional hard-coded method, which is conducive to the rapid response and implementation of the item restriction strategy and information collection requirements of each area, and ensuring the business compliance of the service-side platform. In addition, in order to solve the data confusion problem caused by the inconsistency of the field names customized by the local server and each regional server in the prior art, the embodiment of the present invention sets a field name mapping relationship between each region and the local server, and performs field name conversion on the reported data using the above field name mapping relationship of the corresponding region before reporting the data, thereby solving the above data confusion problem.
[0021] 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
[0022] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0023] Figure 1 Schematic diagram of the main steps of the information reporting method in an embodiment of the present invention;
[0024] Figure 2 Schematic diagram of the system architecture of the information reporting method in an embodiment of the present invention;
[0025] Figure 3 Schematic diagram of the interaction steps of each end in the information reporting method in an embodiment of the present invention;
[0026] Figure 4 It is a schematic diagram of components of an information reporting device in an embodiment of the present invention;
[0027] Figure 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
[0028] Figure 6 It is a schematic diagram of the structure of an electronic device used to implement the information reporting method in the embodiment of the present invention. DETAILED DESCRIPTION
[0029] 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.
[0030] The technical concept of the present invention is first described below. During a specific period, certain administrative regions or geographical regions (hereinafter referred to as regions) will impose restrictions on the purchase of specific items, and buyers need to provide relevant information to successfully purchase. In the prior art, the item restriction policies issued by various regional management departments are often sudden and easy to adjust frequently. The information collection requirements of various regions are also different and easy to adjust dynamically. The server-side platform generally implements the implementation of item restriction policies and the generation of information collection pages in a hard-coded manner, resulting in a large amount of code maintenance, low work efficiency, and an inability to quickly respond to adjustments to item restriction policies and information collection requirements in various regions.
[0031] In view of the above problems, the present invention adjusts the existing hard-coded working mode to a background configuration mode, establishes a configuration center (which can be a server, a computer cluster or a functional component) locally in advance, stores the item restriction rules and information collection requirements of each area in the configuration center, and when the user of the server platform submits an order including related items, the local server reads the corresponding item restriction rules from the configuration center, and then determines whether it is necessary to return the information collection page to the user by judging whether the user order meets the item restriction rules. The specific fields of the information collection page are also determined by the local server reading the information collection requirements of the corresponding area of the configuration center in real time, thereby forming an item restriction policy implementation and information collection process based on the configuration mode. When the item restriction policy or information collection requirements of any area change, the staff can obtain the latest item restriction policy or information collection requirements through the regional server or any other channel, and update them to the configuration center in real time, thereby avoiding the large code maintenance workload brought by the traditional hard-coded mode, and at the same time facilitating the rapid response and implementation of the item restriction policy and information collection requirements of each area, and ensuring the business compliance of the server platform. It can be understood that the local server can be a specific server or a server cluster. When executing business operations, it can be a single functional system or divided into multiple functional systems. For example, the local server includes a dedicated item restriction system and a front-end page system. The former executes steps S101, S102 and S104 to be described below, and the latter executes step S103.
[0032] In actual applications, the above-mentioned item restriction policy may include the identification of the corresponding area and the identification of restricted items in the area (restricted items are not limited to medicines, and the identification of restricted items may be the name of the item or the item code). The above-mentioned item restriction rules are data that are easily stored in a computer system and are created based on the item restriction policy. They may indicate the identification of the corresponding area and the identification of restricted items in the corresponding area. The above indication refers to storage or obtaining through reasoning or calculation. Exemplarily, the above-mentioned item restriction rules may also indicate relevant information such as the rule name, rule type (different rule types may correspond to different business scenarios), and the source of the item. The above-mentioned information collection requirements may indicate the name of the information collection field of the corresponding area, and the corresponding information collection page may be generated based on the above-mentioned information collection requirements.
[0033] In a specific scenario, an area of any granularity (such as a province, city, county, town, etc.) can set an item restriction policy. When the item restriction policies of two areas with a subordinate relationship have different factors, the corresponding order can be subject to the item restriction policies of the two areas at the same time. For example, Province A has an item restriction policy a, and City B in Province A has another item restriction policy b, where b can be one or more restricted items added on the basis of a. When the delivery address of a user's order is in City B, the items in his order are subject to the constraints of both item restriction policies a and b. That is, when his order contains restricted items indicated by item restriction policy a or restricted items indicated by item restriction policy b, he needs to fill in the item restriction association information for reporting, otherwise the service-side platform order cannot continue to advance the order processing. It can be understood that the above item restriction association information corresponds to the information collection field name indicated by the information collection requirements of the corresponding area. Preferably, the item restriction association information can be key-value pair data, in which each key value (key) corresponds to the information collection field name indicated by the information collection requirements of the corresponding area.
[0034] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0035] Figure 1 is a schematic diagram of the main steps of the information reporting method according to an embodiment of the present invention, Figure 2 Schematic diagram of the system architecture of the information reporting method in an embodiment of the present invention. Figure 1 , 2 As shown, the information reporting method of the embodiment of the present invention can be specifically performed according to the following steps:
[0036] Step S101: The local server obtains item restriction policies and information collection requirements of multiple areas.
[0037] In this step, the local server may obtain the latest item restriction strategy and information collection requirements from the servers of the regional management departments (hereinafter referred to as regional servers) or other channels regularly or irregularly.
[0038] Step S102: The local server creates item restriction rules for each area according to the item restriction policy, and stores the item restriction rules and information collection requirements for each area in a pre-established configuration center.
[0039] In this step, the local server can generate corresponding item restriction rules for the item restriction policy of each area. In practical applications, the item restriction rules of multiple subordinate areas belonging to the same upper-level area can be included in the same rule set. For example, the two cities B and C in Province A implement item restrictions, and the restricted items are the same. At this time, the rule set can be configured with Province A as the dimension, including two item restriction rules for City B and City C respectively. In specific scenarios, specific areas and restricted items can be added, reduced or changed in the rule set according to the current situation, which is equivalent to adding, deleting or modifying the item restriction rules for specific areas. In specific scenarios, the configuration center can design corresponding interfaces and interfaces to perform batch operations of the above areas and restricted items in the rule set, such as batch import, batch deletion, etc. As a preferred solution, after creating the item restriction rules for each area, specific tags can be added to the restricted items indicated by the item restriction rules to improve the execution efficiency of the subsequent processing flow. In particular, in this step, when the item restriction policy or information collection requirements of any area change, the staff can obtain the latest data in real time and make adjustments in the configuration center to implement the relevant restriction requirements of each area as soon as possible.
[0040] Step S103: In response to the user order arriving at the preset first node, the local server determines whether the user order complies with any item restriction rule of the configuration center; if so, an information collection page is generated according to the information collection requirements of the area to which the item restriction rule complies, and is displayed to the user.
[0041] In the embodiment of the present invention, the first node can be flexibly set according to actual needs, and generally any node before order settlement can be used, such as a node created by an order submission page, at which the framework of the order submission page is formed and the order items and the delivery address have been determined. When the local server determines that the user order has arrived at the first node, it can read the item restriction rules in the configuration center and determine whether the user order meets any item restriction rule of the configuration center.
[0042] In an optional technical solution, judging that a user order complies with the item restriction rule means that, for the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, the user order is judged to comply with the item restriction rule. Judging that a user order does not comply with the item restriction rule means that, for the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is not in the area to which the item restriction rule belongs, or the user order does not contain restricted items indicated by the item restriction rule, the user order is judged to not comply with the item restriction rule.
[0043] When the user's order meets at least one item restriction rule, the local server reads the information collection requirements of the area to which the item restriction rule belongs from the configuration center, and generates a corresponding information collection page based on the read information collection requirements to display to the user. In a specific application, the above information collection page can be included in the order submission page. For example, the information collection page corresponds to a page area of the order submission page. When the user clicks the page area or the related button, the information collection page can be fully displayed. It can be understood that in the process of generating the above information collection page, the local server generates a to-be-filled item based on each information collection field name indicated by the information collection requirements of the area to which the item restriction rule belongs, and the information collection page is formed by these to-be-filled items. After the user receives the information collection page through his terminal, he can fill in the relevant information on the information collection page, that is, name, gender, body temperature, symptoms and other item restriction related information.
[0044] Preferably, if the step of adding a specific mark to the restricted items has been performed before, when the user order reaches the preset first node, it can first be determined whether there is an item with a specific mark in the user order. If not, the normal order processing process is performed without collecting item restriction related information; if so, the above step of determining whether the user order meets the item restriction rules is performed. In this way, the order processing efficiency can be further improved.
[0045] Step S104: The local server obtains the item restriction associated information filled in by the user on the information collection page, and reports the item restriction associated information to the server of the area to which the item restriction rule that meets the requirements belongs.
[0046] In this step, the local server obtains the item restriction associated information filled in by the user on the information collection page from the user terminal, and when it monitors that the user's order arrives at the preset second node, the item restriction associated information is reported to the server of the corresponding area. The above second node can be specified by the corresponding area. For example, the second node can be the completion of order splitting, the completion of order production (i.e., order delivery), or the completion of order review. In a specific implementation, the local server can use the EventListener (event monitoring) function in the Spring system framework to perform the above monitoring. In addition, the method of reporting to the regional server can be various applicable methods, such as reporting according to the regional identification, centralized reporting according to the designated warehouse in the corresponding area (i.e., centralized reporting of the corresponding item restriction associated information according to the current arrival order of the warehouse), and reporting according to the identification of each regional management department. The present invention is not limited to this.
[0047] At present, the local server and the regional server generally form the information collection field name by a custom method, and the names of the information collection fields with the same meaning on both sides are often different. For example, for the patient name field, the field name of the local server is patientName, the field name of a regional server is pName, and the field name of another regional server is paName, so data confusion is often formed in the data transmission and reporting process. Targetedly, the embodiment of the present invention stores the field name mapping relationship between each region and the local server in the configuration center in advance, and distinguishes them with a unique identifier. Before reporting the data, the above field name mapping relationship of the corresponding region is used to perform field name conversion on the reported data, thereby solving the above data confusion problem. That is, for the first field set composed of the information collection field names of the local server, and the second field set composed of the information collection field names of any region, the field name mapping relationship between the first field set and the second field set of each region is stored in the configuration center in advance and a unique identifier is performed. Before reporting the item restriction associated information corresponding to a certain region to the region, the field name mapping relationship between the first field set and the second field set of the region is first used to convert the field name in the item restriction associated information into the information collection field name of the region, so as to avoid data confusion in the prior art. The above overall execution steps of the embodiment of the present invention can be referred to Figure 3 .
[0048] In the technical solution of the embodiment of the present invention, the local server maintains the dynamically adjusted item restriction strategy and information collection requirements for each area in a background configuration manner. When a user purchases restricted items, the local server automatically reads the corresponding item restriction rules from the configuration center and is automatically triggered when the order meets the requirements. Then, an information collection page is generated according to the pre-configured information collection requirements of the corresponding area to collect relevant information and finally upload it to the server of the corresponding area, thereby avoiding frequent code changes in the traditional hard-coding method, facilitating the rapid response and implementation of item restriction strategies and information collection requirements in each area, and ensuring the business compliance of the service-side platform.
[0049] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0050] For the above-mentioned method embodiments, for the convenience of description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, and some steps can actually be performed in other orders or simultaneously. In addition, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to implement the present invention.
[0051] In order to better implement the above-mentioned solution of the embodiment of the present invention, relevant devices for implementing the above-mentioned solution are also provided below.
[0052] See also Figure 4 As shown, the information reporting device 400 provided in the embodiment of the present invention may include: an external data acquisition unit 401, a configuration unit 402, a decision unit 403 and a data reporting unit 404.
[0053] Among them, the external data acquisition unit 401 can be used to obtain the item restriction policies and information collection requirements of multiple areas; the configuration unit 402 can be used to create item restriction rules for each area based on the item restriction policy, and store the item restriction rules and information collection requirements for each area in a pre-established configuration center; the decision unit 403 can be used to: in response to the user order arriving at a preset first node, determine whether the user order complies with any item restriction rule of the configuration center; if it does, generate an information collection page for display to the user based on the information collection requirements of the area to which the compliant item restriction rules belong; the data reporting unit 404 can be used to obtain the item restriction related information filled in by the user on the information collection page, and report the item restriction related information to the server of the area to which the compliant item restriction rules belong.
[0054] In an embodiment of the present invention, the item restriction rule for each area indicates the identification of the area and the identification of the restricted items in the area; and the decision unit 403 can be further used to: for the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, determine that the user order complies with the item restriction rule.
[0055] In a specific application, the information collection requirements of any area indicate the name of the information collection field of the area; and the decision unit 403 can be further used to: generate an item to be filled in based on each information collection field name indicated by the information collection requirements of the area to which the item restriction rule is compliant, and the information collection page is formed by the items to be filled in.
[0056] In an actual scenario, the method is executed by a local server, the information collection field names of the local server constitute a first field set, and the information collection field names of any area constitute a second field set of the area; the item restriction associated information is key-value pair data, and the key data in the item restriction associated information is an element in the first field set; and the data reporting unit 404 can be further used to: pre-store the field name mapping relationship between the first field set and the second field set of each area in the configuration center; before reporting the item restriction associated information to the server of the area to which the item restriction rule belongs, use the field name mapping relationship between the first field set and the second field set of the area to convert the key data in the item restriction associated information into the information collection field name of the area.
[0057] Preferably, the decision unit 403 can be further used for: after creating the item restriction rules for each area according to the item restriction policy, adding a specific mark to the restricted items indicated by the item restriction rules; in response to the user order arriving at a preset first node, determining whether there is an item with the specific mark in the user order; if so, executing the step of determining whether the user order complies with any item restriction rule of the configuration center.
[0058] As a preferred solution, the data reporting unit 404 may be further configured to: upon monitoring that the user order arrives at a preset second node, report the item restriction associated information to a server in the area to which the item restriction rule that meets the requirements belongs.
[0059] In addition, in an embodiment of the present invention, the first node is the creation of an order submission page, the second node is the completion of order splitting, order production or order review, and the restricted items are medicines.
[0060] According to the technical solution of the embodiment of the present invention, the local server maintains the dynamically adjusted item restriction strategy and information collection requirements for each area in a background configuration manner. When a user purchases restricted items, the local server automatically reads the corresponding item restriction rules from the configuration center and is automatically triggered when the order meets the requirements. Then, an information collection page is generated according to the pre-configured information collection requirements of the corresponding area to collect relevant information and finally upload it to the server of the corresponding area, thereby avoiding frequent code changes in the traditional hard-coding method, facilitating the rapid response and implementation of item restriction strategies and information collection requirements in each area, and ensuring the business compliance of the service-side platform.
[0061] Figure 5 An exemplary system architecture 500 is shown to which the information reporting method or information reporting device according to the embodiment of the present invention can be applied.
[0062] like Figure 5 As shown, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, a local server 505, and regional servers 506, 507, 508 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 504 is used to provide a medium for a communication link between the terminal devices 501, 502, 503 and the local server 505. The network 504 may include various connection types, such as wired, wireless communication links, or optical fiber cables.
[0063] The user can use the terminal devices 501, 502, 503 to interact with the local server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503, such as online shopping applications, etc. (only as an example).
[0064] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0065] The local server 505 may be a server that provides various services, such as a backend server that provides support for online shopping applications operated by users using terminal devices 501, 502, 503 (only as an example). The backend server may process the received order processing request and feed back the processing result (such as the processed order status - only as an example) to the terminal devices 501, 502, 503. The local server 505 may report the information collected from the terminal devices 501, 502, 503 to the regional servers 506, 507, 508.
[0066] It should be noted that the information reporting method provided in the embodiment of the present invention is generally executed by the local server 505 , and accordingly, the information reporting device is generally arranged in the local server 505 .
[0067] It should be understood that Figure 5 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.
[0068] The present invention also provides an electronic device. The electronic device of 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 information reporting method provided by the present invention.
[0069] Reference below Figure 6, which shows a schematic diagram of the structure of a computer system 600 of an electronic device suitable for implementing an embodiment of the present invention. Figure 6 The electronic device 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.
[0070] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0071] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.
[0072] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, the above functions defined in the system of the present invention are executed.
[0073] 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.
[0074] 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 module, a program segment or a part of a code, and the above-mentioned module, 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.
[0075] 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 an external data acquisition unit, a configuration unit, a decision unit, and a data reporting unit. The names of these units do not, in some cases, constitute limitations on the units themselves. For example, the external data acquisition unit may also be described as a "unit that provides item restriction strategies and information collection requirements to the configuration unit."
[0076] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be installed in the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the steps executed by the device include: obtaining the item restriction strategies and information collection requirements of multiple regions; creating item restriction rules for each region according to the item restriction strategy, and storing the item restriction rules and information collection requirements for each region in a pre-established configuration center; in response to the user order arriving at a preset first node, determining whether the user order complies with any item restriction rule of the configuration center; if it complies, generating an information collection page for display to the user according to the information collection requirements of the region to which the item restriction rule belongs that complies; obtaining the item restriction association information filled in by the user on the information collection page, and reporting the item restriction association information to the server of the region to which the item restriction rule belongs that complies.
[0077] In the technical solution of the embodiment of the present invention, the local server maintains the dynamically adjusted item restriction strategy and information collection requirements for each area in a background configuration manner. When a user purchases restricted items, the local server automatically reads the corresponding item restriction rules from the configuration center and is automatically triggered when the order meets the requirements. Then, an information collection page is generated according to the pre-configured information collection requirements of the corresponding area to collect relevant information and finally upload it to the server of the corresponding area, thereby avoiding frequent code changes in the traditional hard-coding method, facilitating the rapid response and implementation of item restriction strategies and information collection requirements in each area, and ensuring the business compliance of the service-side platform.
[0078] 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. An information reporting method, characterized in that: include: Obtain item restriction policies and information collection requirements for multiple regions; Creating item restriction rules for each area according to the item restriction strategy, and storing the item restriction rules and information collection requirements for each area in a pre-established configuration center; In response to a user order arriving at a preset first node, determining whether the user order complies with any item restriction rule of the configuration center; if so, generating an information collection page for display to the user according to the information collection requirements of the area to which the item restriction rule complies; The item restriction associated information filled in by the user on the information collection page is obtained, and the item restriction associated information is reported to a server in the area to which the item restriction rule that meets the requirements belongs.
2. The method according to claim 1, characterized in that The item restriction rule of each area indicates the identification of the area and the identification of the restricted items in the area; and determining whether the user order complies with any item restriction rule of the configuration center includes: For the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, it is judged that the user order complies with the item restriction rule.
3. The method according to claim 1, characterized in that The information collection requirement of any area indicates the name of the information collection field of the area; And, generating an information collection page according to the information collection requirements of the area to which the item restriction rules comply, includes: An item to be filled in is generated based on each information collection field name indicated by the information collection requirements of the area to which the item restriction rule that meets the requirements belongs, and the information collection page is formed by the items to be filled in.
4. The method according to claim 1, characterized in that: The method is executed by a local server, the information collection field names of the local server constitute a first field set, and the information collection field names of any area constitute a second field set of the area; the item restriction associated information is key-value pair data, and the key data in the item restriction associated information is an element in the first field set; And, the method further comprises: Pre-storing in the configuration center a field name mapping relationship between the first field set and the second field set of each region; Before reporting the item restriction associated information to the server of the area to which the compliant item restriction rule belongs, the key data in the item restriction associated information is converted into the information collection field name of the area by using the field name mapping relationship between the first field set and the second field set of the area.
5. The method according to claim 1, characterized in that The method further comprises: After creating the item restriction rules for each area according to the item restriction policy, adding specific tags to the restricted items indicated by the item restriction rules; In response to a user order arriving at a preset first node, determine whether there is an item with the specific mark in the user order; if so, execute the step of determining whether the user order complies with any item restriction rule of the configuration center.
6. The method according to claim 2, characterized in that The step of reporting the item restriction associated information to a server in the area to which the item restriction rule that meets the requirement belongs includes: When it is monitored that the user order arrives at the preset second node, the item restriction associated information is reported to the server of the area to which the item restriction rule that meets the requirements belongs.
7. The method according to claim 6, characterized in that The first node is the creation of the order submission page, the second node is the completion of order splitting, order production or order review, and the restricted items are medicines.
8. An information reporting device, characterized in that: include: External data acquisition unit, used to obtain item restriction policies and information collection requirements for multiple regions; A configuration unit, configured to create an item restriction rule for each area according to the item restriction policy, and store the item restriction rule and information collection requirements for each area in a pre-established configuration center; A decision unit, configured to: in response to a user order arriving at a preset first node, determine whether the user order complies with any item restriction rule of the configuration center; if so, generate an information collection page for display to the user according to the information collection requirements of the area to which the item restriction rule complies; The data reporting unit is used to obtain the item restriction associated information filled in by the user on the information collection page, and report the item restriction associated information to the server of the area to which the item restriction rule that meets the requirements belongs.
9. The device according to claim 8, characterized in that The item restriction rule of each area indicates the identification of the area and the identification of the restricted items in the area; and the decision unit is further used to: For the same item restriction rule of the user order and the configuration center, when it is determined that the delivery address in the user order is in the area to which the item restriction rule belongs, and the user order contains restricted items indicated by the item restriction rule, it is judged that the user order complies with the item restriction rule.
10. 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 7.
11. A computer-readable storage 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 7 is implemented.