CN110427600B - Batch text management method and device - Google Patents

Batch text management method and device Download PDF

Info

Publication number
CN110427600B
CN110427600B CN201910608746.3A CN201910608746A CN110427600B CN 110427600 B CN110427600 B CN 110427600B CN 201910608746 A CN201910608746 A CN 201910608746A CN 110427600 B CN110427600 B CN 110427600B
Authority
CN
China
Prior art keywords
target element
batch
wholesale
rule
tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910608746.3A
Other languages
Chinese (zh)
Other versions
CN110427600A (en
Inventor
闭君能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910608746.3A priority Critical patent/CN110427600B/en
Publication of CN110427600A publication Critical patent/CN110427600A/en
Application granted granted Critical
Publication of CN110427600B publication Critical patent/CN110427600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for managing wholesale texts, wherein the method comprises the following steps: the server receives a wholesale request of a target element sent by a service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element; the server acquires a first wholesale rule script corresponding to the target element from a tree structure wholesale database according to the tree path of the target element, and the tree structure business database and the tree structure wholesale database have the same structure; the server modifies the data of the tree nodes corresponding to the target elements in the tree structure business database into new data of the target elements, and generates a first batch of the target elements according to the first batch rule script; and the server sends the first batch of text to the service terminal. The embodiment of the invention can reduce the error rate of the electronic wholesale text and has simple and convenient post maintenance.

Description

Batch text management method and device
Technical Field
The present invention relates to the field of computer technologies and communication technologies, and in particular, to a method and an apparatus for managing a batch text.
Background
With the development of technology, electronic wholesale texts are gradually replacing paper wholesale texts. In the business system using the electronic wholesale, after the business personnel modifies the content of the target element, the electronic wholesale previews can conveniently and clearly see the modification information of the target element, and the error rate of the business personnel can be reduced and the business acceptance risk can be reduced by utilizing the electronic wholesale.
Even in the same application scenario, there are multiple service systems, each service system contains multiple products, each product is composed of multiple service elements, and different service systems may contain the same service element, for example, different service systems all contain the service element of "age". The script of the wholesale rule of the same business element may also be different due to different business requirements, for example, the wholesale rule for the business element "age" may be different in different business systems. In the conventional technology, in order to cope with the variability of each business element in each business system, specific program codes are written for the wholesale rule script of each business element. Therefore, in the same service system in the conventional technology, a large amount of program codes may need to be written to realize different electronic wholesale texts, so that code redundancy is caused, and the error rate of the electronic wholesale texts is improved. In addition, when the electronic wholesale has a problem, the same business element may correspond to different business systems or different products under the same business system, so that the speed of positioning the problem is slow, and further, the later maintenance is difficult.
In summary, the existing batch management technology has high error rate of electronic batch and difficult post maintenance.
Disclosure of Invention
The embodiment of the invention provides a batch text management method and device, which can reduce the error rate of electronic batch text and is simple and convenient in later maintenance.
In a first aspect, an embodiment of the present invention provides a method for managing a batch document, including the following steps:
the server receives a wholesale request of a target element sent by a service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element;
the server acquires a first wholesale rule script corresponding to the target element from a tree structure wholesale database according to the tree path of the target element, and the tree structure business database and the tree structure wholesale database have the same structure;
the server modifies the data of the tree nodes corresponding to the target elements in the tree structure business database into new data of the target elements, and generates a first batch of the target elements according to the first batch rule script;
and the server sends the first batch of text to the service terminal.
Optionally, before the server obtains the first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, the method further includes: the server verifies the legality of the tree path of the target element; the server acquires a first wholesale rule script corresponding to the target element from a tree structure wholesale database according to the tree path of the target element, and the first wholesale rule script comprises: if the tree path of the target element is legal, the server acquires a first batch rule script of the target element from the tree structure batch database according to the tree path of the target element.
Optionally, the first batch of text rule script contains the data rule of the target element; before the server modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, the method further comprises the following steps: the server verifies whether the new data of the target element accords with the data rule in the first batch of text rule scripts; the server modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, and comprises the following steps: and if the new data of the target element accords with the data rule in the first batch of text rule script, the server modifies the data of the tree node corresponding to the target element in the tree structure business database into the new data of the target element according to the tree path of the target element.
Optionally, before the server receives the wholesale request of the target element sent by the service terminal, the method further includes: the method comprises the steps that a server receives a first service requirement of a target element sent by a service terminal, wherein the first service requirement comprises a tree path of the target element, a data rule of the first service requirement, a wholesale type of the first service requirement and wholesale parameters of the first service requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element is legal, the server generates a first batch of text rule scripts of the target element according to the first business requirement; and storing the first wholesale rule script into a tree structure wholesale database according to the tree path of the target element.
Optionally, the server generates a first batch rule script of the target element according to the first service requirement, including: the method comprises the steps that a server inquires a first original wholesale rule corresponding to a wholesale type of a first service requirement in an original wholesale database, wherein the original wholesale database comprises at least one wholesale type and at least one mapping relation of the wholesale rule; modifying the wholesale parameters of the first original wholesale rule according to the wholesale parameters of the first service requirement, and generating a second original wholesale rule of the target element; and generating a first batch rule script of the target element according to the second original batch rule and the data rule of the first business requirement.
Optionally, the method further comprises: the method comprises the steps that a server receives an update request sent by a business terminal through a wholesale rule maintenance window, wherein the update request is used for updating wholesale parameters of a first business requirement, and the update request comprises a tree path of a target element and the updated wholesale parameters of the first business requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element meets the legality, the server modifies the wholesale parameters of the first original wholesale rule according to the updated wholesale parameters of the first business requirement to generate a third original wholesale rule of the target element; and generating a second wholesale rule script of the target element according to the third original wholesale rule and the data rule of the first service requirement. And storing the second wholesale rule script into a tree structure wholesale database according to the tree path of the target element.
Optionally, the method further comprises: the server receives a second service requirement of the target element, which is sent by the service terminal through the wholesale rule maintenance window, wherein the second service requirement comprises a tree path of the target element, a data rule of the second service requirement, a wholesale type of the second service requirement and wholesale parameters of the second service requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element is legal, the server generates a third batch of text rule script of the target element according to the second service requirement; and storing the third wholesale rule script into a tree structure wholesale database according to the tree path of the target element.
Optionally, the server generates a third batch rule script of the target element according to the second service requirement, including: the server inquires a fourth original wholesale rule corresponding to the wholesale type of the second service requirement in the original wholesale database; modifying the wholesale parameters of the fourth original wholesale rule according to the wholesale parameters of the second service requirement to generate a fifth original wholesale rule of the target element; and generating a third wholesale rule script of the target element according to the fifth original wholesale rule and the data rule of the second business requirement.
In a second aspect, an embodiment of the present invention further provides a batch document management apparatus, where the batch document management apparatus can implement the beneficial effects of the batch document management method described in the first aspect. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions.
Optionally, the device comprises a receiving unit, an acquiring unit, a processing unit and a transmitting unit.
And the receiving unit is used for receiving the wholesale request of the target element sent by the service terminal, wherein the wholesale request of the target element comprises the tree path of the target element in the tree structure service database and new data of the target element.
The obtaining unit is used for obtaining a first wholesale rule script corresponding to the target element from the tree structure wholesale database according to the tree path of the target element, and the tree structure business database and the tree structure wholesale database have the same structure.
And the processing unit is used for modifying the data of the tree nodes corresponding to the target elements in the tree structure business database into new data of the target elements and generating first batch of the target elements according to the first batch of the rule scripts.
And the sending unit is used for sending the first batch of texts to the service terminal.
Optionally, before the obtaining unit obtains the first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, the apparatus further includes: and an authentication unit.
And the verification unit is used for verifying the validity of the tree path of the target element.
The obtaining unit obtains a first batch rule script corresponding to the target element from a tree structure batch database according to the tree path of the target element, and specifically comprises the following steps: if the tree path of the target element is legal, the acquisition unit acquires a first batch rule script of the target element from the tree structure batch database according to the tree path of the target element.
Optionally, the first batch of text rule script contains the data rule of the target element; before the processing unit modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, in the device: and the verification unit is also used for verifying whether the new data of the target element accords with the data rule in the first batch of text rule scripts.
The processing unit modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, and specifically comprises the following steps: and if the new data of the target element accords with the data rule in the first batch of text rule script, the processing unit modifies the data of the tree node corresponding to the target element in the tree structure business database into the new data of the target element according to the tree path of the target element.
Optionally, the apparatus further includes: a generating unit and a storing unit. Before the receiving unit receives the wholesale text request of the target element sent by the service terminal, in the device: the receiving unit is further used for receiving a first business requirement of the target element sent by the business terminal, wherein the first business requirement comprises a tree path of the target element, a data rule of the first business requirement, a wholesale type of the first business requirement and wholesale parameters of the first business requirement; the verification unit is also used for verifying the validity of the tree path of the target element; the generating unit is used for generating a first batch of text rule scripts of the target element according to the first service requirement if the tree path of the target element is legal; and the storage unit is used for storing the first batch rule script into the tree structure batch database according to the tree path of the target element.
Optionally, the generating unit generates a first batch rule script of the target element according to the first service requirement, and the generating unit specifically further includes: and a query unit. The query unit is used for querying a first original wholesale rule corresponding to the wholesale type of the first service requirement in an original wholesale database, wherein the original wholesale database comprises at least one wholesale type and at least one mapping relation of the wholesale rule; the generating unit is also used for modifying the wholesale parameters of the first original wholesale rule according to the wholesale parameters of the first service requirement and generating a second original wholesale rule of the target element; and the generating unit is also used for generating a first wholesale rule script of the target element according to the second original wholesale rule and the data rule of the first service requirement.
Optionally, in the above device: the receiving unit is also used for receiving an update request sent by the business terminal through the wholesale rule maintenance window, wherein the update request is used for updating the wholesale parameters of the first business requirement, and the update request comprises the tree path of the target element and the updated wholesale parameters of the first business requirement; the verification unit is also used for verifying the validity of the tree path of the target element; the generating unit is further configured to modify the wholesale parameters of the first original wholesale rule according to the updated wholesale parameters of the first service requirement if the tree path of the target element meets the legitimacy, and generate a third original wholesale rule of the target element; the generation unit is also used for generating a second batch rule script of the target element according to the third original batch rule and the data rule of the first service requirement; the storage unit is further used for modifying the first batch of the target element into the second batch of the first batch of the target element in the tree structure batch database according to the tree path of the target element.
Optionally, in the above device: the receiving unit is further used for receiving a second service requirement of the target element, which is sent by the service terminal through the wholesale rule maintenance window, wherein the second service requirement comprises a tree path of the target element, a data rule of the second service requirement, a wholesale type of the second service requirement and wholesale parameters of the second service requirement; the verification unit is also used for verifying the validity of the tree path of the target element; the generating unit is further used for generating a third batch text rule script of the target element according to the second service requirement if the tree path of the target element is legal; the storage unit is further used for modifying the first batch of the target element into a third batch of the first batch of the target element in the tree structure batch database according to the tree path of the target element.
Optionally, the generating unit generates a third batch rule script of the target element according to the second service requirement, which specifically includes: the inquiring unit inquires a fourth original wholesale rule corresponding to the wholesale type of the second service requirement in the original wholesale database; the generating unit modifies the wholesale parameters of the fourth original wholesale rule according to the wholesale parameters of the second service requirement to generate a fifth original wholesale rule of the target element; the generation unit generates a third wholesale rule script of the target element according to the fifth original wholesale rule and the data rule of the second service requirement.
In a third aspect, an embodiment of the present invention further provides a server, where the server can implement the beneficial effects of the foregoing first aspect of batch document management method. The functions of the server can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions. The server comprises a memory for storing a computer program supporting the server to perform the method described above, the computer program comprising program instructions, a processor for controlling and managing the actions of the server in accordance with the program instructions, and a transceiver for supporting the communication of the server with other communication devices.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having instructions stored thereon, which when executed on a processor, cause the processor to perform the batch management method described in the first aspect above.
In the embodiment of the invention, a server receives a wholesale request of a target element sent by a service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element; acquiring a first batch rule script corresponding to a target element from a tree structure batch database according to the tree path, wherein the tree structure business database and the tree structure batch database have the same structure; the server modifies the data of the tree node corresponding to the target element into new data, generates a first batch of the target element according to the first batch rule script, and sends the first batch of the target element to the service terminal. The service database and the wholesale database in the embodiment of the invention adopt tree structure databases, and the tree structure service database and the tree structure wholesale database have the same structure, namely the tree paths of the same tree node are the same.
Drawings
The drawings that accompany the embodiments or the prior art description can be briefly described as follows.
Fig. 1 is a schematic diagram of a system architecture of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a method for managing wholesale messages according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a tree structured business database according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a batch document management apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Furthermore, the terms "first," "second," and "third," etc. are used for distinguishing between different objects and not for describing a particular sequential order.
It is noted that the terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
Referring to fig. 1, an architecture diagram of a communication system 100 according to an embodiment of the present invention includes a server 101 and a service terminal 102. Wherein the service terminal 102 and the server 101 communicate with each other through a wireless air interface technology. The service terminal 102 may be a network device having intelligent computing capabilities and capable of communicating with other devices. The service terminal 102 in the embodiment of the present invention may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device, or other mobile service terminals. The server 101 is the same device as the wholesale management device mentioned in other embodiments of the present invention. Communication between the various devices in communication system 100 may be based on any wired and wireless network including, but not limited to, the internet, wide area networks, metropolitan area networks, local area networks, virtual private networks (Virtual Private Network, VPN), wireless communication networks, and the like.
Referring to fig. 2, fig. 2 is a schematic hardware structure of a server 200 according to an embodiment of the invention. The server 200 includes: memory 201, transceiver 202, and processor 203 coupled to the memory 201 and transceiver 202. The memory 201 is for storing instructions, the processor 203 is for executing instructions, and the transceiver 202 is for communicating with the terminal device under control of the processor 203. The processor 203, when executing instructions, may perform an attendance method according to the instructions.
The processor 203 may be a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the invention. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth. The transceiver 202 may be a communication interface, a transceiver circuit, etc., where the communication interface is generally referred to and may include one or more interfaces, such as an interface between a server and a terminal device.
Optionally, the server 200 may also include a bus 204. Wherein the memory 201, transceiver 202, and processor 203 may be interconnected via a bus 204; bus 204 may be a peripheral component interconnect standard (English: peripheral component interconnect; PCI) bus or an extended industry Standard architecture (English: extended industry standard architecture; EISA) bus, among others. The bus 204 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 2, but not only one bus or one type of bus.
In addition to the memory 201, the transceiver 202, the processor 203 and the bus 204 shown in fig. 2, the server 200 where the apparatus is located in the embodiment generally includes other hardware according to the actual functions of the server, which will not be described herein.
The server 200 shown in fig. 2 may be the server 101 in the communication system shown in fig. 1.
Referring to fig. 3, fig. 3 is a schematic hardware structure of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 includes: a memory 301, a transceiver 302, and a processor 303 coupled with the memory 301 and the transceiver 302. The memory 301 is used for storing a computer program comprising program instructions, the processor 303 is used for executing the program instructions stored in the memory 301, and the transceiver 302 is used for communicating with other devices under the control of the processor 303. The processor 303, when executing instructions, may perform an attendance method according to the instructions.
The processor 303 may be a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the invention. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth. Transceiver 302 may be a communication interface, a transceiver circuit, etc., where a communication interface is a generic term and may include one or more interfaces, such as an interface between a terminal device and a server.
Optionally, the terminal device 300 may also include a bus 304. Wherein the memory 301, transceiver 302, and processor 303 may be interconnected by a bus 304; bus 304 may be a peripheral component interconnect standard (English: peripheral component interconnect, PCI) bus, or an extended industry Standard architecture (English: extended industry standard architecture, EISA) bus, among others. The bus 304 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
In addition to the memory 301, the transceiver 302, the processor 303 and the bus 304 shown in fig. 3, the terminal device 300 in the embodiment may further include other hardware according to the actual functions of the terminal device, which will not be described herein.
The terminal device 300 shown in fig. 3 may be the service terminal 102 in the communication system shown in fig. 1.
In the above-mentioned operating environment, the embodiment of the present invention provides a method for managing wholesale texts as shown in fig. 4. Referring to fig. 4, the batch text management method includes:
s401, the service terminal sends a wholesale request of the target element to the server, and the server receives the wholesale request of the target element sent by the service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element.
Optionally, the user modifies the existing data of the target element into new data of the target element on the display interface of the service terminal, and triggers the service terminal to send a wholesale text request of the target element to the server.
For example, insurance companies have multiple business systems, each corresponding to multiple insurance products, and each insurance product having multiple policies. Before a user purchases an insurance product, policy information of the user needs to be recorded in a service system of the insurance product. Before or after the insurance product is purchased, a service operator or a user can modify the insurance policy information of the user through the service terminal and send a wholesale document request to the server, wherein the wholesale document is used for displaying the information change of the modified target element, the server checks the wholesale document request, if the information of the target element passes the check, the information modification of the target element is successful, and the wholesale document is displayed on the service terminal.
In the embodiment of the invention, the data of all the service systems adopts a tree structure database.
It will be appreciated that each system, the product to which each system corresponds, the policy to which each product corresponds, and the business elements contained in the policy are all nodes in the tree structure database. Each node in the tree structure database has a corresponding address, i.e., a tree path of the node in the tree structure database.
For example, as shown in fig. 5, a schematic structure diagram of a tree structure service database is shown, where the tree structure service database includes system nodes, product nodes, policy nodes, and service element nodes. The product node is a child node of the system node, the policy node is a child node of the product node, and the service element node is a child node of the policy node. The tree path of the first node may be represented as systemInfo-productive info-insurancedocurmentinfo-elementCode, where the data stored in the corresponding field of the elementCode is elementValue. For example, elementCode is the operational year and elementValue is 10.
It will be appreciated that the target element is a business element in a policy for a product in a business system. For example, the target element is the first node shown in fig. 5.
Alternatively, the service terminal may be an application program, browser, or the like, which has an intelligent computing function and can access the internet, on a terminal device that can perform communication interaction with other devices. The terminal equipment in the embodiment of the invention comprises a mobile phone, a tablet computer, a notebook computer, a palm computer, mobile internet equipment or other mobile terminals.
S402, the server acquires a first wholesale rule script corresponding to the target element from a tree structure wholesale database according to the tree path of the target element, and the tree structure business database and the tree structure wholesale database have the same structure.
It should be noted that, in the embodiment of the present invention, the wholesale rule scripts corresponding to the business elements in all the policies are stored in the tree structure wholesale database. The tree structure wholesale database has the same structure as the tree structure business database, namely, the tree path of the first business element in the tree structure business database is the same as the tree path of the wholesale rule script corresponding to the first business element in the tree structure wholesale database.
Optionally, before the server obtains the first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, the method further includes: the server verifies the legitimacy of the tree path of the target element.
Specifically, the tree path of the target element is a first system node, a first product node, a first policy node and a first service element node. The server verifies the legitimacy of the tree path of the target element, including: the server verifies whether the first system node is a system node in the tree structured business database. If yes, the server verifies whether the first product node is a child node of the first system node in the tree structure service database. If yes, the server verifies whether the first policy node is a child node of the first product node in the tree structured business database. If yes, the server verifies whether the first service element node is a child node of the first policy holding node in the tree structure service database. If yes, the server judges that the target element is legal.
Optionally, the server obtains a first batch rule script corresponding to the target element from a tree structure batch database according to a tree path of the target element, including: if the tree path of the target element is legal, the server acquires a first batch rule script of the target element from the tree structure batch database according to the tree path of the target element.
S403, the server modifies the data of the tree node corresponding to the target element in the tree structure business database into new data of the target element, and generates a first batch of the target element according to the first batch rule script.
Optionally, the first batch of text rule scripts includes data rules of the target element, where the data rules are used to constrain data corresponding to the target element, that is, data stored in a field corresponding to the target element must meet the data rules. Before the server modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, the method further comprises the following steps: the server verifies whether the new data of the target element meets the data rules in the first batch rule script.
For example, the target element is a first node shown in fig. 5, the first node is a working year, and the data rule included in the wholesale rule script corresponding to the first node is that the data stored in the field corresponding to the first node is greater than or equal to 5.
Optionally, the server modifies the data of the tree node corresponding to the target element in the tree structure service database into new data of the target element, including: and if the new data of the target element accords with the data rule in the first batch of text rule script, the server modifies the data of the service element node corresponding to the target element in the tree structure service database into the new data of the target element.
It can be understood that if the new data of the target element meets the above data rule, the server allows the target element to be modified from the original data to the new data, and modifies the data of the service element node corresponding field corresponding to the target element in the tree structure service database to the new data of the target element.
S404, the server sends the first batch of texts to the service terminal, and the service terminal receives the first batch of texts sent by the server.
Optionally, before the server receives the wholesale request of the target element sent by the service terminal, the method further includes:
the method comprises the steps that a server receives a first service requirement of a target element sent by a service terminal, wherein the first service requirement comprises a tree path of the target element, a data rule of the first service requirement, a wholesale type of the first service requirement and wholesale parameters of the first service requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element is legal, the server generates a first batch of text rule scripts of the target element according to the first business requirement; and storing the first wholesale rule script into a tree structure wholesale database according to the tree path of the target element.
It can be understood that before the server receives the batch text request of the service element in the service database with a tree structure sent by the service terminal, a batch text rule script of the service element is generated according to the service requirement of the service element, and a tree structure batch text database is constructed for all the service elements in the service system. The tree structure wholesale database has the same structure as the tree structure business database.
Optionally, the server generates a first batch rule script of the target element according to the first service requirement, including: the method comprises the steps that a server inquires a first original wholesale rule corresponding to a wholesale type of a first service requirement in an original wholesale database, wherein the original wholesale database comprises at least one wholesale type and at least one mapping relation of the wholesale rule; modifying the wholesale parameters of the first original wholesale rule according to the wholesale parameters of the first service requirement, and generating a second original wholesale rule of the target element; and generating a first batch rule script of the target element according to the second original batch rule and the data rule of the first business requirement.
It can be understood that, in order to improve the efficiency of generating the batch rule script, in the embodiment of the present invention, an original batch database is constructed, where the original batch database includes at least one batch type and at least one mapping relationship of batch rules. The server can directly call the batch rules in the original batch database according to the batch types in the service requirements.
Optionally, the method further comprises: the method comprises the steps that a server receives an update request sent by a business terminal through a wholesale rule maintenance window, wherein the update request is used for updating wholesale parameters of a first business requirement, and the update request comprises a tree path of a target element and the updated wholesale parameters of the first business requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element meets the legality, the server modifies the wholesale parameters of the first original wholesale rule according to the updated wholesale parameters of the first business requirement to generate a third original wholesale rule of the target element; and generating a second wholesale rule script of the target element according to the third original wholesale rule and the data rule of the first service requirement. And modifying the first batch of the target element into a second batch of the target element in the tree structure batch database according to the tree path of the target element.
Optionally, the method further comprises: the server receives a second service requirement of the target element, which is sent by the service terminal through the wholesale rule maintenance window, wherein the second service requirement comprises a tree path of the target element, a data rule of the second service requirement, a wholesale type of the second service requirement and wholesale parameters of the second service requirement; the server verifies the legality of the tree path of the target element; if the tree path of the target element is legal, the server generates a third batch of text rule script of the target element according to the second service requirement; and modifying the first batch of the target element in the tree structure batch database into a third batch of the target element according to the tree path of the target element.
Optionally, the server generates a third batch rule script of the target element according to the second service requirement, including: the server inquires a fourth original wholesale rule corresponding to the wholesale type of the second service requirement in the original wholesale database; modifying the wholesale parameters of the fourth original wholesale rule according to the wholesale parameters of the second service requirement to generate a fifth original wholesale rule of the target element; and generating a third wholesale rule script of the target element according to the fifth original wholesale rule and the data rule of the second business requirement.
In the embodiment of the invention, a server receives a wholesale request of a target element sent by a service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element; acquiring a first batch rule script corresponding to a target element from a tree structure batch database according to the tree path, wherein the tree structure business database and the tree structure batch database have the same structure; the server modifies the data of the tree node corresponding to the target element into new data, generates a first batch of the target element according to the first batch rule script, and sends the first batch of the target element to the service terminal. Therefore, the proposal provided by the embodiment of the invention can reduce the error rate of the electronic wholesale text and has simple and convenient post-maintenance. In addition, in the embodiment of the invention, the tree structure business database and the tree structure wholesale text database are constructed, and the structures of the tree structure business database and the tree structure wholesale text database are the same, so that the query efficiency of the wholesale text rule script is improved. When the batch is abnormal, the positioning speed of the abnormal problem can be improved. In addition, the original batch text database is constructed in the embodiment of the invention, so that the generation efficiency of the batch text rule script can be improved.
The embodiment of the invention also provides a batch text management device which can realize the beneficial effects of the batch text management method shown in fig. 6. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions.
Referring to fig. 6, fig. 6 is a block diagram illustrating a batch management apparatus 600 according to an embodiment of the present invention, where the apparatus includes: a receiving unit 601, an acquiring unit 602, a processing unit 603, and a transmitting unit 604.
The receiving unit 601 is configured to receive a wholesale request of a target element sent by a service terminal, where the wholesale request of the target element includes a tree path of the target element in a tree structure service database and new data of the target element.
The obtaining unit 602 is configured to obtain, from a tree structure wholesale database, a first wholesale rule script corresponding to the target element according to a tree path of the target element, where the tree structure business database and the tree structure wholesale database have the same structure.
The processing unit 603 is configured to modify data of a tree node corresponding to a target element in the tree structure service database into new data of the target element, and generate a first batch of the target element according to the first batch rule script.
And the sending unit 604 is configured to send the first batch of text to the service terminal.
Optionally, before the obtaining unit 602 obtains the first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, the apparatus further includes: and an authentication unit.
And the verification unit is used for verifying the validity of the tree path of the target element.
The obtaining unit 602 obtains a first batch rule script corresponding to the target element from a tree structure batch database according to a tree path of the target element, and specifically includes: if the tree path of the target element is legal, the obtaining unit 602 obtains the first batch rule script of the target element from the tree structure batch database according to the tree path of the target element.
Optionally, the first batch of text rule script contains the data rule of the target element; before the processing unit 603 modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element, in the above apparatus: and the verification unit is also used for verifying whether the new data of the target element accords with the data rule in the first batch of text rule scripts.
The processing unit 603 modifies the data of the tree node corresponding to the target element in the tree structure service database into new data of the target element, specifically including: if the new data of the target element accords with the data rule in the first batch of text rule script, the processing unit 603 modifies the data of the tree node corresponding to the target element in the tree structure service database into the new data of the target element according to the tree path of the target element.
Optionally, the apparatus further includes: a generating unit and a storing unit. Before the receiving unit 601 receives the annotation request of the target element sent by the service terminal, in the above device: the receiving unit 601 is further configured to receive a first service requirement of a target element sent by a service terminal, where the first service requirement includes a tree path of the target element, a data rule of the first service requirement, a batch type of the first service requirement, and a batch parameter of the first service requirement; and the verification unit is also used for verifying the validity of the tree path of the target element. The method comprises the steps of carrying out a first treatment on the surface of the The generating unit is used for generating a first batch of text rule scripts of the target element according to the first service requirement if the tree path of the target element is legal; and the storage unit is used for storing the first batch text rule script into the tree structure batch text database according to the tree path of the target element.
Optionally, the generating unit generates a first batch rule script of the target element according to the first service requirement, and the generating unit specifically further includes: and a query unit. The query unit is used for querying a first original wholesale rule corresponding to the wholesale type of the first service requirement in an original wholesale database, wherein the original wholesale database comprises at least one wholesale type and at least one mapping relation of the wholesale rule; the generating unit is also used for modifying the wholesale parameters of the first original wholesale rule according to the wholesale parameters of the first service requirement and generating a second original wholesale rule of the target element; and the generating unit is also used for generating a first wholesale rule script of the target element according to the second original wholesale rule and the data rule of the first service requirement.
The steps of a method or algorithm described in connection with the present disclosure may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access memory (english: random access memory; RAM), flash memory, read Only Memory (ROM), erasable programmable read only memory (english: erasable programmable ROM; EPROM), electrically erasable programmable read only memory (english: electrically EPROM; EEPROM), registers, hard disk, a removable disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a network device. The processor and the storage medium may reside as discrete components in a network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing detailed description of the embodiments of the present invention further illustrates the purposes, technical solutions and advantageous effects of the embodiments of the present invention, and it should be understood that the foregoing description is only a specific implementation of the embodiments of the present invention, and is not intended to limit the scope of the embodiments of the present invention, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present invention should be included in the scope of the embodiments of the present invention.

Claims (8)

1. A method of managing a batch, the method comprising:
the method comprises the steps that a server receives a wholesale request of a target element sent by a service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element;
the server acquires a first batch text rule script corresponding to the target element from a tree structure batch text database according to the tree path of the target element, wherein the tree structure business database and the tree structure batch text database have the same structure; the first batch of text rule scripts contain data rules of target elements;
the server verifies whether the new data of the target element accords with the data rule in the first batch of text rule scripts;
if the new data of the target element accords with the data rule in the first batch of text rule scripts, the server modifies the data of the tree node corresponding to the target element in the tree structure business database into the new data of the target element according to the tree path of the target element, and generates a first batch of text of the target element according to the first batch of text rule scripts;
and the server sends the first batch of texts to the service terminal.
2. The method of claim 1, wherein before the server obtains the first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, the method further comprises:
the server verifies the legality of the tree path of the target element;
the server obtains a first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, and the first batch rule script comprises:
and if the tree path of the target element is legal, the server acquires the first batch text rule script of the target element from the tree structure batch text database according to the tree path of the target element.
3. The method according to claim 1 or 2, wherein before the server receives the request for the wholesale of the target element sent by the service terminal, the method further comprises:
the server receives a first service requirement of the target element sent by the service terminal, wherein the first service requirement comprises a tree path of the target element, a data rule of the first service requirement, a wholesale type of the first service requirement and a wholesale parameter of the first service requirement;
The server verifies the legality of the tree path of the target element;
if the tree path of the target element is legal, the server generates a first batch of text rule scripts of the target element according to the first service requirement;
and the server stores the first wholesale rule script into the tree structure wholesale database according to the tree path of the target element.
4. A method according to claim 3, wherein the server generating a first wholesale rule script for the target element according to the first business requirement comprises:
the server queries a first original wholesale rule corresponding to the wholesale type of the first service requirement in an original wholesale database, wherein the original wholesale database comprises at least one wholesale type and at least one mapping relation of the wholesale rule;
modifying the wholesale parameters of the first original wholesale rule according to the wholesale parameters of the first service requirement, and generating a second original wholesale rule of the target element;
and generating a first wholesale rule script of the target element according to the second original wholesale rule and the data rule of the first service requirement.
5. A batch management device, the device comprising:
The receiving unit is used for receiving a wholesale request of a target element sent by the service terminal, wherein the wholesale request of the target element comprises a tree path of the target element in a tree structure service database and new data of the target element;
the acquisition unit is used for acquiring a first batch rule script corresponding to the target element from a tree structure batch database according to the tree path of the target element, wherein the tree structure business database and the tree structure batch database have the same structure; the first batch of text rule scripts contain data rules of target elements;
the verification unit is used for verifying whether the new data of the target element accords with the data rule in the first batch of text rule scripts;
the processing unit is used for modifying the data of the tree node corresponding to the target element in the tree structure business database into the new data of the target element according to the tree path of the target element if the new data of the target element accords with the data rule in the first batch rule script, and generating a first batch of the target element according to the first batch rule script;
and the sending unit is used for sending the first batch of texts to the service terminal.
6. The apparatus according to claim 5, wherein before the obtaining unit obtains the first batch rule script corresponding to the target element from the tree-structured batch database according to the tree path of the target element, the apparatus further comprises:
a verification unit, configured to verify validity of the tree path of the target element;
the obtaining unit obtains a first batch rule script corresponding to the target element from the tree structure batch database according to the tree path of the target element, and specifically includes:
and if the tree path of the target element is legal, the acquisition unit acquires the first batch text rule script of the target element from the tree structure batch text database according to the tree path of the target element.
7. A server comprising a processor, a communication device and a memory, the processor, the communication device and the memory being interconnected, wherein the memory is for storing application code, the processor being configured to invoke the application code to perform the method of any of claims 1-4.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 4.
CN201910608746.3A 2019-07-05 2019-07-05 Batch text management method and device Active CN110427600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910608746.3A CN110427600B (en) 2019-07-05 2019-07-05 Batch text management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910608746.3A CN110427600B (en) 2019-07-05 2019-07-05 Batch text management method and device

Publications (2)

Publication Number Publication Date
CN110427600A CN110427600A (en) 2019-11-08
CN110427600B true CN110427600B (en) 2023-09-05

Family

ID=68410336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910608746.3A Active CN110427600B (en) 2019-07-05 2019-07-05 Batch text management method and device

Country Status (1)

Country Link
CN (1) CN110427600B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129004A (en) * 2007-11-20 2009-06-11 Fuji Xerox Co Ltd Document operation history management system
CN104346365A (en) * 2013-07-30 2015-02-11 阿里巴巴集团控股有限公司 Device and method for determining specific service associated logs
CN108334482A (en) * 2017-12-25 2018-07-27 山东浪潮云服务信息科技有限公司 A kind of electronics certification generation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090177686A1 (en) * 2008-01-03 2009-07-09 Intergraph Software Technologies Company Method for Generating Database Installation Scripts
US9521442B2 (en) * 2014-05-22 2016-12-13 Comcast Cable Communications, Llc Digital transport adapter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129004A (en) * 2007-11-20 2009-06-11 Fuji Xerox Co Ltd Document operation history management system
CN104346365A (en) * 2013-07-30 2015-02-11 阿里巴巴集团控股有限公司 Device and method for determining specific service associated logs
CN108334482A (en) * 2017-12-25 2018-07-27 山东浪潮云服务信息科技有限公司 A kind of electronics certification generation method and device

Also Published As

Publication number Publication date
CN110427600A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN110601880B (en) Cloud platform, service processing method, command interface and computer equipment
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN110222107B (en) Data transmission method and related equipment
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN112580094B (en) Data processing method, electronic device and storage medium
CA3088147C (en) Data isolation in distributed hash chains
CN112511316B (en) Single sign-on access method and device, computer equipment and readable storage medium
CN111782652B (en) Data calling method, device, computer equipment and storage medium
CN110598093B (en) Business rule management method and device
CN111258832A (en) Interface parameter checking method, device, equipment and medium
CN113407997A (en) Data desensitization method and device, computer equipment and storage medium
CN109299173A (en) Data transmission method, device and storage medium
US10931790B2 (en) Systems and methods for securely transferring selective datasets between terminals with multi-applications support
CN112363997B (en) Data version management method, device and storage medium
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN111045928B (en) Interface data testing method, device, terminal and storage medium
CN110427600B (en) Batch text management method and device
CN111324645B (en) Block chain data processing method and device
CN115018569A (en) Invoice issuing method, invoice reimbursement device and equipment based on block chain
CN111897728B (en) Interface debugging method and related equipment
CN113032820B (en) File storage method, access method, device, equipment and storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium

Legal Events

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