CN114741437A - Product state display method, device, equipment, storage medium and program product - Google Patents
Product state display method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN114741437A CN114741437A CN202210417293.8A CN202210417293A CN114741437A CN 114741437 A CN114741437 A CN 114741437A CN 202210417293 A CN202210417293 A CN 202210417293A CN 114741437 A CN114741437 A CN 114741437A
- Authority
- CN
- China
- Prior art keywords
- product
- log record
- product state
- state
- processed
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24564—Applying rules; Deductive queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- Marketing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Technology Law (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Business, Economics & Management (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a method and a device for displaying product states, computer equipment, a storage medium and a computer program product, and relates to the technical field of big data intelligent analysis. The method comprises the following steps: acquiring a user identifier to be processed; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to a target data structure, comprising: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure; generating a finite state diagram according to the processed product state log record; and displaying the finite state diagram. The method can efficiently display the classification process.
Description
Technical Field
The present application relates to the field of big data intelligent analysis technology, and in particular, to a method and an apparatus for displaying a product status, a computer device, a storage medium, and a computer program product.
Background
In the financial industry, loan quality is often categorized by the borrower's actual repayment ability. Due to the large amount of loans, manual loan quality classification is slow and prone to errors. Therefore, as computer technology has been developed in the financial field, techniques for automatically classifying loan quality by a computer program have gradually appeared.
However, after classification by automatic classification techniques, only the corresponding classification results are usually given. And the specific classification process can only be backtracked by development, operation and maintenance personnel who master the classification rules.
However, the process of backtracking the classification process by the development operation and maintenance personnel needs to consume a lot of time and energy, and is inefficient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a product status display method, apparatus, computer device, computer readable storage medium and computer program product capable of efficiently showing a classification process.
In a first aspect, the present application provides a method for displaying a product status, the method comprising: acquiring a user identifier to be processed; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to a target data structure, comprising: sequencing the product state log records according to a time sequence; storing the ordered product state log records according to a target data structure; generating a finite state diagram according to the processed product state log record; and displaying the finite state diagram. In one embodiment, the generating a finite state diagram according to the processed product state log record includes: sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; acquiring a corresponding display template according to the currently analyzed classification state of the product state log record; filling the display template with the currently analyzed state information of the product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed.
In one embodiment, the obtaining a corresponding display template according to the currently analyzed classification status of the product status log record includes: and acquiring display templates with different colors and/or different shapes according to the currently analyzed classification state of the product state log record.
In one embodiment, the querying the product status log record corresponding to the to-be-processed user identifier includes at least one of: inquiring a log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein only the log record of which the product state changes is stored when the log record is stored.
In one embodiment, after the generating the finite state diagram according to the processed product state log record, the method further includes: acquiring the final product state in the finite state diagram; and generating a warning report corresponding to the final product state.
In a second aspect, the present application also provides a product status display apparatus, the apparatus comprising: the identification acquisition module is used for acquiring the identification of the user to be processed; the record query module is used for querying the product state log record corresponding to the user identifier to be processed; a record processing module, configured to process the product status log record according to a target data structure, including: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure; the image generation module is used for generating a finite state diagram according to the processed product state log record; and the image display module is used for displaying the finite state diagram.
In one embodiment, the image generation module includes: the analysis module is used for sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; the template acquisition module is used for acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; the template filling module is used for filling the display template through the currently analyzed state information of the product state log record to obtain a current display template; and the output module is used for generating a connecting line for connecting the current display template to the previous display template if the sequence of the currently analyzed product state log records is not the first time, continuously acquiring the next product state log record stored according to the target data structure according to the sequence order, and outputting the generated current display template and the connecting line until the analysis of the product state log records stored in the target data structure is completed.
In one embodiment, the template obtaining module includes: and acquiring display templates with different colors and/or different shapes according to the currently analyzed classification state of the product state log record.
In one embodiment, the record query module includes at least one of: the change extraction module is used for inquiring the log record corresponding to the user identification to be processed; extracting a product state log record with a changed product state from the log record; and the change storage module is used for inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein only the log record of which the product state changes is stored when the log record is stored.
In one embodiment, the method further comprises the following steps: a final state obtaining module, configured to obtain a final product state in the finite state diagram; and the report generation module is used for generating a warning report corresponding to the final product state.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method described above.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the product state display method, the product state display device, the computer equipment, the storage medium and the computer program product, the target classification process is recorded through the preset rules, the corresponding target data structure is obtained through processing the log record, and the corresponding finite state diagram is generated through the target data structure. The target classification process is displayed through the existing state diagram, the worker does not need to manually backtrack the classification process, and the efficient backtrack of the classification process is realized.
Drawings
FIG. 1 is a diagram of an application environment of a method for displaying a product status in one embodiment;
FIG. 2 is a flow chart illustrating a method for displaying product status according to one embodiment;
FIG. 3 is a diagram of a finite state diagram in one embodiment;
FIG. 4 is a block diagram showing the structure of a product status display device according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The product state display method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The server 104 acquires a to-be-processed user identifier uploaded by the terminal 102; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to the target data structure, comprising: sequencing the product state log records according to a time sequence; and storing the sorted product state log records according to a target data structure. Generating a finite state diagram according to the processed product state log record; a finite state diagram is displayed. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a product status display method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, acquiring a user identifier to be processed.
In a financial system, for example, a bank is taken as an example, a bank or a branch bank usually possesses a plurality of users, and one user uses a plurality of products in the corresponding bank, for example, a user of one bank may be a depositor and a loan user in the corresponding bank, wherein the deposit service and the loan service correspond to different products provided by the bank. When the storage condition or repayment condition of the user is inquired, a product state log record is generated. When the storage amount or the repayment condition of the user changes, the corresponding product state changes. The present application is not limited to the institution to which the user belongs, including but not limited to banks, nor is the present application limited to products used by the user, including but not limited to savings products, loan products. The user identification is a unique identity ID for distinguishing the user identity. Optionally, the user identification is a username. The application does not limit the specific field of the user identification, and can distinguish the field of the identity of the user. The user to be processed is a user whose business personnel of the bank wants to inquire about the status of the product they use.
Specifically, the server obtains a user identifier of the user to be processed.
And step 204, inquiring a product state log record corresponding to the user identification to be processed.
The content recorded by the product status log record may include, but is not limited to, a user identifier, a time for querying a product status, a time corresponding to each step of executing the status query, a product status before executing the status query, a trigger condition and an execution action corresponding to each step of determining a product status of executing the status query, and a product status after executing the status query.
Specifically, the server may query the latest product status log record according to the pending user identification. And querying the product state log record in the target time period according to the user identification to be processed. And querying a product state log record in a set time period according to the user identifier to be processed.
Step 206, processing the product status log record according to the target data structure, including: and sequencing the product state log records according to a time sequence, and storing the sequenced product state log records according to a target data structure.
The target data structure determines details of each step of the product state for the state query, including an execution time of the step, a state before the step is executed, an execution condition of the step, an execution action corresponding to the execution condition of the step, and a state after the execution action of the step is executed.
Optionally, the server processes the product status log records according to the target data structure, sorts the processed target data structure in time sequence, and stores the sorted product status log records according to the target data structure.
And step 208, generating a finite state diagram according to the processed product state log records.
Specifically, the server generates a finite state diagram according to the processed product state log records and a preset template.
Step 210, displaying the finite state diagram.
Specifically, the server displays according to the generated finite state diagram.
According to the product state display method, the specific product state log record is processed through the target data structure, and the corresponding finite state diagram is generated according to the processed product state log record. The classification process of the product state is displayed through the existing state diagram, and the efficient backtracking of the classification process is realized.
In a specific embodiment, when the management user needs to query the state change process corresponding to the classification state of the loan product of the user to be processed, the server obtains the identification of the user to be processed. And the server inquires a product state log record corresponding to the user identification to be processed. The server sorts the classification steps of the product state log records according to the time sequence, and stores the sorted product state log records according to a target data structure, namely the target data structure comprising the execution time of each classification step, the state before the step is executed, the execution condition of the step, the execution action corresponding to the execution condition of the step and the state after the execution action of the step. And the server generates a finite state diagram according to the processed product state log record and a preset template. The server displays the finite state diagram.
In one embodiment, generating a finite state diagram from the processed product state log records includes: sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; filling a display template through the state information of the currently analyzed product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed.
Specifically, the server sequentially parses the product status log records stored according to the target data structure in chronological order. Acquiring a corresponding display template according to the state after the execution of the action in each step of determining the state of the product; filling a display template through the state information of the currently analyzed product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed. And each step of determining the product state is to classify the state of the current step of the product according to the execution condition of each step of determining the product state. Optionally, the execution conditions triggered by each step of determining the state of the product are identified on the connection line.
According to the product state display method, the product state log records stored according to the target data structure are sequentially analyzed according to the sorting sequence to obtain the ordered classification states, the corresponding display templates are obtained according to the classification states to fill the ordered classification states into the corresponding display templates, the display templates are connected through the connecting lines, the classification process of the product states is conveniently and directly displayed through the existing state diagram by a user, and the efficient classification process is backtracked.
In one embodiment, obtaining a corresponding display template according to a classification status of a currently parsed product status log record includes: and acquiring display templates with different colors and/or different shapes according to the classification state of the currently analyzed product state log record.
The color and/or shape of the display template corresponding to the state of each product are different, so that the current state of each product is highlighted.
Specifically, the server obtains display templates of different colors and/or different shapes according to the state after the action is executed in each step of determining the product state of the currently resolved product state log record.
According to the product state display method, the state after execution of the action in each step of determining the product state is highlighted through the display templates with different colors and/or different shapes, so that a user can conveniently and visually know the state change process of the product in the classification process, and the step and the reason of the state change are locked.
In one embodiment, querying the product status log record corresponding to the pending user identifier includes at least one of: inquiring a log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein the log record only stores the log record of the product state change when being stored.
According to the product state display method, the repeated records of the data are reduced by extracting the product state log records with the changed product states from the log records, and the storage space is reduced by only storing the log records with the changed product states, so that the utilization efficiency of resources is enhanced.
In one embodiment, after generating the finite state diagram according to the processed product state log record, the method further comprises: acquiring the final product state in the finite state diagram; and generating a warning report corresponding to the final product state.
Specifically, the server obtains the final state of the product in the finite state diagram, and generates a corresponding warning report according to the final state of the finite state diagram corresponding to each product, so as to highlight the product of which the final state is in the warning state and the corresponding user. Optionally, the user information that the final state of the product belongs to the warning state is highlighted and sent to the corresponding management user.
According to the product state display method, the user information of the user in the warning state is displayed through the warning report, so that the management user can conveniently and visually acquire the information of the user in the warning state.
In one embodiment, when the product is a loan product, the method for displaying the status of the loan product comprises the following steps:
when the management user needs to inquire the status generation process of the loan products of the user to be processed, the server obtains the identification of the user to be processed sent by the management user. And the server inquires the corresponding loan product state log record according to the identification of the user to be processed. Optionally, the format of the status log record of the loan product is a preset format, and taking the status log record of the loan product as an example, the method includes: the method comprises the steps of processing a user identifier to be processed, inquiring product state time, namely classification date, recording time, executing pre-triggering risk classification state, executing conditions, namely triggering conditions, of each step of determining the product state, executing actions, namely executing actions, corresponding to the executing conditions of each step of determining the product state, and executing post-triggering risk classification state. The trigger condition may include, but is not limited to, a overdue rule, a blacklist rule, a credit card rule, and a public accumulation fund rule. Taking the overdue rule as an example, when the overdue days of the user is acquired to be 1 day, the overdue rule is triggered, the overdue rule corresponding to the overdue rule is executed, and the state of the product is changed from normal loan to attention loan. And processing the product state log records according to the target data structure in a time sequence to obtain a corresponding data set. And sequentially drawing corresponding finite state diagrams according to the recording time sequence in the data set, for example, drawing a square state frame of a normal loan and setting a white background, drawing a square state frame of an attention loan, setting the attention loan frame with a blue background, and drawing an arrow line pointing from the normal loan frame to the attention loan frame. Alternatively, the arrow color between the square status frames with changed status is set to different colors, and the classification date, recording time, trigger condition and execution action are noted, resulting in the finite state diagram shown in fig. 3. And the server sends the finite state diagram display to the front end and displays the finite state diagram display.
According to the product state display method, the specific product state log record is processed through the target data structure, and the corresponding finite state diagram is generated according to the processed product state log record. The classification process of the product state is displayed through the existing state diagram, and the efficient backtracking of the classification process is realized.
In one embodiment, when the product is a loan product, the method for displaying the status of the loan product comprises the steps of:
when the management user needs to inquire the status generation process of the loan products of the user to be processed, the server obtains the identification of the user to be processed sent by the management user. The server inquires a corresponding loan product state log record according to the identification of the user to be processed, wherein the format of the loan product state log record is a preset format and comprises the following steps: the method comprises the steps of user identification to be processed, product state inquiring time, namely classification date, time, namely recording time, of each step of determining the product state of state inquiry, risk classification state before triggering of each step of determining the product state of state inquiry, triggering condition, namely executing condition, of each step of determining the product state of state inquiry, executing action, namely executing action, corresponding to the executing condition of each step of determining the product state of state inquiry, and risk classification state after triggering of each step of determining the product state of state inquiry. The trigger condition may include, but is not limited to, a overdue rule, a blacklist rule, a credit card rule, and a public accumulation fund rule. And the server processes each classification step, namely each state query step recorded by the product state log according to the target data structure in time sequence to obtain the execution time of each classification step, the state before the step is executed, the execution condition of the step, the execution action corresponding to the execution condition of the step and the state after the execution action of the step. And the server generates a finite state diagram according to the processed product state log record. For example, the server acquires the triggering condition of the first target data structure according to the time sequence, that is, the execution condition of the first step is overdue for 0 day, that is, no overdue, and the execution action corresponding to the execution condition of the first step is determined as setting the product state as the normal loan state according to the overdue rule and the execution condition obtained from the first step, and connects the initial no-classification structure state frame and the normal loan state frame according to the time sequence. And the server acquires a triggering condition of the second target data structure, namely the execution condition of the second step is not in the blacklist, the execution action corresponding to the execution condition of the second step is determined to be that the product state is set to be the normal loan state according to the blacklist rule and the execution condition obtained by the second step, and the normal loan state frame is marked by a self-circulation arrow. And the server acquires a triggering condition of a third target data structure, namely the execution condition of the third step is that the credit card is overdue for 30 days, the execution action corresponding to the execution condition of the third step is determined to set the product state as the attention state according to the credit card rule and the execution condition obtained by the third step, and the normal loan state frame and the loan state frame which is paying attention are connected in time sequence. And the server acquires a triggering condition of a fourth target data structure, namely the executing condition of the fourth step is that the overdue of the public deposit does not exist, the executing action corresponding to the executing condition of the fourth step is determined to set the product state as the concerned state according to the public deposit rule and the executing condition obtained in the fourth step, and the concerned loan state frame is marked by a self-circulation arrow. The execution condition of the fifth step of the server is the combination rule of the classification step, the final classification result is taken, and corresponding state setting is executed according to the combination rule, so that the finite state diagram shown in fig. 3 is obtained.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a product state display apparatus for implementing the product state display method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in one or more embodiments of the product status display device provided below can be referred to the limitations of the product status display method in the above, and are not described herein again.
In one embodiment, as shown in fig. 4, there is provided a product status display device including: an identification obtaining module 100, a record inquiring module 200, a record processing module 300, an image generating module 400, and an image displaying module 500, wherein:
an identifier obtaining module 100, configured to obtain a to-be-processed user identifier.
And the record query module 200 is configured to query a product status log record corresponding to the to-be-processed user identifier.
The record processing module 300 is configured to process the product status log record according to the target data structure, and includes: and sequencing the product state log records according to a time sequence, and storing the sequenced product state log records according to a target data structure.
And the image generation module 400 is configured to generate a finite state diagram according to the processed product state log record.
And an image display module 500 for displaying the finite state diagram.
In one embodiment, an image generation module, comprising: the analysis module is used for sequentially analyzing the product state log records stored according to the target data structure according to the sorting sequence; the template acquisition module is used for acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; the template filling module is used for filling the display template through the state information recorded by the currently analyzed product state log to obtain a current display template; and the output module is used for generating a connecting line for connecting the current display template to the previous display template if the sorting of the currently analyzed product state log records is not the first time, continuously acquiring the next product state log record stored according to the target data structure according to the sorting sequence, and outputting the generated current display template and the generated connecting line until the analysis of the product state log records stored in the target data structure is completed.
In one embodiment, the template acquisition module includes: and acquiring display templates with different colors and/or different shapes according to the classification state of the currently analyzed product state log record.
In one embodiment, the record query module includes at least one of: the change extraction module is used for inquiring the log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and the change storage module is used for inquiring the log record corresponding to the user identifier to be processed as the product state log record, wherein the log record only stores the log record of the change of the product state when being stored.
In one embodiment, further comprising: the last state acquisition module is used for acquiring the last product state in the finite state diagram; and the report generation module is used for generating a warning report corresponding to the final product state.
The respective modules in the product status display apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a product status display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of: acquiring a user identifier to be processed; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to the target data structure, comprising: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure; generating a finite state diagram according to the processed product state log record; a finite state diagram is displayed.
In one embodiment, the generating of the finite state diagram from the processed product state log records, as implemented by the processor executing the computer program, comprises: sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; filling a display template through the state information of the currently analyzed product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log records is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously acquiring the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log records stored in the target data structure is completed.
In one embodiment, the obtaining of the corresponding display template according to the classification status of the currently parsed product status log record, which is performed when the processor executes the computer program, includes: and acquiring display templates with different colors and/or different shapes according to the classification state of the currently analyzed product state log record.
In one embodiment, querying a product status log record corresponding to the pending user identifier performed by the processor when executing the computer program comprises at least one of: inquiring a log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein the log record only stores the log record of the product state change when being stored.
In one embodiment, after the finite state diagram is generated according to the processed product state log record when the processor executes the computer program, the finite state diagram further comprises: acquiring the final product state in the finite state diagram; and generating a warning report corresponding to the final product state.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a user identifier to be processed; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to the target data structure, comprising: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure; generating a finite state diagram according to the processed product state log record; a finite state diagram is displayed.
In one embodiment, the computer program, when executed by a processor, implements generating a finite state diagram from processed product state log records, comprising: sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; filling a display template through the state information of the currently analyzed product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed.
In one embodiment, a computer program implemented when executed by a processor to retrieve a corresponding display template based on a classification status of a currently parsed product status log record includes: and acquiring display templates with different colors and/or different shapes according to the classification state of the currently analyzed product state log record.
In one embodiment, querying a product status log record corresponding to a pending user identification, implemented when the computer program is executed by a processor, includes at least one of: inquiring a log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein the log record only stores the log record of the product state change when being stored.
In one embodiment, the computer program when executed by a processor, further comprises, after generating a finite state diagram from the processed product state log records: acquiring the final product state in the finite state diagram; and generating a warning report corresponding to the final product state.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a user identifier to be processed; inquiring a product state log record corresponding to the user identification to be processed; processing the product status log record according to the target data structure, comprising: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure; generating a finite state diagram according to the processed product state log record; a finite state diagram is displayed.
In one embodiment, the computer program, when executed by a processor, implements generating a finite state diagram from processed product state log records, comprising: sequentially analyzing the product state log records stored according to the target data structure according to the sorting order; acquiring a corresponding display template according to the classification state of the currently analyzed product state log record; filling a display template through the state information of the currently analyzed product state log record to obtain a current display template; and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed.
In one embodiment, a computer program implemented when executed by a processor to retrieve a corresponding display template based on a classification status of a currently parsed product status log record includes: and acquiring display templates with different colors and/or different shapes according to the classification state of the currently analyzed product state log record.
In one embodiment, querying a product status log record corresponding to a pending user identification, implemented when the computer program is executed by a processor, includes at least one of: inquiring a log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and inquiring the log record corresponding to the user identification to be processed as a product state log record, wherein the log record only stores the log record of the product state change when being stored.
In one embodiment, the computer program when executed by a processor, further comprises, after generating a finite state diagram from the processed product state log records: acquiring the final product state in the finite state diagram; and generating a warning report corresponding to the final product state. It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (13)
1. A method for displaying a product status, the method comprising:
acquiring a user identifier to be processed;
inquiring a product state log record corresponding to the user identification to be processed;
processing the product status log record according to a target data structure, comprising: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure;
generating a finite state diagram according to the processed product state log record;
and displaying the finite state diagram.
2. The method of claim 1, wherein generating a finite state diagram from the processed product state log records comprises:
sequentially analyzing the product state log records stored according to the target data structure according to the sorting order;
acquiring a corresponding display template according to the currently analyzed classification state of the product state log record;
filling the display template with the currently analyzed state information of the product state log record to obtain a current display template;
and if the sequence of the currently analyzed product state log record is not the first time, generating a connecting line for connecting the current display template to the previous display template, continuously obtaining the next product state log record stored according to the target data structure according to the sequence, and outputting the generated current display template and the connecting line until the analysis of the product state log record stored in the target data structure is completed.
3. The method of claim 2, wherein obtaining the corresponding display template according to the currently resolved classification status of the product status log record comprises:
and acquiring display templates with different colors and/or different shapes according to the currently analyzed classification state of the product state log record.
4. The method of claim 1, wherein querying the product status log record corresponding to the pending user identifier comprises at least one of:
inquiring a log record corresponding to the user identification to be processed; extracting a product state log record with a changed product state from the log record; and
and querying a log record corresponding to the user identifier to be processed as a product state log record, wherein only the log record of which the product state changes is stored when the log record is stored.
5. The method of claim 1, after generating the finite state diagram from the processed product state log records, further comprising:
acquiring the final product state in the finite state diagram;
and generating a warning report corresponding to the final product state.
6. A product status display apparatus, comprising:
the identification acquisition module is used for acquiring the identification of the user to be processed;
the record query module is used for querying the product state log record corresponding to the user identifier to be processed;
the record processing module is used for processing the product state log record according to a target data structure, and comprises: sorting the product state log records according to a time sequence, and storing the sorted product state log records according to a target data structure;
the image generation module is used for generating a finite state diagram according to the processed product state log record;
and the image display module is used for displaying the finite state diagram.
7. The apparatus of claim 6, wherein the image generation module comprises:
the analysis module is used for sequentially analyzing the product state log records stored according to the target data structure according to the sorting order;
the template acquisition module is used for acquiring a corresponding display template according to the classification state of the currently analyzed product state log record;
the template filling module is used for filling the display template through the currently analyzed state information of the product state log record to obtain a current display template;
and the output module is used for generating a connecting line for connecting the current display template to the previous display template if the sequence of the currently analyzed product state log records is not the first time, continuously acquiring the next product state log record stored according to the target data structure according to the sequence order, and outputting the generated current display template and the connecting line until the analysis of the product state log records stored in the target data structure is completed.
8. The apparatus of claim 7, wherein the template acquisition module comprises: and acquiring display templates with different colors and/or different shapes according to the currently analyzed classification state of the product state log record.
9. The apparatus of claim 8, wherein the record query module comprises at least one of:
the change extraction module is used for inquiring the log record corresponding to the user identification to be processed; extracting a product state log record of which the product state changes from the log record; and
and the change storage module is used for inquiring the log record corresponding to the user identifier to be processed as a product state log record, wherein only the log record of which the product state changes is stored when the log record is stored.
10. The apparatus of claim 9, further comprising:
a final state obtaining module, configured to obtain a final product state in the finite state diagram;
and the report generation module is used for generating a warning report corresponding to the final product state.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210417293.8A CN114741437A (en) | 2022-04-20 | 2022-04-20 | Product state display method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210417293.8A CN114741437A (en) | 2022-04-20 | 2022-04-20 | Product state display method, device, equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114741437A true CN114741437A (en) | 2022-07-12 |
Family
ID=82283708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210417293.8A Pending CN114741437A (en) | 2022-04-20 | 2022-04-20 | Product state display method, device, equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114741437A (en) |
-
2022
- 2022-04-20 CN CN202210417293.8A patent/CN114741437A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170140302A1 (en) | Predictive modeling and data analysis in a secure shared system | |
CN108416506B (en) | Client risk level management method, server and computer readable storage medium | |
CN110765101B (en) | Label generation method and device, computer readable storage medium and server | |
CN114266640A (en) | Auditing method and device, computer equipment and storage medium | |
CN114741402A (en) | Method and device for processing service feature pool, computer equipment and storage medium | |
CN114153860A (en) | Business data management method and device, electronic equipment and storage medium | |
CN116483822B (en) | Service data early warning method, device, computer equipment and storage medium | |
CN114565443B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN117390011A (en) | Report data processing method, device, computer equipment and storage medium | |
CN114741437A (en) | Product state display method, device, equipment, storage medium and program product | |
CN115935933A (en) | List analysis method and device, computer equipment and storage medium | |
CN110443560B (en) | Protocol data management method, device, computer equipment and storage medium | |
CN114064976A (en) | Data feature calculation method, system, electronic device and storage medium | |
CN114547066A (en) | Nuclear power business data standardization method and device and computer equipment | |
CN115423595B (en) | File information processing method and device, computer equipment and storage medium | |
CN117370645A (en) | Page display method, device, computer equipment and storage medium | |
CN117234639A (en) | Business data display method and device and computer equipment | |
CN117709615A (en) | Data processing method, device, computer equipment and storage medium | |
CN116595054A (en) | Interaction state determining method and device and computer equipment | |
CN118377946A (en) | Information query method, device, equipment, storage medium and program product | |
CN117216164A (en) | Financial data synchronous processing method, apparatus, device, medium and program product | |
CN118096339A (en) | Service data processing method, device, computer equipment and storage medium | |
CN117954025A (en) | Questionnaire text generation method, device, computer equipment and storage medium | |
CN117034173A (en) | Data processing method, device, computer equipment and storage medium | |
CN117453210A (en) | Configurable information acquisition page generation method and device and computer equipment |
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 |