Search

CN-121981693-A - Salary filling method and device, electronic equipment and storage medium

CN121981693ACN 121981693 ACN121981693 ACN 121981693ACN-121981693-A

Abstract

The application provides a salary filling method, a device, electronic equipment and a storage medium, which comprise the steps of responding to the arrival of trigger time configured in a pre-constructed salary template, generating a target salary activity instance, determining staff ranges participating in filling in the current period according to DSL rule expressions pre-configured in the salary template, acquiring filling data submitted by staff in the staff ranges, generating a write-back request containing one or more salary fields and corresponding filling values thereof after the filling data passes approval, detecting whether multiple concurrent writing conflicts exist on the salary fields of the same staff aiming at each salary field, loading conflict processing rules pre-bound with the salary fields if the multiple concurrent writing conflicts exist, executing merging operation on the filling values corresponding to the salary fields based on the conflict processing rules, generating unique target values of the salary fields, and writing the unique target values into salary files of the corresponding staff. The application obviously improves the flexibility and accuracy of salary filling.

Inventors

  • JI WEIGUO
  • You chaoyang
  • SUN JIANG

Assignees

  • 北森云计算有限公司

Dates

Publication Date
20260505
Application Date
20260409

Claims (10)

  1. 1. A payroll reporting method, comprising: generating a target salary activity instance in response to the arrival of a trigger time configured in the pre-constructed salary template; Responding to the release of the target salary activity instance, and determining staff ranges participating in filling in the current period according to a pre-configured DSL rule expression in the salary template; acquiring filling data submitted by each employee in the employee range, and generating a write-back request containing one or more salary fields and corresponding filling values after the filling data passes approval; For each salary field, detecting whether the same employee has multi-source concurrent writing conflict on the salary field; If yes, loading conflict processing rules pre-bound with the salary field, and executing merging operation on a plurality of filling values corresponding to the salary field based on the conflict processing rules to generate a unique target value of the salary field, wherein the conflict processing rules are used for defining a multi-value merging strategy; And writing the unique target value into a salary file of the corresponding employee.
  2. 2. The method of claim 1, wherein the DSL rule expression is formed of a plurality of atomic conditions via AND/OR logic connections, AND wherein determining employee scope to participate in the filling at the present time based on the DSL rule expression pre-configured in the compensation template comprises: The atomic conditions are subjected to priority ranking according to filtering intensity, wherein the filtering intensity is the reciprocal or complement of the proportion of hit staff of each atomic condition, and the lower the hit proportion is, the higher the filtering intensity is; Sequentially screening employee sets meeting the atomic conditions of each level according to the priority from high to low, wherein the screening range of the highest priority is a full-scale employee set, and the screening range of each level is an employee set obtained after the screening of the immediately previous priority from the second priority; And determining the employee set screened by the atomic conditions of the final priority as the employee range participated in the reporting in the current period, and if the screening result of any atomic condition is empty, terminating in advance.
  3. 3. The method of claim 2, wherein the step of screening based on each atomic condition comprises: Acquiring an operation parameter of each atomic condition based on the performance embedded point during operation, and determining an operation cost based on the operation parameter, wherein the operation parameter at least comprises execution delay, CPU consumption and memory allocation quantity; based on the metadata log, counting the frequency of each atomic condition which is referenced by different salary activities in a past preset time window; if the running cost is higher than a preset cost threshold value and the reference frequency is higher than a preset reference threshold value, directly acquiring an employee set meeting the current atomic condition from a pre-calculation cache table, wherein the employee set is stored in a compressed bitmap form in the pre-calculation cache table; otherwise, vector filtering is carried out on the basis of a preset organizational closure table or the attribute fields of the employee set screened in the previous time, so that the employee set meeting the current atomic condition is obtained.
  4. 4. The method of claim 2, wherein prior to prioritizing the plurality of atomic conditions by filter strength, the method further comprises: Parsing the DSL rule expression to identify repeated sub-expressions; A directed acyclic graph is constructed for all of the DSL rule expressions and the repeated sub-expressions are merged into a single compute node.
  5. 5. A method according to claim 3, characterized in that the method further comprises: receiving employee information change events from an HR system, wherein the employee information change events comprise employee new addition, organization and movement, job level change or status update; And if the occurrence time of the employee information change event is earlier than the freezing day of the target salary activity, asynchronously updating the bitmap set in the pre-calculation cache table.
  6. 6. The method of claim 5, wherein the receiving an employee information change event from the HR system comprises: When the HR system changes staff main data, monitoring a message middleware in butt joint with the HR system to acquire a corresponding staff information change event; After the staff main data writing transaction is completed, the HR system persistence the change event to a local event table and issues the change event to the message middleware through an internal asynchronous delivery service.
  7. 7. The method according to claim 1, wherein the method further comprises: generating a salary archive version snapshot based on the unique target values and their associated metadata; Storing the salary file version snapshot to a versioning storage library in a persistent manner; In response to the persistent store being successful, updating a version pointer in the employee master record to the latest payroll file version; And recording a structured audit ledger based on the generation context of the salary file version snapshot, wherein the audit ledger comprises a salary activity ID, a used DSL rule expression, a salary value merging strategy, conflict data source details, approver information and an operation time stamp.
  8. 8. A payroll apparatus, comprising: a generating unit, configured to generate a target salary activity instance in response to arrival of a trigger time configured in a pre-constructed salary template; A determining unit, configured to determine an employee scope participating in the filling at the present time according to a preconfigured DSL rule expression in the salary template in response to the release of the target salary activity instance; The acquisition unit is used for acquiring the filling data submitted by each employee in the employee range and generating a write-back request containing one or more compensation fields and corresponding filling values after the filling data passes approval; the detection unit is used for detecting whether the same staff has multi-source concurrent writing conflict on each salary field; The conflict processing unit is used for loading conflict processing rules pre-bound with the salary field if the conflict processing rules exist, and executing merging operation on a plurality of filling values corresponding to the salary field based on the conflict processing rules to generate a unique target value of the salary field; and the writing unit is used for writing the unique target value into the salary file of the corresponding employee.
  9. 9. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus; The memory is used for storing a computer program; The processor is configured to implement the method of any one of claims 1-7 when executing a program stored on the memory.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-7.

Description

Salary filling method and device, electronic equipment and storage medium Technical Field The invention relates to the technical field of human resource information processing, in particular to a salary filling method, a salary filling device, electronic equipment and a storage medium. Background In modern enterprise human resource management systems, salary management is one of the core business scenarios. With the increase of organization size, the complicating of incentive strategies and the increase of compliance requirements, enterprises often need to initiate salary filling activities, such as performance prize accounting, special benefits reporting, equity awarding, etc., for specific groups of people on a periodic (e.g., quarterly, half-year) basis. Conventional compensation systems typically employ hard-coded logic or static configuration tables to define the range of participants. The method is used for rule solidification, when the HR needs to temporarily adjust rules (such as 'only including staff above the Huadong region M3 and not in the trial period'), the code must be modified by a developer, and the test and online are carried out, so that the response period is long; and the problems of lack of automatic gear setting and periodical filling, lack of consistency control of filling results and file writing back and the like exist. Disclosure of Invention Accordingly, an objective of the present invention is to provide a payroll method, apparatus, electronic device and storage medium, so as to solve at least one of the above problems. In a first aspect, a salary filling method is provided, including: generating a target salary activity instance in response to the arrival of a trigger time configured in the pre-constructed salary template; Responding to the release of the target salary activity instance, and determining staff ranges participating in filling in the current period according to the pre-configured DSL rule expression in the salary template; acquiring filling data submitted by each employee in the employee range, and generating a write-back request containing one or more salary fields and corresponding filling values after the filling data passes approval; For each salary field, detecting whether the same employee has multi-source concurrent writing conflict on the salary field; If the conflict exists, loading conflict processing rules pre-bound with the salary field, and executing merging operation on a plurality of filling values corresponding to the salary field based on the conflict processing rules to generate a unique target value of the salary field; And writing the unique target value into the salary file of the corresponding employee. Optionally, the DSL rule expression is formed by a plurality of atomic conditions through AND/OR logic connection, AND determining the staff range participating in the filling in the current period according to the DSL rule expression preconfigured in the compensation template comprises: The method comprises the steps of sorting a plurality of atomic conditions according to the filtering intensity, wherein the filtering intensity is the reciprocal or complement of the proportion of hit staff of each atomic condition, and the lower the hit proportion is, the higher the filtering intensity is; Sequentially screening employee sets meeting the atomic conditions of each level according to the priority from high to low, wherein the screening range of the highest priority is a full-scale employee set, and the screening range of each level is an employee set obtained after the screening of the immediately previous priority from the second priority; And determining the employee set screened by the atomic conditions of the final priority as the employee range participated in the reporting in the current period, and if the screening result of any atomic condition is empty, terminating in advance. Optionally, the process of screening according to each atomic condition includes: Acquiring operation parameters of each atomic condition based on the performance embedded point during operation, and determining operation cost based on the operation parameters, wherein the operation parameters at least comprise execution delay, CPU consumption and memory allocation quantity; based on the metadata log, counting the frequency of each atomic condition which is referenced by different salary activities in a past preset time window; if the running cost is higher than a preset cost threshold value and the reference frequency is higher than a preset reference threshold value, the employee set meeting the current atomic conditions is directly obtained from a pre-calculation cache table, and the employee set is stored in the pre-calculation cache table in a compressed bitmap mode. Otherwise, vector filtering is carried out on the basis of a preset organizational closure table or the attribute fields of the employee set screened in the previous time, so that the employee