CN108428104A - Wages computational methods, application server and computer readable storage medium - Google Patents

Wages computational methods, application server and computer readable storage medium Download PDF

Info

Publication number
CN108428104A
CN108428104A CN201810003919.4A CN201810003919A CN108428104A CN 108428104 A CN108428104 A CN 108428104A CN 201810003919 A CN201810003919 A CN 201810003919A CN 108428104 A CN108428104 A CN 108428104A
Authority
CN
China
Prior art keywords
business rule
wages
rule
employee
business
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.)
Pending
Application number
CN201810003919.4A
Other languages
Chinese (zh)
Inventor
周毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810003919.4A priority Critical patent/CN108428104A/en
Priority to PCT/CN2018/089729 priority patent/WO2019134340A1/en
Publication of CN108428104A publication Critical patent/CN108428104A/en
Pending legal-status Critical Current

Links

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

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

The invention discloses a kind of wages computational methods, the method includes:Business rule is generated according to user's input information;The business rule generated is stored, and builds rule base;Receive employee ID input by user;Database is inquired according to the employee ID, obtains the corresponding employee informations of the employee ID;The business rule is called from the rule base using regulation engine, and the business rule is matched according to the employee information;And after the employee information matches the business rule, the business rule is executed, obtains wages result of calculation.The present invention also provides a kind of application server and computer readable storage mediums.By implementing presently disclosed scheme, a large amount of rule is calculated and is extract from database, is maintained into regulation engine, more efficient completion calculates, it can also preferably support concurrent, promote computational efficiency and the heat deployment of implementation rule engine.

Description

Wages computational methods, application server and computer readable storage medium
Technical field
It can the present invention relates to a kind of field of communication technology more particularly to wages computational methods, application server and computer Read storage medium.
Background technology
With the development of enterprise, various channel mechanisms gradually complicate, and the wages of corresponding channel calculate also complexity therewith Change.Calculated at present comprising a large amount of rule in the wages calculating process in canalization, these rules calculate mainly pass through by In the mode embedding data library of calculating logic " hard coded ", so then needs to be safeguarded in database program, cause Maintainable and autgmentability difference problem, once wages policy changes, and it is not only difficult in maintenance, it is easy error, but also need System is redeployed, higher software maintenance and upgrade cost are caused.In addition, current this calculation is in the database Concurrently may be only accurate to institutional units, wages calculating logic inside each institutional units can not be carried out concurrently, causing to calculate Inefficiency.
Invention content
In view of this, a kind of wages computational methods of present invention proposition, application server and computer readable storage medium, energy Regulation engine is enough introduced, a large amount of rule is calculated and is extract from database, is maintained into regulation engine, more high efficiency Completion calculate, can also preferably support concurrent, promote computational efficiency and the heat deployment of implementation rule engine.
First, to achieve the above object, the present invention proposes that a kind of application server, the application server include storage Device, processor, the wages calculation procedure that can be run on the processor is stored on the memory, and the wages calculate journey Sequence realizes following steps when being executed by the processor:
Business rule is generated according to user's input information;
The business rule generated is stored, and builds rule base;
Receive employee ID input by user;
Database is inquired according to the employee ID, obtains the corresponding employee informations of the employee ID;
The business rule is called from the rule base using regulation engine, and according to the employee information to the industry Business rule is matched;And
After the employee information matches the business rule, the business rule is executed, obtains wages result of calculation.
Optionally, following steps are also realized when the wages calculation procedure is executed by the processor:
After the regulation engine obtains the implementing result, the implementing result is subjected to interface display.
Optionally, it described the step of business rule is generated according to user's input information, specifically includes:
The table for reading formatting input by user, automatically generates business rule;
The business rule in the rule base is shown by web components;And
Receive editor or modification of the user to the web business rules shown, and according to the editor or modification Generate new business rule.
Optionally, described the step of business rule is generated according to user's input information, further include:
After generating new business rule, the new business rule is synchronized to the rule base and is stored.
Optionally, following steps are also realized when the wages calculation procedure is executed by the processor:
After calling the business rule in the rule base, the business rule is showed in the form of patterned.
Optionally, following steps are also realized when the wages calculation procedure is executed by the processor:
After calling the business rule in the rule base, the business rule is showed in the form of natural language.
Optionally, following steps are also realized when the wages calculation procedure is executed by the processor:
The wages result of calculation is presented to the user by web page.
Optionally, the application server includes buffer unit, is advised to the business according to the employee information described Before the step of then being matched, the wages calculation procedure also realizes following steps when being executed by the processor:
The corresponding employee informations of employee ID of acquisition are temporarily stored into the buffer unit;And
Employee information is obtained from the buffer unit to be matched with the business rule.
In addition, to achieve the above object, the present invention also provides a kind of wages computational methods, this method is applied to application service Device, the method includes the steps:
Business rule is generated according to user's input information;
The business rule generated is stored, and builds rule base;
Receive employee ID input by user;
Database is inquired according to the employee ID, obtains the corresponding employee informations of the employee ID;
The business rule is called from the rule base using regulation engine, and according to the employee information to the industry Business rule is matched;And
After the employee information matches the business rule, business rule is executed, obtains wages result of calculation.
Optionally, the method further includes step:
After the regulation engine obtains the wages result of calculation, wages result of calculation progress interface is shown Show.
Optionally, described the step of business rule is generated according to user's input information, including:
The table for reading formatting input by user, automatically generates business rule;
The business rule in the rule base is shown by web components;And
Receive editor or modification of the user to the web business rules shown, and according to the editor or modification Generate new business rule.
Optionally, described the step of business rule is generated according to user's input information, further include:
After generating new business rule, the new business rule is synchronized to the rule base and is stored.
Optionally, the method further includes step:
After calling the business rule in the rule base, the business rule is showed in the form of patterned.
Optionally, the method further includes step:
After calling the business rule in the rule base, the business rule is showed in the form of natural language.
Optionally, the method further includes step:
The wages result of calculation is presented to the user by web page.
Optionally, the application server includes buffer unit, is advised to the business according to the employee information described Before the step of then being matched, the method further includes step:
The corresponding employee informations of employee ID of acquisition are temporarily stored into the buffer unit;And
Employee information is obtained from the buffer unit to be matched with the business rule.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with wages calculation procedure, and the wages calculation procedure can be executed by least one processor, so that institute At least one processor is stated to execute such as the step of above-mentioned wages computational methods.
Compared to the prior art, application server proposed by the invention, wages computational methods and computer-readable storage Medium generates business rule according to user's input information first;Then, the business rule of generation is stored, and builds rule Library;Then, employee ID input by user is received, then, database is inquired according to the employee ID, obtains the employee ID and correspond to Employee information, and the business rule is called from the rule base using regulation engine, and according to the employee information pair The business rule is matched, and finally, after the employee information matches the business rule, is executed business rule, is obtained Wages result of calculation.In this way, both can be extremely complex to avoid a large amount of calculating logic in the prior art, it is readable strong, it is difficult to The drawbacks of safeguarding, and regulation engine can be introduced, a large amount of rule is calculated and is extract from database, rule is maintained into and draws In holding up, diversified forms of the service logic in regulation engine may be implemented and show, such as figure, the table for being more nearly natural language Up to mode, can also implementation rule single optimization, more efficient completion calculates, can also preferably support concurrently to count It calculates, promotes computational efficiency and the heat deployment of implementation rule engine.
Description of the drawings
Fig. 1 is each one optional application environment schematic diagram of embodiment of the present invention;
Fig. 2 is the schematic diagram of one optional hardware structure of application server in Fig. 1;
Fig. 3 is the Program modual graph of the first, second and third embodiment of wages calculation procedure of the present invention;
Fig. 4 is the flow chart of wages computational methods first embodiment of the present invention;
Fig. 5 is the flow chart of wages computational methods second embodiment of the present invention;
Fig. 6 is the flow chart of wages computational methods 3rd embodiment of the present invention;
Fig. 7 is the flow chart of wages computational methods fourth embodiment of the present invention.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection domain within.
As shown in fig.1, being each one optional application environment schematic diagram of embodiment of the present invention.
In the present embodiment, present invention can apply to include but are not limited to, terminal device 1, application server 2, network In 3 application environment.Wherein, the terminal device 1 can be that mobile phone, smart phone, laptop, digital broadcasting connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device, vehicle-mounted dress The movable equipment set etc., and such as number TV, desktop computer, notebook, server etc. fixed terminal.It is described Application server 2 can be that the calculating such as rack-mount server, blade server, tower server or Cabinet-type server are set Standby, which can be independent server, can also be the server cluster that multiple servers are formed.It is described Network 3 can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network etc. is wireless or has Gauze network.
Wherein, it is communicated respectively with one or more terminal devices 1 by the network 3 in the application server 2 Connection, to carry out data transmission and interact.
In the present embodiment, wages calculation procedure 200 is installed in the application server 2, when the wages calculation procedure When 200 operation, the application server 2 generates business rule according to user's input information;The business rule generated is stored, And build rule base;Employee ID input by user is received, database is inquired according to the employee ID, the employee ID is obtained and corresponds to Employee information, and structure regulation engine, the regulation engine transfers the business rule from the rule base, and according to institute It states employee information to match the business rule, after the employee information matches the business rule, executes business rule Then, wages result of calculation is obtained.In this way, both can be extremely complex to avoid a large amount of calculating logic in the prior art, readability is not By force, it is difficult to the drawbacks of safeguarding, and regulation engine can be introduced, a large amount of rule is calculated and is extract from database, is safeguarded Into regulation engine, diversified forms of the service logic in regulation engine may be implemented and show, for example figure, is more nearly nature The expression way of language, can also implementation rule single optimization, more efficient completion calculates, can also preferably support Concurrent promotes computational efficiency and the heat deployment of implementation rule engine.
As shown in fig.2, being the schematic diagram of 2 one optional hardware structure of application server in Fig. 1.In the present embodiment, institute It states application server 2 may include, but is not limited only to, connection memory 11, processor 12, net can be in communication with each other by system bus Network interface 13.It should be pointed out that Fig. 2 illustrates only the terminal device 1 with component 11-13, it should be understood that not It is required that implement all components shown, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be described answers With the hard disk or memory of the internal storage unit of server 2, such as the application server 2.In further embodiments, described to deposit Reservoir 11 can also be the External memory equipment of the application server 2, such as the plug-in type being equipped on the application server 2 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 2 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 2 commonly used in storage Make system and types of applications software, such as the program code etc. of the wages calculation procedure 200.In addition, the memory 11 is also It can be used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in answering described in control It is carried out data interaction with the overall operation of server 2, such as execution with the terminal device 1 or is communicated relevant control and place Reason etc..In the present embodiment, the processor 12 is used to run the program code stored in the memory 11 or processing data, Such as run the wages calculation procedure 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the application server 2 and other electronic equipments.In the present embodiment, the network interface 13 is mainly used In the application server 2 is connected with one or more terminal devices 1 by the network 3, in the application service Data transmission channel and communication connection are established between device 2 and one or more of terminal devices 1.
So far, oneself is through describing the hardware configuration and work(of the application environment and relevant device of each embodiment of the present invention in detail Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, the present invention proposes a kind of wages calculation procedure 200.
As shown in fig.3, being the Program modual graph of 200 first embodiment of wages calculation procedure of the present invention.
In the present embodiment, the wages calculation procedure 200 includes a series of computer being stored on memory 11 The meter of the wages of various embodiments of the present invention may be implemented when the computer program instructions are executed by processor 12 in program instruction Calculate operation.In some embodiments, the specific operation realized based on the computer program instructions each section, the wages meter One or more modules can be divided by calculating program 200.For example, in figure 3, the wages calculation procedure 200 can be by Be divided into rule generation module 201, rule base establish module 202, wages enquiry module 203, employee information enquiry module 204 and Rule engine module 205.Wherein:
The rule generation module 201, for generating business rule in 1 input information of terminal device according to user.At this In embodiment, the input information can be the work number information of employee can obtain the user according to the work number information of employee Position level and corresponding class of service, for example user's work number for inputting is 450063, and corresponding position is then one at this time Line salesman, class of service are vehicle insurance business.So in this case, the business rule of a line salesman of corresponding vehicle insurance business It is then the deduction b% that certain share a% deductions of the business total value A of the business personnel are subtracted to upper level business personnel again, i.e., Class of service is so corresponded to wages and calculated by the health service revenue B=A*a% (1-b%) of the business rule, that is, corresponding service person The business rule of rule simultaneously carries out associated storage, that is, generates business rule.Further, the new business rule to provide a kind of Generating mode, the rule generation module 201 are additionally operable to read the table of formatting input by user, automatically generate business rule Then.In the present embodiment, the rule generation module 201 shows the business rule in the rule base, wherein institute by web components It states rule base and refers to that a kind of business rule for being directed to different business, i.e. wages computation rule, all wages computation rules are equal A rule base can be taken in, and then that is unified transfers.
The rule generation module 201 also receives user to the editor of the web business rules shown or repaiies Change, and new business rule is generated according to the editor or modification.The rule generation module 201 is additionally operable to generating newly Business rule after, the new business rule is synchronized to the rule base and is stored.With this, ensure the reality of business rule Shi Gengxin safeguards convenient for the dynamic flexible of business rule logic.
The rule base establishes module 202, for storing the business rule generated, and builds rule base.
The wages enquiry module 203, for receiving employee ID input by user.
The employee information enquiry module 204 obtains ID couples of the employee for inquiring database according to the employee ID The employee information answered.
Usually, the database purchase of the application server 2 employee information of all employees, the employee information packet Include employee ID (work number), name, type of service, number of services, time, employee's incubation relationship (or relationship between superior and subordinate), business Institutional affiliation etc..
The rule engine module 205, for utilizing regulation engine to call the business rule from the rule base. In present embodiment, regulation engine is a kind of component of insertion in the application, such as Drools, VisualRules, iLog.It quickly can parse data from command code and transfer order, and transfers order according to data and transfer business rule And it parses.
The rule engine module 205 is additionally operable to transfer the business rule from the rule base in the regulation engine After then, the business rule is matched according to the employee information.
Specifically, the application server 2 includes buffer unit, is advised to the business according to the employee information described Before the step of then being matched, the employee information enquiry module 204 keeps in the corresponding employee informations of employee ID of acquisition In the buffer unit;The rule engine module 205, from the buffer unit obtain employee information and the business rule into Row matching, specifically, obtaining the type of service that corresponding employee is engaged in by employee information, and goes to match according to the type of service Wages computation rule in business rule.In such manner, it is possible to prevent that regulation engine from executing failure or it fails to match that employee is caused to believe Breath is lost, and then reacquires employee information, so influences wages calculation process efficiency.
The wages enquiry module 203 is additionally operable to after the employee information matches the business rule, executes the industry Business rule, obtains wages result of calculation.
Further, the wages enquiry module 203 is additionally operable to obtain the wages calculating knot in the regulation engine After fruit, the wages result of calculation is subjected to interface display.Specifically, the wages enquiry module 203 by web page by institute Wages result of calculation is stated to be presented to the user.In the present embodiment, the wages result of calculation is presented to the user by web page, It realizes simply, facilitates user to inquire, user experience can be promoted.
By above procedure module 201-205, wages calculation procedure 200 proposed by the invention, first, the application clothes Device 2 be engaged according to user's input information generation business rule;Secondly, the business rule of generation is stored, and build rule base;So Afterwards, employee ID input by user is received, database is inquired according to the employee ID, obtains the corresponding employee's letters of the employee ID Breath, and the business rule is called from the rule base using regulation engine, and according to the employee information to the business Rule is matched, and finally, after the employee information matches the business rule, is executed business rule, is obtained wages and calculate As a result.In this way, both can be extremely complex to avoid a large amount of calculating logic in the prior art, it is readable not strong, it is difficult to the disadvantage of maintenance End, and regulation engine can be introduced, a large amount of rule is calculated and is extract from database, is maintained into regulation engine, it can To realize that diversified forms of the service logic in regulation engine show, such as figure, the expression way for being more nearly natural language, Can also implementation rule single optimization, more efficient completion calculates, can also preferably support concurrent, promote meter Calculate efficiency and the heat deployment of implementation rule engine.
Further, the above-mentioned first embodiment based on wages calculation procedure 200 of the present invention proposes that the third of the present invention is real Apply example (as shown in Figure 3).In the present embodiment:
In order to make user obtain information it is more intuitive, promote the experience of user, the wages enquiry module 203 is additionally operable to, After the rule engine module 205 calls the business rule in the rule base, allow the business rule with patterned shape Formula is showed.
Further, the wages query unit module 203 is additionally operable to, and is called in the rule engine module 205 described After business rule in rule base, the business rule is allowed to be showed in the form of natural language.In the present embodiment, it is described from Right language is to be different from program language, the common language of daily life.
By above procedure module 201-205, wages calculation procedure 200 proposed by the invention can intuitively show industry Business rule makes user's acquisition information more intuitive, promotes the experience of user in this way.
In addition, the present invention also proposes a kind of wages computational methods.
As shown in fig.4, being the implementation process diagram of wages computational methods first embodiment of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in Fig. 4 can change according to different requirements, and certain steps can be omitted.
Step S401 generates business rule according to user's input information.User can input in terminal device 1. In the present embodiment, the input information can be the work number information of employee can obtain this according to the work number information of employee The position level and corresponding class of service of user, such as user's work number for inputting are 450063, and corresponding position is then at this time For a line salesman, class of service is vehicle insurance business.So in this case, the industry of a line salesman of corresponding vehicle insurance business Business rule is then that certain share a% deductions of the business total value A of the business personnel are subtracted to the deduction of upper level business personnel again B%, i.e., the health service revenue B=A*a% (1-b%) of described business rule, that is, corresponding service person generate class of service and correspond to firewood Provide the business rule of computation rule.Further, it is the new business rule generating mode for providing a kind of, the rule generates mould Block 201 is additionally operable to read the table of formatting input by user, automatically generates business rule.In the present embodiment, the rule is raw The business rule in the rule base is shown by web components at module 201, wherein the rule base is referred to for not of the same trade or business A kind of business rule of business, i.e. wages computation rule, all wages computation rules can take in a rule base, and then carry out Unified transfers.Described the step of generating business rule according to user's input information, will be described in detail in fourth embodiment (Fig. 7).
Step S402, stores the business rule of generation, and builds rule base.
Step S403 receives employee ID input by user.
Step S404 inquires database according to the employee ID, obtains the corresponding employee informations of the employee ID.Generally Ground, the database purchase of the application server 2 employee information of all employees, the employee information include employee's ID (works Number), name, type of service, number of services, time, employee be bred as relationship (or relationship between superior and subordinate), business institutional affiliation etc..
Step S405 calls the business rule using regulation engine from the rule base.In the present embodiment, it advises Then engine is a kind of component of insertion in the application, such as Drools, VisualRules, iLog.It can quickly from Data are parsed in command code and transfer order, and are transferred order according to data and transferred business rule and parse.
In the present embodiment, in order to keep user's acquisition information more intuitive, the experience of user is promoted, in the regulation engine tune After the business rule in the rule base, the application server 2 allows the business rule to be opened up in the form of patterned It is existing.
Further, after the regulation engine calls the business rule in the rule base, the application server 2 allows The business rule is showed in the form of natural language.In the present embodiment, the natural language is to be different from program language, The common language of daily life.
Step S406 matches the business rule according to the employee information.
Specifically, the application server 2 includes buffer unit, is advised to the business according to the employee information described Before the step of then being matched, the corresponding employee informations of employee ID of acquisition are temporarily stored into described slow by the application server 2 Memory cell;And it obtains employee information from the buffer unit and is matched with the business rule.Specifically, passing through employee information The type of service that corresponding employee is engaged in is obtained, and the wages computation rule in matching business rule is gone according to the type of service. In such manner, it is possible to prevent that regulation engine from executing failure or it fails to match that employee information is caused to be lost, and then reacquire employee's letter Breath so influences wages calculation process efficiency.
Step S407 executes the business rule after the employee information matches the business rule, obtains wages meter Calculate result.
S401-407 through the above steps, wages computational methods proposed by the invention, first, the application server 2 Business rule is generated according to user's input information;Secondly, the business rule of generation is stored, and build rule base;Then, it connects Employee ID input by user is received, database is inquired according to the employee ID, obtains the corresponding employee informations of the employee ID, and profit The business rule is called from the rule base with regulation engine, and the business rule is carried out according to the employee information Matching finally after the employee information matches the business rule, executes business rule, obtains wages result of calculation.This Sample, both can be extremely complex to avoid a large amount of calculating logic in the prior art, readable not strong, it is difficult to the drawbacks of safeguarding, and energy Regulation engine is enough introduced, a large amount of rule is calculated and is extract from database, is maintained into regulation engine, industry may be implemented Diversified forms of the logic of being engaged in regulation engine show, such as figure, the expression way for being more nearly natural language, can also be real The single optimization of existing rule, more efficient completion calculate, and can also preferably support concurrent, promote computational efficiency, And the heat deployment of implementation rule engine.
As shown in fig.5, being the implementation process diagram of wages computational methods second embodiment of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in fig. 5 can change according to different requirements, and certain steps can be omitted.
Step S501 generates business rule according to user's input information.
Step S502, stores the business rule of generation, and builds rule base.
Step S503 receives employee ID input by user.
Step S504 inquires database according to the employee ID, obtains the corresponding employee informations of the employee ID.
Step S505 calls the business rule using regulation engine from the rule base..
Step S506 matches the business rule according to the employee information.
Step S507 executes the business rule after the employee information matches the business rule, obtains wages meter Calculate result.
Step S508, after the regulation engine obtains the wages result of calculation, by the wages result of calculation into Row interface display.For example, being shown in the interface of terminal device 1.
Specifically, the wages result of calculation is presented to the user by the application server 2 by web page.
S501-508 through the above steps, wages computational methods proposed by the invention can will be described by web page Wages result of calculation is presented to the user, and is realized simply, is facilitated user to inquire, can promote user experience.
As shown in fig.6, being the implementation process diagram of wages computational methods 3rd embodiment of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in fig. 6 can change according to different requirements, and certain steps can be omitted.
Step S601 generates business rule according to user's input information.
Step S602, stores the business rule of generation, and builds rule base.
Step S603 receives employee ID input by user.
Step S604 inquires database according to the employee ID, obtains the corresponding employee informations of the employee ID.
Step S605 calls the business rule using regulation engine from the rule base..
The corresponding employee informations of employee ID of acquisition are temporarily stored into the buffer unit by step S606.
Step S607 obtains employee information from the buffer unit and is matched with the business rule.
Specifically, the application server 2 includes buffer unit, and the corresponding employee informations of employee ID of acquisition are temporarily stored into The buffer unit;And it obtains employee information from the buffer unit and is matched with the business rule.In such manner, it is possible to prevent Regulation engine executes failure or it fails to match that employee information is caused to be lost, and then reacquires employee information, so influences firewood Provide calculation process efficiency.
Step S608 executes the business rule after the employee information matches the business rule, obtains wages meter Calculate result.
S601-608 through the above steps, wages computational methods proposed by the invention can be by establishing interface registration White list, can prevent unsafe registration table from updating in this way.
As shown in fig.7, being the implementation process diagram of wages computational methods fourth embodiment of the present invention.In the present embodiment In, it described the step of business rule is generated according to user's input information, specifically includes:
Step S701 reads the table of formatting input by user, automatically generates business rule.
Step S702 shows the business rule in the rule base by web components.
Step S703 receives editor or modification of the user to the web business rules shown, and according to the volume It collects or modification generates new business rule.
S701-703 through the above steps, wages computational methods proposed by the invention can be according to user's input information Generate business rule.And ensure the real-time update of business rule, it is safeguarded convenient for the dynamic flexible of business rule logic.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with wages calculation procedure, and the wages calculation procedure can be executed by least one processor, so that institute At least one processor is stated to execute such as the step of above-mentioned wages computational methods.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of wages computational methods are applied to application server, which is characterized in that the method includes the steps:
Business rule is generated according to user's input information;
The business rule generated is stored, and builds rule base;
Receive employee ID input by user;
Database is inquired according to the employee ID, obtains the corresponding employee informations of the employee ID;
The business rule is called from the rule base using regulation engine, and the business is advised according to the employee information Then matched;And
After the employee information matches the business rule, the business rule is executed, obtains wages result of calculation.
2. wages computational methods as described in claim 1, which is characterized in that the method further includes step:
After the regulation engine obtains the wages result of calculation, the wages result of calculation is subjected to interface display.
3. wages computational methods as described in claim 1, which is characterized in that described to generate business rule according to user's input information Then the step of, including:
The table for reading formatting input by user, automatically generates business rule;
The business rule in the rule base is shown by web components;And
Receive editor or modification of the user to the web business rules shown, and is generated according to the editor or modification New business rule.
4. wages computational methods as described in claim 1, which is characterized in that described to generate business rule according to user's input information Then the step of further includes:
After generating new business rule, the new business rule is synchronized to the rule base and is stored.
5. wages computational methods as claimed in claim 4, which is characterized in that the method further includes step:
After calling the business rule in the rule base, the business rule is showed in the form of patterned.
6. wages computational methods as claimed in claim 5, which is characterized in that the method further includes step:
After calling the business rule in the rule base, the business rule is showed in the form of natural language.
7. wages computational methods as described in claim 1, which is characterized in that the method further includes step:
The wages result of calculation is presented to the user by web page.
8. wages computational methods as described in claim 1, which is characterized in that the application server includes buffer unit, Before described the step of being matched to the business rule according to the employee information, the method further includes step:
The corresponding employee informations of employee ID of acquisition are temporarily stored into the buffer unit;And
Employee information is obtained from the buffer unit to be matched with the business rule.
9. a kind of application server, which is characterized in that the application server includes memory, processor, on the memory It is stored with the wages calculation procedure that can be run on the processor, it is real when the wages calculation procedure is executed by the processor Now the step of wages computational methods as described in any one of claim 1-8.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has wages calculation procedure, the firewood Money calculation procedure can be executed by least one processor, so that at least one processor is executed as appointed in claim 1-8 The step of wages computational methods described in one.
CN201810003919.4A 2018-01-03 2018-01-03 Wages computational methods, application server and computer readable storage medium Pending CN108428104A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810003919.4A CN108428104A (en) 2018-01-03 2018-01-03 Wages computational methods, application server and computer readable storage medium
PCT/CN2018/089729 WO2019134340A1 (en) 2018-01-03 2018-06-03 Salary calculation method, application server, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN108428104A true CN108428104A (en) 2018-08-21

Family

ID=63155811

Family Applications (1)

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

Country Status (2)

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

Cited By (12)

* 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
CN111369334A (en) * 2020-03-09 2020-07-03 阳光人寿保险股份有限公司 Salary calculation method and system
CN112561500A (en) * 2021-02-25 2021-03-26 深圳平安智汇企业信息管理有限公司 Salary data generation method, device, equipment and medium based on user data
CN112819602A (en) * 2021-03-16 2021-05-18 江苏积韬科技有限公司 Piece wage calculation method and device, terminal equipment and readable storage medium thereof
CN112990863A (en) * 2021-03-09 2021-06-18 北京思特奇信息技术股份有限公司 Real-time reward settlement system and method based on Drools rule
CN113076348A (en) * 2021-04-13 2021-07-06 上海优扬新媒信息技术有限公司 Policy information management method, device, server and storage medium
CN113326042A (en) * 2021-06-28 2021-08-31 上海致景信息科技有限公司 Method and device for visually configuring salary, storage medium and processor
CN113377372A (en) * 2021-06-29 2021-09-10 平安普惠企业管理有限公司 Business rule analysis method and device, computer equipment and storage medium
CN114066590A (en) * 2021-11-30 2022-02-18 中国平安财产保险股份有限公司 Salary data processing method, device and equipment based on big data and storage medium
CN114066590B (en) * 2021-11-30 2024-05-31 中国平安财产保险股份有限公司 Big data-based salary data processing method, device, equipment and storage medium

Citations (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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10134016B2 (en) * 2014-11-18 2018-11-20 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

Patent Citations (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

Cited By (16)

* 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
CN111369334A (en) * 2020-03-09 2020-07-03 阳光人寿保险股份有限公司 Salary calculation method and system
CN112561500A (en) * 2021-02-25 2021-03-26 深圳平安智汇企业信息管理有限公司 Salary data generation method, device, equipment and medium based on user data
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
CN113076348A (en) * 2021-04-13 2021-07-06 上海优扬新媒信息技术有限公司 Policy information management method, device, server and storage medium
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
CN113326042A (en) * 2021-06-28 2021-08-31 上海致景信息科技有限公司 Method and device for visually configuring salary, storage medium and processor
CN113377372A (en) * 2021-06-29 2021-09-10 平安普惠企业管理有限公司 Business rule analysis method and device, computer equipment and storage medium
CN114066590A (en) * 2021-11-30 2022-02-18 中国平安财产保险股份有限公司 Salary data processing method, device and equipment based on big data and storage medium
CN114066590B (en) * 2021-11-30 2024-05-31 中国平安财产保险股份有限公司 Big data-based salary data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2019134340A1 (en) 2019-07-11

Similar Documents

Publication Publication Date Title
CN108428104A (en) Wages computational methods, application server and computer readable storage medium
CN107766132B (en) Multi-task scheduling method, application server and computer readable storage medium
CN107909486B (en) Commission management method, application server and computer readable storage medium
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
CN109614409A (en) Business data processing method, device and server
CN107908656A (en) Increase channel method, application server and computer-readable recording medium
CN107689982A (en) Multi-data source method of data synchronization, application server and computer-readable recording medium
CN106951536A (en) Data method for transformation and system
CN104133765B (en) The test case sending method of network activity and test case server
CN108171069A (en) Desensitization method, application server and computer readable storage medium
CN108038655A (en) Recommendation method, application server and the computer-readable recording medium of department's demand
CN107808307A (en) Business personnel's picture forming method, electronic installation and computer-readable recording medium
CN107908480A (en) Wages computational methods, application server and computer-readable recording medium
CN107908603A (en) Dynamic generation document method and application server
CN107103453A (en) Public emolument computational methods and system
CN107832291A (en) Client service method, electronic installation and the storage medium of man-machine collaboration
CN110059267A (en) Methods of exhibiting, device, computer equipment and the storage medium of data analysis result
CN110503564A (en) Save case processing method, system, equipment and storage medium from damage based on big data
CN108256986A (en) Wages computational methods, application server and computer readable storage medium based on cloud computing
CN107480205A (en) A kind of method and apparatus for carrying out data partition
CN109582458A (en) Resource information loading method, device, storage medium and processor
CN108021621A (en) Database data acquisition method, application server and computer-readable recording medium
CN107682426A (en) interface proxy method and application server
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN110135798A (en) Commission calculation method, platform, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180821

RJ01 Rejection of invention patent application after publication