Data indicator acquisition method, device, equipment and medium in SaaS business scenario

By extracting and calculating the target data fields requested by the user terminal in the SaaS business scenario, the problem of time-consuming and timely update of data indicators is solved, and users can quickly and accurately obtain data indicators and improve user experience.

CN114547061BActive Publication Date: 2025-04-25SHANGHAI PINKRYPTON INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210182126.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2025-04-25
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

In the SaaS business scenario, it takes a long time to acquire data metrics, and the data metrics in the cache system are not updated in time, resulting in inaccurate data and affecting user experience.

Method used

By obtaining the indicator acquisition request from the user terminal, if it is detected that there is no corresponding data indicator in the preset data indicator cache system, the target data field is extracted, the local database is saved and calculated, the data indicator calculation frequency is updated, and the results are updated to the cache system.

Benefits of technology

It realizes users to obtain data indicators accurately and quickly, improves user experience, and predicts the trigger time of the next calculation operation through a timed calculator, reducing calculation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547061B_ABST
    Figure CN114547061B_ABST
Patent Text Reader

Abstract

The present application discloses a data indicator acquisition method, device, equipment, and medium in a SaaS business scenario, including: obtaining an indicator acquisition request triggered by a user terminal in a SaaS business scenario; if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist on the preset data indicator cache system, extracting and saving the target SaaS business data field in the indicator acquisition request; performing corresponding data indicator calculation operations on the target SaaS business data field saved in the local database, obtaining the target SaaS business data indicator corresponding to the target SaaS business data field, and updating the current data indicator calculation frequency; updating the target SaaS business data indicator to the preset data indicator cache system, and saving the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so as to determine the trigger time of the next data indicator calculation operation. Accurate and fast calculation and update of data indicators are achieved to provide users with a better experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data indicator acquisition in SaaS business scenarios, and in particular to a method, device, equipment, and medium for acquiring data indicators in SaaS business scenarios. Background Art

[0002] Currently, the service of obtaining data indicators in the current SaaS (Software as a Service) scenario takes a long time to obtain data indicators due to the complex calculation of data indicators and multiple calculation scenarios. To solve the problem of long time consumption when obtaining data indicators, a cache system is generally introduced. However, the data indicators cached in the cache system are not updated in time, which leads to inaccurate values ​​of the data indicators, which may cause calculation errors in the upstream system and affect the user experience.

[0003] In summary, how to enable users to obtain data indicators accurately and quickly and improve user experience is a problem to be solved in this field. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment, and medium for obtaining data indicators in a SaaS business scenario, which can enable users to obtain data indicators accurately and quickly, thereby improving the user experience. The specific solution is as follows:

[0005] In a first aspect, the present application discloses a method for obtaining data indicators in a SaaS business scenario, including:

[0006] Obtain indicator acquisition requests triggered by user terminals in SaaS business scenarios;

[0007] If it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system, extracting the target SaaS business data field related to the SaaS business in the indicator acquisition request and storing it in the local database;

[0008] Performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules to obtain target SaaS business data indicators corresponding to the target SaaS business data field in the SaaS business scenario, and updating the current data indicator calculation frequency;

[0009] The target SaaS business data indicator is updated to the preset data indicator cache system, and the current data indicator calculation frequency is saved to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation based on the data indicator calculation frequency.

[0010] Optionally, after obtaining the indicator acquisition request triggered by the user terminal in the SaaS business scenario, the method further includes:

[0011] Obtain the indicator acquisition request triggered by the user terminal in the SaaS business scenario. If it is detected that the SaaS business data indicator corresponding to the indicator acquisition request exists in the preset data indicator cache system located in the SaaS customer relationship management system, the SaaS business data indicator is fed back to the user terminal.

[0012] Optionally, before performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database using a preset indicator calculation program and based on preset data indicator calculation rules, the method further includes:

[0013] Based on the correspondence between the target SaaS business data fields and the target SaaS business data indicators, calculation rules for calculating the data indicators are constructed to obtain preset data indicator calculation rules.

[0014] Optionally, before constructing a calculation rule for calculating the data indicator based on the correspondence between the target SaaS business data field and the target SaaS business data indicator to obtain the preset data indicator calculation rule, the method further includes:

[0015] A reference relationship between the SaaS business data field and the SaaS business data indicator is constructed to obtain a corresponding relationship between the target SaaS business data field and the target SaaS business data indicator.

[0016] Optionally, before performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database by a preset indicator calculation program and based on preset data indicator calculation rules to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, the method further includes:

[0017] Determining the SaaS business data fields to be updated in the local database;

[0018] Updating the SaaS business data field to be updated to obtain an updated field;

[0019] Based on the reference relationship between the SaaS business data field and the SaaS business data indicator, the original SaaS business data indicator corresponding to the updated field is determined from the preset data indicator cache system located in the SaaS customer relationship management system, and the original SaaS business data indicator is deleted from the preset data indicator cache system, and a message for calculating the target SaaS business data indicator is triggered to send the message for starting the calculation of the target SaaS business data indicator to the indicator calculation message queue for storage.

[0020] Optionally, performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database by a preset indicator calculation program and based on preset data indicator calculation rules to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario includes:

[0021] Obtaining a message from the indicator calculation message queue for starting calculation of the target SaaS business data indicator;

[0022] Through a preset indicator calculation program and based on preset data indicator calculation rules, corresponding data indicator calculation operations are performed on the target SaaS business data field stored in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario.

[0023] In a second aspect, the present application discloses a data indicator acquisition device in a SaaS business scenario, comprising:

[0024] The request acquisition module is used to obtain the indicator acquisition request triggered by the user terminal in the SaaS business scenario;

[0025] a field extraction module configured to extract target SaaS business data fields related to the SaaS business in the indicator acquisition request and store them in a local database if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system;

[0026] an indicator calculation module, configured to perform corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules, so as to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and to update a current data indicator calculation frequency;

[0027] The indicator update module is used to update the target SaaS business data indicator to the preset data indicator cache system, and save the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator can determine the trigger time of the next data indicator calculation operation based on the data indicator calculation frequency.

[0028] In a third aspect, the present application discloses an electronic device, comprising:

[0029] Memory, used to store computer programs;

[0030] A processor is used to execute the computer program to implement the steps of the data indicator acquisition method in the aforementioned SaaS business scenario.

[0031] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the data indicator acquisition method in the aforementioned disclosed SaaS business scenario are implemented.

[0032] It can be seen that the present application discloses a data indicator acquisition method in a SaaS business scenario, including: obtaining an indicator acquisition request triggered by a user terminal in a SaaS business scenario; if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist on the preset data indicator cache system located in the SaaS customer relationship management system, then extracting the target SaaS business data field related to the SaaS business in the indicator acquisition request and saving it in a local database; through a preset indicator calculation program and based on preset data indicator calculation rules, performing corresponding data indicator calculation operations on the target SaaS business data field saved in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and updating the current data indicator calculation frequency; updating the target SaaS business data indicator to the preset data indicator cache system, and saving the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation according to the data indicator calculation frequency. It can be seen that this application obtains real-time target SaaS business data fields and calculates the target SaaS business data fields to obtain corresponding target SaaS business data indicators, and then updates the target SaaS business data indicators to the preset data indicator cache system, thereby realizing real-time update of the SaaS business data indicator cache in the preset data indicator cache system to provide users with accurate SaaS business data indicators, thereby improving user experience satisfaction, and using the data indicator timing calculator to further predict and determine the trigger time of the next data indicator calculation operation based on the obtained data indicator calculation frequency, and calling the preset indicator calculation program in advance to prepare for the calculation of the next data indicator, thereby reducing calculation time. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0034] Figure 1 This is a flow chart of a method for obtaining data indicators in a SaaS business scenario disclosed in this application;

[0035] Figure 2 This is a flowchart of a method for obtaining data indicators in a specific SaaS business scenario disclosed in this application;

[0036] Figure 3A schematic diagram of a SaaS customer relationship management system disclosed in this application;

[0037] Figure 4 This is a structural diagram of a data indicator acquisition device in a SaaS business scenario disclosed in this application;

[0038] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0040] Currently, the services for obtaining data indicators in SaaS scenarios take a long time to obtain due to the complexity of data indicator calculations and the multiple calculation scenarios. To solve the problem of long-term data indicator acquisition, a cache system is generally introduced. However, the untimely update of data indicators cached in the cache system will lead to inaccurate data indicator values, which may cause calculation errors in upstream systems and affect the user experience.

[0041] To this end, the present invention provides a data indicator acquisition solution in a SaaS business scenario, which can enable users to obtain data indicators accurately and quickly, thereby improving user experience.

[0042] Reference Figure 1 As shown, an embodiment of the present invention discloses a method for obtaining data indicators in a SaaS business scenario, including:

[0043] Step S11: Obtain an indicator acquisition request triggered by a user terminal in a SaaS business scenario.

[0044] In this embodiment, first, SaaS is a model for providing software through the Internet, providing users with a leased Web-based software service without the need for users to purchase software. Therefore, in the SaaS business scenario, an indicator acquisition request triggered by the user terminal is obtained in advance. Then, after obtaining the indicator acquisition request triggered by the user terminal in the SaaS business scenario, it also includes: obtaining the indicator acquisition request triggered by the user terminal in the SaaS business scenario, and if it is detected that a SaaS business data indicator corresponding to the indicator acquisition request exists in the preset data indicator cache system located in the SaaS customer relationship management system, the SaaS business data indicator is fed back to the user terminal. It can be understood that after obtaining the indicator acquisition request sent by the user through the user terminal to request certain data, the indicator acquisition request is parsed, and if it is detected that a SaaS business data indicator corresponding to the indicator acquisition request exists in the preset data indicator cache system, the SaaS business data indicator is directly fed back to the user terminal so that the user can obtain the data.

[0045] Step S12: If it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system, the target SaaS business data field related to the SaaS business in the indicator acquisition request is extracted and saved in the local database.

[0046] In this embodiment, if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system, then the business operation of calculating and updating the SaaS business data indicator is performed. It is necessary to extract the target SaaS business data field related to the SaaS business in the indicator acquisition request and save it in the local database so that the target SaaS business data field can be used to perform subsequent calculations of the target SaaS business data indicator.

[0047] Step S13: Through the preset indicator calculation program and based on the preset data indicator calculation rules, the corresponding data indicator calculation operation is performed on the target SaaS business data field stored in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and update the current data indicator calculation frequency.

[0048] In this embodiment, before performing the corresponding data indicator calculation operation on the target SaaS business data field stored in the local database using a preset indicator calculation program and based on preset data indicator calculation rules, the method further includes: constructing a calculation rule for calculating the data indicator based on the correspondence between the target SaaS business data field and the target SaaS business data indicator to obtain the preset data indicator calculation rule. It is understood that the calculation rule for calculating the data indicator is constructed based on the correspondence between the target SaaS business data field and the target SaaS business data indicator and the salt value so as to convert the target SaaS business data field into the target SaaS business data indicator. For example, the target SaaS business data field located in the database is retrieved and concatenated using the concat() function to form the business field to be calculated. Then, the business field to be calculated is arithmetic calculated using the preset indicator calculation program and based on the above-mentioned data indicator calculation rules to obtain the target SaaS business data indicator corresponding to the target SaaS business data field, and update the current data indicator calculation frequency.

[0049] Step S14: Update the target SaaS business data indicator to the preset data indicator cache system, and save the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator can determine the trigger time of the next data indicator calculation operation based on the data indicator calculation frequency.

[0050] In this embodiment, after obtaining the calculated target SaaS business data indicator, the target SaaS business data indicator is updated to the preset data indicator cache system, so that the preset data indicator cache system returns the target SaaS business data indicator to the user terminal, and also saves the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator can predict the trigger time of the next data indicator calculation operation based on the calculation of the SaaS business data field to obtain the updated SaaS business data indicator frequency, and then call the preset indicator calculation program in advance to prepare to calculate and update the SaaS business data indicator, thereby reducing the calculation waiting time.

[0051] It can be seen that the present application discloses a data indicator acquisition method in a SaaS business scenario, including: obtaining an indicator acquisition request triggered by a user terminal in a SaaS business scenario; if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist on the preset data indicator cache system located in the SaaS customer relationship management system, then extracting the target SaaS business data field related to the SaaS business in the indicator acquisition request and saving it in a local database; through a preset indicator calculation program and based on preset data indicator calculation rules, performing corresponding data indicator calculation operations on the target SaaS business data field saved in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and updating the current data indicator calculation frequency; updating the target SaaS business data indicator to the preset data indicator cache system, and saving the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation according to the data indicator calculation frequency. It can be seen that this application obtains real-time target SaaS business data fields and calculates the target SaaS business data fields to obtain corresponding target SaaS business data indicators, and then updates the target SaaS business data indicators to the preset data indicator cache system, thereby realizing real-time update of the SaaS business data indicator cache in the preset data indicator cache system to provide users with accurate SaaS business data indicators, thereby improving user experience satisfaction, and using the data indicator timing calculator to further predict and determine the trigger time of the next data indicator calculation operation based on the obtained data indicator calculation frequency, and calling the preset indicator calculation program in advance to prepare for the calculation of the next data indicator, thereby reducing calculation time.

[0052] Reference Figure 2 As shown, the embodiment of the present invention discloses a method for obtaining data indicators in a specific SaaS business scenario. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically:

[0053] Step S21: Obtain an indicator acquisition request triggered by a user terminal in a SaaS business scenario.

[0054] Step S22: If it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system, the target SaaS business data field related to the SaaS business in the indicator acquisition request is extracted and saved in the local database.

[0055] For more specific processing procedures in the above steps S21 and S22, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be repeated here.

[0056] Step S23: Construct a reference relationship between the SaaS business data field and the SaaS business data indicator to obtain a corresponding relationship between the target SaaS business data field and the target SaaS business data indicator.

[0057] In this embodiment, before constructing a reference relationship between a SaaS business data field and a SaaS business data indicator to obtain a corresponding relationship between the target SaaS business data field and the target SaaS business data indicator, it also includes: determining the SaaS business data field to be updated in the local database; updating the SaaS business data field to be updated to obtain an updated field; based on the reference relationship between the SaaS business data field and the SaaS business data indicator, determining the original SaaS business data indicator corresponding to the updated field from a preset data indicator cache system located in the SaaS customer relationship management system, deleting the original SaaS business data indicator from the preset data indicator cache system, and triggering a message for calculating the target SaaS business data indicator, so as to send the message for starting the calculation of the target SaaS business data indicator to the indicator calculation message queue for storage. It can be understood that the SaaS business data field to be updated is first determined based on the target SaaS business data field extracted from the indicator acquisition request sent from the user terminal, and then the SaaS business data field to be updated is updated to obtain the target SaaS business data field. That is to say, the SaaS business data field to be updated has expired, and accordingly, the corresponding original SaaS business data indicator stored in the preset data indicator cache system is in an invalid state, and it needs to be deleted from the preset data indicator cache system, and the target SaaS business data indicator needs to be recalculated.

[0058] Step S24: Based on the correspondence between the target SaaS business data field and the target SaaS business data indicator, a calculation rule for calculating the data indicator is constructed to obtain a preset data indicator calculation rule.

[0059] In this embodiment, a calculation rule for calculating the data indicator is constructed based on the correspondence between the target SaaS business data field and the target SaaS business data indicator and the salt value, wherein adding the salt value when calculating the target SaaS business data field can protect the security of the calculated target SaaS business data indicator.

[0060] Step S25: Through the preset indicator calculation program and based on the preset data indicator calculation rules, the corresponding data indicator calculation operation is performed on the target SaaS business data field stored in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and update the current data indicator calculation frequency.

[0061] In this embodiment, a message for initiating the calculation of the target SaaS business data indicator is first obtained from the indicator calculation message queue; a corresponding data indicator calculation operation is performed on the target SaaS business data field stored in the local database based on a preset data indicator calculation rule through a preset indicator calculation program to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario. It is understandable that the message for calculating the target SaaS business data indicator in the indicator calculation message queue triggers the preset indicator calculation program's calculation operation on the target SaaS business data indicator, and the preset indicator calculation program requests the target SaaS business data field from the local database and performs a corresponding data indicator calculation operation on the target SaaS business data field to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario.

[0062] Step S26: Update the target SaaS business data indicator to the preset data indicator cache system, and save the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator can determine the trigger time of the next data indicator calculation operation based on the data indicator calculation frequency.

[0063] In this embodiment, refer to Figure 3As shown in the SaaS customer relationship management system, when an external system requests customer retention data from the SaaS customer relationship management system, a query instruction is issued to the indicator cache system in the SaaS customer relationship management system. If the customer retention request data is found, the customer retention request data is directly returned to the external system. If the request data cannot be found, the system performs the following operations to obtain the request data: First, the field information of the customer retention will be saved in the built-in database of the SaaS customer relationship management system, so when the customer retention data indicator acquisition request sent by the external system is obtained, the customer retention data indicator request will be extracted. The customer retention data field is updated, and the updated customer retention data field is updated to the database. Then, the field and indicator reference relationship system in the SaaS customer relationship management system receives the database table field update message through the subscribed database table field update action. Then, the original customer retention data indicator is further determined through the pre-defined reference relationship between the customer retention data indicator and the customer retention data field saved by the indicator reference relationship system, and the original customer retention data indicator is deleted from the indicator cache system. For example, the pre-defined data indicator Index references data field a. When data field a is modified externally and stored in the database. The field and indicator reference relationship system subscribes to the database table field update message and finds that data field a has been modified. Then, through the internal query of the field and indicator reference relationship system, it finds that the data indicator Index references field a. The cache of the data indicator Index in the indicator cache system is deleted, and at the same time, the message to calculate the data indicator Index 1 is sent to the indicator calculation message queue. The data indicator calculation system predefines a formula for calculating customer retention data indicators, for example: [customer retention data indicator index] = [data field a] + 1 + [various complex time-consuming calculations]. Then, the data indicator calculation system subscribes to messages from the indicator calculation message queue, obtains data field a from the database, and performs indicator calculation to obtain data indicator Index 1. This is then updated to the indicator cache system, and the frequency of data indicator calculation is fed back to the indicator timing calculator. This allows the indicator timing calculator to intelligently calculate the next data indicator update time based on the frequency, call the data indicator calculation system in advance to perform indicator calculations, and update the data indicator cache. The indicator timing calculator has a built-in time for the customer retention indicator timing calculation, and updates it in real time based on the frequency of the data indicator calculation. The data indicator calculation system calculates the customer retention indicator and updates it to the indicator cache system.

[0064] It can be seen from this that this application directly calculates the SaaS business data field in the indicator acquisition request in the case where the SaaS business data indicator cannot be found in the preset data indicator cache system, avoiding the pressure on the data indicator cache system caused by the inability to find the corresponding SaaS business data indicator, making the probability of cache penetration very low, and improving the speed of obtaining SaaS business data indicators. In addition, through the continuous updating of the SaaS business data field, the update speed and accuracy of the preset data indicator cache system are also improved, so that the accuracy of SaaS business data indicators is improved. In addition, this application can dynamically expand the capacity of each node in the system according to the size of the customer volume, improving the response speed when the data volume increases in the SaaS scenario.

[0065] Reference Figure 4 As shown, the embodiment of the present application discloses a data indicator acquisition device in a SaaS business scenario, including:

[0066] The request acquisition module 11 is used to obtain the indicator acquisition request triggered by the user terminal in the SaaS business scenario;

[0067] The field extraction module 12 is configured to extract target SaaS business data fields related to the SaaS business in the indicator acquisition request and store them in a local database if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system in the SaaS customer relationship management system;

[0068] The indicator calculation module 13 is configured to perform corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules, so as to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and update the current data indicator calculation frequency;

[0069] The indicator update module 14 is used to update the target SaaS business data indicator to the preset data indicator cache system, and save the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator can determine the trigger time of the next data indicator calculation operation based on the data indicator calculation frequency.

[0070] It can be seen that the present application discloses a data indicator acquisition method in a SaaS business scenario, including: obtaining an indicator acquisition request triggered by a user terminal in a SaaS business scenario; if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist on the preset data indicator cache system located in the SaaS customer relationship management system, then extracting the target SaaS business data field related to the SaaS business in the indicator acquisition request and saving it in a local database; through a preset indicator calculation program and based on preset data indicator calculation rules, performing corresponding data indicator calculation operations on the target SaaS business data field saved in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and updating the current data indicator calculation frequency; updating the target SaaS business data indicator to the preset data indicator cache system, and saving the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation according to the data indicator calculation frequency. It can be seen that this application obtains real-time target SaaS business data fields and calculates the target SaaS business data fields to obtain corresponding target SaaS business data indicators, and then updates the target SaaS business data indicators to the preset data indicator cache system, thereby realizing real-time update of the SaaS business data indicator cache in the preset data indicator cache system to provide users with accurate SaaS business data indicators, thereby improving user experience satisfaction, and using the data indicator timing calculator to further predict and determine the trigger time of the next data indicator calculation operation based on the obtained data indicator calculation frequency, and calling the preset indicator calculation program in advance to prepare for the calculation of the next data indicator, thereby reducing calculation time.

[0071] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of application of the present application.

[0072] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data indicator acquisition method in the SaaS business scenario disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0073] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0074] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0075] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of implementing the data indicator acquisition method in the SaaS business scenario executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs capable of completing other specific tasks.

[0076] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when executed by a processor, the computer program implements the aforementioned method for obtaining data indicators in a SaaS business scenario. The specific steps of this method can be referred to the corresponding content disclosed in the aforementioned embodiments and will not be repeated here.

[0077] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0078] Professionals can also further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0079] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0080] The above is a detailed introduction to the data indicator acquisition method, device, equipment, and medium in a SaaS business scenario provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for obtaining data indicators in a SaaS business scenario, characterized in that: include: Get the indicator acquisition request triggered by the user terminal in the SaaS business scenario; If it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system in the SaaS customer relationship management system, extract the target SaaS business data field related to the SaaS business in the indicator acquisition request and save it in the local database; By means of a preset indicator calculation program and based on preset data indicator calculation rules, a corresponding data indicator calculation operation is performed on the target SaaS business data field stored in the local database to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and update the current data indicator calculation frequency; The target SaaS business data indicator is updated to the preset data indicator cache system, and the current data indicator calculation frequency is saved to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation according to the data indicator calculation frequency; The method of performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and updating the current data indicator calculation frequency, includes: Use the concat() function to concatenate the target SaaS business data fields in the local database as the business fields to be calculated, perform arithmetic calculations on the business fields to be calculated through a preset indicator calculation program and based on preset data indicator calculation rules to obtain target SaaS business data indicators corresponding to the target SaaS business data fields, and update the current data indicator calculation frequency; Before performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules, the method further includes: Based on the correspondence between the target SaaS business data field and the target SaaS business data indicator and the salt value, a calculation rule for calculating the data indicator is constructed to obtain a preset data indicator calculation rule.

2. The method for obtaining data indicators in a SaaS business scenario according to claim 1 is characterized in that: After obtaining the indicator acquisition request triggered by the user terminal in the SaaS business scenario, the method further includes: Obtain an indicator acquisition request triggered by a user terminal in a SaaS business scenario. If it is detected that a SaaS business data indicator corresponding to the indicator acquisition request exists in a preset data indicator cache system located in the SaaS customer relationship management system, the SaaS business data indicator is fed back to the user terminal.

3. The method for obtaining data indicators in a SaaS business scenario according to claim 2 is characterized in that: Before constructing a calculation rule for calculating the data indicator based on the correspondence between the target SaaS business data field and the target SaaS business data indicator to obtain the preset data indicator calculation rule, the method further includes: A reference relationship between the SaaS business data field and the SaaS business data indicator is constructed to obtain a corresponding relationship between the target SaaS business data field and the target SaaS business data indicator.

4. The method for obtaining data indicators in a SaaS business scenario according to claim 3 is characterized in that: Before performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database by a preset indicator calculation program and based on preset data indicator calculation rules to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, the method further includes: Determine the SaaS business data field to be updated in the local database; Updating the SaaS business data field to be updated to obtain an updated field; Based on the reference relationship between the SaaS business data field and the SaaS business data indicator, the original SaaS business data indicator corresponding to the updated field is determined from the preset data indicator cache system located in the SaaS customer relationship management system, and the original SaaS business data indicator is deleted from the preset data indicator cache system, and a message for calculating the target SaaS business data indicator is triggered, so as to send the message for starting the calculation of the target SaaS business data indicator to the indicator calculation message queue for storage.

5. The method for obtaining data indicators in a SaaS business scenario according to claim 4 is characterized in that: The method of performing corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario includes: Obtaining a message in the indicator calculation message queue for starting calculation of the target SaaS business data indicator; Through a preset indicator calculation program and based on preset data indicator calculation rules, corresponding data indicator calculation operations are performed on the target SaaS business data field stored in the local database to obtain the target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario.

6. A data indicator acquisition device in a SaaS business scenario, characterized in that: include: The request acquisition module is used to obtain the indicator acquisition request triggered by the user terminal in the SaaS business scenario; A field extraction module is used to extract a target SaaS business data field related to the SaaS business in the indicator acquisition request and save it in a local database if it is detected that the SaaS business data indicator corresponding to the indicator acquisition request does not exist in the preset data indicator cache system located in the SaaS customer relationship management system; An indicator calculation module, used to perform corresponding data indicator calculation operations on the target SaaS business data field stored in the local database through a preset indicator calculation program and based on preset data indicator calculation rules, so as to obtain a target SaaS business data indicator corresponding to the target SaaS business data field in the SaaS business scenario, and update the current data indicator calculation frequency; An indicator updating module, used for updating the target SaaS business data indicator to the preset data indicator cache system, and saving the current data indicator calculation frequency to the data indicator timing calculator located in the SaaS customer relationship management system, so that the data indicator timing calculator determines the trigger time of the next data indicator calculation operation according to the data indicator calculation frequency; The indicator calculation module is specifically used to use the concat() function to concatenate the target SaaS business data fields located in the local database as the business fields to be calculated, perform arithmetic calculations on the business fields to be calculated through a preset indicator calculation program and based on preset data indicator calculation rules to obtain target SaaS business data indicators corresponding to the target SaaS business data fields, and update the current data indicator calculation frequency; The data indicator acquisition device in the SaaS business scenario is also used to construct a calculation rule for calculating the data indicator based on the correspondence between the target SaaS business data field and the target SaaS business data indicator and the salt value to obtain a preset data indicator calculation rule.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the method for obtaining data indicators in a SaaS business scenario as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the method for obtaining data indicators in a SaaS business scenario as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Index processing method and device of rail transit energy management system and storage medium

    CN110163492A