CN117830010A - Order state consistency detection method, device, equipment and storage medium - Google Patents

Order state consistency detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117830010A
CN117830010A CN202410012976.4A CN202410012976A CN117830010A CN 117830010 A CN117830010 A CN 117830010A CN 202410012976 A CN202410012976 A CN 202410012976A CN 117830010 A CN117830010 A CN 117830010A
Authority
CN
China
Prior art keywords
service
order
abnormal
service operation
investigation
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.)
Pending
Application number
CN202410012976.4A
Other languages
Chinese (zh)
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 CN202410012976.4A priority Critical patent/CN117830010A/en
Publication of CN117830010A publication Critical patent/CN117830010A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Technology Law (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a data processing technology, and discloses a method for detecting consistency of order states, which comprises the following steps: dividing the service flow into at least one service flow node; extracting a service state and an order ID of an abnormal order in a state consistency detection request of the abnormal order based on the service flow; determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations; and acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order. The invention also provides an order state consistency detection device, equipment and medium, which can be used in the financial field and improves the efficiency of order state consistency detection of insurance orders and the like.

Description

Order state consistency detection method, device, equipment and storage medium
Technical Field
The invention relates to a data processing technology, which can be used in the field of financial insurance, in particular to a method and a device for detecting consistency of order states, electronic equipment and a storage medium.
Background
In the field of financial insurance, with the development of internet technology, an insurance order service platform can directly face a C-terminal user to place an insurance service order sold on a platform for the user, and with the complexity of a platform system and continuous access of an order provider, the inconsistency of order states is more and more, so that the consistency detection of the order states of abnormal orders is required.
However, in the existing order state consistency detection method, the whole flow of the order service of the abnormal order needs to be checked and detected, so that the efficiency of order state consistency detection of insurance orders and the like is low.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for detecting consistency of order states, and mainly aims to improve efficiency of detecting consistency of order states of insurance orders and the like.
Acquiring a service flow of a target service, and dividing the service flow into at least one service flow node;
when a state consistency detection request of an abnormal order is received, extracting a service state and an order ID of the abnormal order in the state consistency detection request, wherein the abnormal order is a service order of the target service;
Determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
and acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
Optionally, the dividing the service flow into at least one service flow node includes:
identifying each service operation in the service flow and the operation sequence of the service operation;
dividing a plurality of service operations of one or adjacent operation sequences for realizing the same preset service function into one service flow node.
Optionally, each service operation belongs to only one service flow node.
Optionally, the obtaining the service operation contained in the abnormal service flow node and all the previous service flow nodes to obtain the investigation service operation includes:
acquiring the node sequence of each service flow node;
Determining the node sequence of the abnormal service flow node as a reference node sequence;
determining a node sequence smaller than the reference node sequence as a node sequence to be examined;
determining service flow nodes corresponding to the node to be inspected in sequence as inspecting flow nodes;
and acquiring the abnormal service flow node and the service operation contained in the investigation flow node to obtain the investigation service operation.
Optionally, the performing the operation exception checking on the checking service operation based on the operation result to obtain a status consistency detection result of the exception order includes:
determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
if the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
if the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
When the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
Optionally, the performing the operation exception checking on the checking service operation based on the operation result to obtain a status consistency detection result of the exception order includes:
judging whether the number of all the investigation service operations is 1;
when the number of all the investigation service operations is 1, the state consistency detection result of the abnormal order is that the investigation service operations are abnormal;
when the number of all the investigation service operations is not 1, determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
if the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
If the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
when the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
Optionally, the determining whether the operation result of the target service operation and the comparison service operation are logically consistent includes:
obtaining an operation result of the contrast service operation to obtain a contrast operation result;
when the comparison service operation is a comparison operation result, obtaining a standard operation result by the operation result set by the target service operation;
obtaining an operation result of the target service operation to obtain a target operation result;
Judging whether the target operation result is the same as the standard operation result;
if the target operation result is the same as the standard operation result, the target service operation is logically consistent with the operation result of the contrast service operation;
if the target operation result is different from the standard operation result, the target service operation is not consistent with the operation result logic of the contrast service operation.
In order to solve the above problem, the present invention further provides an order status consistency detection device, the device comprising:
the node dividing module is used for acquiring a service flow of the target service and dividing the service flow into at least one service flow node;
the abnormal node determining module is used for extracting the service state and the order ID of the abnormal order in the state consistency detection request when the state consistency detection request of the abnormal order is received, wherein the abnormal order is a service order of the target service; determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
The order state consistency detection module is used for acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and carrying out operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one computer program; and
And the processor executes the computer program stored in the memory to realize the order state consistency detection method.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the order status consistency detection method described above.
The embodiment of the invention determines the service flow node generating the service state as an abnormal service flow node, and obtains the abnormal service flow node and service operations contained in all the previous service flow nodes to obtain an investigation service operation; and acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order. Compared with the prior art that the order state consistency detection is carried out on the whole flow of the order service of the abnormal order, the method has the advantages that service flow nodes which are possibly abnormal are screened, and the operation abnormality detection is carried out on the service operation in the screened service flow nodes, so that the abnormal service operation is positioned, all the service nodes are not required to be checked and detected, and the order state consistency detection efficiency is improved. Therefore, the order state consistency detection method, the device, the electronic equipment and the readable storage medium provided by the embodiment of the invention improve the efficiency of detecting the order state consistency of insurance orders and the like.
Drawings
FIG. 1 is a flow chart illustrating a method for detecting consistency of order status according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device for detecting consistency of order status according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device for implementing an order status consistency detection method according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a method for detecting consistency of order states. The execution subject of the order state consistency detection method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the order state consistency detection method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: the server can be an independent server, or can be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
Referring to fig. 1, which is a schematic flow chart of an order status consistency detection method according to an embodiment of the present invention, in an embodiment of the present invention, the order status consistency detection method includes the following steps:
s1, acquiring a service flow of a target service, and dividing the service flow into at least one service flow node;
in the embodiment of the invention, the target service is a financial service or a finance derivative service (such as a service for purchasing insurance), and the service flow is a series of activities which are completed together to reach the target service.
In detail, in the embodiment of the present invention, the dividing the service flow into at least one service flow node includes:
identifying each service operation in the service flow and the operation sequence of the service operation;
dividing a plurality of service operations of one or adjacent operation sequences for realizing the same preset service function into one service flow node.
In the embodiment of the invention, each service operation only belongs to one service flow node.
The preset service function of the invention is a certain sub-service flow in the target service which is divided by people, such as the completion of the following list, payment, order placement and the like
Each service flow node also has a corresponding node sequence, specifically, the maximum value of the operation sequence of all service operations contained in the service flow node is obtained, and the initial node sequence of the service flow node is obtained; and determining the ranking of the initial node sequence of the service flow node in all the initial node sequences as the node sequence of the service flow node.
For example: the service flow node A comprises a service operation 2, a service operation 3 and a service operation 4, wherein the operation sequence of the service operation 2 is second (namely 2), the operation sequence of the service operation three is third (namely 3), the operation sequence of the service operation 4 is fourth (namely 4), the maximum value of the operation sequence is 3, namely the initial node sequence of the service flow node A is 4 (fourth), the initial node sequence of the service flow node B is 1, and the initial node sequence of the service flow node B is 6, and then the initial node sequence of the service flow node A is ranked second in all the initial node sequences, namely the node sequence of the service flow node A is 2 (second).
It should be explained that, in the embodiment of the present invention, the service operation is an operation step performed by implementing one sub-service in the target service, where the target service depends on the operation execution of the service operation, and only if all the service operations are executed normally, the service flow can be completed normally, so as to complete the target service.
S2, when a state consistency detection request of an abnormal order is received, extracting a service state and an order ID of the abnormal order in the state consistency detection request, wherein the abnormal order is a service order of the target service;
in the embodiment of the present invention, the abnormal order is a service order (such as purchasing insurance) of the target service with an abnormality, and further, in order to determine the reason of the abnormality of the abnormal order, in the embodiment of the present invention, a status consistency check needs to be performed on the abnormal order to check the abnormal order status of the abnormal order, so as to locate the reason of the abnormality of the order. The state consistency detection request in the embodiment of the invention comprises the order ID of the abnormal order and the detection request of the abnormal business state (such as order cancellation failure and payment failure) of the abnormal order.
S3, determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
in the embodiment of the invention, in order to determine which service operations in the service flow corresponding to the target service have problems, the service flow node generating the service state is determined as an abnormal service flow node, and the service operations contained in the abnormal service flow node and all the previous service flow nodes are acquired to obtain the investigation service operation.
Further, in the embodiment of the present invention, the obtaining the service operation included in the abnormal service flow node and all the previous service flow nodes to obtain the investigation service operation includes:
acquiring the node sequence of each service flow node;
determining the node sequence of the abnormal service flow node as a reference node sequence;
determining a node sequence smaller than the reference node sequence as a node sequence to be examined;
determining service flow nodes corresponding to the node to be inspected in sequence as inspecting flow nodes;
And acquiring the abnormal service flow node and the service operation contained in the investigation flow node to obtain the investigation service operation.
S4, based on the order ID, acquiring an operation result of each investigation service operation corresponding to the abnormal order, and performing operation abnormality investigation on the investigation service operation based on the operation result to obtain a state consistency detection result of the abnormal order.
In the embodiment of the invention, in order to judge which operation result is abnormal, and because the target service can have a plurality of service orders, in order to focus on the state consistency detection of the abnormal orders, the operation result of each investigation service operation corresponding to the abnormal orders is obtained based on the order ID, and the operation abnormality investigation is carried out on the investigation service operation based on the operation result, so as to obtain the state consistency detection result of the abnormal orders.
In detail, in the embodiment of the present invention, performing the operation exception checking on the checking service operation based on the operation result to obtain a status consistency detection result of the exception order includes:
determining the last service operation in all the investigation service operations as a target service operation;
Judging whether the target service operation has the last investigation service operation or not;
if the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
if the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
when the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
In the embodiment of the invention, whether the target service operation has the last check service operation can be judged according to the operation sequence of the service operation. Such as: if the operation sequence of the check service operation is smaller than that of the target service operation, the target service operation has the last check service operation.
Further, in the embodiment of the present invention, the determining whether the operation result of the target service operation and the comparison service operation are logically consistent includes:
obtaining an operation result of the contrast service operation to obtain a contrast operation result;
when the comparison service operation is a comparison operation result, obtaining a standard operation result by the operation result set by the target service operation;
obtaining an operation result of the target service operation to obtain a target operation result;
judging whether the target operation result is the same as the standard operation result;
if the target operation result is the same as the standard operation result, the target service operation is logically consistent with the operation result of the contrast service operation;
if the target operation result is different from the standard operation result, the target service operation is not consistent with the operation result logic of the contrast service operation.
In an embodiment of the present invention, the performing the operation exception checking on the checking service operation based on the operation result to obtain a status consistency detection result of the exception order includes:
judging whether the number of all the investigation service operations is 1;
When the number of all the investigation service operations is 1, the state consistency detection result of the abnormal order is that the investigation service operations are abnormal;
when the number of all the investigation service operations is not 1, determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
if the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
if the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
when the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
It should be explained that, in the embodiment of the present invention, the operation results of two adjacent service operations are in a set one-to-one correspondence relationship, if the operation result of the a service operation is a, and if the operation result of the setting of the next service operation of the a service operation is b, and if the operation result of the a service operation is a, the operation of the next service operation of the a service operation is not b, that is, if the operation result of the a service operation is b, the operation of the next service operation of the a service operation is abnormal.
In an embodiment of the present invention, the performing the operation exception checking on the checking service operation based on the operation result to obtain a status consistency detection result of the exception order includes:
judging whether the investigation service comprises a preset reference service operation or not;
if the investigation service comprises the reference service operation, determining the reference service operation as a target service operation;
judging whether the target service operation has the next investigation service operation or not;
when the target service operation does not have the next investigation service operation, determining the next investigation service operation of the target service operation as a comparison service operation;
when the target service operation has the next investigation service operation, judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
When the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the next checking service operation or not;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
If the reference service operation is not included in the investigation service, determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
when the target service operation does not have the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation;
when the target service operation has the last investigation service operation, judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
when the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
And when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
It should be explained that, in the embodiment of the present invention, the reference service operation is a trusted service operation, that is, the operation result of the service operation is standard (for example, the payment settlement operation of the payment platform), so that only the abnormal service operation needs to be checked in the check service operation after the reference service operation.
FIG. 2 is a functional block diagram of the order status consistency detection device according to the present invention.
The order status consistency detection apparatus 100 of the present invention may be installed in an electronic device. Depending on the implemented functions, the order status consistency detection apparatus may include a node dividing module 101, an abnormal node determining module 102, and an order status consistency detection module 103, where the modules may also be referred to as units, refer to a series of computer program segments capable of being executed by a processor of an electronic device and performing a fixed function, and stored in a memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The node dividing module 101 is configured to obtain a service flow of a target service, and divide the service flow into at least one service flow node;
the abnormal node determining module 102 is configured to extract a service state and an order ID of an abnormal order in a state consistency detection request when the state consistency detection request of the abnormal order is received, where the abnormal order is a service order of the target service; determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
the order state consistency detection module 103 is configured to obtain an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and perform operation anomaly investigation on the investigation service operation based on the operation result, so as to obtain a state consistency detection result of the abnormal order. In detail, each module in the order status consistency detecting device 100 in the embodiment of the present invention adopts the same technical means as the order status consistency detecting method described in fig. 1 and can produce the same technical effects when in use, and will not be described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the order status consistency detection method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as an order status consistency detection program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various types of data, such as codes of order status consistency detection programs, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing Unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, executes or executes programs or modules (e.g., order status consistency detection programs, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device and process data.
The communication bus 12 may be a peripheral component interconnect standard (PerIPheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure classification circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
Optionally, the communication interface 13 may comprise a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The order status consistency detection program stored by the memory 11 in the electronic device is a combination of a plurality of computer programs, which when run in the processor 10, can implement:
acquiring a service flow of a target service, and dividing the service flow into at least one service flow node;
when a state consistency detection request of an abnormal order is received, extracting a service state and an order ID of the abnormal order in the state consistency detection request, wherein the abnormal order is a service order of the target service;
Determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
and acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
In particular, the specific implementation method of the processor 10 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring a service flow of a target service, and dividing the service flow into at least one service flow node;
when a state consistency detection request of an abnormal order is received, extracting a service state and an order ID of the abnormal order in the state consistency detection request, wherein the abnormal order is a service order of the target service;
determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
and acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A method for detecting consistency of order status, the method comprising:
acquiring a service flow of a target service, and dividing the service flow into at least one service flow node;
when a state consistency detection request of an abnormal order is received, extracting a service state and an order ID of the abnormal order in the state consistency detection request, wherein the abnormal order is a service order of the target service;
determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
And acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and performing operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
2. The order state consistency detection method as set forth in claim 1, wherein said dividing the service flow into at least one service flow node comprises:
identifying each service operation in the service flow and the operation sequence of the service operation;
dividing a plurality of service operations of one or adjacent operation sequences for realizing the same preset service function into one service flow node.
3. The order status consistency detection method as recited in claim 2 wherein each of said service operations belongs to only one of said service flow nodes.
4. The method for detecting consistency of order status as set forth in claim 1, wherein said obtaining service operations contained in said abnormal service flow node and all service flow nodes before said abnormal service flow node, obtaining an troubleshooting service operation, comprises:
acquiring the node sequence of each service flow node;
Determining the node sequence of the abnormal service flow node as a reference node sequence;
determining a node sequence smaller than the reference node sequence as a node sequence to be examined;
determining service flow nodes corresponding to the node to be inspected in sequence as inspecting flow nodes;
and acquiring the abnormal service flow node and the service operation contained in the investigation flow node to obtain the investigation service operation.
5. The order state consistency detection method according to any one of claims 1 to 4, wherein the performing the operation anomaly investigation on the investigation service operation based on the operation result to obtain the state consistency detection result of the anomaly order includes:
determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
if the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
if the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
When the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
6. The method for detecting consistency of state of order as set forth in claim 1, wherein said performing operation anomaly investigation on said investigation service operation based on said operation result to obtain a status consistency detection result of said anomaly order comprises:
judging whether the number of all the investigation service operations is 1;
when the number of all the investigation service operations is 1, the state consistency detection result of the abnormal order is that the investigation service operations are abnormal;
when the number of all the investigation service operations is not 1, determining the last service operation in all the investigation service operations as a target service operation;
judging whether the target service operation has the last investigation service operation or not;
If the target service operation does not have the previous investigation service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal;
if the target service operation has the last investigation service operation, determining the last investigation service operation of the target service operation as a comparison service operation, and judging whether the operation results of the target service operation and the comparison service operation are logically consistent;
when the target service operation is logically consistent with the operation result of the comparison service operation, determining the comparison service operation as a target service operation, and returning to the step of judging whether the target service operation has the last checking service operation;
and when the operation result logic of the target service operation is inconsistent with that of the comparison service operation, the state consistency detection result of the abnormal order is that the target service operation is abnormal.
7. The order state consistency detection method according to claim 6, wherein the determining whether the operation result of the target service operation and the comparison service operation are logically consistent comprises:
obtaining an operation result of the contrast service operation to obtain a contrast operation result;
When the comparison service operation is a comparison operation result, obtaining a standard operation result by the operation result set by the target service operation;
obtaining an operation result of the target service operation to obtain a target operation result;
judging whether the target operation result is the same as the standard operation result;
if the target operation result is the same as the standard operation result, the target service operation is logically consistent with the operation result of the contrast service operation;
if the target operation result is different from the standard operation result, the target service operation is not consistent with the operation result logic of the contrast service operation.
8. An order status consistency detection device, comprising:
the node dividing module is used for acquiring a service flow of the target service and dividing the service flow into at least one service flow node;
the abnormal node determining module is used for extracting the service state and the order ID of the abnormal order in the state consistency detection request when the state consistency detection request of the abnormal order is received, wherein the abnormal order is a service order of the target service; determining the service flow node generating the service state as an abnormal service flow node, and acquiring service operations contained in the abnormal service flow node and all the previous service flow nodes to obtain investigation service operations;
The order state consistency detection module is used for acquiring an operation result of each investigation service operation corresponding to the abnormal order based on the order ID, and carrying out operation abnormal investigation on the investigation service operation based on the operation result to acquire a state consistency detection result of the abnormal order.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the order status consistency detection method of any of claims 1 to 7.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the order status consistency detection method according to any of claims 1 to 7.
CN202410012976.4A 2024-01-02 2024-01-02 Order state consistency detection method, device, equipment and storage medium Pending CN117830010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410012976.4A CN117830010A (en) 2024-01-02 2024-01-02 Order state consistency detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410012976.4A CN117830010A (en) 2024-01-02 2024-01-02 Order state consistency detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117830010A true CN117830010A (en) 2024-04-05

Family

ID=90518996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410012976.4A Pending CN117830010A (en) 2024-01-02 2024-01-02 Order state consistency detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117830010A (en)

Similar Documents

Publication Publication Date Title
CN111694844B (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN112948275A (en) Test data generation method, device, equipment and storage medium
CN113468049A (en) Test method, device, equipment and medium based on configurable interface
CN112015663A (en) Test data recording method, device, equipment and medium
CN113392090B (en) Data verification method, device, equipment and medium based on database migration
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN112667244B (en) Data verification method, device, electronic equipment and computer readable storage medium
CN114547696A (en) File desensitization method and device, electronic equipment and storage medium
CN112527655B (en) Software version quality abnormality detection method and device, electronic equipment and storage medium
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN112085611A (en) Asynchronous data verification method and device, electronic equipment and storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN113657546B (en) Information classification method, device, electronic equipment and readable storage medium
CN112634045B (en) Data processing method, device, electronic equipment and storage medium
CN116484296A (en) Financial fund collection risk analysis method, device, equipment and storage medium
CN117830010A (en) Order state consistency detection method, device, equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114897624A (en) Policy data merging method, device, equipment and storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN113505079A (en) Application program testing method, device, equipment and medium
CN113419916B (en) Wind control inspection program uninterrupted operation method, device, equipment and storage medium
CN118503141B (en) Test case generation method, device, equipment and medium
CN113608779B (en) Service interface configuration method, device, equipment and storage medium
CN114237689B (en) System version monitoring method, device, electronic device and readable 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