WO2019095669A1 - Salary calculation data processing method, application server, and computer readable storage medium - Google Patents
Salary calculation data processing method, application server, and computer readable storage medium Download PDFInfo
- Publication number
- WO2019095669A1 WO2019095669A1 PCT/CN2018/089701 CN2018089701W WO2019095669A1 WO 2019095669 A1 WO2019095669 A1 WO 2019095669A1 CN 2018089701 W CN2018089701 W CN 2018089701W WO 2019095669 A1 WO2019095669 A1 WO 2019095669A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- salary calculation
- memory space
- calculation process
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0877—Cache access modes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
- G06F2212/1024—Latency reduction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1032—Reliability improvement, data loss prevention, degraded operation etc
- G06F2212/1036—Life time enhancement
Definitions
- the present application relates to the field of communications technologies, and in particular, to a data processing method for salary calculation, an application server, and a computer readable storage medium.
- the present application proposes a data processing method for salary calculation, an application server, and a computer readable storage medium, which can make the memory read and write speed faster, greatly improve the salary calculation speed, and the overall operation speed is compared with the conventional processing method. Great improvement.
- the present application provides an application server, which includes a memory, a processor, and a data processing program for storing salary calculations executable on the processor, the salary
- the computed data processing program is implemented by the processor to implement the following steps:
- the data required by the salary calculation process belongs to the data in the memory space, the data required in the salary calculation process is retrieved from the memory space through the access interface;
- the salary calculation is performed based on the data required during the salary calculation process.
- the present application further provides a data processing method for salary calculation, which is applied to an application server, and the method includes the following steps:
- the data required by the salary calculation process belongs to the data in the memory space, the data required in the salary calculation process is retrieved from the memory space through the access interface;
- the salary calculation is performed based on the data required during the salary calculation process.
- the present application further provides a computer readable storage medium storing a data processing program of salary calculation
- the data processing program of the salary calculation may be at least one processor Executing, in order for the at least one processor to perform the steps of the data processing method of the salary calculation as described above.
- the application server, the data processing method of the salary calculation, and the computer readable storage medium proposed by the present application firstly use data whose frequency is greater than a preset value in the statistical salary calculation process in a preset time period; Then, delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space; secondly, setting an access interface for accessing the memory space; and again, monitoring a salary calculation process to obtain Data required by the salary calculation process; thereafter, determining whether data required by the salary calculation process belongs to data in the memory space; and when data required by the salary calculation process belongs to data in the memory space, Then, the data required in the salary calculation process is retrieved from the memory space through the access interface; finally, the salary calculation is performed according to the data required in the salary calculation process.
- 1 is a schematic diagram of an optional hardware architecture of an application server in the present application
- FIG. 2 is a block diagram showing the program of the first embodiment of the data processing program of the salary calculation of the present application
- Figure 3 is a block diagram showing the program of the second embodiment of the data processing program of the salary calculation of the present application
- FIG. 4 is a program block diagram of a third embodiment of a data processing program for salary calculation of the present application.
- FIG. 5 is a flowchart of a first embodiment of a data processing method for salary calculation of the present application
- FIG. 6 is a flowchart of a second embodiment of a data processing method for salary calculation of the present application
- FIG. 7 is a flowchart of a third embodiment of a data processing method for salary calculation of the present application.
- FIG. 1 it is a schematic diagram of an optional hardware architecture of the application server 1.
- the application server 1 may be a computing device such as a rack server, a blade server, a tower server, or a rack server.
- the application server 1 may be a stand-alone server or a server cluster composed of multiple servers.
- the application server 1 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus.
- the application server 1 connects to the network through the network interface 13 to obtain information.
- the network may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, or a 5G network.
- Wireless or wired networks such as networks, Bluetooth, Wi-Fi, and call networks.
- Figure 1 only shows the application server 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
- the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), and a random access memory (RAM). , static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
- the memory 11 may be an internal storage unit of the application server 1, such as a hard disk or memory of the application server 1.
- the memory 11 may also be an external storage device of the application server 1, such as a plug-in hard disk equipped with the application server 1, a smart memory card (SMC), and a secure digital ( Secure Digital, SD) cards, flash cards, etc.
- the memory 11 can also include both the internal storage unit of the application server 1 and its external storage device.
- the memory 11 is generally used to store an operating system installed in the application server 1 and various types of application software, such as program code of the data processing program 200 of the salary calculation. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
- the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
- the processor 12 is typically used to control the overall operation of the application server 1, such as performing data interaction or communication related control and processing, and the like.
- the processor 12 is configured to run program code or processing data stored in the memory 11, such as the data processing program 200 that runs the salary calculation.
- the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the application server 1 and other electronic devices.
- the application server 1 installs and runs a data processing program 200 with salary calculation.
- the application server 2 calculates the salary calculation for a preset time period.
- the process uses a data whose frequency is greater than a preset value; delimits a memory space of a preset size, and caches the data whose usage frequency is greater than a preset value into the memory space; sets an access interface for accessing the memory space; and monitors a salary calculation process, obtaining data required by the salary calculation process; determining whether data required by the salary calculation process belongs to data in the memory space; and data required by the salary calculation process belongs to data in the memory space At the time, the data required in the salary calculation process is retrieved from the memory space through the access interface; and the salary calculation is performed according to the data required in the salary calculation process.
- the present application proposes a data processing program 200 for salary calculation.
- FIG. 2 it is a program block diagram of the first embodiment of the data processing program 200 of the salary calculation of the present application.
- the salary calculation data processing program 200 includes a series of computer program instructions stored in the memory 11, and when the computer program instructions are executed by the processor 12, the salary of the embodiments of the present application can be implemented. Calculated data processing operations.
- the salary calculation data processing program 200 can be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in FIG. 2, the salary calculation data processing program 200 can be divided into a statistics module 201, a cache module 202, a setting module 203, an acquisition module 204, a determination module 205, and a calculation module 206. among them:
- the statistic module 201 is configured to use data whose frequency is greater than a preset value in a statistical salary calculation process in a preset time period.
- the preset time and the preset value are set by the administrator according to requirements, and the specific range of the preset time and the preset value is not limited in the present application. For example, if the manager wants to know the data used in the salary calculation process for more than 50 times in a week, the preset time is set to 1 week and the preset value is set to 50.
- the statistics module 201 adds identification information to the data whose usage frequency is greater than a preset value.
- the statistic module 201 is further configured to: obtain the identification information of the data used by the salary calculation process, and read the identification information from the hard disk by using the identifier information to collect the data that is used in the salary calculation process. The number of times the data is represented.
- the cache module 202 is configured to delimit a memory space of a preset size, and cache the data whose usage frequency is greater than a preset value into the memory space.
- the preset size is set by the administrator according to the number of employees and the calculation period. For example, when the number of employees is small and the calculation period is short, the memory space can be set to be relatively small, for example, 1G memory. Conversely, when the number of employees is large and the calculation period is long, the memory space can be set relatively large. For example, 10G memory.
- the data whose usage frequency is greater than the preset value is cached into the memory space, which can implement data sharing of multiple calculation processes, reduce data read and write times, improve computing performance, and maintain data consistency.
- the setting module 203 is configured to set an access interface for accessing the memory space.
- the access interface supports data reading in the k/v mode and the list mode.
- the obtaining module 204 is configured to monitor a salary calculation process and obtain data required by the salary calculation process.
- the obtaining module 204 is further configured to intercept a data retrieval command generated by the salary calculation process; and parse the data retrieval command to obtain the required Identification information of the data.
- the determining module 205 is configured to determine whether data required by the salary calculation process belongs to data in the memory space. Further, the determining module 205 is further configured to compare whether the identification information of the required data and the identification information of the data in the memory space are consistent. If yes, the determining module 205 determines that the data required by the salary calculation process belongs to the data in the memory space whose usage frequency is greater than a preset value.
- the calculating module 206 is configured to retrieve data required in the salary calculation process from the memory space through the access interface when data required by the salary calculation process belongs to data in the memory space.
- the calculation module 206 is further configured to perform salary calculation according to the data required in the salary calculation process that is retrieved. Further, the salary calculation result may be displayed by the mobile terminal.
- the mobile terminal may be a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and a car.
- a mobile device such as a device, and a fixed terminal such as a digital TV, a desktop computer, a notebook, a server, and the like.
- the salary calculation data processing program 200 further includes a clearing module 207, where:
- the clearing module 207 is configured to erase data of the memory space after the salary calculation ends.
- the salary calculation data processing program 200 further includes a backup module 208, wherein:
- the backup module 208 is configured to back up data of the memory space to the cloud.
- the data of the memory space is backed up to the cloud, and on the one hand, the data is not lost after the disk is damaged.
- the intermediate calculation process data can also be saved, which is convenient for verifying the correctness of the salary calculation process.
- the present application also proposes a data processing method for salary calculation.
- FIG. 5 it is a schematic flowchart of the implementation of the first embodiment of the data processing method of the salary calculation of the present application.
- the order of execution of the steps in the flowchart shown in FIG. 5 may be changed according to different requirements, and some steps may be omitted.
- step S501 the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period.
- the preset time and the preset value are set by the administrator according to requirements, and the specific range of the preset time and the preset value is not limited in the present application. For example, if the manager wants to know the data used more than 50 times during the salary calculation in 1 week, set the preset time to 1 week and the preset value to 50.
- the application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
- the application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
- the application server 1 adds identification information to the data whose usage frequency is greater than a preset value.
- Step S502 delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
- the preset size is set by the administrator according to the number of employees and the calculation period. For example, when the number of employees is small and the calculation period is short, the memory space can be set to be relatively small, for example, 1G memory. Conversely, when the number of employees is large and the calculation period is long, the memory space can be set relatively large. For example, 10G memory.
- the data whose usage frequency is greater than the preset value is cached into the memory space, which can implement data sharing of multiple calculation processes, reduce data read and write times, improve computing performance, and maintain data consistency.
- Step S503 setting an access interface for accessing the memory space.
- the access interface supports data reading in the k/v mode and the list mode.
- Step S504 monitoring the salary calculation process, and acquiring data required by the salary calculation process.
- the application server 1 obtains data required by the salary calculation process by:
- the application server 1 first intercepts a data retrieval command generated by the salary calculation process. Then, parsing the data retrieval command to obtain identification information of the required data.
- Step S505 determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S506 is performed, otherwise, it ends.
- the application server 1 compares the identification information of the required data with the identification information of the data in the memory space. If they are consistent, the application server 1 determines that the data required by the salary calculation process belongs to the data in the memory space whose usage frequency is greater than a preset value.
- Step S506 the data required in the salary calculation process is retrieved from the memory space through the access interface.
- Step S507 performing salary calculation according to the data required in the salary calculation process that is obtained. Further, the salary calculation result may be displayed by the mobile terminal.
- the mobile terminal may be a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and a car.
- a mobile device such as a device, and a fixed terminal such as a digital TV, a desktop computer, a notebook, a server, and the like.
- the application server 1 uses the data whose frequency is greater than the preset value in the statistical salary calculation process in a preset time period; a memory space of a preset size, the data whose usage frequency is greater than a preset value is cached to the memory space; secondly, an access interface for accessing the memory space is set; and again, the salary calculation process is monitored to obtain the salary calculation Data required by the process; thereafter, determining whether the data required by the salary calculation process belongs to data in the memory space; and when the data required by the salary calculation process belongs to data in the memory space, The access interface retrieves data required in the salary calculation process from the memory space; finally, performs salary calculation according to the data required in the salary calculation process that is retrieved.
- FIG. 6 it is a schematic flowchart of the implementation of the second embodiment of the data processing method of the salary calculation of the present application.
- the order of execution of the steps in the flowchart shown in FIG. 6 may be changed according to different requirements, and some steps may be omitted.
- step S601 the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period.
- the application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
- the application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
- Step S602 delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
- Step S603 setting an access interface for accessing the memory space.
- Step S604 monitoring the salary calculation process, and acquiring data required by the salary calculation process.
- Step S605 determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S606 is performed, otherwise, it ends.
- Step S606 the data required in the salary calculation process is retrieved from the memory space through the access interface.
- Step S607 performing salary calculation according to the data required in the salary calculation process that is obtained.
- Step S608 after the salary calculation ends, the data of the memory space is erased.
- the data processing method of the salary calculation proposed by the present application can timely clear the invalid data in the memory and improve the data processing speed.
- FIG. 7 it is a schematic flowchart of the implementation of the third embodiment of the data processing method of the salary calculation of the present application.
- the order of execution of the steps in the flowchart shown in FIG. 7 may be changed according to different requirements, and some steps may be omitted.
- step S701 the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period.
- the application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
- the application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
- Step S702 delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
- Step S703 backing up data of the memory space to the cloud.
- Step S704 setting an access interface for accessing the memory space.
- Step S705 monitoring the salary calculation process, and acquiring data required by the salary calculation process.
- the application server 1 obtains data required by the salary calculation process by:
- the application server 1 first intercepts a data retrieval command generated by the salary calculation process. Then, parsing the data retrieval command to obtain identification information of the required data.
- Step S706 determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S807 is performed, otherwise, it ends.
- Step S707 the data required in the salary calculation process is retrieved from the memory space through the access interface.
- Step S708 performing salary calculation according to the data required in the salary calculation process that is retrieved.
- the data processing method of the salary calculation proposed by the present application can ensure that the data is not lost after the disk is damaged by backing up the data of the memory space to the cloud.
- the intermediate calculation process data can also be saved, which is convenient for verifying the correctness of the salary calculation process.
- the present application further provides a computer readable storage medium storing a data processing program of salary calculation
- the data processing program of the salary calculation may be at least one processor Executing, in order for the at least one processor to perform the steps of the data processing method of the salary calculation as described above.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Description
本申请要求于2017年11月17日提交中国专利局、申请号为201711141746.4、发明名称为“薪资计算的数据处理方法、应用服务器及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese Patent Application filed on November 17, 2017, the Chinese Patent Office, the application number is 201711141746.4, and the invention is entitled "data processing method for salary calculation, application server and computer readable storage medium". The content is incorporated into the application by reference.
本申请涉及通信技术领域,尤其涉及一种薪资计算的数据处理方法、应用服务器及计算机可读存储介质。The present application relates to the field of communications technologies, and in particular, to a data processing method for salary calculation, an application server, and a computer readable storage medium.
随着企业的发展,各种渠道机构逐渐复杂化,而相应渠道的薪资计算也随之复杂化,数据的读取与处理也越来越繁杂。其中尤其是薪资计算过程中涉及诸多佣金的计算,会重复的从数据库读取许多数据,而根据当前数据库的机制,读取数据时可能需要从硬盘读取,这样很多数据需要重复的从硬盘导入到内存,再进一步地进行内存数据的处理,如此不仅导致因为对硬盘数据的重复读写而影响硬盘的使用寿命,同时也因为一些重复的数据重复读写导致整个薪资计算流程的效率低下。With the development of enterprises, various channel organizations have become more complicated, and the salary calculation of corresponding channels has become complicated, and the reading and processing of data has become more and more complicated. In particular, the calculation of many commissions involved in the salary calculation process will repeatedly read many data from the database. According to the current database mechanism, the data may need to be read from the hard disk when reading data, so that many data need to be repeatedly imported from the hard disk. Into the memory, further processing of the memory data, which not only causes the hard disk to be read and written to affect the life of the hard disk, but also because of repeated data read and write repeatedly resulting in inefficiency of the entire salary calculation process.
发明内容Summary of the invention
有鉴于此,本申请提出一种薪资计算的数据处理方法、应用服务器及计算机可读存储介质,能够使得内存读写速度更快,大幅提升薪资计算速度,与常规处理方式相比整体运算速度得到很大提升。In view of this, the present application proposes a data processing method for salary calculation, an application server, and a computer readable storage medium, which can make the memory read and write speed faster, greatly improve the salary calculation speed, and the overall operation speed is compared with the conventional processing method. Great improvement.
首先,为实现上述目的,本申请提出一种应用服务器,所述应用服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的薪资计 算的数据处理程序,所述薪资计算的数据处理程序被所述处理器执行时实现如下步骤:First, in order to achieve the above object, the present application provides an application server, which includes a memory, a processor, and a data processing program for storing salary calculations executable on the processor, the salary The computed data processing program is implemented by the processor to implement the following steps:
在预设的时间段统计薪资计算过程中使用频率大于预设值的数据;Data used in a salary calculation process that is greater than a preset value during a preset time period;
划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间;Delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space;
设定访问所述内存空间的访问接口;Setting an access interface for accessing the memory space;
监控薪资计算过程,获取所述薪资计算过程所需数据;Monitoring the salary calculation process to obtain data required for the salary calculation process;
判断所述薪资计算过程所需数据是否属于所述内存空间内的数据;Determining whether data required by the salary calculation process belongs to data in the memory space;
若所述薪资计算过程所需数据属于所述内存空间内的数据,则通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据;及If the data required by the salary calculation process belongs to the data in the memory space, the data required in the salary calculation process is retrieved from the memory space through the access interface; and
根据调取的所述薪资计算过程中所需数据进行薪资计算。The salary calculation is performed based on the data required during the salary calculation process.
此外,为实现上述目的,本申请还提供一种薪资计算的数据处理方法,该方法应用于应用服务器,所述方法包括步骤:In addition, in order to achieve the above object, the present application further provides a data processing method for salary calculation, which is applied to an application server, and the method includes the following steps:
在预设的时间段统计薪资计算过程中使用频率大于预设值的数据;Data used in a salary calculation process that is greater than a preset value during a preset time period;
划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间;Delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space;
设定访问所述内存空间的访问接口;Setting an access interface for accessing the memory space;
监控薪资计算过程,获取所述薪资计算过程所需数据;Monitoring the salary calculation process to obtain data required for the salary calculation process;
判断所述薪资计算过程所需数据是否属于所述内存空间内的数据;Determining whether data required by the salary calculation process belongs to data in the memory space;
若所述薪资计算过程所需数据属于所述内存空间内的数据,则通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据;及If the data required by the salary calculation process belongs to the data in the memory space, the data required in the salary calculation process is retrieved from the memory space through the access interface; and
根据调取的所述薪资计算过程中所需数据进行薪资计算。The salary calculation is performed based on the data required during the salary calculation process.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有薪资计算的数据处理程序,所述薪资计算的数据处理程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的薪资计算的数据处理方法的步骤。Further, in order to achieve the above object, the present application further provides a computer readable storage medium storing a data processing program of salary calculation, the data processing program of the salary calculation may be at least one processor Executing, in order for the at least one processor to perform the steps of the data processing method of the salary calculation as described above.
相较于现有技术,本申请所提出的应用服务器、薪资计算的数据处理方法及计算机可读存储介质,首先,在预设的时间段统计薪资计算过程中使用频率大于预设值的数据;然后,划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间;其次,设定访问所述内存空间的访问接口;再次,监控薪资计算过程,获取所述薪资计算过程所需数据;之后,判断所述薪资计算过程所需数据是否属于所述内存空间内的数据;及当所述薪资计算过程所需数据属于所述内存空间内的数据时,则通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据;最后,根据调取的所述薪资计算过程中所需数据进行薪资计算。这样,既可以避免现有技术中对硬盘数据的重复读写而影响硬盘的使用寿命,同时也因为一些重复的数据重复读写导致整个薪资计算流程的效率低下的弊端,又能够使得内存读写速度更快,大幅提升薪资计算速度,与常规处理方式相比整体运算速度得到很大提升。Compared with the prior art, the application server, the data processing method of the salary calculation, and the computer readable storage medium proposed by the present application firstly use data whose frequency is greater than a preset value in the statistical salary calculation process in a preset time period; Then, delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space; secondly, setting an access interface for accessing the memory space; and again, monitoring a salary calculation process to obtain Data required by the salary calculation process; thereafter, determining whether data required by the salary calculation process belongs to data in the memory space; and when data required by the salary calculation process belongs to data in the memory space, Then, the data required in the salary calculation process is retrieved from the memory space through the access interface; finally, the salary calculation is performed according to the data required in the salary calculation process. In this way, it can avoid the repeated reading and writing of the hard disk data in the prior art and affect the service life of the hard disk, and also cause the inefficiency of the entire salary calculation process due to repeated data read and write, which can make the memory read and write. The speed is faster, the salary calculation speed is greatly improved, and the overall operation speed is greatly improved compared with the conventional processing method.
图1是本申请中应用服务器一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an application server in the present application;
图2是本申请薪资计算的数据处理程序第一实施例的程序模块图;2 is a block diagram showing the program of the first embodiment of the data processing program of the salary calculation of the present application;
图3是本申请薪资计算的数据处理程序第二实施例的程序模块图;Figure 3 is a block diagram showing the program of the second embodiment of the data processing program of the salary calculation of the present application;
图4是本申请薪资计算的数据处理程序第三实施例的程序模块图;4 is a program block diagram of a third embodiment of a data processing program for salary calculation of the present application;
图5为本申请薪资计算的数据处理方法第一实施例的流程图;5 is a flowchart of a first embodiment of a data processing method for salary calculation of the present application;
图6为本申请薪资计算的数据处理方法第二实施例的流程图;6 is a flowchart of a second embodiment of a data processing method for salary calculation of the present application;
图7为本申请薪资计算的数据处理方法第三实施例的流程图。FIG. 7 is a flowchart of a third embodiment of a data processing method for salary calculation of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.
参阅图1所示,是应用服务器1一可选的硬件架构的示意图。Referring to FIG. 1, it is a schematic diagram of an optional hardware architecture of the application server 1.
所述应用服务器1可以是机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等计算设备,该应用服务器1可以是独立的服务器,也可以是多个服务器所组成的服务器集群。The application server 1 may be a computing device such as a rack server, a blade server, a tower server, or a rack server. The application server 1 may be a stand-alone server or a server cluster composed of multiple servers.
本实施例中,所述应用服务器1可包括,但不仅限于,可通过系统总线相互通信连接存储器11、处理器12、网络接口13。In this embodiment, the application server 1 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus.
所述应用服务器1通过网络接口13连接网络,获取资讯。所述网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi、通话网络等无线或有线网络。The application server 1 connects to the network through the network interface 13 to obtain information. The network may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, or a 5G network. Wireless or wired networks such as networks, Bluetooth, Wi-Fi, and call networks.
需要指出的是,图1仅示出了具有组件11-13的应用服务器1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。It is pointed out that Figure 1 only shows the application server 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储 介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器11可以是所述应用服务器1的内部存储单元,例如该应用服务器1的硬盘或内存。在另一些实施例中,所述存储器11也可以是所述应用服务器1的外部存储设备,例如该应用服务器1配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器11还可以既包括所述应用服务器1的内部存储单元也包括其外部存储设备。本实施例中,所述存储器11通常用于存储安装于所述应用服务器1的操作系统和各类应用软件,例如薪资计算的数据处理程序200的程序代码等。此外,所述存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), and a random access memory (RAM). , static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 11 may be an internal storage unit of the application server 1, such as a hard disk or memory of the application server 1. In other embodiments, the memory 11 may also be an external storage device of the application server 1, such as a plug-in hard disk equipped with the application server 1, a smart memory card (SMC), and a secure digital ( Secure Digital, SD) cards, flash cards, etc. Of course, the memory 11 can also include both the internal storage unit of the application server 1 and its external storage device. In this embodiment, the memory 11 is generally used to store an operating system installed in the application server 1 and various types of application software, such as program code of the data processing program 200 of the salary calculation. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述应用服务器1的总体操作,例如执行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码或者处理数据,例如运行所述的薪资计算的数据处理程序200等。The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the application server 1, such as performing data interaction or communication related control and processing, and the like. In this embodiment, the processor 12 is configured to run program code or processing data stored in the memory 11, such as the data processing program 200 that runs the salary calculation.
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述应用服务器1与其他电子设备之间建立通信连接。The network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the application server 1 and other electronic devices.
本实施例中,所述应用服务器1内安装并运行有薪资计算的数据处理程序200,当所述薪资计算的数据处理程序200运行时,所述应用服务器2在预设的时间段统计薪资计算过程中使用频率大于预设值的数据;划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间;设定访问所述内存空间的访问接口;监控薪资计算过程,获取所述薪资计算过程所需数据;判断所述薪资计算过程所需数据是否属于所述内存空间内的数据;当 所述薪资计算过程所需数据属于所述内存空间内的数据时,则通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据;及根据调取的所述薪资计算过程中所需数据进行薪资计算。这样,既可以避免现有技术中对硬盘数据的重复读写而影响硬盘的使用寿命,同时也因为一些重复的数据重复读写导致整个薪资计算流程的效率低下的弊端,又能够使得内存读写速度更快,大幅提升薪资计算速度,与常规处理方式相比整体运算速度得到很大提升。In this embodiment, the application server 1 installs and runs a data processing program 200 with salary calculation. When the data processing program 200 of the salary calculation is run, the application server 2 calculates the salary calculation for a preset time period. The process uses a data whose frequency is greater than a preset value; delimits a memory space of a preset size, and caches the data whose usage frequency is greater than a preset value into the memory space; sets an access interface for accessing the memory space; and monitors a salary calculation process, obtaining data required by the salary calculation process; determining whether data required by the salary calculation process belongs to data in the memory space; and data required by the salary calculation process belongs to data in the memory space At the time, the data required in the salary calculation process is retrieved from the memory space through the access interface; and the salary calculation is performed according to the data required in the salary calculation process. In this way, it can avoid the repeated reading and writing of the hard disk data in the prior art and affect the service life of the hard disk, and also cause the inefficiency of the entire salary calculation process due to repeated data read and write, which can make the memory read and write. The speed is faster, the salary calculation speed is greatly improved, and the overall operation speed is greatly improved compared with the conventional processing method.
至此,己经详细介绍了本申请各个实施例的应用环境和相关设备的硬件结构和功能。下面,将基于上述应用环境和相关设备,提出本申请的各个实施例。So far, the application environment of the various embodiments of the present application and the hardware structure and functions of related devices have been described in detail. Hereinafter, various embodiments of the present application will be proposed based on the above-described application environment and related devices.
首先,本申请提出一种薪资计算的数据处理程序200。First, the present application proposes a data processing program 200 for salary calculation.
参阅图2所示,是本申请薪资计算的数据处理程序200第一实施例的程序模块图。Referring to FIG. 2, it is a program block diagram of the first embodiment of the data processing program 200 of the salary calculation of the present application.
本实施例中,所述的薪资计算的数据处理程序200包括一系列的存储于存储器11上的计算机程序指令,当该计算机程序指令被处理器12执行时,可以实现本申请各实施例的薪资计算的数据处理操作。在一些实施例中,基于该计算机程序指令各部分所实现的特定的操作,所述薪资计算的数据处理程序200可以被划分为一个或多个模块。例如,在图2中,所述的薪资计算的数据处理程序200可以被分割成统计模块201、缓存模块202、设置模块203、获取模块204、判断模块205及计算模块206。其中:In this embodiment, the salary calculation data processing program 200 includes a series of computer program instructions stored in the memory 11, and when the computer program instructions are executed by the processor 12, the salary of the embodiments of the present application can be implemented. Calculated data processing operations. In some embodiments, the salary calculation data processing program 200 can be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in FIG. 2, the salary calculation data processing program 200 can be divided into a statistics module 201, a cache module 202, a setting module 203, an acquisition module 204, a determination module 205, and a calculation module 206. among them:
所述统计模块201,用于在预设的时间段统计薪资计算过程中使用频率大于预设值的数据。本实施例中,所述预设时间以及预设值都由管理人员根据需要进行设置,本申请并不对所述预设时间以及预设值的具体范围作限定。例如,管理人员想知道1周内薪资计算过程中使用频率大于50次的数据,则将预设时间设为1周,预设值设为50。The statistic module 201 is configured to use data whose frequency is greater than a preset value in a statistical salary calculation process in a preset time period. In this embodiment, the preset time and the preset value are set by the administrator according to requirements, and the specific range of the preset time and the preset value is not limited in the present application. For example, if the manager wants to know the data used in the salary calculation process for more than 50 times in a week, the preset time is set to 1 week and the preset value is set to 50.
另外,为了方便统计,所述统计模块201在所述使用频率大于预设值的数 据中加入标识信息。In addition, for the convenience of statistics, the statistics module 201 adds identification information to the data whose usage frequency is greater than a preset value.
为统计薪资计算过程中使用频率大于预设值的数据,所述统计模块201还用于,获取薪资计算过程所使用数据的标识信息,并通过所述标识信息统计从硬盘读取所述标识信息代表的数据的次数。The statistic module 201 is further configured to: obtain the identification information of the data used by the salary calculation process, and read the identification information from the hard disk by using the identifier information to collect the data that is used in the salary calculation process. The number of times the data is represented.
所述缓存模块202,用于划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间。具体地,所述预设大小由管理人员根据员工数量及计算周期进行设置。例如,当员工数量少,计算周期短时,可以将所述内存空间设置的比较小,例如1G内存,反之,当员工数量多,计算周期长时,可以将所述内存空间设置的比较大,例如10G内存。本实施例中,将所述使用频率大于预设值的数据缓存至所述内存空间,可以实现多个计算过程的数据共享,减少数据读写次数,提升计算性能并保持数据一致性。The cache module 202 is configured to delimit a memory space of a preset size, and cache the data whose usage frequency is greater than a preset value into the memory space. Specifically, the preset size is set by the administrator according to the number of employees and the calculation period. For example, when the number of employees is small and the calculation period is short, the memory space can be set to be relatively small, for example, 1G memory. Conversely, when the number of employees is large and the calculation period is long, the memory space can be set relatively large. For example, 10G memory. In this embodiment, the data whose usage frequency is greater than the preset value is cached into the memory space, which can implement data sharing of multiple calculation processes, reduce data read and write times, improve computing performance, and maintain data consistency.
所述设置模块203,用于设定访问所述内存空间的访问接口。本实施例中,所述访问接口支持k/v方式和list方式的数据读取。The setting module 203 is configured to set an access interface for accessing the memory space. In this embodiment, the access interface supports data reading in the k/v mode and the list mode.
所述获取模块204,用于监控薪资计算过程,获取所述薪资计算过程所需数据。The obtaining module 204 is configured to monitor a salary calculation process and obtain data required by the salary calculation process.
具体地,为获取所述薪资计算过程所需数据,所述获取模块204,还用于截取所述薪资计算过程产生的数据调取命令;并解析所述数据调取命令,获取所述所需数据的标识信息。Specifically, in order to obtain data required by the salary calculation process, the obtaining module 204 is further configured to intercept a data retrieval command generated by the salary calculation process; and parse the data retrieval command to obtain the required Identification information of the data.
所述判断模块205,用于判断所述薪资计算过程所需数据是否属于所述内存空间内的数据。进一步地,所述判断模块205,还用于比对所述所需数据的标识信息与所述内存空间内数据的标识信息是否一致。若一致,所述判断模块205则判断所述薪资计算过程所需数据属于所述内存空间中所述使用频率大于预设值的数据。The determining module 205 is configured to determine whether data required by the salary calculation process belongs to data in the memory space. Further, the determining module 205 is further configured to compare whether the identification information of the required data and the identification information of the data in the memory space are consistent. If yes, the determining module 205 determines that the data required by the salary calculation process belongs to the data in the memory space whose usage frequency is greater than a preset value.
所述计算模块206,用于在若所述薪资计算过程所需数据属于所述内存空间内的数据时,通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据。The calculating module 206 is configured to retrieve data required in the salary calculation process from the memory space through the access interface when data required by the salary calculation process belongs to data in the memory space.
所述计算模块206,还用于根据调取的所述薪资计算过程中所需数据进行薪资计算。进一步地,所述薪资计算结果可以通过所述移动终端显示。本实施例中,所述移动终端可以是移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、车载装置等等的可移动设备,以及诸如数字TV、台式计算机、笔记本、服务器等等的固定终端。The calculation module 206 is further configured to perform salary calculation according to the data required in the salary calculation process that is retrieved. Further, the salary calculation result may be displayed by the mobile terminal. In this embodiment, the mobile terminal may be a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and a car. A mobile device such as a device, and a fixed terminal such as a digital TV, a desktop computer, a notebook, a server, and the like.
进一步地,基于本申请薪资计算的数据处理程序200的上述第一实施例,提出本申请的第二实施例(如图3所示)。本实施例中,所述薪资计算的数据处理程序200还包括清除模块207,其中:Further, based on the above-described first embodiment of the data processing program 200 of the salary calculation of the present application, a second embodiment of the present application (shown in FIG. 3) is proposed. In this embodiment, the salary calculation data processing program 200 further includes a clearing module 207, where:
所述清除模块207,用于在所述薪资计算结束之后,对所述内存空间的数据进行擦除。The clearing module 207 is configured to erase data of the memory space after the salary calculation ends.
进一步地,基于本申请薪资计算的数据处理程序200的上述第一实施例,提出本申请的第三实施例(如图4所示)。本实施例中,所述薪资计算的数据处理程序200还包括备份模块208,其中:Further, based on the above-described first embodiment of the data processing program 200 of the salary calculation of the present application, a third embodiment of the present application (shown in FIG. 4) is proposed. In this embodiment, the salary calculation data processing program 200 further includes a backup module 208, wherein:
所述备份模块208,用于将所述内存空间的数据备份至云端。The backup module 208 is configured to back up data of the memory space to the cloud.
本实施例中,将所述内存空间的数据备份至云端,一方面,可以保证磁盘损坏后,数据不会丢失。另一方面,通过对内存数据的备份存储,还可以保存中间计算过程数据,便于验证薪资计算过程的正确性。In this embodiment, the data of the memory space is backed up to the cloud, and on the one hand, the data is not lost after the disk is damaged. On the other hand, through the backup storage of the memory data, the intermediate calculation process data can also be saved, which is convenient for verifying the correctness of the salary calculation process.
此外,本申请还提出一种薪资计算的数据处理方法。In addition, the present application also proposes a data processing method for salary calculation.
参阅图5所示,是本申请薪资计算的数据处理方法第一实施例的实施流程示意图。在本实施例中,根据不同的需求,图5所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 5, it is a schematic flowchart of the implementation of the first embodiment of the data processing method of the salary calculation of the present application. In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 5 may be changed according to different requirements, and some steps may be omitted.
步骤S501,在预设的时间段统计薪资计算过程中使用频率大于预设值的数据。本实施例中,所述预设时间以及预设值都由管理人员根据需要进行设置,本申请并不对所述预设时间以及预设值的具体范围作限定。例如,管理人员想知道1周内薪资计算过程中使用频率大于50次的数据,则将预设时间 设为1周,预设值设为50。其中,所述应用服务器1通过以下方式统计薪资计算过程中预设的时间段使用频率大于预设值的数据:In step S501, the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period. In this embodiment, the preset time and the preset value are set by the administrator according to requirements, and the specific range of the preset time and the preset value is not limited in the present application. For example, if the manager wants to know the data used more than 50 times during the salary calculation in 1 week, set the preset time to 1 week and the preset value to 50. The application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
所述应用服务器1,获取薪资计算过程所使用数据的标识信息,并通过所述标识信息统计从硬盘读取所述标识信息代表的数据的次数。The application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
另外,为了方便统计,所述应用服务器1在所述使用频率大于预设值的数据中加入标识信息。In addition, for convenience statistics, the application server 1 adds identification information to the data whose usage frequency is greater than a preset value.
步骤S502,划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间。Step S502, delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
具体地,所述预设大小由管理人员根据员工数量及计算周期进行设置。例如,当员工数量少,计算周期短时,可以将所述内存空间设置的比较小,例如1G内存,反之,当员工数量多,计算周期长时,可以将所述内存空间设置的比较大,例如10G内存。本实施例中,将所述使用频率大于预设值的数据缓存至所述内存空间,可以实现多个计算过程的数据共享,减少数据读写次数,提升计算性能并保持数据一致性。Specifically, the preset size is set by the administrator according to the number of employees and the calculation period. For example, when the number of employees is small and the calculation period is short, the memory space can be set to be relatively small, for example, 1G memory. Conversely, when the number of employees is large and the calculation period is long, the memory space can be set relatively large. For example, 10G memory. In this embodiment, the data whose usage frequency is greater than the preset value is cached into the memory space, which can implement data sharing of multiple calculation processes, reduce data read and write times, improve computing performance, and maintain data consistency.
步骤S503,设定访问所述内存空间的访问接口。Step S503, setting an access interface for accessing the memory space.
本实施例中,所述访问接口支持k/v方式和list方式的数据读取。In this embodiment, the access interface supports data reading in the k/v mode and the list mode.
步骤S504,监控薪资计算过程,获取所述薪资计算过程所需数据。其中,所述应用服务器1通过以下方式获取薪资计算过程所需数据:Step S504, monitoring the salary calculation process, and acquiring data required by the salary calculation process. The application server 1 obtains data required by the salary calculation process by:
所述应用服务器1,首先,截取薪资计算过程产生的数据调取命令。然后,解析所述数据调取命令,获取所述所需数据的标识信息。The application server 1 first intercepts a data retrieval command generated by the salary calculation process. Then, parsing the data retrieval command to obtain identification information of the required data.
步骤S505,判断所述薪资计算过程所需数据是否属于所述内存空间内的数据。若所述薪资计算过程所需数据属于所述内存空间内的数据,执行步骤S506,否则,结束。Step S505, determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S506 is performed, otherwise, it ends.
进一步地,所述应用服务器1比对所述所需数据的标识信息与所述内存空间内数据的标识信息是否一致。若一致,所述应用服务器1则判断所述薪资计算过程所需数据属于所述内存空间中所述使用频率大于预设值的数据。Further, the application server 1 compares the identification information of the required data with the identification information of the data in the memory space. If they are consistent, the application server 1 determines that the data required by the salary calculation process belongs to the data in the memory space whose usage frequency is greater than a preset value.
步骤S506,通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据。Step S506, the data required in the salary calculation process is retrieved from the memory space through the access interface.
步骤S507,根据调取的所述薪资计算过程中所需数据进行薪资计算。进一步地,所述薪资计算结果可以通过所述移动终端显示。本实施例中,所述移动终端可以是移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、车载装置等等的可移动设备,以及诸如数字TV、台式计算机、笔记本、服务器等等的固定终端。Step S507, performing salary calculation according to the data required in the salary calculation process that is obtained. Further, the salary calculation result may be displayed by the mobile terminal. In this embodiment, the mobile terminal may be a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and a car. A mobile device such as a device, and a fixed terminal such as a digital TV, a desktop computer, a notebook, a server, and the like.
通过上述步骤S501-507,本申请所提出的薪资计算的数据处理方法,首先,所述应用服务器1在预设的时间段统计薪资计算过程中使用频率大于预设值的数据;然后,划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间;其次,设定访问所述内存空间的访问接口;再次,监控薪资计算过程,获取所述薪资计算过程所需数据;之后,判断所述薪资计算过程所需数据是否属于所述内存空间内的数据;及当所述薪资计算过程所需数据属于所述内存空间内的数据时,则通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据;最后,根据调取的所述薪资计算过程中所需数据进行薪资计算。这样,既可以避免现有技术中对硬盘数据的重复读写而影响硬盘的使用寿命,同时也因为一些重复的数据重复读写导致整个薪资计算流程的效率低下的弊端,又能够使得内存读写速度更快,大幅提升薪资计算速度,与常规处理方式相比整体运算速度得到很大提升。Through the above steps S501-507, the data processing method of the salary calculation proposed by the present application, first, the application server 1 uses the data whose frequency is greater than the preset value in the statistical salary calculation process in a preset time period; a memory space of a preset size, the data whose usage frequency is greater than a preset value is cached to the memory space; secondly, an access interface for accessing the memory space is set; and again, the salary calculation process is monitored to obtain the salary calculation Data required by the process; thereafter, determining whether the data required by the salary calculation process belongs to data in the memory space; and when the data required by the salary calculation process belongs to data in the memory space, The access interface retrieves data required in the salary calculation process from the memory space; finally, performs salary calculation according to the data required in the salary calculation process that is retrieved. In this way, it can avoid the repeated reading and writing of the hard disk data in the prior art and affect the service life of the hard disk, and also cause the inefficiency of the entire salary calculation process due to repeated data read and write, which can make the memory read and write. The speed is faster, the salary calculation speed is greatly improved, and the overall operation speed is greatly improved compared with the conventional processing method.
参阅图6所示,是本申请薪资计算的数据处理方法第二实施例的实施流程示意图。在本实施例中,根据不同的需求,图6所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 6, it is a schematic flowchart of the implementation of the second embodiment of the data processing method of the salary calculation of the present application. In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 6 may be changed according to different requirements, and some steps may be omitted.
步骤S601,在预设的时间段统计薪资计算过程中使用频率大于预设值的数据。其中,所述应用服务器1通过以下方式统计薪资计算过程中预设的时间段使用频率大于预设值的数据:In step S601, the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period. The application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
所述应用服务器1,获取薪资计算过程所使用数据的标识信息,并通过所述标识信息统计从硬盘读取所述标识信息代表的数据的次数。The application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
步骤S602,划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间。Step S602, delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
步骤S603,设定访问所述内存空间的访问接口。Step S603, setting an access interface for accessing the memory space.
步骤S604,监控薪资计算过程,获取所述薪资计算过程所需数据。Step S604, monitoring the salary calculation process, and acquiring data required by the salary calculation process.
步骤S605,判断所述薪资计算过程所需数据是否属于所述内存空间内的数据。若所述薪资计算过程所需数据属于所述内存空间内的数据,执行步骤S606,否则,结束。Step S605, determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S606 is performed, otherwise, it ends.
步骤S606,通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据。Step S606, the data required in the salary calculation process is retrieved from the memory space through the access interface.
步骤S607,根据调取的所述薪资计算过程中所需数据进行薪资计算。Step S607, performing salary calculation according to the data required in the salary calculation process that is obtained.
步骤S608,在所述薪资计算结束之后,对所述内存空间的数据进行擦除。Step S608, after the salary calculation ends, the data of the memory space is erased.
通过上述步骤S601-608,本申请所提出的薪资计算的数据处理方法,可以及时清除内存中的无效数据,提高数据处理速度。Through the above steps S601-608, the data processing method of the salary calculation proposed by the present application can timely clear the invalid data in the memory and improve the data processing speed.
参阅图7所示,是本申请薪资计算的数据处理方法第三实施例的实施流程示意图。在本实施例中,根据不同的需求,图7所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 7, it is a schematic flowchart of the implementation of the third embodiment of the data processing method of the salary calculation of the present application. In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 7 may be changed according to different requirements, and some steps may be omitted.
步骤S701,在预设的时间段统计薪资计算过程中使用频率大于预设值的数据。In step S701, the data whose frequency is greater than the preset value is used in the statistical salary calculation process in the preset time period.
其中,所述应用服务器1通过以下方式统计薪资计算过程中预设的时间段使用频率大于预设值的数据:The application server 1 collects data with a preset time period using a frequency greater than a preset value in the salary calculation process by:
所述应用服务器1,获取薪资计算过程所使用数据的标识信息,并通过所述标识信息统计从硬盘读取所述标识信息代表的数据的次数。The application server 1 obtains identification information of data used in the salary calculation process, and counts the number of times the data represented by the identification information is read from the hard disk by using the identification information.
步骤S702,划定预设大小的内存空间,将所述使用频率大于预设值的数据缓存至所述内存空间。Step S702, delimiting a memory space of a preset size, and buffering the data whose usage frequency is greater than a preset value into the memory space.
步骤S703,将所述内存空间的数据备份至云端。Step S703, backing up data of the memory space to the cloud.
步骤S704,设定访问所述内存空间的访问接口。Step S704, setting an access interface for accessing the memory space.
步骤S705,监控薪资计算过程,获取所述薪资计算过程所需数据。Step S705, monitoring the salary calculation process, and acquiring data required by the salary calculation process.
其中,所述应用服务器1通过以下方式获取薪资计算过程所需数据:The application server 1 obtains data required by the salary calculation process by:
所述应用服务器1,首先,截取薪资计算过程产生的数据调取命令。然后,解析所述数据调取命令,获取所述所需数据的标识信息。The application server 1 first intercepts a data retrieval command generated by the salary calculation process. Then, parsing the data retrieval command to obtain identification information of the required data.
步骤S706,判断所述薪资计算过程所需数据是否属于所述内存空间内的数据。若所述薪资计算过程所需数据属于所述内存空间内的数据,执行步骤S807,否则,结束。Step S706, determining whether data required by the salary calculation process belongs to data in the memory space. If the data required by the salary calculation process belongs to the data in the memory space, step S807 is performed, otherwise, it ends.
步骤S707,通过所述访问接口从所述内存空间调取所述薪资计算过程中所需数据。Step S707, the data required in the salary calculation process is retrieved from the memory space through the access interface.
步骤S708,根据调取的所述薪资计算过程中所需数据进行薪资计算。Step S708, performing salary calculation according to the data required in the salary calculation process that is retrieved.
通过上述步骤S701-708,本申请所提出的薪资计算的数据处理方法,通过将所述内存空间的数据备份至云端,一方面,可以保证磁盘损坏后,数据不会丢失。另一方面,通过对内存数据的备份存储,还可以保存中间计算过程数据,便于验证薪资计算过程的正确性。Through the above steps S701-708, the data processing method of the salary calculation proposed by the present application can ensure that the data is not lost after the disk is damaged by backing up the data of the memory space to the cloud. On the other hand, through the backup storage of the memory data, the intermediate calculation process data can also be saved, which is convenient for verifying the correctness of the salary calculation process.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有薪资计算的数据处理程序,所述薪资计算的数据处理程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的薪资计算的数据处理方法的步骤。Further, in order to achieve the above object, the present application further provides a computer readable storage medium storing a data processing program of salary calculation, the data processing program of the salary calculation may be at least one processor Executing, in order for the at least one processor to perform the steps of the data processing method of the salary calculation as described above.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘) 中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.
Claims (20)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711141746.4 | 2017-11-17 | ||
| CN201711141746.4A CN108241583A (en) | 2017-11-17 | 2017-11-17 | Data processing method, application server and the computer readable storage medium that wages calculate |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019095669A1 true WO2019095669A1 (en) | 2019-05-23 |
Family
ID=62701008
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/089701 Ceased WO2019095669A1 (en) | 2017-11-17 | 2018-06-03 | Salary calculation data processing method, application server, and computer readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108241583A (en) |
| WO (1) | WO2019095669A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109976905B (en) * | 2019-03-01 | 2021-10-22 | 联想(北京)有限公司 | Memory management method and device and electronic equipment |
| CN110018969B (en) * | 2019-03-08 | 2023-06-02 | 平安科技(深圳)有限公司 | Data caching method, device, computer equipment and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1542644A (en) * | 2003-04-28 | 2004-11-03 | 威盛电子股份有限公司 | Salary paying system and payment method thereof |
| CN101388110A (en) * | 2008-10-31 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Data rapidly-reading method and apparatus |
| CN102591799A (en) * | 2011-12-30 | 2012-07-18 | 华为技术有限公司 | Method and device for data storage |
| US9032113B2 (en) * | 2008-03-27 | 2015-05-12 | Apple Inc. | Clock control for DMA busses |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002207620A (en) * | 2001-01-10 | 2002-07-26 | Toshiba Corp | File system and data caching method in the system |
| CN100462940C (en) * | 2007-01-30 | 2009-02-18 | 金蝶软件(中国)有限公司 | Method and apparatus for cache data in memory |
| CN101286143B (en) * | 2008-05-26 | 2012-05-09 | 中兴通讯股份有限公司 | Method for supervisory unit driving cache |
| CN101882119B (en) * | 2009-05-08 | 2014-05-14 | 上海炬力集成电路设计有限公司 | NAND flash memory controller and data transmission method thereof |
| CN101692229B (en) * | 2009-07-28 | 2012-06-20 | 武汉大学 | Self-adaptive multilevel cache system for three-dimensional spatial data based on data content |
| US8874823B2 (en) * | 2011-02-15 | 2014-10-28 | Intellectual Property Holdings 2 Llc | Systems and methods for managing data input/output operations |
| CN105808451B (en) * | 2014-12-29 | 2019-12-06 | 华为技术有限公司 | Data caching method and related device |
| CN104598615A (en) * | 2015-01-31 | 2015-05-06 | 广州亦云信息技术有限公司 | Memory access method and device supporting data persistence |
| CN106484633A (en) * | 2016-10-08 | 2017-03-08 | 广州华多网络科技有限公司 | A kind of data cached method and device |
| CN107169709A (en) * | 2017-05-25 | 2017-09-15 | 四川建联达网络科技有限公司 | The one-stop management method of building trade and its management platform |
-
2017
- 2017-11-17 CN CN201711141746.4A patent/CN108241583A/en active Pending
-
2018
- 2018-06-03 WO PCT/CN2018/089701 patent/WO2019095669A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1542644A (en) * | 2003-04-28 | 2004-11-03 | 威盛电子股份有限公司 | Salary paying system and payment method thereof |
| US9032113B2 (en) * | 2008-03-27 | 2015-05-12 | Apple Inc. | Clock control for DMA busses |
| CN101388110A (en) * | 2008-10-31 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Data rapidly-reading method and apparatus |
| CN102591799A (en) * | 2011-12-30 | 2012-07-18 | 华为技术有限公司 | Method and device for data storage |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108241583A (en) | 2018-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8521986B2 (en) | Allocating storage memory based on future file size or use estimates | |
| US9177028B2 (en) | Deduplicating storage with enhanced frequent-block detection | |
| US10079907B2 (en) | Cached data detection | |
| WO2019062189A1 (en) | Electronic device, method and system for conducting data table filing processing, and storage medium | |
| EP4020153A1 (en) | Cache space management method and device | |
| US20160140054A1 (en) | Method and system for determining fifo cache size | |
| CN107092628B (en) | Method and device for processing time series data | |
| WO2019134339A1 (en) | Desensitization method and procedure, application server and computer readable storage medium | |
| WO2020224125A1 (en) | Method and device for monitoring io delay of distributed file system, and storage medium | |
| CN106156038B (en) | Date storage method and device | |
| CN112988539B (en) | A visual server monitoring system and method | |
| WO2019071958A1 (en) | Cloud computing-based salary calculation method, application server, and computer readable storage medium | |
| WO2019095669A1 (en) | Salary calculation data processing method, application server, and computer readable storage medium | |
| CN109597724A (en) | Service stability measurement method, device, computer equipment and storage medium | |
| US9948587B2 (en) | Data deduplication at the network interfaces | |
| US10430115B2 (en) | System and method for optimizing multiple packaging operations in a storage system | |
| CN113590017B (en) | Methods, electronic equipment and computer program products for processing data | |
| US20250005141A1 (en) | Utilization of the least code principle to structure workflows | |
| US20200133495A1 (en) | Method, electronic device and computer program product for reading data | |
| US10949359B2 (en) | Optimizing cache performance with probabilistic model | |
| CN113676531B (en) | E-commerce flow peak clipping method and device, electronic equipment and readable storage medium | |
| US11175830B2 (en) | Storage system and data restoration method | |
| US20220083227A1 (en) | Method, electronic device and computer program product for managing backup system | |
| CN115982175A (en) | Statistical method, storage medium and computer equipment of database information | |
| US20150356011A1 (en) | Electronic device and data writing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18878082 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.10.2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18878082 Country of ref document: EP Kind code of ref document: A1 |