Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
As shown in fig. 1, an embodiment of the present disclosure provides a method for generating a report, including:
step S101, determining a report target;
step S102, acquiring a target label corresponding to a report target and a data dimension corresponding to the target label;
step S103, determining a report frame according to the target label and the data dimension;
step S104, acquiring alternative data according to data dimensions;
step S105, filling data is obtained according to the alternative data;
and step S106, generating a report according to the filling data and the report frame.
By adopting the method for generating the report, which is provided by the embodiment of the disclosure, the report target is determined; acquiring a target label corresponding to a report target and a data dimension corresponding to the target label; determining a report frame according to the target label and the data dimension; acquiring alternative data according to data dimensions; and acquiring filling data according to the alternative data. By determining the report frame and acquiring the filling data, the report can be automatically generated, the time for generating the report is reduced, and the experience of a user in generating the report is improved.
Optionally, determining a report target includes: acquiring target selection information input by a user; and determining a report target according to the target selection information.
Optionally, determining the report target according to the target selection information includes: matching a report form target corresponding to the target selection information from a second preset database; the second preset database stores the corresponding relation between the target selection information and the report target.
Optionally, the target selection information is determined as a report target.
Optionally, obtaining a target tag corresponding to the report target includes: matching a target label corresponding to the report form target from a third preset database; the third preset database stores the corresponding relation between the report target and the target label.
Optionally, obtaining a data dimension corresponding to the target tag includes: matching a data dimension corresponding to the target label from a fourth preset database; the fourth preset database stores the corresponding relation between the target label and the data dimension.
Optionally, obtaining a data dimension corresponding to the target tag includes: and inputting the report target into a preset dimension model, obtaining the data dimension corresponding to the report target, and determining the data dimension corresponding to the report target as the data dimension corresponding to the target label.
Optionally, the preset dimensional model is obtained according to the following manner: and obtaining a sample target, labeling the sample target with a sample label, inputting the sample target labeled with the sample label into a neural network model for training, and obtaining a dimension model.
In some embodiments, the report target is "executive power", the target tag corresponding to the "executive power" is "daily service data" matched from the third preset database, and the data dimensions corresponding to the "daily service data" matched from the fourth preset database include "workers working on the same day", "effective working hours of each worker on the same day", and "attendance of each worker on the same day", and the like.
Optionally, determining a report frame according to the target tag and the data dimension includes: acquiring the priority of a target label; determining a display mode and a display position of a data dimension according to the priority of the target label; and determining a report frame according to the display mode and the display position of the data dimension.
Optionally, determining a report frame according to the display mode and the display position of the data dimension includes: and determining the display mode and the display position of the data dimension as a report frame.
Optionally, obtaining the priority of the target tag includes: and acquiring priority selection information input by a user, and determining the priority of the target label according to the priority selection information.
Optionally, determining a display mode and a display position of the data dimension according to the priority of the target tag includes: matching a display mode and a display position of a data dimension corresponding to the priority of the target label from a preset fifth database; the fifth database stores the corresponding relation between the priority of the target label and the display mode of the data dimension, and the fifth database stores the corresponding relation between the priority of the target label and the display position of the data dimension.
Optionally, the obtaining of the candidate data according to the data dimension includes: extracting alternative data corresponding to the data dimension from a first preset database; the first preset database stores the corresponding relation between the data dimension and the alternative data.
Optionally, acquiring padding data according to the alternative data includes: determining the alternative data as filling data; or, determining a data processing mode according to the data dimension; and processing the alternative data according to a data processing mode to obtain filling data.
In some embodiments, the acquired data dimension is "the effective working time of each employee on the same day", and the candidate data corresponding to the data dimension extracted from the first preset database includes "the time of checking a card on duty", "the time of checking a card off duty", and "the time of mid-day break". The data processing mode corresponding to the data dimension is obtained by subtracting the working time of punching the card from the work and the noon break time period from the working time of punching the card from the work.
Optionally, generating a report according to the fill data and the report frame includes: filling the filling data into the display position corresponding to the data dimension in the report frame in a display mode to obtain the report.
Optionally, the display mode corresponding to the data dimension includes: thickening, marking red, looping and the like.
Optionally, after generating the report according to the fill data and the report frame, the method further includes: and sending the report according to the preset interval time and/or the preset path.
In some embodiments, the interval time for sending the report is preset, the generated report is sent to the user terminal through a preset path according to the set interval time, and the report is displayed to the user through the user terminal. Therefore, the manpower and the human cost can be reduced, and the report can be sent to the user quickly and accurately at regular time. Meanwhile, after the user receives the report, the user can know the staff execution capacity, the equipment state and the like according to the report, and therefore corresponding measures are taken according to the report to improve the staff execution capacity.
In some embodiments, the report target is determined as "execution power", the target tag corresponding to the "execution power" is matched from the third preset database as "service data on the day" and "work data on the day", the data dimension corresponding to the "service data on the day" is matched from the fourth preset database and includes "staff on duty on the day", "effective working hours on the day of each staff" and "attendance of each staff on the day", and the data dimension corresponding to the work data on the day "includes" recording duration on the day "and" customer evaluation ", and the like; acquiring priority selection information input by a user, determining the priority of the working data on the day as a first priority according to the priority selection information, and determining the priority of the service data on the day as a second priority. Matching out the 'recording duration on the day' corresponding to the first priority and the 'customer evaluation' from a preset fifth database in such a way that the display modes are thickened, wherein the display position of the 'recording duration on the day' corresponding to the first priority is displayed on a first row of a first Sheet page of the Excel document, and the display position of the 'customer evaluation' is displayed on a second row of the first Sheet page of the Excel document; the display modes of the working staff on the same day, the effective working duration of each staff on the same day and the passenger capacity of each staff in the same day, which are corresponding to the second priority, are matched from a preset fifth database to be directly displayed, the display position of the working staff on the same day, which is corresponding to the second priority, is displayed on the first row of the second Sheet page of the Excel document, the display position of the effective working duration of each staff on the same day is displayed on the second row of the second Sheet page of the Excel document, and the display position of the passenger capacity of each staff in the same day is displayed on the third row of the second Sheet page of the Excel document. And determining the display mode and the display position of the data dimension corresponding to the work data on the current day and the service data on the current day as a report frame. Extracting alternative data respectively corresponding to the staff on the current day, the effective working time of each staff on the current day, the attendance of each staff on the current day, the recording time of the current day and the client evaluation from a first preset database; the processing mode of acquiring the alternative data corresponding to the working staff on the same day, the waiting passenger capacity of each staff on the same day, the recording duration on the same day and the client evaluation is ' no processing ', and the alternative data is directly determined as filling data '; the processing mode for acquiring the alternative data corresponding to the effective working time of each employee on the same day is to obtain filling data by subtracting the working time from the off-duty time of checking the card and the noon break time period. Filling the filling data into the display position corresponding to the data dimension in the report frame in a display mode to obtain the report.
The embodiment of the disclosure provides a method for generating a report, which can determine a report target; acquiring a target label corresponding to a report target and a data dimension corresponding to the target label; determining a report frame according to the target label and the data dimension; acquiring alternative data according to data dimensions; acquiring filling data according to the alternative data; and generating a report according to the filling data and the report frame. By determining the report frame and acquiring the filling data, the report can be automatically generated, the time for generating the report is reduced, and the efficiency for generating the report is improved. Meanwhile, enterprise managers can acquire reports such as store business conditions or employee working conditions at any time, enterprise marketing strategies are predicted and optimized according to the reports, and marketing intelligent technology is achieved.
With reference to fig. 2, an apparatus for generating a report according to an embodiment of the present disclosure includes: a first determining module 201, a first obtaining module 202, a second determining module 203, a second obtaining module 204, a third obtaining module 205 and a generating module 206; the first determining module 201 is configured to determine a report target and send the report target to the first obtaining module; the first obtaining module 202 is configured to receive the report target sent by the first determining module, obtain a target tag corresponding to the report target and a data dimension corresponding to the target tag, and send the target tag corresponding to the report target and the data dimension corresponding to the target tag to the second determining module; the second determining module 203 is configured to receive the target tag corresponding to the report target and the data dimension corresponding to the target tag sent by the second determining module 203, determine a report frame according to the target tag and the data dimension, and send the report frame to the generating module; the second obtaining module 204 is configured to obtain alternative data according to the data dimension, and send the alternative data to the third obtaining module; the third obtaining module 205 is configured to receive the alternative data sent by the second obtaining module, obtain the padding data according to the alternative data, and send the padding data to the generating module; the generating module 206 is configured to receive the report frame sent by the second determining module, receive the filling data sent by the third obtaining module, and generate a report according to the filling data and the report frame.
By adopting the device for generating the report, which is provided by the embodiment of the disclosure, the report target is determined; acquiring a target label corresponding to a report target and a data dimension corresponding to the target label; determining a report frame according to the target label and the data dimension; acquiring alternative data according to data dimensions; acquiring filling data according to the alternative data; by determining the report frame and acquiring the filling data, the report can be automatically generated, the time for generating the report is reduced, and the experience of a user in generating the report is improved.
Optionally, the first determining module is configured to obtain target selection information input by a user, and determine the report target according to the target selection information.
Optionally, the first obtaining module is configured to obtain a target tag corresponding to the report target, and includes: matching a target label corresponding to the report form target from a third preset database; the third preset database stores the corresponding relation between the report target and the target label.
Optionally, the first obtaining module is configured to obtain a data dimension corresponding to the target tag, and includes: matching a data dimension corresponding to the target label from a fourth preset database; the fourth preset database stores the corresponding relation between the target label and the data dimension.
Optionally, the second determining module is configured to obtain the priority of the target tag; determining a display mode and a display position of a data dimension according to the priority of the target label; and determining a report frame according to the display mode and the display position of the data dimension.
Optionally, the second obtaining module is configured to extract alternative data corresponding to the data dimension from the first preset database; the first preset database stores the corresponding relation between the data dimension and the alternative data.
Optionally, the third obtaining module is configured to determine the alternative data as the padding data; or, determining a data processing mode according to the data dimension; and processing the alternative data according to a data processing mode to obtain filling data.
Optionally, the generating module is configured to fill the filling data into a display position corresponding to the data dimension in the report frame in a display manner, so as to obtain the report.
Optionally, the apparatus for generating a report further includes a sending module, where the sending module is configured to send the report according to a preset interval time and/or a preset path.
As shown in fig. 3, an embodiment of the present disclosure provides an electronic device including a processor (processor)300 and a memory (memory)301 storing program instructions. Optionally, the electronic device may further include a Communication Interface (Communication Interface)302 and abus 303. Theprocessor 300, thecommunication interface 302 and thememory 301 may communicate with each other via abus 303. Thecommunication interface 302 may be used for information transfer. Theprocessor 300 may call program instructions in thememory 301 to perform the method for generating reports of the above-described embodiments.
In addition, the program instructions in thememory 301 may be implemented in the form of software functional units and stored in a readable storage medium when the program instructions are sold or used as independent products.
Thememory 301 is a readable storage medium and can be used for storing software programs, executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. Theprocessor 300 executes the functional application and data processing by executing the program instructions/modules stored in thememory 301, i.e. implements the method for generating reports in the above embodiments.
Thememory 301 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, thememory 301 may include a high-speed random access memory, and may also include a nonvolatile memory.
By adopting the electronic equipment provided by the embodiment of the disclosure, the report target is determined; acquiring a target label corresponding to a report target and a data dimension corresponding to the target label; determining a report frame according to the target label and the data dimension; acquiring alternative data according to data dimensions; and acquiring filling data according to the alternative data. By determining the report frame and acquiring the filling data, the report can be automatically generated, the time for generating the report is reduced, and the experience of a user in generating the report is improved.
Optionally, the electronic device is a computer or the like.
The embodiment of the disclosure provides a readable storage medium, which stores executable instructions configured to execute the method for generating a report.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for generating a report.
The readable storage medium may be a transitory readable storage medium or a non-transitory readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.