WO2019134340A1 - Salary calculation method, application server, and computer readable storage medium - Google Patents

Salary calculation method, application server, and computer readable storage medium Download PDF

Info

Publication number
WO2019134340A1
WO2019134340A1 PCT/CN2018/089729 CN2018089729W WO2019134340A1 WO 2019134340 A1 WO2019134340 A1 WO 2019134340A1 CN 2018089729 W CN2018089729 W CN 2018089729W WO 2019134340 A1 WO2019134340 A1 WO 2019134340A1
Authority
WO
WIPO (PCT)
Prior art keywords
rule
business rules
employee
salary calculation
business
Prior art date
Application number
PCT/CN2018/089729
Other languages
French (fr)
Chinese (zh)
Inventor
周毅
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019134340A1 publication Critical patent/WO2019134340A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/105Human resources
    • G06Q10/1057Benefits or employee welfare, e.g. insurance, holiday or retirement packages

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a salary calculation method, an application server, and a computer readable storage medium.
  • the present application proposes a salary calculation method, an application server, and a computer readable storage medium, which can introduce a rule engine, extract a large number of rule calculations from a database, maintain them into a rule engine, and perform calculations more efficiently. It can also better support concurrent computing, improve computing efficiency, and implement hot deployment of the rules engine.
  • the present application provides an application server, where the application server includes a memory, a processor, and a memory calculation program executable on the processor, where the salary calculation program is
  • the processor implements the following steps when executed:
  • the business rule is executed to obtain a salary calculation result.
  • the present application further provides a salary calculation method, which is applied to an application server, and the method includes the steps of:
  • the business rule is executed to obtain a salary calculation result.
  • the present application further provides a computer readable storage medium storing a salary calculation program, the salary calculation program being executable by at least one processor to enable the At least one processor performs the steps of the salary calculation method as described above.
  • the application server, the salary calculation method, and the computer readable storage medium proposed by the present application firstly generate a business rule according to user input information; then, store the generated business rule, and construct a rule base; Then, the employee ID input by the user is received, and then the database is obtained according to the employee ID, the employee information corresponding to the employee ID is obtained, and the business rule is invoked from the rule base by using a rule engine, and according to the employee The information matches the business rules. Finally, after the employee information matches the business rules, the business rules are executed to obtain a salary calculation result.
  • FIG. 1 is a schematic diagram of an optional application environment of each embodiment of the present application.
  • FIG. 2 is a schematic diagram of an optional hardware architecture of the application server of FIG. 1;
  • Figure 3 is a block diagram showing the program modules of the first, second and third embodiments of the salary calculation program of the present application
  • FIG. 5 is a flowchart of a second embodiment of a salary calculation method of the present application.
  • FIG. 6 is a flowchart of a third embodiment of a salary calculation method of the present application.
  • FIG. 7 is a flowchart of a fourth embodiment of a salary calculation method of the present application.
  • FIG. 1 it is a schematic diagram of an optional application environment of each embodiment of the present application.
  • the present application is applicable to an application environment including, but not limited to, the terminal device 1, the application server 2, and the network 3.
  • the terminal device 1 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, an in-vehicle device, etc.
  • Mobile devices such as, and fixed terminals such as digital TVs, desktop computers, notebooks, servers, and the like.
  • the application server 2 may be a computing device such as a rack server, a blade server, a tower server, or a rack server.
  • the application server 2 may be a stand-alone server or a server cluster composed of multiple servers.
  • the network 3 may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, Wireless or wired networks such as 5G networks, Bluetooth, Wi-Fi, and call networks
  • the application server 2 is respectively connected to one or more of the terminal devices 1 through the network 3 for data transmission and interaction.
  • the application server 2 is installed with a salary calculation program 200.
  • the application server 2 When the salary calculation program 200 is running, the application server 2 generates a business rule according to user input information; stores the generated business rule, and Build a rule base; receive an employee ID (work number) input by the user, query a database according to the employee ID, obtain employee information corresponding to the employee ID, and construct a rule engine, and the rule engine retrieves from the rule base
  • the business rule matches the business rule according to the employee information, and after the employee information matches the business rule, executes a business rule to obtain a salary calculation result.
  • FIG. 2 it is a schematic diagram of an optional hardware architecture of the application server 2 in FIG.
  • the application server 2 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.
  • FIG. 2 only shows the terminal device 1 having the components 11-13, but it should be understood that not all illustrated components are required to 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 2, such as a hard disk or memory of the application server 2.
  • the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital number. (Secure Digital, SD) card, flash card, etc.
  • the memory 11 can also include both the internal storage unit of the application server 2 and its external storage device.
  • the memory 11 is generally used to store an operating system installed in the application server 2 and various types of application software, such as program codes of the salary calculation program 200. 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 2, such as performing control and processing related to data interaction or communication with the terminal device 1.
  • the processor 12 is configured to run program code or process data stored in the memory 11, such as running the salary calculation program 200 and the like.
  • 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 2 and other electronic devices.
  • the network interface 13 is mainly used to connect the application server 2 to one or more of the terminal devices 1 through the network 3, and the application server 2 and the one or more terminals. A data transmission channel and a communication connection are established between the devices 1.
  • the present application proposes a salary calculation program 200.
  • FIG. 3 it is a program block diagram of the first embodiment of the salary calculation program 200 of the present application.
  • the salary calculation 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 calculation operation of the embodiments of the present application can be implemented. .
  • the salary calculation 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. 3, the salary calculation program 200 may be divided into a rule generation module 201, a rule base establishment module 202, a salary inquiry module 203, an employee information inquiry module 204, and a rule engine module 205. among them:
  • the rule generating module 201 is configured to generate a service rule according to the user inputting information in the terminal device 1.
  • the input information may be the employee number information of the employee, and according to the employee number information, the user's job level and the corresponding service category may be obtained, for example, the input user number is 450063, and the corresponding The position is a first-line salesperson, and the business category is auto insurance business.
  • the business rule of the first-line salesperson corresponding to the auto insurance business is to increase the certain share a% of the salesperson's total business A and subtract the b% of the upper-level business personnel, that is, the business
  • the rule generation module 201 is further configured to read a formatted form input by the user, and automatically generate a business rule.
  • the rule generation module 201 displays the business rules in the rule base through a web (web page) component, where the rule base refers to a business rule for different services, that is, a salary calculation rule, All salary calculation rules can be included in a rule base for unified retrieval.
  • the rule generation module 201 further accepts editing or modification of the business rule displayed by the user on the web, and generates a new business rule according to the editing or modification.
  • the rule generating module 201 is further configured to synchronize the new business rule to the rule base for storage after generating a new business rule. In this way, real-time update of business rules is guaranteed, which facilitates dynamic and flexible maintenance of business rule logic.
  • the rule base establishing module 202 is configured to store the generated business rules and construct a rule base.
  • the salary inquiry module 203 is configured to receive an employee ID (work number) input by the user.
  • the employee information querying module 204 is configured to obtain the employee information corresponding to the employee ID according to the employee ID query database.
  • the database of the application server 2 stores employee information of all employees, including employee ID, name, business type, business quantity, time, employee breeding relationship (or subordinate relationship), business affiliates, etc. .
  • the rule engine module 205 is configured to invoke the business rule from the rule base by using a rule engine.
  • the rules engine is a component embedded in the application, such as Drools, VisualRules, iLog. It can quickly parse data retrieval commands from the command code and retrieve business rules and parse them according to the data retrieval commands.
  • the rule engine module 205 is further configured to: after the rule engine retrieves the business rule from the rule base, match the business rule according to the employee information.
  • the application server 2 includes a cache unit, and the employee information query module 204 temporarily stores the employee information corresponding to the acquired employee ID before the step of matching the service rule according to the employee information.
  • the rule engine module 205 obtains the employee information from the cache unit and matches the service rule.
  • the employee information is used to obtain the service type of the corresponding employee, and according to the service type. Match salary calculation rules in business rules. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
  • the salary query module 203 is further configured to: after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
  • the salary query module 203 is further configured to: after the rule engine obtains the salary calculation result, perform the interface display on the salary calculation result. Specifically, the salary query module 203 presents the salary calculation result to the user through a web page. In this embodiment, the salary calculation result is presented to the user through a webpage, which is simple to implement, convenient for the user to query, and can improve the user experience.
  • the salary calculation program 200 proposed by the present application firstly, the application server 2 generates a business rule according to user input information; secondly, stores the generated business rule, and builds a rule base; then, Receiving an employee ID input by the user, querying a database according to the employee ID, acquiring employee information corresponding to the employee ID, and calling the business rule from the rule base by using a rule engine, and according to the employee information, The business rules are matched. Finally, after the employee information matches the business rules, the business rules are executed to obtain the salary calculation result.
  • the salary query module 203 is further configured to: after the rule engine module 205 calls the business rule in the rule base, let the business rule be graphically Forms are presented.
  • the salary query unit module 203 is further configured to: after the rule engine module 205 invokes the business rule in the rule base, let the business rule be presented in the form of a natural language.
  • the natural language is a language that is different from a programming language and is commonly used in daily life.
  • the salary calculation program 200 proposed by the present application can intuitively display the business rules, so that the user obtains the information more intuitively and improves the user experience.
  • the present application also proposes a salary calculation method.
  • FIG. 4 it is a schematic flowchart of the implementation of the first embodiment of the salary calculation method of the present application.
  • the order of execution of the steps in the flowchart shown in FIG. 4 may be changed according to different requirements, and some steps may be omitted.
  • Step S401 generating a business rule according to the user input information.
  • the user can make an input in the terminal device 1.
  • the input information may be the employee number information of the employee, and according to the employee number information, the user's job level and the corresponding service category may be obtained, for example, the input user number is 450063, and the corresponding The position is a first-line salesperson, and the business category is auto insurance business.
  • the business rule of the first-line salesperson corresponding to the auto insurance business is to increase the certain share a% of the salesperson's total business A and subtract the b% of the upper-level business personnel, that is, the business
  • the rule generation module 201 is further configured to read a formatted form input by the user, and automatically generate a business rule.
  • the rule generation module 201 displays the business rules in the rule base through a web component, where the rule base refers to a business rule for different services, that is, a salary calculation rule, and all salary calculations thereof. Rules can be included in a rule base for unified retrieval. The step of generating a business rule based on user input information will be detailed in the fourth embodiment (Fig. 7).
  • Step S402 storing the generated business rules, and constructing a rule base.
  • Step S403 receiving an employee ID (work number) input by the user.
  • Step S404 Query the database according to the employee ID, and obtain employee information corresponding to the employee ID.
  • the database of the application server 2 stores employee information of all employees, including employee ID, name, business type, business quantity, time, employee breeding relationship (or subordinate relationship), business affiliates, etc. .
  • Step S405 the rule rule is used to invoke the business rule from the rule base.
  • the rule engine is a component embedded in the application, such as Drools, VisualRules, iLog. It can quickly parse data retrieval commands from the command code and retrieve business rules and parse them according to the data retrieval commands.
  • the application server 2 causes the business rule to be graphically Show.
  • the application server 2 causes the business rule to be presented in the form of a natural language.
  • the natural language is a language that is different from a programming language and is commonly used in daily life.
  • Step S406 matching the business rules according to the employee information.
  • the application server 2 includes a cache unit, and before the step of matching the service rule according to the employee information, the application server 2 temporarily stores the acquired employee information corresponding to the employee ID in the Cache unit; and obtaining employee information from the cache unit to match the business rule.
  • the service type of the corresponding employee is obtained through the employee information, and the salary calculation rule in the business rule is matched according to the service type. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
  • Step S407 after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
  • the salary calculation method proposed by the present application firstly, the application server 2 generates a business rule according to user input information; secondly, stores the generated business rule, and constructs a rule base; and then receives the user Entering an employee ID, querying a database according to the employee ID, acquiring employee information corresponding to the employee ID, and calling the business rule from the rule base by using a rule engine, and referring to the business rule according to the employee information The matching is performed. Finally, after the employee information matches the business rule, the business rule is executed to obtain the salary calculation result.
  • FIG. 5 it is a schematic flowchart of the implementation of the second embodiment of the salary calculation method 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 generating a business rule according to the user input information.
  • Step S502 storing the generated business rules, and constructing a rule base.
  • Step S503 receiving an employee ID input by the user.
  • Step S504 querying the database according to the employee ID, and acquiring employee information corresponding to the employee ID.
  • Step S505 the rule rule is used to invoke the business rule from the rule base.
  • Step S506 matching the business rules according to the employee information.
  • Step S507 after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
  • Step S508 after the rule engine obtains the salary calculation result, the salary calculation result is displayed on the interface. For example, it is displayed on the interface of the terminal device 1.
  • the application server 2 presents the salary calculation result to the user through a web page.
  • the salary calculation method proposed by the present application can present the salary calculation result to the user through a webpage, which is simple and convenient for the user to query, and can improve the user experience.
  • FIG. 6 it is a schematic flowchart of the implementation of the third embodiment of the salary calculation method 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 generating a business rule according to the user input information.
  • Step S602 storing the generated business rules, and constructing a rule base.
  • Step S603 receiving an employee ID input by the user.
  • Step S604 Query the database according to the employee ID, and obtain employee information corresponding to the employee ID.
  • Step S605 the rule rule is used to invoke the business rule from the rule base.
  • Step S606 temporarily storing the employee information corresponding to the acquired employee ID in the cache unit.
  • Step S607 Acquire employee information from the cache unit to match the business rule.
  • the application server 2 includes a cache unit that temporarily stores the employee information corresponding to the acquired employee ID in the cache unit, and acquires employee information from the cache unit to match the business rule. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
  • Step S608 after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
  • the salary calculation method proposed by the present application can establish a white list registered by the interface, so that unsafe registry update can be prevented.
  • the step of generating a service rule according to the user input information specifically includes:
  • Step S701 reading the formatted form input by the user, and automatically generating a business rule.
  • Step S702 displaying a business rule in the rule base through a web component.
  • Step S703 accepting editing or modification of the business rule displayed by the user on the web, and generating a new business rule according to the editing or modification.
  • the salary calculation method proposed by the present application can generate a business rule according to user input information. And ensure the real-time update of business rules, which is convenient for dynamic and flexible maintenance of business rule logic.
  • the present application further provides a computer readable storage medium storing a salary calculation program, the salary calculation program being executable by at least one processor to enable the At least one processor performs the steps of the salary calculation method 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 various embodiments of the present application.

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed is a salary calculation method. The method comprises: generating a service rule according to user input information; storing the generated service rule, and constructing a rule base; receiving an employee ID input by a user; querying a database according to the employee ID, and obtaining employee information corresponding to the employee ID; invoking the service rule from the rule base by using a rule engine, and matching the service rule on the basis of the employee information; and executing the service rule after the employee information matches the service rule, to obtain a salary calculation result. The present application also provides an application server and a computer readable storage medium. By implementing the solution disclosed by the present application, a large number of rule calculations are extracted from the database and maintained into the rule engine, calculations can be completed more efficiently, and concurrent calculations can be better supported, so that the calculation efficiency is improved, and the hot deployment of the rule engine is achieved.

Description

薪资计算方法、应用服务器及计算机可读存储介质Salary calculation method, application server, and computer readable storage medium
本申请要求于2018年01月03日提交中国专利局、申请号为201810003919.4、发明名称为“薪资计算方法、应用服务器及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims priority to Chinese Patent Application No. 201810003919.4, entitled "Salary Calculation Method, Application Server, and Computer Readable Storage Media", filed on January 3, 2018, the entire contents of which are incorporated by reference. Combined in the application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种薪资计算方法、应用服务器及计算机可读存储介质。The present application relates to the field of communications technologies, and in particular, to a salary calculation method, an application server, and a computer readable storage medium.
背景技术Background technique
随着企业的发展,各种渠道机构逐渐复杂化,而相应渠道的薪资计算也随之复杂化。目前渠道系统中的薪资计算过程中包含大量的规则计算,这些规则计算主要是通过将计算逻辑“硬编码”的方式嵌入数据库程序中,如此则需要在数据库程序中进行维护,导致可维护性和扩展性差的问题,一旦薪资政策发生变化,不仅维护困难,容易出错,而且还需要重新部署系统,导致较高的软件维护和升级成本。另外,目前的这种计算方式在数据库中的并发只能精确到机构单位,对每个机构单位内部薪资计算逻辑无法进行并发,导致计算效率低下。With the development of enterprises, various channel organizations are gradually complicated, and the salary calculation of corresponding channels is complicated. At present, the salary calculation process in the channel system contains a large number of rule calculations. These rule calculations are mainly embedded in the database program by "hard coding" the calculation logic, so maintenance in the database program is required, resulting in maintainability and The problem of poor scalability, once the salary policy changes, not only maintenance difficulties, error-prone, but also the need to redeploy the system, resulting in higher software maintenance and upgrade costs. In addition, the current calculation of this type of calculation in the database can only be accurate to the institutional unit, the internal salary calculation logic of each institutional unit can not be concurrent, resulting in low computational efficiency.
发明内容Summary of the invention
有鉴于此,本申请提出一种薪资计算方法、应用服务器及计算机可读存储介质,能够引入规则引擎,将大量的规则计算从数据库中提炼出来,维护到规则引擎中,更加高效率的完成计算,还可以较好的支持并发计算,提升计算效率,以及实现规则引擎的热部署。In view of this, the present application proposes a salary calculation method, an application server, and a computer readable storage medium, which can introduce a rule engine, extract a large number of rule calculations from a database, maintain them into a rule engine, and perform calculations more efficiently. It can also better support concurrent computing, improve computing efficiency, and implement hot deployment of the rules engine.
首先,为实现上述目的,本申请提出一种应用服务器,所述应用服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的薪资计算程序,所述薪资计算程序被所述处理器执行时实现如下步骤:First, in order to achieve the above object, the present application provides an application server, where the application server includes a memory, a processor, and a memory calculation program executable on the processor, where the salary calculation program is The processor implements the following steps when executed:
根据用户输入信息生成业务规则;Generate business rules based on user input information;
存储生成的所述业务规则,并构建规则库;Storing the generated business rules and building a rule base;
接收用户输入的员工ID;Receiving the employee ID entered by the user;
根据所述员工ID查询数据库,获取所述员工ID对应的员工信息;Obtaining employee information corresponding to the employee ID according to the employee ID query database;
利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配;及Using the rules engine to invoke the business rules from the rule base, and matching the business rules according to the employee information; and
在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。After the employee information matches the business rule, the business rule is executed to obtain a salary calculation result.
此外,为实现上述目的,本申请还提供一种薪资计算方法,该方法应用于应用服务器,所述方法包括步骤:In addition, in order to achieve the above object, the present application further provides a salary calculation method, which is applied to an application server, and the method includes the steps of:
根据用户输入信息生成业务规则;Generate business rules based on user input information;
存储生成的所述业务规则,并构建规则库;Storing the generated business rules and building a rule base;
接收用户输入的员工ID;Receiving the employee ID entered by the user;
根据所述员工ID查询数据库,获取所述员工ID对应的员工信息;Obtaining employee information corresponding to the employee ID according to the employee ID query database;
利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配;及Using the rules engine to invoke the business rules from the rule base, and matching the business rules according to the employee information; and
在所述员工信息匹配所述业务规则后,执行业务规则,获取薪资计算结果。After the employee information matches the business rule, the business rule is executed to obtain a salary calculation result.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有薪资计算程序,所述薪资计算程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的薪资计算方法的步骤。Further, in order to achieve the above object, the present application further provides a computer readable storage medium storing a salary calculation program, the salary calculation program being executable by at least one processor to enable the At least one processor performs the steps of the salary calculation method as described above.
相较于现有技术,本申请所提出的应用服务器、薪资计算方法及计算机 可读存储介质,首先,根据用户输入信息生成业务规则;然后,存储生成的所述业务规则,并构建规则库;接着,接收用户输入的员工ID,然后,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息,及利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配,最后,在所述员工信息匹配所述业务规则后,执行业务规则,获取薪资计算结果。这样,既可以避免现有技术中大量的计算逻辑非常复杂,可读性不强,难以维护的弊端,又能够引入规则引擎,将大量的规则计算从数据库中提炼出来,维护到规则引擎中,可以实现业务逻辑在规则引擎中的多种形式展现,比如图形、更加接近自然语言的表达方式,也可以实现规则的单独优化,更加高效率的完成计算,还可以较好的支持并发计算,提升计算效率,以及实现规则引擎的热部署。Compared with the prior art, the application server, the salary calculation method, and the computer readable storage medium proposed by the present application firstly generate a business rule according to user input information; then, store the generated business rule, and construct a rule base; Then, the employee ID input by the user is received, and then the database is obtained according to the employee ID, the employee information corresponding to the employee ID is obtained, and the business rule is invoked from the rule base by using a rule engine, and according to the employee The information matches the business rules. Finally, after the employee information matches the business rules, the business rules are executed to obtain a salary calculation result. In this way, it can avoid the disadvantages of a large number of calculation logics in the prior art, the readability is not strong, and it is difficult to maintain, and the rule engine can be introduced, and a large number of rule calculations are extracted from the database and maintained in the rule engine. It can realize various forms of business logic in the rules engine, such as graphics, expressions closer to natural language, individual optimization of rules, more efficient calculation, and better support for concurrent computing. Calculate efficiency and implement hot deployment of the rules engine.
附图说明DRAWINGS
图1是本申请各个实施例一可选的应用环境示意图;1 is a schematic diagram of an optional application environment of each embodiment of the present application;
图2是图1中应用服务器一可选的硬件架构的示意图;2 is a schematic diagram of an optional hardware architecture of the application server of FIG. 1;
图3是本申请薪资计算程序第一、第二及第三实施例的程序模块图;Figure 3 is a block diagram showing the program modules of the first, second and third embodiments of the salary calculation program of the present application;
图4为本申请薪资计算方法第一实施例的流程图;4 is a flow chart of a first embodiment of a salary calculation method of the present application;
图5为本申请薪资计算方法第二实施例的流程图;5 is a flowchart of a second embodiment of a salary calculation method of the present application;
图6为本申请薪资计算方法第三实施例的流程图;6 is a flowchart of a third embodiment of a salary calculation method of the present application;
图7为本申请薪资计算方法第四实施例的流程图。FIG. 7 is a flowchart of a fourth embodiment of a salary calculation method of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施 例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。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所示,是本申请各个实施例一可选的应用环境示意图。Referring to FIG. 1 , it is a schematic diagram of an optional application environment of each embodiment of the present application.
在本实施例中,本申请可应用于包括,但不仅限于,终端设备1、应用服务器2、网络3的应用环境中。其中,所述终端设备1可以是移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、车载装置等等的可移动设备,以及诸如数字TV、台式计算机、笔记本、服务器等等的固定终端。所述应用服务器2可以是机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等计算设备,该应用服务器2可以是独立的服务器,也可以是多个服务器所组成的服务器集群。所述网络3可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi、通话网络等无线或有线网络。In this embodiment, the present application is applicable to an application environment including, but not limited to, the terminal device 1, the application server 2, and the network 3. The terminal device 1 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, an in-vehicle device, etc. Mobile devices such as, and fixed terminals such as digital TVs, desktop computers, notebooks, servers, and the like. The application server 2 may be a computing device such as a rack server, a blade server, a tower server, or a rack server. The application server 2 may be a stand-alone server or a server cluster composed of multiple servers. The network 3 may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, Wireless or wired networks such as 5G networks, Bluetooth, Wi-Fi, and call networks.
其中,所述应用服务器2中通过所述网络3分别与一个或多个所述终端设备1通信连接,以进行数据传输和交互。The application server 2 is respectively connected to one or more of the terminal devices 1 through the network 3 for data transmission and interaction.
本实施例中,所述应用服务器2内安装有薪资计算程序200,当所述薪资计算程序200运行时,所述应用服务器2根据用户输入信息生成业务规则;存 储生成的所述业务规则,并构建规则库;接收用户输入的员工ID(工号),根据所述员工ID查询数据库,获取所述员工ID对应的员工信息,及构建规则引擎,所述规则引擎从所述规则库中调取所述业务规则,并依据所述员工信息对所述业务规则进行匹配,在所述员工信息匹配所述业务规则后,执行业务规则,获取薪资计算结果。这样,既可以避免现有技术中大量的计算逻辑非常复杂,可读性不强,难以维护的弊端,又能够引入规则引擎,将大量的规则计算从数据库中提炼出来,维护到规则引擎中,可以实现业务逻辑在规则引擎中的多种形式展现,比如图形、更加接近自然语言的表达方式,也可以实现规则的单独优化,更加高效率的完成计算,还可以较好的支持并发计算,提升计算效率,以及实现规则引擎的热部署。In this embodiment, the application server 2 is installed with a salary calculation program 200. When the salary calculation program 200 is running, the application server 2 generates a business rule according to user input information; stores the generated business rule, and Build a rule base; receive an employee ID (work number) input by the user, query a database according to the employee ID, obtain employee information corresponding to the employee ID, and construct a rule engine, and the rule engine retrieves from the rule base The business rule matches the business rule according to the employee information, and after the employee information matches the business rule, executes a business rule to obtain a salary calculation result. In this way, it can avoid the disadvantages of a large number of calculation logics in the prior art, the readability is not strong, and it is difficult to maintain, and the rule engine can be introduced, and a large number of rule calculations are extracted from the database and maintained in the rule engine. It can realize various forms of business logic in the rules engine, such as graphics, expressions closer to natural language, individual optimization of rules, more efficient calculation, and better support for concurrent computing. Calculate efficiency and implement hot deployment of the rules engine.
参阅图2所示,是图1中应用服务器2一可选的硬件架构的示意图。本实施例中,所述应用服务器2可包括,但不仅限于,可通过系统总线相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图2仅示出了具有组件11-13的终端设备1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Referring to FIG. 2, it is a schematic diagram of an optional hardware architecture of the application server 2 in FIG. In this embodiment, the application server 2 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. It is to be noted that FIG. 2 only shows the terminal device 1 having the components 11-13, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器11可以是所述应用服务器2的内部存储单元,例如该应用服务器2的硬盘或内存。在另一些实施例中,所述存储器11也可以是所述应用服务器2的外部存储设备,例如该应用服务器2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器11还可以既包括所述应用服务器2的内部存储单元也包括其外部存储设备。本实施例中,所述存储器11通常用于存储安装于所述应用服务器2的操作系统和各 类应用软件,例如所述薪资计算程序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 2, such as a hard disk or memory of the application server 2. In other embodiments, the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital number. (Secure Digital, SD) card, flash card, etc. Of course, the memory 11 can also include both the internal storage unit of the application server 2 and its external storage device. In this embodiment, the memory 11 is generally used to store an operating system installed in the application server 2 and various types of application software, such as program codes of the salary calculation program 200. 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通常用于控制所述应用服务器2的总体操作,例如执行与所述终端设备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 2, such as performing control and processing related to data interaction or communication with the terminal device 1. In this embodiment, the processor 12 is configured to run program code or process data stored in the memory 11, such as running the salary calculation program 200 and the like.
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述应用服务器2与其他电子设备之间建立通信连接。本实施例中,所述网络接口13主要用于通过所述网络3将所述应用服务器2与一个或多个所述终端设备1相连,在所述应用服务器2与所述一个或多个终端设备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 2 and other electronic devices. In this embodiment, the network interface 13 is mainly used to connect the application server 2 to one or more of the terminal devices 1 through the network 3, and the application server 2 and the one or more terminals. A data transmission channel and a communication connection are established between the devices 1.
至此,己经详细介绍了本申请各个实施例的应用环境和相关设备的硬件结构和功能。下面,将基于上述应用环境和相关设备,提出本申请的各个实施例。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 salary calculation program 200.
参阅图3所示,是本申请薪资计算程序200第一实施例的程序模块图。Referring to FIG. 3, it is a program block diagram of the first embodiment of the salary calculation program 200 of the present application.
本实施例中,所述的薪资计算程序200包括一系列的存储于存储器11上的计算机程序指令,当该计算机程序指令被处理器12执行时,可以实现本申请各实施例的薪资的计算操作。在一些实施例中,基于该计算机程序指令各部分所实现的特定的操作,所述薪资计算程序200可以被划分为一个或多个模块。例如,在图3中,所述的薪资计算程序200可以被分割成规则生成模块201、规则库建立模块202、薪资查询模块203、员工信息查询模块204及规则引擎模块205。其中:In this embodiment, the salary calculation 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 calculation operation of the embodiments of the present application can be implemented. . In some embodiments, the salary calculation 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. 3, the salary calculation program 200 may be divided into a rule generation module 201, a rule base establishment module 202, a salary inquiry module 203, an employee information inquiry module 204, and a rule engine module 205. among them:
所述规则生成模块201,用于根据用户在终端设备1输入信息生成业务规 则。在本实施方式中,所述输入信息可以为员工的工号信息,根据员工的工号信息,可以获取该用户的职位层级以及相应的业务类别,比如输入的用户工号为450063,此时对应的职位则为一线销售员,业务类别为车险业务。那么在此种情况下,对应车险业务的一线销售员的业务规则则是将该业务员的业务总额A的一定份额a%提成再减去上一级业务人员的提成b%,即所述业务规则即相应业务员的业务收入B=A*a%(1-b%),如此将业务类别对应薪资计算规则的业务规则并进行关联存储,即生成业务规则。进一步地,为提供一种的新的业务规则生成方式,所述规则生成模块201,还用于读取用户输入的格式化的表格,自动生成业务规则。本实施例中,所述规则生成模块201通过web(网页)组件显示所述规则库中的业务规则,其中所述规则库指的是针对不同业务的一种业务规则,即薪资计算规则,其所有薪资计算规则均可收入一个规则库,进而进行统一的调取。The rule generating module 201 is configured to generate a service rule according to the user inputting information in the terminal device 1. In this embodiment, the input information may be the employee number information of the employee, and according to the employee number information, the user's job level and the corresponding service category may be obtained, for example, the input user number is 450063, and the corresponding The position is a first-line salesperson, and the business category is auto insurance business. Then, in this case, the business rule of the first-line salesperson corresponding to the auto insurance business is to increase the certain share a% of the salesperson's total business A and subtract the b% of the upper-level business personnel, that is, the business The rule is the business income of the corresponding salesperson B=A*a%(1-b%), so that the business category is associated with the business rules of the salary calculation rule, and the business rules are generated. Further, in order to provide a new business rule generation manner, the rule generation module 201 is further configured to read a formatted form input by the user, and automatically generate a business rule. In this embodiment, the rule generation module 201 displays the business rules in the rule base through a web (web page) component, where the rule base refers to a business rule for different services, that is, a salary calculation rule, All salary calculation rules can be included in a rule base for unified retrieval.
所述规则生成模块201,还接受用户对所述web显示的所述业务规则的编辑或修改,并根据所述编辑或修改生成新的业务规则。所述规则生成模块201,还用于在生成了新的业务规则后,将所述新的业务规则同步至所述规则库进行存储。以此,保证业务规则的实时更新,便于业务规则逻辑的动态灵活维护。The rule generation module 201 further accepts editing or modification of the business rule displayed by the user on the web, and generates a new business rule according to the editing or modification. The rule generating module 201 is further configured to synchronize the new business rule to the rule base for storage after generating a new business rule. In this way, real-time update of business rules is guaranteed, which facilitates dynamic and flexible maintenance of business rule logic.
所述规则库建立模块202,用于存储生成的所述业务规则,并构建规则库。The rule base establishing module 202 is configured to store the generated business rules and construct a rule base.
所述薪资查询模块203,用于接收用户输入的员工ID(工号)。The salary inquiry module 203 is configured to receive an employee ID (work number) input by the user.
所述员工信息查询模块204,用于根据所述员工ID查询数据库,获取所述员工ID对应的员工信息。The employee information querying module 204 is configured to obtain the employee information corresponding to the employee ID according to the employee ID query database.
一般地,所述应用服务器2的数据库存储了所有员工的员工信息,所述员工信息包括员工ID、姓名、业务类型、业务数量、时间、员工育成关系(或者上下级关系)、业务所属机构等。Generally, the database of the application server 2 stores employee information of all employees, including employee ID, name, business type, business quantity, time, employee breeding relationship (or subordinate relationship), business affiliates, etc. .
所述规则引擎模块205,用于利用规则引擎从所述规则库中调用所述业务规则。在本实施方式中,规则引擎是一种嵌入在应用程序中的组件,比如 Drools,VisualRules,iLog。其可以快速的从命令代码中解析数据调取命令,并根据数据调取命令调取业务规则并解析。The rule engine module 205 is configured to invoke the business rule from the rule base by using a rule engine. In this embodiment, the rules engine is a component embedded in the application, such as Drools, VisualRules, iLog. It can quickly parse data retrieval commands from the command code and retrieve business rules and parse them according to the data retrieval commands.
所述规则引擎模块205,还用于在所述规则引擎从所述规则库中调取所述业务规则后,依据所述员工信息对所述业务规则进行匹配。The rule engine module 205 is further configured to: after the rule engine retrieves the business rule from the rule base, match the business rule according to the employee information.
具体地,所述应用服务器2包括缓存单元,在所述依据所述员工信息对所述业务规则进行匹配的步骤之前,所述员工信息查询模块204,将获取的员工ID相应的员工信息暂存于所述缓存单元;所述规则引擎模块205,从所述缓存单元获取员工信息与所述业务规则进行匹配,具体的,通过员工信息获取相应员工从事的业务类型,并根据所述业务类型去匹配业务规则中的薪资计算规则。这样,能够防止规则引擎执行故障或者匹配失败导致员工信息丢失,进而重新获取员工信息,如此影响薪资计算流程效率。Specifically, the application server 2 includes a cache unit, and the employee information query module 204 temporarily stores the employee information corresponding to the acquired employee ID before the step of matching the service rule according to the employee information. In the cache unit, the rule engine module 205 obtains the employee information from the cache unit and matches the service rule. Specifically, the employee information is used to obtain the service type of the corresponding employee, and according to the service type. Match salary calculation rules in business rules. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
所述薪资查询模块203,还用于在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。The salary query module 203 is further configured to: after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
进一步地,所述薪资查询模块203,还用于在所述规则引擎获取了所述薪资计算结果后,将所述薪资计算结果进行界面显示。具体地,所述薪资查询模块203通过web页面将所述薪资计算结果呈现给用户。本实施例中,通过web页面将所述薪资计算结果呈现给用户,实现简单,方便用户查询,能够提升用户体验。Further, the salary query module 203 is further configured to: after the rule engine obtains the salary calculation result, perform the interface display on the salary calculation result. Specifically, the salary query module 203 presents the salary calculation result to the user through a web page. In this embodiment, the salary calculation result is presented to the user through a webpage, which is simple to implement, convenient for the user to query, and can improve the user experience.
通过上述程序模块201-205,本申请所提出的薪资计算程序200,首先,所述应用服务器2根据用户输入信息生成业务规则;其次,存储生成的所述业务规则,并构建规则库;然后,接收用户输入的员工ID,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息,及利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配,最后,在所述员工信息匹配所述业务规则后,执行业务规则,获取薪资计算结果。这样,既可以避免现有技术中大量的计算逻辑非常复杂,可读性不强,难以维护的弊端,又能够引入规则引擎,将大量的规则计算从数据库中提炼 出来,维护到规则引擎中,可以实现业务逻辑在规则引擎中的多种形式展现,比如图形、更加接近自然语言的表达方式,也可以实现规则的单独优化,更加高效率的完成计算,还可以较好的支持并发计算,提升计算效率,以及实现规则引擎的热部署。Through the above-mentioned program modules 201-205, the salary calculation program 200 proposed by the present application firstly, the application server 2 generates a business rule according to user input information; secondly, stores the generated business rule, and builds a rule base; then, Receiving an employee ID input by the user, querying a database according to the employee ID, acquiring employee information corresponding to the employee ID, and calling the business rule from the rule base by using a rule engine, and according to the employee information, The business rules are matched. Finally, after the employee information matches the business rules, the business rules are executed to obtain the salary calculation result. In this way, it can avoid the disadvantages of a large number of calculation logics in the prior art, the readability is not strong, and it is difficult to maintain, and the rule engine can be introduced, and a large number of rule calculations are extracted from the database and maintained in the rule engine. It can realize various forms of business logic in the rules engine, such as graphics, expressions closer to natural language, individual optimization of rules, more efficient calculation, and better support for concurrent computing. Calculate efficiency and implement hot deployment of the rules engine.
进一步地,基于本申请薪资计算程序200的上述第一实施例,提出本申请的第三实施例(如图3所示)。本实施例中:Further, based on the above-described first embodiment of the salary calculation program 200 of the present application, a third embodiment of the present application (shown in FIG. 3) is proposed. In this embodiment:
为了使用户获取信息更加直观,提升用户的体验,所述薪资查询模块203还用于,在所述规则引擎模块205调用所述规则库中的业务规则后,让所述业务规则以图形化的形式进行展现。In order to make the user's information more intuitive and enhance the user's experience, the salary query module 203 is further configured to: after the rule engine module 205 calls the business rule in the rule base, let the business rule be graphically Forms are presented.
进一步地,所述薪资查询单元模块203还用于,在所述规则引擎模块205调用所述规则库中的业务规则后,让所述业务规则以自然语言的形式进行展现。本实施例中,所述自然语言是区别于程序语言,日常生活常用的语言。Further, the salary query unit module 203 is further configured to: after the rule engine module 205 invokes the business rule in the rule base, let the business rule be presented in the form of a natural language. In this embodiment, the natural language is a language that is different from a programming language and is commonly used in daily life.
通过上述程序模块201-205,本申请所提出的薪资计算程序200可以直观地显示业务规则,这样使用户获取信息更加直观,提升用户的体验。Through the above-mentioned program modules 201-205, the salary calculation program 200 proposed by the present application can intuitively display the business rules, so that the user obtains the information more intuitively and improves the user experience.
此外,本申请还提出一种薪资计算方法。In addition, the present application also proposes a salary calculation method.
参阅图4所示,是本申请薪资计算方法第一实施例的实施流程示意图。在本实施例中,根据不同的需求,图4所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 4, it is a schematic flowchart of the implementation of the first embodiment of the salary calculation method of the present application. In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 4 may be changed according to different requirements, and some steps may be omitted.
步骤S401,根据用户输入信息生成业务规则。用户可以在终端设备1中进行输入。在本实施方式中,所述输入信息可以为员工的工号信息,根据员工的工号信息,可以获取该用户的职位层级以及相应的业务类别,比如输入的用户工号为450063,此时对应的职位则为一线销售员,业务类别为车险业务。那么在此种情况下,对应车险业务的一线销售员的业务规则则是将该业务员的业务总额A的一定份额a%提成再减去上一级业务人员的提成b%,即所述业务规则即相应业务员的业务收入B=A*a%(1-b%),即生成业务类别对应薪资计算规则的业务规则。进一步地,为提供一种的新的业务规则生成方式,所述 规则生成模块201,还用于读取用户输入的格式化的表格,自动生成业务规则。本实施例中,所述规则生成模块201通过web组件显示所述规则库中的业务规则,其中所述规则库指的是针对不同业务的一种业务规则,即薪资计算规则,其所有薪资计算规则均可收入一个规则库,进而进行统一的调取。所述根据用户输入信息生成业务规则的步骤将在第四实施例(图7)中详述。Step S401, generating a business rule according to the user input information. The user can make an input in the terminal device 1. In this embodiment, the input information may be the employee number information of the employee, and according to the employee number information, the user's job level and the corresponding service category may be obtained, for example, the input user number is 450063, and the corresponding The position is a first-line salesperson, and the business category is auto insurance business. Then, in this case, the business rule of the first-line salesperson corresponding to the auto insurance business is to increase the certain share a% of the salesperson's total business A and subtract the b% of the upper-level business personnel, that is, the business The rule is the business income of the corresponding salesperson B=A*a%(1-b%), which is the business rule for generating the salary calculation rule corresponding to the business category. Further, in order to provide a new business rule generation manner, the rule generation module 201 is further configured to read a formatted form input by the user, and automatically generate a business rule. In this embodiment, the rule generation module 201 displays the business rules in the rule base through a web component, where the rule base refers to a business rule for different services, that is, a salary calculation rule, and all salary calculations thereof. Rules can be included in a rule base for unified retrieval. The step of generating a business rule based on user input information will be detailed in the fourth embodiment (Fig. 7).
步骤S402,存储生成的所述业务规则,并构建规则库。Step S402, storing the generated business rules, and constructing a rule base.
步骤S403,接收用户输入的员工ID(工号)。Step S403, receiving an employee ID (work number) input by the user.
步骤S404,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息。一般地,所述应用服务器2的数据库存储了所有员工的员工信息,所述员工信息包括员工ID、姓名、业务类型、业务数量、时间、员工育成关系(或者上下级关系)、业务所属机构等。Step S404: Query the database according to the employee ID, and obtain employee information corresponding to the employee ID. Generally, the database of the application server 2 stores employee information of all employees, including employee ID, name, business type, business quantity, time, employee breeding relationship (or subordinate relationship), business affiliates, etc. .
步骤S405,利用规则引擎从所述规则库中调用所述业务规则。在本实施方式中,规则引擎是一种嵌入在应用程序中的组件,比如Drools,VisualRules,iLog。其可以快速的从命令代码中解析数据调取命令,并根据数据调取命令调取业务规则并解析。Step S405, the rule rule is used to invoke the business rule from the rule base. In this embodiment, the rule engine is a component embedded in the application, such as Drools, VisualRules, iLog. It can quickly parse data retrieval commands from the command code and retrieve business rules and parse them according to the data retrieval commands.
本实施例中,为了使用户获取信息更加直观,提升用户的体验,在所述规则引擎调用所述规则库中的业务规则后,所述应用服务器2让所述业务规则以图形化的形式进行展现。In this embodiment, in order to make the user's information more intuitive and enhance the user's experience, after the rule engine invokes the business rule in the rule base, the application server 2 causes the business rule to be graphically Show.
进一步地,在所述规则引擎调用所述规则库中的业务规则后,所述应用服务器2让所述业务规则以自然语言的形式进行展现。本实施例中,所述自然语言是区别于程序语言,日常生活常用的语言。Further, after the rule engine invokes the business rule in the rule base, the application server 2 causes the business rule to be presented in the form of a natural language. In this embodiment, the natural language is a language that is different from a programming language and is commonly used in daily life.
步骤S406,依据所述员工信息对所述业务规则进行匹配。Step S406, matching the business rules according to the employee information.
具体地,所述应用服务器2包括缓存单元,在所述依据所述员工信息对所述业务规则进行匹配的步骤之前,所述应用服务器2将获取的员工ID相应的员工信息暂存于所述缓存单元;并从所述缓存单元获取员工信息与所述业务规则进行匹配。具体的,通过员工信息获取相应员工从事的业务类型,并根据 所述业务类型去匹配业务规则中的薪资计算规则。这样,能够防止规则引擎执行故障或者匹配失败导致员工信息丢失,进而重新获取员工信息,如此影响薪资计算流程效率。Specifically, the application server 2 includes a cache unit, and before the step of matching the service rule according to the employee information, the application server 2 temporarily stores the acquired employee information corresponding to the employee ID in the Cache unit; and obtaining employee information from the cache unit to match the business rule. Specifically, the service type of the corresponding employee is obtained through the employee information, and the salary calculation rule in the business rule is matched according to the service type. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
步骤S407,在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。Step S407, after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
通过上述步骤S401-407,本申请所提出的薪资计算方法,首先,所述应用服务器2根据用户输入信息生成业务规则;其次,存储生成的所述业务规则,并构建规则库;然后,接收用户输入的员工ID,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息,及利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配,最后,在所述员工信息匹配所述业务规则后,执行业务规则,获取薪资计算结果。这样,既可以避免现有技术中大量的计算逻辑非常复杂,可读性不强,难以维护的弊端,又能够引入规则引擎,将大量的规则计算从数据库中提炼出来,维护到规则引擎中,可以实现业务逻辑在规则引擎中的多种形式展现,比如图形、更加接近自然语言的表达方式,也可以实现规则的单独优化,更加高效率的完成计算,还可以较好的支持并发计算,提升计算效率,以及实现规则引擎的热部署。Through the above steps S401-407, the salary calculation method proposed by the present application firstly, the application server 2 generates a business rule according to user input information; secondly, stores the generated business rule, and constructs a rule base; and then receives the user Entering an employee ID, querying a database according to the employee ID, acquiring employee information corresponding to the employee ID, and calling the business rule from the rule base by using a rule engine, and referring to the business rule according to the employee information The matching is performed. Finally, after the employee information matches the business rule, the business rule is executed to obtain the salary calculation result. In this way, it can avoid the disadvantages of a large number of calculation logics in the prior art, the readability is not strong, and it is difficult to maintain, and the rule engine can be introduced, and a large number of rule calculations are extracted from the database and maintained in the rule engine. It can realize various forms of business logic in the rules engine, such as graphics, expressions closer to natural language, individual optimization of rules, more efficient calculation, and better support for concurrent computing. Calculate efficiency and implement hot deployment of the rules engine.
参阅图5所示,是本申请薪资计算方法第二实施例的实施流程示意图。在本实施例中,根据不同的需求,图5所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 5, it is a schematic flowchart of the implementation of the second embodiment of the salary calculation method 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,根据用户输入信息生成业务规则。Step S501, generating a business rule according to the user input information.
步骤S502,存储生成的所述业务规则,并构建规则库。Step S502, storing the generated business rules, and constructing a rule base.
步骤S503,接收用户输入的员工ID。Step S503, receiving an employee ID input by the user.
步骤S504,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息。Step S504, querying the database according to the employee ID, and acquiring employee information corresponding to the employee ID.
步骤S505,利用规则引擎从所述规则库中调用所述业务规则。。Step S505, the rule rule is used to invoke the business rule from the rule base. .
步骤S506,依据所述员工信息对所述业务规则进行匹配。Step S506, matching the business rules according to the employee information.
步骤S507,在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。Step S507, after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
步骤S508,在所述规则引擎获取了所述薪资计算结果后,将所述薪资计算结果进行界面显示。例如,显示在终端设备1的界面。Step S508, after the rule engine obtains the salary calculation result, the salary calculation result is displayed on the interface. For example, it is displayed on the interface of the terminal device 1.
具体地,所述应用服务器2通过web页面将所述薪资计算结果呈现给用户。Specifically, the application server 2 presents the salary calculation result to the user through a web page.
通过上述步骤S501-508,本申请所提出的薪资计算方法,可以通过web页面将所述薪资计算结果呈现给用户,实现简单,方便用户查询,能够提升用户体验。Through the above steps S501-508, the salary calculation method proposed by the present application can present the salary calculation result to the user through a webpage, which is simple and convenient for the user to query, and can improve the user experience.
参阅图6所示,是本申请薪资计算方法第三实施例的实施流程示意图。在本实施例中,根据不同的需求,图6所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 6, it is a schematic flowchart of the implementation of the third embodiment of the salary calculation method 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,根据用户输入信息生成业务规则。Step S601, generating a business rule according to the user input information.
步骤S602,存储生成的所述业务规则,并构建规则库。Step S602, storing the generated business rules, and constructing a rule base.
步骤S603,接收用户输入的员工ID。Step S603, receiving an employee ID input by the user.
步骤S604,根据所述员工ID查询数据库,获取所述员工ID对应的员工信息。Step S604: Query the database according to the employee ID, and obtain employee information corresponding to the employee ID.
步骤S605,利用规则引擎从所述规则库中调用所述业务规则。。Step S605, the rule rule is used to invoke the business rule from the rule base. .
步骤S606,将获取的员工ID相应的员工信息暂存于所述缓存单元。Step S606, temporarily storing the employee information corresponding to the acquired employee ID in the cache unit.
步骤S607,从所述缓存单元获取员工信息与所述业务规则进行匹配。Step S607: Acquire employee information from the cache unit to match the business rule.
具体地,所述应用服务器2包括缓存单元,将获取的员工ID相应的员工信息暂存于所述缓存单元;并从所述缓存单元获取员工信息与所述业务规则进行匹配。这样,能够防止规则引擎执行故障或者匹配失败导致员工信息丢失,进而重新获取员工信息,如此影响薪资计算流程效率。Specifically, the application server 2 includes a cache unit that temporarily stores the employee information corresponding to the acquired employee ID in the cache unit, and acquires employee information from the cache unit to match the business rule. In this way, it is possible to prevent the rule engine from performing a fault or the matching failure, resulting in the loss of employee information, thereby re-acquiring employee information, thus affecting the efficiency of the salary calculation process.
步骤S608,在所述员工信息匹配所述业务规则后,执行所述业务规则, 获取薪资计算结果。Step S608, after the employee information matches the business rule, execute the business rule to obtain a salary calculation result.
通过上述步骤S601-608,本申请所提出的薪资计算方法,可以通过建立接口注册的白名单,这样可以防止不安全的注册表更新。Through the above steps S601-608, the salary calculation method proposed by the present application can establish a white list registered by the interface, so that unsafe registry update can be prevented.
参阅图7所示,是本申请薪资计算方法第四实施例的实施流程示意图。在本实施例中,所述根据用户输入信息生成业务规则的步骤,具体包括:Referring to FIG. 7, it is a schematic flowchart of the implementation of the fourth embodiment of the salary calculation method of the present application. In this embodiment, the step of generating a service rule according to the user input information specifically includes:
步骤S701,读取用户输入的格式化的表格,自动生成业务规则。Step S701, reading the formatted form input by the user, and automatically generating a business rule.
步骤S702,通过web组件显示所述规则库中的业务规则。Step S702, displaying a business rule in the rule base through a web component.
步骤S703,接受用户对所述web显示的所述业务规则的编辑或修改,并根据所述编辑或修改生成新的业务规则。Step S703, accepting editing or modification of the business rule displayed by the user on the web, and generating a new business rule according to the editing or modification.
通过上述步骤S701-703,本申请所提出的薪资计算方法,可以根据用户输入信息生成业务规则。且保证业务规则的实时更新,便于业务规则逻辑的动态灵活维护。Through the above steps S701-703, the salary calculation method proposed by the present application can generate a business rule according to user input information. And ensure the real-time update of business rules, which is convenient for dynamic and flexible maintenance of business rule logic.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有薪资计算程序,所述薪资计算程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的薪资计算方法的步骤。Further, in order to achieve the above object, the present application further provides a computer readable storage medium storing a salary calculation program, the salary calculation program being executable by at least one processor to enable the At least one processor performs the steps of the salary calculation method 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 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)

  1. 一种薪资计算方法,应用于应用服务器,其特征在于,所述方法包括步骤:A salary calculation method is applied to an application server, characterized in that the method comprises the steps of:
    根据用户输入信息生成业务规则;Generate business rules based on user input information;
    存储生成的所述业务规则,并构建规则库;Storing the generated business rules and building a rule base;
    接收用户输入的员工ID;Receiving the employee ID entered by the user;
    根据所述员工ID查询数据库,获取所述员工ID对应的员工信息;Obtaining employee information corresponding to the employee ID according to the employee ID query database;
    利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配;及Using the rules engine to invoke the business rules from the rule base, and matching the business rules according to the employee information; and
    在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。After the employee information matches the business rule, the business rule is executed to obtain a salary calculation result.
  2. 如权利要求1所述的薪资计算方法,其特征在于,所述方法还包括步骤:The salary calculation method according to claim 1, wherein the method further comprises the steps of:
    在所述规则引擎获取了所述薪资计算结果后,将所述薪资计算结果进行界面显示。After the rule engine obtains the salary calculation result, the salary calculation result is displayed on the interface.
  3. 如权利要求1所述的薪资计算方法,其特征在于,所述根据用户输入信息生成业务规则的步骤,包括:The salary calculation method according to claim 1, wherein the step of generating a business rule according to the user input information comprises:
    读取用户输入的格式化的表格,自动生成业务规则;Read the formatted form entered by the user and automatically generate business rules;
    通过web组件显示所述规则库中的业务规则;及Displaying business rules in the rule base through a web component; and
    接受用户对所述web显示的所述业务规则的编辑或修改,并根据所述编辑或修改生成新的业务规则。Accepting editing or modification of the business rules displayed by the user on the web, and generating new business rules according to the editing or modification.
  4. 如权利要求1所述的薪资计算方法,其特征在于,所述根据用户输入信息生成业务规则的步骤,还包括:The salary calculation method according to claim 1, wherein the step of generating a business rule according to the user input information further comprises:
    生成了新的业务规则后,将所述新的业务规则同步至所述规则库进行存储。After the new business rules are generated, the new business rules are synchronized to the rule base for storage.
  5. 如权利要求4所述的薪资计算方法,其特征在于,所述方法还包括步骤:The salary calculation method according to claim 4, wherein the method further comprises the steps of:
    调用所述规则库中的业务规则后,所述业务规则以图形化的形式进行展现。After the business rules in the rule base are invoked, the business rules are presented in a graphical form.
  6. 如权利要求5所述的薪资计算方法,其特征在于,所述方法还包括步骤:The salary calculation method according to claim 5, wherein the method further comprises the steps of:
    调用所述规则库中的业务规则后,所述业务规则以自然语言的形式进行展现。After the business rules in the rule base are invoked, the business rules are presented in the form of natural language.
  7. 如权利要求1所述的薪资计算方法,其特征在于,所述方法还包括步骤:The salary calculation method according to claim 1, wherein the method further comprises the steps of:
    通过web页面将所述薪资计算结果呈现给用户。The salary calculation result is presented to the user through a web page.
  8. 如权利要求1所述的薪资计算方法,其特征在于,所述应用服务器包括缓存单元,在所述依据所述员工信息对所述业务规则进行匹配的步骤之前,所述方法还包括步骤:The salary calculation method according to claim 1, wherein the application server comprises a cache unit, and before the step of matching the service rule according to the employee information, the method further comprises the steps of:
    将获取的员工ID相应的员工信息暂存于所述缓存单元;及Temporarily storing employee information corresponding to the obtained employee ID in the cache unit; and
    从所述缓存单元获取员工信息与所述业务规则进行匹配。Obtaining employee information from the cache unit to match the business rule.
  9. 一种应用服务器,其特征在于,所述应用服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的薪资计算程序,所述薪资计算程序被所述处理器执行时实现如下步骤:An application server, comprising: a memory, a processor, wherein the memory stores a salary calculation program executable on the processor, when the salary calculation program is executed by the processor Implement the following steps:
    根据用户输入信息生成业务规则;Generate business rules based on user input information;
    存储生成的所述业务规则,并构建规则库;Storing the generated business rules and building a rule base;
    接收用户输入的员工ID;Receiving the employee ID entered by the user;
    根据所述员工ID查询数据库,获取所述员工ID对应的员工信息;Obtaining employee information corresponding to the employee ID according to the employee ID query database;
    利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配;及Using the rules engine to invoke the business rules from the rule base, and matching the business rules according to the employee information; and
    在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计 算结果。After the employee information matches the business rule, the business rule is executed to obtain a salary calculation result.
  10. 如权利要求9所述的应用服务器,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The application server according to claim 9, wherein said salary calculation program is further executed when said processor is executed:
    在所述规则引擎获取了所述薪资计算结果后,将所述薪资计算结果进行界面显示。After the rule engine obtains the salary calculation result, the salary calculation result is displayed on the interface.
  11. 如权利要求9所述的应用服务器,其特征在于,所述根据用户输入信息生成业务规则的步骤,包括:The application server according to claim 9, wherein the step of generating a business rule according to the user input information comprises:
    读取用户输入的格式化的表格,自动生成业务规则;Read the formatted form entered by the user and automatically generate business rules;
    通过web组件显示所述规则库中的业务规则;及Displaying business rules in the rule base through a web component; and
    接受用户对所述web显示的所述业务规则的编辑或修改,并根据所述编辑或修改生成新的业务规则。Accepting editing or modification of the business rules displayed by the user on the web, and generating new business rules according to the editing or modification.
  12. 如权利要求9所述的应用服务器,其特征在于,所述根据用户输入信息生成业务规则的步骤,还包括:The application server according to claim 9, wherein the step of generating a business rule according to the user input information further comprises:
    生成了新的业务规则后,将所述新的业务规则同步至所述规则库进行存储。After the new business rules are generated, the new business rules are synchronized to the rule base for storage.
  13. 如权利要求12所述的应用服务器,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The application server according to claim 12, wherein said salary calculation program is further executed when said processor is executed:
    调用所述规则库中的业务规则后,所述业务规则以图形化的形式进行展现。After the business rules in the rule base are invoked, the business rules are presented in a graphical form.
  14. 如权利要求13所述的应用服务器,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The application server according to claim 13, wherein said salary calculation program is further executed when said processor is executed:
    调用所述规则库中的业务规则后,所述业务规则以自然语言的形式进行展现。After the business rules in the rule base are invoked, the business rules are presented in the form of natural language.
  15. 如权利要求9所述的应用服务器,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The application server according to claim 9, wherein said salary calculation program is further executed when said processor is executed:
    通过web页面将所述薪资计算结果呈现给用户。The salary calculation result is presented to the user through a web page.
  16. 如权利要求9所述的应用服务器,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The application server according to claim 9, wherein said salary calculation program is further executed when said processor is executed:
    将获取的员工ID相应的员工信息暂存于所述缓存单元;及Temporarily storing employee information corresponding to the obtained employee ID in the cache unit; and
    从所述缓存单元获取员工信息与所述业务规则进行匹配。Obtaining employee information from the cache unit to match the business rule.
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储有薪资计算程序,所述薪资计算程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium storing a salary calculation program, the salary calculation program being executable by at least one processor to cause the at least one processor to perform the following steps:
    根据用户输入信息生成业务规则;Generate business rules based on user input information;
    存储生成的所述业务规则,并构建规则库;Storing the generated business rules and building a rule base;
    接收用户输入的员工ID;Receiving the employee ID entered by the user;
    根据所述员工ID查询数据库,获取所述员工ID对应的员工信息;Obtaining employee information corresponding to the employee ID according to the employee ID query database;
    利用规则引擎从所述规则库中调用所述业务规则,并依据所述员工信息对所述业务规则进行匹配;及Using the rules engine to invoke the business rules from the rule base, and matching the business rules according to the employee information; and
    在所述员工信息匹配所述业务规则后,执行所述业务规则,获取薪资计算结果。After the employee information matches the business rule, the business rule is executed to obtain a salary calculation result.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述薪资计算程序被所述处理器执行时还实现步骤:The computer readable storage medium of claim 17, wherein the salary calculation program is further executed when executed by the processor:
    在所述规则引擎获取了所述薪资计算结果后,将所述薪资计算结果进行界面显示。After the rule engine obtains the salary calculation result, the salary calculation result is displayed on the interface.
  19. 如权利要求17所述的计算机可读存储介质,其特征在于,述根据用户输入信息生成业务规则的步骤,包括:The computer readable storage medium according to claim 17, wherein the step of generating a business rule based on user input information comprises:
    读取用户输入的格式化的表格,自动生成业务规则;Read the formatted form entered by the user and automatically generate business rules;
    通过web组件显示所述规则库中的业务规则;及Displaying business rules in the rule base through a web component; and
    接受用户对所述web显示的所述业务规则的编辑或修改,并根据所述编辑或修改生成新的业务规则。Accepting editing or modification of the business rules displayed by the user on the web, and generating new business rules according to the editing or modification.
  20. 如权利要求17所述的计算机可读存储介质,其特征在于,所述根据 用户输入信息生成业务规则的步骤,还包括:The computer readable storage medium according to claim 17, wherein the step of generating a business rule based on the user input information further comprises:
    生成了新的业务规则后,将所述新的业务规则同步至所述规则库进行存储。After the new business rules are generated, the new business rules are synchronized to the rule base for storage.
PCT/CN2018/089729 2018-01-03 2018-06-03 Salary calculation method, application server, and computer readable storage medium WO2019134340A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810003919.4 2018-01-03
CN201810003919.4A CN108428104A (en) 2018-01-03 2018-01-03 Wages computational methods, application server and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2019134340A1 true WO2019134340A1 (en) 2019-07-11

Family

ID=63155811

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089729 WO2019134340A1 (en) 2018-01-03 2018-06-03 Salary calculation method, application server, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108428104A (en)
WO (1) WO2019134340A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109784855A (en) * 2019-01-14 2019-05-21 上海钧正网络科技有限公司 A kind of wages calculation method, device and server
CN110428224A (en) * 2019-07-29 2019-11-08 苏州共创方程式企业管理有限公司 A kind of intelligence deduction computing system and calculation method of deducting a percentage
CN110837519A (en) * 2019-11-18 2020-02-25 北京明略软件系统有限公司 Index data management method and device, electronic equipment and machine-readable storage medium
CN111369334B (en) * 2020-03-09 2023-08-29 阳光人寿保险股份有限公司 Salary calculation method and system
CN112561500B (en) * 2021-02-25 2021-05-25 深圳平安智汇企业信息管理有限公司 Salary data generation method, device, equipment and medium based on user data
CN112990863A (en) * 2021-03-09 2021-06-18 北京思特奇信息技术股份有限公司 Real-time reward settlement system and method based on Drools rule
CN112819602A (en) * 2021-03-16 2021-05-18 江苏积韬科技有限公司 Piece wage calculation method and device, terminal equipment and readable storage medium thereof
CN113076348B (en) * 2021-04-13 2022-12-13 度小满科技(北京)有限公司 Policy information management method, device, server and storage medium
CN113326042B (en) * 2021-06-28 2023-05-26 上海致景信息科技有限公司 Method, device, storage medium and processor for visual configuration salary
CN113377372A (en) * 2021-06-29 2021-09-10 平安普惠企业管理有限公司 Business rule analysis method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160140520A1 (en) * 2014-11-18 2016-05-19 Adp, Llc Real time funding solution for miscellaneous income
CN105719123A (en) * 2016-01-15 2016-06-29 成都金万泰科技有限公司 Performance management method and system within enterprise
CN106651677A (en) * 2016-12-08 2017-05-10 杭州销冠网络科技有限公司 Intelligent calculation method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479230A (en) * 2002-08-30 2004-03-03 英新达股份有限公司 Salary computing method and system
CN101510276A (en) * 2009-02-20 2009-08-19 浪潮集团山东通用软件有限公司 Payroll computation method adapting multi-valuta and multi-time-interval
CN102354317A (en) * 2011-09-22 2012-02-15 用友软件股份有限公司 Data generation device and method
CN105243514A (en) * 2015-11-09 2016-01-13 浙江中之杰软件技术有限公司 Salary management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160140520A1 (en) * 2014-11-18 2016-05-19 Adp, Llc Real time funding solution for miscellaneous income
CN105719123A (en) * 2016-01-15 2016-06-29 成都金万泰科技有限公司 Performance management method and system within enterprise
CN106651677A (en) * 2016-12-08 2017-05-10 杭州销冠网络科技有限公司 Intelligent calculation method and system

Also Published As

Publication number Publication date
CN108428104A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
US20210109934A1 (en) Configurable and incremental database migration framework for heterogeneous databases
WO2019076062A1 (en) Function page customization method and application server
US20150161280A1 (en) Method and system for centralized issue tracking
CN107909486B (en) Commission management method, application server and computer readable storage medium
US11561972B2 (en) Query conversion for querying disparate data sources
WO2019062191A1 (en) Electronic device, method and system for extracting data in data table, and storage medium
KR101643436B1 (en) Extensibility for web based diagram visualization
WO2019071959A1 (en) Channel addition method, application server, and computer readable storage medium
AU2014315494B2 (en) Automatically generating certification documents
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN111177113B (en) Data migration method, device, computer equipment and storage medium
WO2019071968A1 (en) Salary calculation method, application server, and computer readable storage medium
US20180239617A1 (en) Big data pipeline management within spreadsheet applications
WO2022001625A1 (en) Data query method and apparatus, computer device, and storage medium
WO2019071958A1 (en) Cloud computing-based salary calculation method, application server, and computer readable storage medium
CN113626223A (en) Interface calling method and device
US20180121441A1 (en) Accessing application services from forms
US11449461B2 (en) Metadata-driven distributed dynamic reader and writer
US20150100888A1 (en) Providing a common interface for accessing and presenting component configuration settings
US20130103724A1 (en) Network and method for managing models
US9002870B2 (en) System, method and computer program product for EDI-to-EDI translations
CN114003659A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN113342646B (en) Use case generation method, device, electronic equipment and medium
CN106687999B (en) Generating a set of instructions implementing rules designed to update objects specified according to an application data model

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: 18898109

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 29/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18898109

Country of ref document: EP

Kind code of ref document: A1