Report downloading method and device, electronic equipment and storage medium

By determining and sorting the task weights and sorting them in the report download system based on the report type, user organization level and waiting time, the problem of lack of flexibility in the execution order of report download tasks in the existing technology is solved, and the system resource utilization rate and user satisfaction are improved.

CN119652881APending Publication Date: 2025-03-18PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411620626.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, report download tasks are executed in the order of the time when requests are initiated, which lacks flexibility and cannot meet the needs of different users, reducing the utilization rate of system resources.

Method used

By generating tasks to be downloaded, task information is obtained regularly, including report type, user organization level and waiting time, the task weight is determined based on this information, and tasks are executed in turn after sorting according to the weight.

Benefits of technology

It realizes flexible task sorting, meets the needs of different users, improves system resource utilization, and reduces user waiting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652881A_ABST
    Figure CN119652881A_ABST
Patent Text Reader

Abstract

The invention discloses a report downloading method and device, electronic equipment and a storage medium. The method comprises the following steps: generating a corresponding task to be downloaded according to a report downloading request initiated by a user, and adding the task to be downloaded into a task list to be downloaded; regularly acquiring information of each to-be-downloaded task in the to-be-downloaded task list, wherein the information of the to-be-downloaded task comprises a report type of a to-be-downloaded report, a mechanism level of the user and waiting duration of the to-be-downloaded task; according to the information of each to-be-downloaded task, determining the weight of each to-be-downloaded task; sorting the tasks to be downloaded according to the weights of the tasks to be downloaded; and sequentially executing the to-be-downloaded tasks according to a sorting result. According to the method and the device, the to-be-downloaded tasks can be flexibly sequenced, the requirements of different users are met, and the utilization rate of system resources is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a report downloading method, device, electronic device and storage medium. Background Art

[0002] In industries such as insurance, a large amount of report data is needed in daily management and operation activities to support business decisions. Therefore, there are a large number of report download scenarios in the information technology software of each company.

[0003] In the related technology, asynchronous download is usually used to download reports. Specifically, after the user initiates a report download request, the corresponding task to be downloaded is generated and added to the task list to be downloaded. The system background scans the task list to be downloaded through automatic task timing, executes the tasks to be downloaded in sequence according to the time sequence of the request initiation, and stores the downloaded report on the background server. The user can directly download the report from the server after a while. However, in the above method, the tasks to be downloaded are simply executed in the time sequence of the request initiation, which lacks flexibility, cannot meet the needs of different users, and reduces the utilization rate of system resources. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a report downloading method, device, electronic device and storage medium to solve the problem in the related art that the downloading tasks are simply executed in the time sequence of the initiation request, which lacks flexibility, cannot meet the needs of different users, and reduces the utilization rate of system resources.

[0005] To achieve the above objectives, the present application embodiment adopts the following technical solutions: In a first aspect, an embodiment of the present application provides a report downloading method, comprising: generating a corresponding task to be downloaded according to a report download request initiated by a user, and adding the task to be downloaded to a list of tasks to be downloaded; regularly obtaining information about each task to be downloaded in the list of tasks to be downloaded, wherein the information about the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user, and the waiting time of the task to be downloaded; determining the weight of each task to be downloaded according to the information of each task to be downloaded; sorting each task to be downloaded according to the weight of each task to be downloaded; and executing each task to be downloaded in sequence according to the sorting result.

[0006] In a second aspect, an embodiment of the present application provides a report downloading device, comprising: a generation module, used to generate a corresponding task to be downloaded according to a report download request initiated by a user, and add the task to be downloaded to a list of tasks to be downloaded; an acquisition module, used to periodically obtain information of each task to be downloaded in the list of tasks to be downloaded, wherein the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded; a determination module, used to determine the weight of each task to be downloaded according to the information of each task to be downloaded; a sorting module, used to sort each task to be downloaded according to its weight; and an execution module, used to execute each task to be downloaded in sequence according to the sorting result.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the embodiment of the first aspect of the present application, or implements the steps of the method described in the embodiment of the second aspect of the present application.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the embodiment of the first aspect of the present application are implemented.

[0009] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: When downloading a report, the embodiment of the present application generates a corresponding task to be downloaded according to a report download request initiated by a user, and adds the task to be downloaded to a list of tasks to be downloaded, and periodically obtains information about each task to be downloaded in the list of tasks to be downloaded, the information about the task to be downloaded includes the report type of the report to be downloaded, the user's organizational level, and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, and sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account that the importance of reports of different report types is different, the level of the user who initiates the download request is different, and the tolerable waiting time is different, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level, and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A flowchart of a report downloading method provided for an embodiment of the present application; Figure 2 A flowchart of a report downloading method provided for another embodiment of the present application; Figure 3 A schematic diagram of the relationship between the total weight of the tasks to be downloaded and the waiting time provided in one embodiment of the present application; Figure 4 A structural diagram of a report downloading device provided for an embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0011] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0012] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in this application represents at least one of the connected objects, and the character " / " generally represents that the front and back associated objects are in an "or" relationship. It should be noted that the data involved in this application are all obtained on the premise of obtaining user authorization.

[0013] In the insurance and other industries, daily management and operation activities require a large amount of report data to support business decisions, so there are a large number of report download scenarios in the information technology software of various companies. These report download functions have the following characteristics: 1) There are many types, with different levels of importance. Taking the report type dimension as an example, there are sales staff turnover lists, personal performance, team performance, insurance policy status, premium status, etc. Taking the organizational level dimension of the report user as an example, it can be divided into head office, provincial company, municipal company, branch company, and even various sales teams. There are hundreds of report types.

[0014] 2) High real-time requirements, frequent updates, large report data volume, and high complexity. As a capital-intensive and labor-intensive industry, the insurance industry often involves reports with data volumes in the millions. The data is also relatively sensitive and has certain confidentiality requirements. It often needs to be downloaded as an offline document for viewing.

[0015] 3) The report query logic is complex and the query efficiency is low. Because it can be viewed in multiple dimensions, the report also presents problems such as too many fields, complex download logic, and low query efficiency.

[0016] In order to meet the above requirements, in the related art, the report downloading method is usually adopted. Specifically, after the user initiates the report download request through a unified report download portal, the corresponding task to be downloaded is generated and added to the task list to be downloaded. The system background scans the task list to be downloaded through the automatic task timing, executes the tasks to be downloaded in sequence according to the time sequence of initiating the request, and stores the downloaded report on the background server. The user can directly download the report from the server after a while. However, with the increasing number of report types, the above method simply executes the tasks to be downloaded in the order of the time of initiating the request, which lacks flexibility, cannot meet the needs of different users in complex usage scenarios, and reduces the utilization rate of system resources. In addition, the increase in tasks to be processed brings unpredictable waiting time. After the user initiates the task download request, he does not know where his download task is ranked and when the download can be completed. The long waiting time reduces the user's satisfaction. To this end, the present application proposes a report downloading method, device, electronic device and storage medium to solve the problem that the tasks to be downloaded are simply executed in the order of the time of initiating the request in the related art, which lacks flexibility, cannot meet the needs of different users, and reduces the utilization rate of system resources and user satisfaction.

[0017] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0018] Figure 1 A flow chart of a report downloading method provided by an embodiment of the present application. Figure 1 As shown, the report downloading method of the embodiment of the present application may specifically include the following steps: S101, generating a corresponding task to be downloaded according to a report download request initiated by a user, and adding the task to be downloaded to a list of tasks to be downloaded.

[0019] In an embodiment of the present application, the execution subject of the report downloading method of the embodiment of the present application is a report downloading device, which can be set in an electronic device. The electronic device can be a terminal device or a server. Among them, the terminal device can be a mobile phone, a tablet computer, a desktop computer, a portable notebook, a vehicle-mounted device, etc.; the server can be an independent server or a server cluster composed of multiple servers. The report downloading method of the embodiment of the present application, based on the asynchronous downloading scheme of the related art, provides a new asynchronous downloading method based on the priority scheduling algorithm.

[0020] The user is the requester of the report download. The user initiates a report download request through the unified report download entry on the page. The download request includes at least the name of the report to be downloaded, etc. The report download device generates a corresponding task to be downloaded according to the report download request, and adds the task to be downloaded to the list of tasks to be downloaded in the database, specifically, it can be added to the end of the list of tasks to be downloaded. The status indicates that this is a task to be processed. The list of tasks to be downloaded includes all tasks to be downloaded for which the download request has been initiated but not yet executed.

[0021] S102, periodically obtaining information of each task to be downloaded in the task list to be downloaded, the information of the task to be downloaded including the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded.

[0022] In an embodiment of the present application, the time for regularly obtaining the information of each task to be downloaded in the task list to be downloaded can be pre-set, for example, obtaining the information of each task to be downloaded in the task list to be downloaded once every minute, or obtaining the information of each task to be downloaded in the task list to be downloaded once each time a task to be downloaded is executed.

[0023] Taking into account that reports of different report types have different importance, users who initiate download requests have different levels, and can tolerate different waiting times, the information obtained about the task to be downloaded may specifically include but is not limited to the report type to be downloaded, the user's organizational level, and the waiting time for the task to be downloaded.

[0024] The report type of the report to be downloaded can be determined based on the name of the report to be downloaded. Specifically, the report types corresponding to the names or name keywords of different reports to be downloaded can be manually pre-defined, and the corresponding report type can be found based on the name of the current report to be downloaded. The report type may include but is not limited to the sales staff turnover list, personal performance, team performance, policy status, premium status, etc. For example, if the name of the report to be downloaded is personal performance for the first quarter of 2024, the report type of the report to be downloaded is determined to be personal performance.

[0025] The user's organizational level can be determined based on the user's authentication identity information on the system. The user's organizational level may include but is not limited to the head office, provincial company, municipal company, branch company, and even various sales teams. For example, if the user's authentication identity information on the system is **Head office-**Business department, the user's organizational level is determined to be the head office.

[0026] The waiting time for the task to be downloaded is the difference between the current time and the time when the report download request corresponding to the task to be downloaded was initiated.

[0027] As can be seen from the above, for a task to be downloaded, its corresponding report type and organization level are fixed and unchanged, belonging to fixed information, and its corresponding waiting time does not change before execution, belonging to dynamic information. By periodically obtaining the information of each task to be downloaded in the task list to be downloaded, and sorting each task to be downloaded in the task list to be downloaded according to the information of each task to be downloaded, wherein the tasks to be downloaded in the task list to be downloaded are dynamically changing, and the waiting time in the information of the tasks to be downloaded is also dynamically changing, it is possible to achieve regular dynamic sorting of each task to be downloaded in the task list to be downloaded.

[0028] S103: Determine the weight of each task to be downloaded according to the information of each task to be downloaded.

[0029] In an embodiment of the present application, the download priority of the task to be downloaded can be determined based on the information of the task to be downloaded. This can be achieved by calculating the weight of the task to be downloaded. The larger the weight, the higher the download priority.

[0030] S104: sorting the tasks to be downloaded according to their weights.

[0031] In the embodiment of the present application, since the greater the weight of the task to be downloaded, the higher the download priority, the greater the weight of the task to be downloaded, the higher the order in the sorting result. For example, the weight of task A is 100, the weight of task B is 50, and the weight of task C is 80, then the sorting result after sorting task A, task B and task C is: task A, task C, task B.

[0032] S105, executing each task to be downloaded in sequence according to the sorting result.

[0033] In the embodiment of the present application, the tasks to be downloaded that are ranked higher in the sorting result are executed first. After each task to be downloaded is completed, it is deleted from the list of tasks to be downloaded, and the next task to be downloaded is executed.

[0034] In summary, when downloading a report, the report downloading method of the embodiment of the present application generates a corresponding task to be downloaded according to the report download request initiated by the user, and adds the task to be downloaded to the list of tasks to be downloaded, and regularly obtains the information of each task to be downloaded in the list of tasks to be downloaded, the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, and sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account the different importance of reports of different report types, the different levels of users who initiate download requests, and the different tolerable waiting times, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources.

[0035] Figure 2 A flow chart of a report downloading method provided in another embodiment of the present application. Figure 2 As shown, in Figure 1 Based on the illustrated embodiment, the report downloading method of the embodiment of the present application may specifically include the following steps: S201: Generate a corresponding task to be downloaded according to a report download request initiated by a user, and add the task to be downloaded to a list of tasks to be downloaded.

[0036] S202, periodically obtaining information of each task to be downloaded in the task list to be downloaded, the information of the task to be downloaded including the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded.

[0037] In the embodiment of the present application, the specific process of steps S201-S202 can refer to the relevant description of steps S101-S102 in the above embodiment, which will not be repeated here.

[0038] Figure 1 In the illustrated embodiment, step S103 "determining the weight of each task to be downloaded according to the information of each task to be downloaded" may specifically include the following steps S203-S206: S203: According to the report type, obtain a report type weight corresponding to the report type.

[0039] In the embodiment of the present application, the report type weight typeWeight corresponding to the report type can be obtained according to the obtained report type.

[0040] Specifically, since different types of reports have different importance, different business values, and different emergency situations, corresponding weights, i.e., report type weights, can be set for different report types, and the value range of the report type weights can be [1, 99]. That is, a report type weight correspondence relationship can be generated in advance, and the report type weight correspondence relationship includes a correspondence relationship between multiple report types and multiple report type weights, and one report type corresponds to one report type weight. Among them, the greater the importance of the report corresponding to the report type, the greater the report type weight.

[0041] According to the correspondence between the report type and the pre-generated report type weight, the report type weight corresponding to the report type is obtained.

[0042] S204, according to the institutional level, obtaining the institutional level weight corresponding to the institutional level.

[0043] In the embodiment of the present application, the organizational level weight comLevelWeight corresponding to the organizational level can be obtained according to the obtained organizational level.

[0044] Specifically, in actual scenarios, the users who download reports are mostly management personnel at various levels. Daily management decisions require support from various report data. The higher the level of management positions, the higher the real-time requirements for various reports. Therefore, corresponding weights, namely, institutional level weights, can be set for different organizational levels. That is, the corresponding relationship of organizational level weights can be generated in advance. The corresponding relationship of organizational level weights includes the corresponding relationship between multiple organizational levels and multiple organizational level weights, and one organizational level corresponds to one organizational level weight. Among them, the higher the level corresponding to the organizational level, the greater the organizational level weight. For example, the organizational level of the user is the head office, which has the highest priority, and the organizational level weight can be set to 100. The organizational level of the user is the provincial company, which has the second highest priority, and the organizational level weight can be set to 50. The organizational level of the user is the branch company, which has the lowest priority, and the organizational level weight can be set to 5.

[0045] According to the correspondence between the currently acquired institutional level and the pre-generated institutional level weight, the institutional level weight corresponding to the institutional level is obtained.

[0046] S205: According to the waiting time, obtain a waiting time weight corresponding to the waiting time.

[0047] In the embodiment of the present application, a waiting time weight waitingWeight corresponding to the waiting time can be obtained according to the obtained waiting time. Waiting time weight waitingWeight=waiting time waitingtime*waiting time factor timeFactor.

[0048] In some embodiments, the waiting time weight can be determined by the following steps: if the waiting time is less than a preset waiting time threshold, the waiting time weight corresponding to the waiting time is determined based on the waiting time and the preset first waiting time factor timeFactor1; if the waiting time is equal to or greater than the waiting time threshold, the waiting time weight corresponding to the waiting time is determined based on the waiting time and the preset second waiting time factor timeFactor2, and the second waiting time factor timeFactor2 is greater than the first waiting time factor timeFactor1.

[0049] Specifically, by analyzing the download processing time of more than 20 existing reports with thousands of downloads, we found that based on the existing system resources, in most cases, 1.5 hours (h) is a performance bottleneck. That is, when the waiting time is less than 1.5h, most reports can be processed in the order in which the download requests are initiated. When the waiting time exceeds 1.5h, some reports with a particularly large number of downloads and particularly complex query logic are difficult to process quickly, and the processing time is infinitely extended. These reports are often relatively important types of reports. At this time, if we continue to process them in a linear order, on the one hand, these complex tasks will occupy system resources and cause other tasks to not be processed in a timely manner. On the other hand, users' needs will not be met for a long time and they will be unbearable.

[0050] Therefore, the concept of a waiting time threshold is proposed. When the waiting time is less than the waiting time threshold, the report type weight and the institutional level weight are used as the main weights, focusing on the principle of determining the download order according to the report type and institutional level. When the waiting time is equal to or greater than the waiting time threshold, it is necessary to expedite the tasks with too long waiting times, quickly increase the waiting time weight, and mobilize system resources to give priority to tasks whose waiting time has exceeded the waiting time threshold, focusing on the principle of determining the download order according to the waiting time. In actual scenarios, the waiting time threshold can be set to 1.5h. According to the above scheme, all types of report download tasks can be processed in about 1.5h. Users have a psychological expectation of the waiting time, which can greatly improve their satisfaction with the system.

[0051] Based on this, the waiting time threshold can be set to 1.5h. When the waiting time is less than 1.5h, the waiting time factor timeFactor is taken as the first waiting time factor timeFactor1, such as 0.01. When the waiting time is equal to or greater than 1.5h, the waiting time factor timeFactor is taken as the second waiting time factor timeFactor2, such as 2.

[0052] S206, determining the weight of the task to be downloaded according to the corresponding report type weight, the corresponding organization level weight and the corresponding waiting time weight.

[0053] In the embodiment of the present application, in the actual production environment, the system background running time has busy hours and idle hours. Generally speaking, the system is busy during the working hours of 08:00-19:00 and during important holidays, and other times are idle hours. Processing the query and download work of complex reports during busy hours will add more performance pressure to the software system that is already running at a large level. The waiting time when downloading reports during busy hours will also be too long, resulting in a poor user experience. Therefore, if these complex logical queries can be performed during idle hours, there will be a two-pronged effect, which not only reduces the system operation pressure, but also increases the user's system experience. Specifically, because the report types are distinguished by type, which report tasks are more complex and time-consuming tasks can be marked in the scheduling algorithm. For such tasks, try to arrange them to be processed during idle hours. If it happens to be in the busy hours of the system, the algorithm can also cope with it. Once it is found that such complex tasks exceed the waiting time threshold, the system can flexibly mobilize more resources to handle these tasks as soon as possible, or directly kill the report download process and reschedule it to idle hours, so that the system resources can be fully utilized to the maximum extent and the efficiency can be maximized.

[0054] Based on the above analysis, we can calculate the sum of the report type weight, the organization level weight, and the waiting time weight corresponding to the task to be downloaded, and get the weight (i.e., total weight) finalWeight of the task to be downloaded. The corresponding formula is as follows: finalWeight = typeWeight+ comLevelWeight+ waitingtime*timeFactor.

[0055] Among them, typeWeight is the report type weight, and the value range can be: 1-99. comLevelWeight is the organization level weight, and the value range can be: head office-100, provincial company-50, branch company-5. Waiting time factor timeFactor, the value range can be: when waitingtime is less than the waiting time threshold of 1.5h, timeFactor takes a value of 0.01, when waitingtime is equal to or greater than the waiting time threshold of 1.5h, timeFactor takes a value of 2.

[0056] For example, the total weight of the download task with a report type weight of 90 at different waiting times and organizational levels can be shown in Table 1 below (in order to better reflect the change in the total weight of the waiting time before and after the waiting time threshold of 1.5h, the case where the waiting time factor is 0.01 when the waiting time is equal to 1.5h is also listed, see the 5th column in Table 1): Table 1 The total weight of the download task with a report type weight of 90 at different waiting times and institutional levels

[0057] Among them, except for the table header, the first line is the waiting time, the first column is the organization level, and the rest is the total weight of the download task. For example, the total weight of the download task with a report type weight of 90 when the waiting time is 0 and the organization level is the head office = 90+100+0*0.01=190.

[0058] Based on Table 1, the relationship between the total weight of the task to be downloaded and the waiting time is shown in the following figure: Figure 3 As shown by Figure 3 It can be clearly seen that when the waiting time is less than 1.5h, the weight of the waiting time does not change much, so the final total weight is mainly the weight of the report type plus the weight of the institutional level. The more important the report type and the higher the institutional level, the greater the final total weight, the higher the download order, and the slope is smaller at this time. When the waiting time is equal to and exceeds 1.5h, the weight of the waiting time increases rapidly, and the final total weight is mainly the weight of the waiting time. The longer the waiting time, the greater the final total weight, the higher the download order, and the slope is larger at this time.

[0059] S207: Sort the tasks to be downloaded according to their weights.

[0060] S208: Execute each task to be downloaded in sequence according to the sorting result.

[0061] In the embodiment of the present application, the specific process of steps S207-S208 can refer to the relevant description of steps S104-S105 in the above embodiment, which will not be repeated here.

[0062] Further, after step S208, the report downloading method of the embodiment of the present application may further include the following steps: S209, storing the report to be downloaded generated after the task to be downloaded is executed in the background server.

[0063] S210: In response to a download operation of a user on a report to be downloaded, the report to be downloaded is sent to a download location designated by the user.

[0064] It should be noted here that as the system runs longer, business data will continue to accumulate. In order to allow the algorithm to be flexibly adjusted to meet the needs of actual conditions, the above-mentioned weights can be used as configuration items, such as report type weight, organization level weight, waiting time, and waiting time factor. They can be configured in the database or Apollo server. When the actual situation of the system changes, these weights can be adjusted. The algorithm model can be adjusted without restarting the system or re-adjusting the function to better fit the actual situation.

[0065] In summary, when downloading a report, the report downloading method of the embodiment of the present application generates a corresponding task to be downloaded according to the report download request initiated by the user, and adds the task to be downloaded to the list of tasks to be downloaded, and regularly obtains the information of each task to be downloaded in the list of tasks to be downloaded, the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, and sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account the different importance of reports of different report types, the different levels of users who initiate download requests, and the different tolerable waiting times, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources. A waiting time threshold parameter is designed for the waiting time, which can flexibly adjust the waiting time weight, so that all kinds of download tasks can be executed around the waiting time threshold, taking into account the system pressure while ensuring user experience.

[0066] Figure 4 A schematic diagram of a report downloading device provided in one embodiment of the present application. Figure 4 As shown, the report downloading device 400 of the embodiment of the present application may specifically include: a generating module 401, an acquiring module 402, a determining module 403, a sorting module 404 and an executing module 405. Among them: The generating module 401 is used to generate a corresponding task to be downloaded according to a report download request initiated by a user, and add the task to be downloaded to a list of tasks to be downloaded.

[0067] The acquisition module 402 is used to periodically acquire information of each task to be downloaded in the task list to be downloaded, and the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded.

[0068] The determination module 403 is used to determine the weight of each task to be downloaded according to the information of each task to be downloaded.

[0069] The sorting module 404 is used to sort the tasks to be downloaded according to the weights of the tasks to be downloaded.

[0070] The execution module 405 is used to execute the tasks to be downloaded in sequence according to the sorting result.

[0071] In the embodiment of the present application, the specific process of each module and unit in the report downloading device of the embodiment of the present application realizing its function can refer to the relevant description in the above-mentioned report downloading method embodiment, which will not be repeated here.

[0072] In summary, when downloading a report, the report downloading device of the embodiment of the present application generates a corresponding task to be downloaded according to the report download request initiated by the user, and adds the task to be downloaded to the list of tasks to be downloaded, and regularly obtains information of each task to be downloaded in the list of tasks to be downloaded, the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, and sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account the different importance of reports of different report types, the different levels of users who initiate download requests, and the different tolerable waiting times, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources. A waiting time threshold parameter is designed for the waiting time, which can flexibly adjust the waiting time weight, so that all kinds of download tasks can be executed around the waiting time threshold, taking into account the system pressure while ensuring user experience.

[0073] The present application also provides an electronic device. Figure 5 As shown, the electronic device 500 includes: a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, the steps of the report downloading method in any of the above embodiments are implemented.

[0074] When downloading a report, the electronic device of the embodiment of the present application generates a corresponding task to be downloaded according to the report download request initiated by the user, and adds the task to be downloaded to the list of tasks to be downloaded, and periodically obtains information of each task to be downloaded in the list of tasks to be downloaded, the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account the different importance of reports of different report types, the different levels of users who initiate download requests, and the different tolerable waiting times, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources. A waiting time threshold parameter is designed for the waiting time, which can flexibly adjust the waiting time weight, so that all kinds of download tasks can be executed around the waiting time threshold, taking into account the system pressure while ensuring user experience.

[0075] An embodiment of the present application also proposes a readable storage medium, on which one or more computer programs are stored. The one or more computer programs include instructions. When the program or instructions are executed by a processor in an electronic device that includes multiple applications, the processor in the electronic device can execute each step of the above-mentioned report downloading method embodiment.

[0076] When downloading a report, the readable storage medium of the embodiment of the present application generates a corresponding task to be downloaded according to the report download request initiated by the user, and adds the task to be downloaded to the list of tasks to be downloaded, and periodically obtains information of each task to be downloaded in the list of tasks to be downloaded, the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded, and determines the weight of each task to be downloaded according to the information of each task to be downloaded, sorts each task to be downloaded according to the weight of each task to be downloaded, and executes each task to be downloaded in sequence according to the sorting result. The embodiment of the present application takes into account the different importance of reports of different report types, the different levels of users who initiate download requests, and the different tolerable waiting times, and sorts the download order of each task to be downloaded according to the information of multiple dimensions of the task to be downloaded (report type, organizational level and waiting time), wherein the report type and organizational level are fixed information, and the waiting time is dynamic information, which can realize flexible sorting of each task to be downloaded, meet the needs of different users, and improve the utilization rate of system resources. A waiting time threshold parameter is designed for the waiting time, which can flexibly adjust the waiting time weight, so that all kinds of download tasks can be executed around the waiting time threshold, taking into account the system pressure while ensuring user experience.

[0077] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0078] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0081] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0083] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0084] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0085] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0087] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0088] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0089] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A report downloading method, characterized in that: include: Generate a corresponding task to be downloaded according to the report download request initiated by the user, and add the task to be downloaded to the task list to be downloaded; Periodically obtaining information of each task to be downloaded in the task list to be downloaded, wherein the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user, and the waiting time of the task to be downloaded; Determining the weight of each of the tasks to be downloaded according to the information of each of the tasks to be downloaded; sorting the tasks to be downloaded according to their weights; The tasks to be downloaded are executed in sequence according to the sorting result.

2. The method according to claim 1, characterized in that Determining the weight of each task to be downloaded according to the information of each task to be downloaded includes: According to the report type, obtaining a report type weight corresponding to the report type; According to the institutional level, obtaining an institutional level weight corresponding to the institutional level; According to the waiting time, obtaining a waiting time weight corresponding to the waiting time; The weight of the task to be downloaded is determined according to the corresponding report type weight, the corresponding organization level weight and the corresponding waiting time weight.

3. The method according to claim 2, characterized in that The acquiring, according to the report type, a report type weight corresponding to the report type includes: According to the correspondence between the report type and the report type weight, the report type weight corresponding to the report type is obtained, wherein the report type weight correspondence includes a correspondence between multiple report types and multiple report type weights.

4. The method according to claim 2, characterized in that: The step of obtaining, according to the organizational level, a report type weight corresponding to the organizational level includes: According to the correspondence between the institutional hierarchy and the institutional hierarchy weight, the institutional hierarchy weight corresponding to the institutional hierarchy is obtained, wherein the institutional hierarchy weight correspondence includes a correspondence between multiple institutional hierarchies and multiple institutional hierarchy weights.

5. The method according to claim 2, characterized in that: The acquiring, according to the waiting time, a waiting time weight corresponding to the waiting time comprises: If the waiting time is less than a preset waiting time threshold, determining a waiting time weight corresponding to the waiting time according to the waiting time and a preset first waiting time factor; If the waiting time is equal to or greater than the waiting time threshold, a waiting time weight corresponding to the waiting time is determined according to the waiting time and a preset second waiting time factor, and the second waiting time factor is greater than the first waiting time factor.

6. The method according to claim 2, characterized in that The greater the importance of the report corresponding to the report type, the greater the weight of the report type; The higher the level corresponding to the institutional level, the greater the weight of the institutional level; The greater the weight of the task to be downloaded is, the higher its order in the sorting result is.

7. The method according to claim 1, characterized in that After executing the tasks to be downloaded in sequence according to the sorting results, the method further includes: The report to be downloaded generated after executing the task to be downloaded is stored in the background server; In response to the user's downloading operation on the report to be downloaded, the report to be downloaded is sent to a download location specified by the user.

8. A report downloading device, characterized in that: include: A generating module, used for generating a corresponding task to be downloaded according to a report download request initiated by a user, and adding the task to be downloaded to a list of tasks to be downloaded; An acquisition module, used for periodically acquiring information of each task to be downloaded in the task list to be downloaded, wherein the information of the task to be downloaded includes the report type of the report to be downloaded, the organizational level of the user and the waiting time of the task to be downloaded; A determination module, used to determine the weight of each task to be downloaded according to the information of each task to be downloaded; A sorting module, used for sorting the tasks to be downloaded according to their weights; The execution module is used to execute the tasks to be downloaded in sequence according to the sorting results.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.