A data processing method and system for multi-constraint configuration of enterprise welfare resources
Patent Information
- Application Number
- CN202611044510.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-08-28
AI Technical Summary
现有系统中的福利商品、服务项目、供应商履约规则、合同服务城市、服务容量、有效期和兑换条件往往分散存储在不同业务表或不同管理系统中,方案生成阶段通常只读取部分商品字段或供应商字段,导致某些资源在商品层面看似可用,但配置到具体城市或具体员工群体后才暴露出容量不足、地域不覆盖、周期不匹配或预算超限的问题
本发明围绕企业福利资源在多约束条件下的可配置、可定位和可局部替换展开,对现有企业福利平台中的资源筛选和方案生成过程进行工程化改进。系统首先在一次福利配置任务开始时,将企业预算、目标地域、允许福利品类、服务周期、可用供应商范围以及匿名员工群体统计数据整理为配置约束条件,并将人均预算和总预算折算到匿名群体层面形成群体预算边界,使后续资源筛选和方案配置均能够以同一约束结构为依据。随后,系统从福利商品库、服务项目库和供应商规则库中读取候选资源,将商品属性、服务属性和供应商履约属性合并为统一的可配置资源对象,并针对每个资源对象与每个匿名员工群体建立可配置资格判断,使资源对象不仅记录资源编号、品类、单人成本、供应商、服务容量、有效期和兑换条件,还记录其能够适配的匿名群体范围。基于该可配置资源对象集合,系统进一步按照匿名群体和福利品类形成初始配置方案,在写入每条配置记录时同步记录预算占用、服务容量占用、供应商来源、有效期、兑换条件以及用于后续同品类替换的预算修复余量,从而使初始方案由可定位的结构化配置记录组成。当初始配置方案中存在待配置记录,或者经局部校验发现某条配置记录存在预算、容量、有效期或兑换条件问题时,系统以该具体配置位置为处理对象,从同一匿名群体、同一福利品类且满足适配关系的可配置资源对象中筛选替代资源,通过移除当前资源预算占用、加入替代资源预算占用和预算修复余量的方式重新判断群体预算边界,并同步判断替代资源的服务容量、有效期和兑换条件,完成局部替换后只更新受影响的配置记录、预算占用和容量占用。通过上述处理,本发明使背景技术中分散存储的福利商品、服务项目和供应商履约规则被转化为统一的可配置资源对象,使资源能否配置到具体匿名群体在方案生成前即可被明确,使初始方案中的每一项福利配置均具有可定位的群体、品类和资源关系,并使局部不合规位置能够在保持其他配置记录稳定的基础上完成替代处理,最终输出包含最终福利配置方案、群体权益配置表、预算占用表、供应商履约清单以及必要不可配置记录的可执行配置结果,从而提高企业福利资源多约束配置的落地性、稳定性和后续履约衔接效率。
Smart Images

Figure CN122656576A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of multi-constraint configuration of corporate welfare resources, and particularly relates to a data processing method and system for multi-constraint configuration of corporate welfare resources. Background Technology
[0002] As employees' work locations, organizational structures, and welfare consumption needs continue to evolve, corporate welfare management has gradually shifted from the traditional fixed-disbursement model to a platform-based, flexible, and modular configuration model. In existing corporate welfare platforms, companies typically input budget standards, number of employees, target city, welfare categories, and supplier range through a configuration page. The platform then generates candidate welfare combinations based on a product library, service library, supplier directory, or historical welfare plans. Some platforms also use rule templates or manual configuration to filter and sort welfare products. While this approach can improve the efficiency of welfare plan development to some extent, in engineering implementation, it primarily treats welfare products or services as recommendable objects rather than as configurable, verifiable, and replaceable resources. Corporate welfare resources differ significantly from ordinary product recommendations. Whether a welfare resource can be included in a plan depends not only on whether the product or service itself matches the company's preferences but also on whether it covers the target region, belongs to a category permitted by the company, is provided by a supplier the company has already activated, is valid within the company's service period, has sufficient service capacity or inventory, meets redemption or reservation conditions, and whether configuring it to an anonymous employee group exceeds that group's budget limit. In existing systems, employee welfare products, services, supplier fulfillment rules, contract service cities, service capacity, validity periods, and redemption conditions are often scattered across different business tables or management systems. During the scheme generation phase, only a portion of the product or supplier fields are typically read. This leads to situations where some resources appear available at the product level, but problems such as insufficient capacity, geographical coverage, mismatched periods, or budget overruns only become apparent when configured for specific cities or employee groups. Furthermore, corporate welfare schemes are usually a combination of configurations targeting multiple anonymous employee groups, multiple cities, multiple welfare categories, and multiple suppliers. A problem in one partial configuration record does not necessarily mean the entire scheme should be regenerated. However, existing rule filtering or template generation methods often lack a structured processing mechanism to pinpoint the configuration location of "anonymous group, welfare category, and resource target." When partial unfulfillment or budget overruns are discovered, the common approach is to manually reselect resources or regenerate the entire scheme. This easily alters previously compliant configuration records, causing repeated adjustments to budget accounting, supplier fulfillment coordination, and internal approval processes.Therefore, while existing technologies can perform preliminary recommendations or combinations of welfare programs, they still face challenges when configuring corporate welfare resources with multiple constraints. These challenges include scattered resource fields, unclear configurable eligibility for resources, ambiguous compatibility boundaries between resources and anonymous groups, lack of locatable configuration records for initial solutions, difficulty in stable replacement after partial non-compliance, and difficulty in directly linking the final results to welfare distribution and supplier fulfillment. A data processing method designed around the entire process of corporate welfare resource configuration is needed to continuously connect corporate constraints, resource objects, initial configuration records, and partial replacement results, transforming welfare resource configuration from a "recommended product list" into an "executable configuration record." Summary of the Invention
[0003] The purpose of this invention is to propose a data processing method and system for multi-constraint configuration of enterprise welfare resources, thereby solving the above-mentioned problems.
[0004] To achieve the above objectives, a data processing method for multi-constraint configuration of enterprise welfare resources is provided in a first aspect of the present invention, the method comprising the following steps: Obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size, and group budget boundary corresponding to each anonymous group; Obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. Write the anonymous groups whose configurable qualification judgment results are valid into the adaptable anonymous group set of the corresponding resource object, and generate a set of configurable resource objects. Based on the set of configurable resource objects, an initial configuration scheme is generated according to the anonymous group and the set of allowed welfare categories; The configuration records to be configured and the written configuration records that need to be adjusted after verification in the initial configuration scheme are partially processed. Alternative resources are selected from configurable resource objects that are in the same anonymous group, the same welfare category and meet the adaptation relationship. The group budget boundary is re-determined by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determining the service capacity, validity period and redemption conditions. After the partial replacement is completed, the affected configuration records, budget occupation and capacity occupation are updated to generate an executable configuration result.
[0005] Furthermore, the group budget boundary is calculated as follows: The first candidate boundary is obtained by multiplying the per capita budget boundary by the number of people in the group, and the second candidate boundary is obtained by multiplying the total budget boundary by the proportion of the group's number of people to all participants in the configuration. The smaller of the two values is taken as the group budget boundary of the current anonymous group. When only the per capita budget boundary is available, the first candidate boundary is used directly. When only the total budget boundary is available, the second candidate boundary is used directly. The per capita budget boundary and total budget boundary are both entered and set on the welfare configuration page.
[0006] Furthermore, the candidate resource records are read from the welfare goods library, service item library, and supplier rule library, and are the result of merging fields of the same resource that are scattered in multiple business tables; The candidate resource record includes category, supplier, validity period, applicable region, cost per person, service capacity, and redemption conditions.
[0007] Furthermore, the configurable eligibility criteria include: The product category belongs to the permitted welfare category, the supplier belongs to the range of available suppliers, the validity period covers the area, the group region belongs to the applicable resource region, the resource's individual cost multiplied by the number of people in the group does not exceed the group's budget boundary, the number of people in the group does not exceed the resource's service capacity, and the redemption conditions are met for the group region corresponding to the anonymous group; when all of the above conditions are met, the resource is eligible to be configured for the anonymous group.
[0008] Furthermore, the method for generating the adaptable anonymous group set is as follows: for each candidate resource, all the anonymous groups are traversed, and the anonymous groups whose configurable eligibility judgment results are valid are written into the adaptable anonymous group set of the current resource object, and the candidate resource records are organized into a unified configurable resource object; wherein, each configurable resource object includes resource number, resource name, resource category, applicable region, single person cost, supplier number, service capacity, validity period, redemption conditions and adaptable anonymous group set.
[0009] Furthermore, when generating the initial configuration scheme based on the set of configurable resource objects and the set of anonymous groups and allowed welfare categories, the configuration record number, anonymous group number, group region, configuration resource number, resource category, single-person cost, number of people configured, budget occupancy, budget recovery margin, supplier number, validity period, redemption conditions and service capacity occupancy are also written for each configuration record.
[0010] Furthermore, before generating the initial configuration scheme, for each anonymous group and each welfare category, resources are selected and written sequentially from the candidate resource set for writing the initial configuration scheme according to the following order: from low to high cost per person; if the cost per person is the same, resources are selected from high to low remaining service capacity; if they are still the same, resources are selected in alphabetical order by resource number. The budget repair margin is calculated as follows: In the set of configurable resource objects, for other resource objects of the same welfare category and also suitable for the same anonymous group, find the resource with the closest cost per person to the current resource, calculate the cost difference per person, multiply it by the number of people in the anonymous group, and obtain the budget repair margin when the current resource is allocated to the anonymous group. The selection criteria for the candidate resource set include: resource suitability for the anonymous group, resource category matching, current occupied budget plus current resource budget usage plus budget repair margin not exceeding the group budget boundary, and current occupied service capacity plus group size not exceeding the resource service capacity.
[0011] Furthermore, the verification conditions already written into the configuration records in the initial configuration scheme include: The total budget usage of all configuration records written under the current anonymous group does not exceed the group budget boundary; the total service capacity usage of the same resource number in all anonymous groups does not exceed the service capacity of that resource; the resource validity period covers the service cycle; and the redemption conditions match the region of the anonymous group. If any of these conditions are not met, the configuration record is marked as a location to be processed locally.
[0012] Furthermore, the criteria for selecting alternative resources include: The alternative resources are adapted to the anonymous group corresponding to the location to be processed; the category of the alternative resources is consistent with the welfare category of the location to be processed; after removing the current resource budget occupation and adding the alternative resource budget occupation and budget repair margin, the group budget occupation does not exceed the group budget boundary; after adding the number of people in the anonymous group, the service capacity occupation of the alternative resources does not exceed its service capacity; the validity period of the alternative resources covers the service cycle; and the redemption conditions are valid for the region of the anonymous group. When determining specific alternative resources from the alternative resource set, they are sorted from smallest to largest according to the remaining budget of the group after replacement. If the remaining budgets are the same, they are sorted from highest to lowest according to the remaining service capacity of the alternative resources. If they are still the same, they are arranged in alphabetical order according to the resource number. The first resource after sorting is written to the pending processing position.
[0013] In a second aspect of the present invention, a data processing system for multi-constraint configuration of enterprise welfare resources is provided, the system comprising: The constraint generation module is used to obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size and group budget boundary corresponding to each anonymous group; The resource object generation module is used to obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. The anonymous groups whose configurable qualification judgment results are valid are written into the adaptable anonymous group set of the corresponding resource object, and a set of configurable resource objects is generated. The initial configuration module is used to generate an initial configuration scheme based on the set of configurable resource objects, according to the anonymous group and the set of allowed welfare categories; The partial verification and replacement module is used to perform partial processing on the configuration records to be configured and the written configuration records that need to be adjusted after verification in the initial configuration scheme. It selects alternative resources from configurable resource objects that are in the same anonymous group, the same welfare category and meet the adaptation relationship. It re-determines the group budget boundary by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determines the service capacity, validity period and redemption conditions. After the partial replacement is completed, it updates the affected configuration records, budget occupation and capacity occupation and generates an executable configuration result.
[0014] The beneficial technical effects of the present invention are at least as follows: This invention focuses on the configurability, location, and partial replaceability of corporate welfare resources under multiple constraints, and engineering improvements to the resource selection and solution generation processes in existing corporate welfare platforms. First, at the start of a welfare configuration task, the system organizes the company budget, target region, allowed welfare categories, service period, available supplier range, and anonymous employee group statistics into configuration constraints. The per capita budget and total budget are then converted to the anonymous group level to form a group budget boundary, ensuring that subsequent resource selection and solution configuration are based on the same constraint structure. Subsequently, the system reads candidate resources from the welfare product library, service item library, and supplier rule library, merging product attributes, service attributes, and supplier performance attributes into a unified configurable resource object. For each resource object and each anonymous employee group, a configurable eligibility judgment is established, ensuring that the resource object not only records the resource number, category, unit cost, supplier, service capacity, validity period, and redemption conditions, but also the range of anonymous groups it can be matched with. Based on this set of configurable resource objects, the system further forms an initial configuration scheme according to anonymous groups and welfare categories. When writing each configuration record, the system simultaneously records budget usage, service capacity usage, supplier source, validity period, redemption conditions, and budget recovery margin for subsequent replacement of the same category. This makes the initial scheme composed of locationable structured configuration records. When there are records to be configured in the initial configuration scheme, or when a configuration record is found to have problems with budget, capacity, validity period, or redemption conditions through partial verification, the system takes that specific configuration location as the processing object. It selects alternative resources from configurable resource objects of the same anonymous group and the same welfare category that meet the adaptation relationship. The system re-determines the group budget boundary by removing the current resource budget usage, adding the alternative resource budget usage and budget recovery margin, and simultaneously determines the service capacity, validity period, and redemption conditions of the alternative resources. After completing the partial replacement, only the affected configuration records, budget usage, and capacity usage are updated. Through the above processing, this invention transforms the scattered storage of welfare goods, service items, and supplier performance rules in the background technology into unified configurable resource objects. This allows it to be determined whether a resource can be configured to a specific anonymous group before the plan is generated. It also ensures that each welfare configuration in the initial plan has a locatable group, category, and resource relationship, and allows local non-compliant locations to be replaced while maintaining the stability of other configuration records. The final output includes an executable configuration result containing the final welfare configuration plan, a group rights configuration table, a budget occupancy table, a supplier performance list, and necessary non-configurable records. This improves the feasibility, stability, and subsequent performance connection efficiency of multi-constraint configuration of enterprise welfare resources.
[0015] The processing object in this invention is not the enterprise welfare management rules themselves, but rather the heterogeneous resource data, anonymous group statistics, supplier performance data, budget occupancy data, and capacity occupancy data in the welfare configuration platform. The system transforms data from scattered business tables into a constraint data structure that can be directly executed by a computer through field standardization, resource object merging, configurable eligibility indexes, structured configuration records, partial replacement sets, and transactional capacity updates. This ensures that every configuration or replacement is implemented on specific data records, database fields, and interface outputs. The resulting technical effects are: reduced configuration errors caused by inconsistencies in cross-table fields; reduced database writes and repeated changes to approval results due to full recalculation; prevention of duplicate capacity or budget occupancy in concurrent configuration tasks; and improved data consistency between the final configuration results and the welfare distribution interface, budget calculation interface, and supplier performance interface. Attached Figure Description
[0016] The present invention will be further described with reference to the accompanying drawings, but the embodiments in the drawings do not constitute any limitation on the present invention. For those skilled in the art, other drawings can be obtained based on the following drawings without creative effort.
[0017] Figure 1 This is a flowchart of a data processing method for configuring multiple constraints on enterprise welfare resources according to the present invention. Detailed Implementation
[0018] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0019] like Figure 1 As shown in the figure, an embodiment of the present invention provides a data processing method for multi-constraint configuration of enterprise welfare resources, the method comprising: S1. Obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size and group budget boundary corresponding to each anonymous group.
[0020] Specifically, the system receives data from the enterprise benefits configuration platform and the enterprise's existing business systems. The enterprise budget, allowed benefit categories, service period, and target region are filled in or selected by enterprise managers on the benefits configuration page. The range of available suppliers is retrieved by the benefits platform from the enterprise's existing supplier relationship table, contract configuration table, or operations backend. Anonymous employee group statistics are provided by the enterprise's human resources system or the benefits platform's aggregation interface, including the anonymous employee group ID, group size, and group region. For health, psychological, and family benefits, the system includes these as benefit resource category boundaries in the configuration constraints. For example, a company fills in on the page that "the average budget per person does not exceed 800, the service period is the whole of 2026, the target regions are Beijing, Shanghai, and Chengdu, the allowed categories are health and family, and the available suppliers are A, B, and C"; the company's human resources system returns anonymous groups G1 corresponding to Beijing with 120 people, G2 corresponding to Shanghai with 80 people, and G3 corresponding to Chengdu with 60 people, and the system creates configuration constraints based on this. .
[0021] The system writes enterprise-level configuration and anonymous group-level configuration into the configuration constraints respectively. Enterprise-level configuration includes budget boundaries, allowed benefit category sets, service periods, and available supplier sets. Budget boundaries include the enterprise's per capita budget boundary and total enterprise budget boundary; both can exist simultaneously, or only one can exist. Allowed benefit category sets are saved as unified category codes within the platform; for example, "health" and "family" displayed on the page are converted to internal platform category codes. The service period is saved as the start and end range required by the enterprise for this benefit configuration. The available supplier set is saved as unique supplier IDs within the platform, derived from records of suppliers the enterprise has activated or signed contracts with. Anonymous group-level configuration includes anonymous group IDs, group region, group size, and group budget boundaries. The group region is bound to the anonymous group ID; for example, G1 is bound to Beijing, G2 to Shanghai, and G3 to Chengdu. This allows the system to determine whether a benefit resource covers the required anonymous group region during the subsequent step two of retrieving the applicable resource region. For the group budget boundary, the system uses proportional allocation relationships and upper bound constraints from basic mathematics for calculation. The proportional allocation relationship comes from the mathematical relationship of allocating the total amount according to the proportion of the group's population, and the upper bound constraint relationship comes from the mathematical processing of taking a more stringent feasible boundary for candidate results during the constraint processing. Based on this, this application converts the total enterprise budget boundary and the per capita budget boundary to the anonymous group level, and takes the more stringent one as the budget boundary that the group can use, so that subsequent resource allocation can be constrained by both the total enterprise budget and the per capita budget.
[0022] ; in, Anonymous group The group budget boundary is written into the configuration constraints by the system. ; This indicates the per capita budget boundary entered by the company on the benefits configuration page; Anonymous group The group size is provided by the enterprise's human resources system or welfare platform aggregation interface; This indicates the total budget boundary entered by the company on the benefits configuration page; This represents the total number of anonymous participants in this configuration, obtained by summing the number of participants from each anonymous group in the system. This indicates the selection of the more stringent one from two candidate boundaries. The left side of the equation represents the group budget boundary, and the two terms on the right are the group budget boundary calculated from per capita budget and the group budget boundary calculated from total budget based on population percentage, respectively. Both sides represent the same type of budget boundary, and the calculation relationship is consistent. During calculation... Using "amount per person" as the unit. , Use monetary units. and Use the number of people as the unit. and All amounts are converted to group amount boundaries before comparison; the system standardizes currency and amount precision in the configuration parameter table, for example, uniformly retaining two decimal places for yuan or saving as an integer for fen, to avoid budget fields with different currencies or different precisions in the same task. The system only... and The above calculations are performed on-time; if the number of people in an anonymous group is empty or 0, that group will not be included in the automatic configuration and will be recorded as a group statistics record pending review. If the enterprise only enters the per capita budget boundary, the system will directly use... As If the company only enters the total budget boundary, the system will directly adopt the result. As If neither of the two budget fields is entered, the system will not generate an automatic budget boundary, but will instead... Write the budget boundary missing status into the data so that subsequent steps do not perform automatic resource allocation for this task.
[0023] In one embodiment, following the enterprise configuration scenario described above, the enterprise enters an average budget boundary of 800 per person, a total budget boundary of 180,000, 120 employees in G1, 80 employees in G2, and 60 employees in G3. The total number of people participating in the configuration is as follows. The figure is 260. For G1, the group budget boundary calculated based on per capita budget is 800 × 120 = 96000, and the group budget boundary calculated based on the percentage of total budget per person is 180000 × 120 / 260, resulting in approximately 83076.92. The system takes the more stringent one and records the group budget boundary for G1 as 83076.92. For G2, the per capita budget is 64000, and the percentage of total budget per person is approximately 55384.62. The system records the group budget boundary for G2 as 55384.62. For G3, the per capita budget is 48000, and the percentage of total budget per person is approximately 41538.46. The system records the group budget boundary for G3 as 41538.46. The sum of the three group budget boundaries does not exceed the enterprise's total budget boundary, and each group budget boundary is also within the upper limit range calculated based on per capita budget. Therefore, in subsequent step three, resource configuration, the figures for each group can be directly read. As a budget constraint.
[0024] Understandably, the system uses field mapping when entering region, category, service period, and supplier scope. The region field uses existing platform region codes or administrative division codes for consistency; for example, when the front end displays "Beijing" and the supplier resource database displays "Beijing,"... The data is saved using the same regional code. The category field uses the platform's unified category code; for example, the category codes corresponding to resource names such as "Health Benefits," "Physical Examination Services," and "Health Care" will be used when reading the resource library in step two. Step one saves the category codes allowed by the enterprise. The service period is saved according to the start and end range entered by the enterprise; subsequent resource validity periods are determined based on this service period. The supplier range is saved according to the supplier numbers already activated by the enterprise; subsequent resources will proceed to further processing if the corresponding supplier is within this set. After completing the above processing, the system generates configuration constraints. , This includes the configuration task number, enterprise-level budget boundary, allowed benefit categories set, service period, available supplier set, and the group ID, group region, group size, and group budget boundary for each anonymous group. Taking the aforementioned example... Preservation in China: Allowed product categories are health and family, with a service period of the entire year of 2026. Available suppliers are A, B, and C. G1 corresponds to Beijing, with 120 people and a group budget boundary of 83,076.92. G2 corresponds to Shanghai, with 80 people and a group budget boundary of 55,384.62. G3 corresponds to Chengdu, with 60 people and a group budget boundary of 41,538.46.
[0025] S2. Obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. Write the anonymous groups whose configurable qualification judgment result is valid into the adaptable anonymous group set of the corresponding resource object, and generate a set of configurable resource objects.
[0026] Specifically, configure constraints. This step serves as a unified boundary for the corporate benefits allocation task, which already includes the permitted benefit categories, service periods, available supplier range, geographic location of the anonymous group, number of members in the anonymous group, and group budget boundaries. The system reads candidate welfare resources from the welfare product database, service item database, and supplier rule database, and merges fields of the same resource scattered across multiple business tables into a single candidate resource record. For example, the welfare product database records the resource number, resource name, resource category, and enterprise contract price of the "R001 Health Checkup Package," while the supplier rule database records the contract service city, service start and end range, and single-cycle service capacity of supplier A. Based on the correspondence between resource numbers and supplier numbers, the system merges these fields into a single candidate resource record. For in-kind welfare benefits, the candidate resource record includes product number, product name, product category, supplier number, delivery region, enterprise contract price, inventory quantity, redemption method, and resource validity period. For service welfare benefits, the candidate resource record includes service number, service name, service category, supplier number, service region, enterprise contract price, maximum number of people that can be served, reservation rules, and service validity period. For supplier fulfillment rules, the candidate resource record further merges enterprise activation status, contract service city, single-cycle service capacity, service start and end range, and redemption or reservation conditions. After this merging process, each candidate resource record possesses both resource attributes and fulfillment attributes, and can be directly linked with... Match the enterprise configuration boundaries in the system.
[0027] Furthermore, the system then establishes resource-group configurability eligibility for each candidate resource record and each anonymous group record. This process originates from the feasibility determination in the discrete resource allocation problem: in classic discrete allocation, whether a candidate object can enter a certain allocation position requires the simultaneous satisfaction of several constraints; this application extends this idea to the scenario of enterprise welfare resource allocation, specifying the "configuration position" as anonymous employee groups and the "candidate object" as welfare resources, and adding two judgment items directly related to welfare fulfillment—supplier capacity and redemption conditions—in addition to feasibility conditions such as general category, region, cycle, and budget. The resulting eligibility judgment not only indicates whether a resource as a whole is available, but also indicates which anonymous groups the resource can be allocated to. The system then processes the candidate resources... With Anonymous Group Configurable eligibility is determined by the following formula: ; in, Indicates candidate resources Compared to anonymous groups The configurable qualification identifier is obtained by the system based on each condition in the formula; This represents a candidate resource record obtained by merging the welfare goods database, service item database, and supplier rule database. Its fields include category, supplier, validity period, applicable region, cost per person, service capacity, and redemption conditions. Indicates configuration constraints An anonymous group record in the database, whose fields include group ID, region, and number of people; This indicates the configuration constraints output from step one, whose fields include allowed categories, available suppliers, service period, and group budget boundary; This indicates that the text written in step one Anonymous group Group budget boundaries; Indicates candidate resources For anonymous groups The system determines the exchange criteria based on the resource exchange method, reservation rules, delivery rules, and anonymous groups. The region is determined by field evaluation, and the value is 1 if the condition is true. The left side of the expression is the qualification identifier, and the right side is the value rule when multiple configuration conditions are met simultaneously; where... Use the same currency and amount precision as in step one, in the form of "amount / person". and Both indicate the budget allocation relationship of the same group. and Both represent the scale of serviceable or redeemable personnel, and their comparison direction aligns with the logic of judging budget boundaries and supplier capacity in corporate welfare allocation. If a candidate resource lacks necessary fields for formula judgment, such as unit cost, applicable region, validity period, service capacity, or redemption conditions, and these cannot be supplemented from the supplier rule base or contract configuration table, the system will match the corresponding resource-group combination. Set it to 0 and record the reason for the missing field in the resource object to avoid resources with incomplete fields being mistakenly judged as configurable.
[0028] In one embodiment, the enterprise configuration scenario from step one is used. The system allows welfare categories to be health-related and family-related, with a service period covering the entire year of 2026. Available suppliers are A, B, and C. Anonymous groups G1 corresponds to Beijing, with 120 members and a group budget boundary of 83076.92; G2 corresponds to Shanghai, with 80 members and a group budget boundary of 55384.62; and G3 corresponds to Chengdu, with 60 members and a group budget boundary of 41538.46. For candidate resource R001, "Health Checkup Package," the resource category is health-related, supplier A is available, the cost per person is 500, applicable regions are Beijing and Shanghai, the validity period covers the entire year of 2026, the service capacity is 1000, and the redemption condition is offline appointment in the target city. When the system determines that R001 is relative to G1, it belongs to the health category. The permitted product categories, supplier A belongs to Available suppliers, resource validity period covers For the service period, Beijing in region G1 is applicable to region R001, with a budget of 500 × 120 = 60,000, which is within the group budget boundary of G1 (83,076.92). The number of people in G1 (120) is within the service capacity of R001 (1,000). The offline reservation condition is met for Beijing, therefore, the configurable qualification of R001 relative to G1 is 1. When the system judges R001 relative to G2, the budget is 500 × 80 = 40,000, which is within the group budget boundary of G2 (55,384.62). Shanghai is applicable to region R001, and other conditions are also met, therefore, the configurable qualification of R001 relative to G2 is 1. When the system judges R001 relative to G3, Chengdu in region G3 is not included in the applicable region of R001, and the offline reservation condition for the target city cannot be met for Chengdu, therefore, the configurable qualification of R001 relative to G3 is 0. For candidate resource R002 "Online Family Health Service", the resource category is family, the supplier is B, the cost per person is 300, the applicable region is nationwide, the validity period covers the whole year of 2026, the service capacity is 500, and the redemption condition is online redemption. The system calculates its budget occupation for G1, G2, and G3 as 300×120=36000, 300×80=24000, and 300×60=18000 respectively. All of these are within the budget boundary of the corresponding groups, and the number of people in the three groups is within the service capacity of 500. The online redemption condition is met for the three regions. Therefore, the configurable qualification of R002 relative to G1, G2, and G3 is 1.
[0029] In one embodiment, the system forms an adaptable anonymity group set for each candidate resource based on the aforementioned configurable qualifications. The mathematical origin of this set is the conditional selection expression in set theory, which selects elements from a given set that satisfy a given condition. This application applies this expression to the scenario of corporate welfare allocation, taking all anonymous group records obtained in step one as the set to be selected, and using the aforementioned configurable qualifications as the selection condition, thereby forming the adaptive group boundary carried by the resource object itself. The derivation relationship is: first, use the previous formula to obtain the resource-group combination... Then put all Anonymous groups write resources An adaptable set of anonymous groups.
[0030] ; in, Indicates candidate resources The set of adaptable anonymous groups is written into the resource object by the system; Indicates configuration constraints An anonymous group record; This represents all anonymous group records formed in step one; Indicates candidate resources Compared to anonymous groups The configurable qualification identifier is obtained according to the aforementioned qualification judgment formula. Taking R001 as an example, R001's configurable qualification relative to G1 and G2 is 1, and its configurable qualification relative to G3 is 0. Therefore, R001's... For G1 and G2; taking R002 as an example, R002's configurability relative to G1, G2, and G3 is 1, therefore R002's The groups are G1, G2, and G3. Through this set, the anonymity groups to which a resource object can be configured are clearly defined before proceeding to subsequent steps; step three can then directly read the data. This establishes a resource allocation relationship between anonymous groups.
[0031] Furthermore, forming Subsequently, the system organizes the candidate resource records into unified configurable resource objects. Each configurable resource object includes a resource number, resource name, resource category, applicable region, cost per person, supplier number, service capacity, validity period, redemption conditions, and a set of compatible anonymous groups. Resource ID and name are derived from the welfare product library or service item library; resource category is derived from resource library fields and mapped to the platform's unified category code; applicable region is derived from the delivery region and service region of the resource library or the contract service city in the supplier rule library; single-person cost is derived from the enterprise contract price or resource price field; supplier ID is derived from the association field between the resource library and the supplier rule library; service capacity is derived from the inventory quantity, maximum number of serviceable people, available reservation seats, or supplier single-cycle capacity fields; validity period is derived from the resource validity period or the supplier's service start and end range; redemption conditions are derived from the resource redemption method, reservation rules, delivery rules, or supplier performance rules. For physical welfare benefits, service capacity uses inventory quantity, enterprise available quota, or supplier committed supply quantity; for service welfare benefits, service capacity uses maximum reservation number, service seat number, or contractually agreed service number. If the validity period field of a candidate resource is empty in the product database, but the supplier's service start and end range for that resource category exists in the supplier's rule base, the system uses the service start and end range from the supplier's rule base to write the resource object. If the applicable region field of a candidate resource is empty in the product database, but the supplier's contract service city exists in the supplier's rule base, the system uses the contract service city to write the resource object. If the inventory field of a candidate resource is empty, but the supplier's rule base contains a single-cycle service capacity, the system uses the single-cycle service capacity to write the resource object. When fields are completed, the system records the source table of the completed fields, the field update time, and the data version number used in this configuration task. If the same field conflicts in different data tables, the current effective version in the enterprise contract configuration table or the supplier performance rule base shall prevail, and the overridden field shall be written into the field conflict record. After the fields are completed, the system again determines the eligibility according to the aforementioned qualification judgment formula. And update This will eventually lead to the set. The resource objects have complete configuration fields, explicit data versions, and a clear scope of applicable groups.
[0032] In one embodiment, after the system completes the above processing, a set of configurable resource objects is formed. .gather Each resource object carries a uniform resource field and a set of anonymized groups that can be adapted. .For example, This includes R001, a health checkup package with a cost of 500 per person, supplier A, service capacity of 1000, validity covering the entire year of 2026, and suitable for anonymous groups G1 and G2; and R002, an online family health service with a cost of 300 per person, supplier B, service capacity of 500, validity covering the entire year of 2026, and suitable for anonymous groups G1, G2, and G3. If service resource R004 only records "online consultation service, supplier C, cost per person 260" in the service item library, while the supplier rule library records that supplier C's online service covers the whole country, is valid for the entire year of 2026, has a single-cycle service capacity of 800, and the redemption method is online appointment, then the system writes these fulfillment fields into the resource object of R004, and according to... It was determined that it was suitable for anonymous groups.
[0033] S3. Based on the set of configurable resource objects, generate an initial configuration scheme according to the set of anonymous groups and allowed welfare categories.
[0034] Specifically, step three uses the set of configurable resource objects output in step two. As input, generate the initial configuration scheme. .gather Each resource object already carries a resource ID, resource category, applicable region, unit cost, supplier ID, service capacity, validity period, redemption conditions, and a set of compatible anonymous groups. ;in, This is derived from the result of step two in determining the configurability of resources—anonymous groups, and each anonymous group record carries the group ID, group region, and group size. and group budget boundaries Therefore, this step directly follows the resource object structure from step two, transforming the eligibility relationship of "which anonymous groups can the resources be allocated to" into the initial scheme relationship of "which anonymous groups the resources are actually allocated to." When the system generates configuration records, it simultaneously records budget usage, capacity usage, supplier source, validity period, and redemption conditions, enabling step four to directly base its decisions on these conditions. The specific configuration records are partially verified and replaced.
[0035] The system processes resource allocation for anonymous groups according to the configured order of employee benefit categories allowed by the enterprise. The configured order of employee benefit categories can be derived from the selection order made by the enterprise on the benefits configuration page, or from the preset display order in the benefits platform's operations backend.
[0036] For anonymous groups and the welfare categories currently being processed The system selects resource categories from the candidate resource pool of this group as follows: The resource objects are identified and written to according to a fixed field order. The fixed field order is as follows: first, sort by single-person cost from low to high; if single-person costs are the same, sort by remaining service capacity from high to low; if still the same, sort by resource ID in lexicographical order. All sorting fields are derived from the resource objects output in step two, ensuring that the same set of configuration constraints applies. and configurable resource object collection A definite initial configuration scheme can be formed. .
[0037] Before writing to a resource object, the system determines whether the resource can be placed in the current category configuration position of the current anonymous group based on budget boundaries and service capacity boundaries. To avoid duplicate capacity usage caused by multiple configuration tasks writing to the same resource simultaneously, the system reads the capacity version number and current usage of the resource object before writing the configuration record, and uses the same transaction commit when writing budget usage and capacity usage; if the capacity version number has changed at the time of commit, the resource object is read again. Current service capacity occupied And recalculate the anonymous group In welfare categories The following is a set of candidate resources that can be written to the initial configuration scheme. Only resource objects that still meet the capacity limits after recalculation can be written into the initial configuration scheme. .
[0038] Furthermore, to ensure the initial configuration is suitable for subsequent partial replacements, the system calculates a budget repair margin for the resource-anonymous group combination before writing resources. The original source of this calculation is the nearest neighbor difference calculation in mathematics, which involves finding the object with the smallest numerical difference from the current object within the same candidate set. This application extends this nearest neighbor difference relationship to the scenario of corporate welfare allocation, limiting the candidate set to the same welfare category and also suitable for anonymous groups. The configurable resource object limits the difference to the cost difference per person for the resource, and then multiplies it by the number of people in the anonymous group to obtain the minimum budget change boundary corresponding to the most recent replacement of the same type of resource within the same anonymous group. This budget adjustment margin is written into the initial configuration judgment condition, so that the budget change boundary required for the most recent replacement of the same type is recorded synchronously when the initial plan is formed, and the alternative resources that meet this boundary are preferentially selected in step four when partial replacement.
[0039] ; in, Represents resource objects Configured for anonymous groups The corresponding budget repair margin is determined by the system from the set of configurable resource objects. Calculated in the middle; Represents a set In and resource objects Belonging to the same welfare category and equally suitable for anonymous groups Another resource object; Represents resource objects The set of adaptable anonymous groups is derived from the output of step two. ; Represents resource objects The resource category is derived from the resource object field; Represents resource objects The resource category is derived from the resource object field; Represents resource objects The cost per person is derived from the resource object field; Represents resource objects The cost per person is derived from the resource object field; Anonymous group The group size is derived from the resource object's adaptable anonymous group set. The data includes anonymous group records. The budget variation boundary at the group level is obtained by multiplying the individual cost difference on the right by the group size; the left side represents the same budget variation boundary, and the calculation relationship is consistent. If no equally suitable anonymous group exists within the same welfare category... Other resource objects, the system will Record it as 0, and use the current resource object's budget usage for subsequent judgments.
[0040] For example, understandably, using the aforementioned enterprise configuration scenario, G1 has 120 members, and the group budget boundary is 83076.92; the cost per person for the R001 health checkup package is 500, suitable for both G1 and G2. Assume that within the same health category, there is also the R005 basic health checkup package with a cost per person of 480, suitable for both G1 and G2; and the R006 upgraded health checkup package with a cost per person of 530, suitable for G1. In the case where R001 is configured for G1, the system searches for the resource object within the same health category that is suitable for G1, finding the object with the closest cost per person to R001. The cost difference between R005 and R001 is 20, and the cost difference between R006 and R001 is 30. Therefore, the smaller difference of 20 is taken and multiplied by the number of members in G1 (120) to obtain... In the case where R001 is configured for G2, if the only compatible alternative resource of the same type for G2 is R005, and G2 has 80 users, then... This margin represents the budget change boundary that needs to be referenced when performing the most recent cost substitution within the same product category in the subsequent step four.
[0041] After determining the budget repair margin, the system formed an anonymous group. In welfare categories The following is a set of candidate resources that can be written to the initial configuration scheme. The original source of this set is the selection of feasible candidate sets in the combination configuration, that is, selecting objects that meet the constraints from the candidate object set; this application transforms it into a candidate set for enterprise welfare resource allocation, so that the candidate objects, in addition to satisfying the adaptability relationship in step two, also satisfy the conditions of group cumulative budget, budget repair margin, and resource cumulative capacity. The logical relationship between this formula and the previous formula is: the resource objects are first calculated by the previous formula. Targeting anonymous groups Budget repair margin Then, this remaining amount is used as part of the budget boundary judgment, and the filtering can be written into... Candidate resource objects.
[0042] ; in, Anonymous group In welfare categories The following is a set of candidate resources that can be written into the initial configuration scheme; Represents a collection of configurable resource objects Resource objects in; Represents resource objects The set of adaptable anonymous groups is derived from step two; Represents resource objects The resource category is derived from the resource object field; This indicates the welfare category currently being processed, derived from configuration constraints. Permitted welfare categories; Anonymous group The currently used budget will be allocated by the system based on the data already written. The configuration records of the same anonymous group are accumulated one by one; Represents resource objects The cost per person is derived from the resource object field; Anonymous group The number of people is derived from the adaptable anonymous group records of the resource object; Represents resource objects Configured for anonymous groups The remaining budget for repairs at that time is obtained according to the previous formula; Anonymous group The group budget boundary is derived from the configuration constraints formed in step one. And then, in step two, write the adaptable anonymous group record to the resource object; Represents resource objects The current service capacity is already in use, and the system will determine the amount of data already written. The same resource configuration record is obtained by accumulating each record. Represents resource objects The service capacity is derived from the resource object field output in step two. (The set condition...) This indicates that the total budget already used by the group, the current resource budget usage, and the budget recovery margin are still within the group budget boundary. This indicates that the cumulative service capacity usage after the resource is written remains within the service capacity range of that resource. The budget-related items mentioned above all represent the usage relationship within the group budget boundary, while the capacity-related items all represent the resource undertaking scale relationship. The comparison direction is consistent with the budget constraints and performance capacity constraints in enterprise welfare allocation.
[0043] Based on the example above, G1 has 120 members, and the group budget boundary is 83076.92. When the system processes G1's health status, the cost per person (R001) is 500, the budget usage is 500 × 120 = 60000, and the budget recovery margin is 2400. If G1 has already used up its budget... If the value is 0, the budget is 0 + 60000 + 2400 = 62400, which is within 83076.92; if R001 is currently using its capacity... Service capacity is 0. If the value is 1000, the capacity is determined by 0 + 120 = 120, which is within 1000. Therefore, R001 enters the process. For R005, the cost per person is 480, and the budget usage is 480 × 120 = 57600. If the difference between its most recent replacement resource and its cost per person is 20, then the budget recovery margin is 2400, and the budget assessment is 0 + 57600 + 2400 = 60000, which is within 83076.92. If R005's service capacity is 300 and the currently occupied capacity is 0, then the capacity assessment is 120 ≤ 300, and R005 also enters [the next phase / stage]. The system selects and writes resource objects according to a fixed field order. When prioritizing per-person cost, R005 is selected. After writing, G1's occupied budget is updated to 57600, and R005's occupied service capacity is updated to 120. When the system continues processing G1 family cases, if the per-person cost of R002 online family health service is 300, the budget occupied is 300 × 120 = 36000. Since G1's current occupied budget is 57600, the budget occupied after writing to R002 is 93600, exceeding G1's group budget boundary of 83076.92. Therefore, R002 is not included in the G1 family case. At this time, the system is... Write the pending configuration record for the G1 family class, recording the anonymous group number, the pending configuration category, the candidate resource number, and the reason for formation, for further processing in step four.
[0044] For G2, the system processes its candidate resource set in the same way. If G2 has 80 users, a group budget boundary of 55384.62, and R005 currently occupies 120 units of capacity while providing a service capacity of 300 units, then the capacity usage after writing to G2 will be 120 + 80 = 200 units, still within the service capacity range. If the budget usage configured by R005 for G2 is 480 × 80 = 38400 units, and the corresponding budget repair margin is 1600 units, then the budget determination is 0 + 38400 + 1600 = 40000 units, which is within 55384.62, and R005 can write to G2's health configuration record. For G3, the system reads... middle Resource objects containing G3. G3 is not included in the adaptable anonymous group sets of R001 and R005, therefore they will not enter the G3 health category candidate set; if the online consultation service of R004 belongs to the health category, is applicable nationwide, has a cost of 260 per person, and a service capacity of 800, and... If G3 is included, the system determines whether it should be included in the G3 health category candidate set based on the number of G3 members (60), the group budget boundary (41538.46), the current occupied capacity of R004, and the budget repair margin. If the budget and capacity conditions are met, the system will write R004 into the G3 health category configuration record.
[0045] When writing each configuration record, the system merges the resource object field and the anonymous group field into a structured record. Each written configuration record includes a configuration record number, anonymous group number, group region, configuration resource number, resource category, unit cost, number of configuration participants, budget allocation, budget recovery margin, supplier number, validity period, redemption conditions, and service capacity allocation. The configuration record number is generated by combining the current configuration task number, anonymous group number, and configuration resource number; the anonymous group number, group region, and number of configuration participants are derived from the resource object. The system carries anonymous group records; the configuration resource number, resource category, unit cost, supplier number, validity period, redemption conditions, and service capacity are derived from the resource object field; the budget allocation is obtained by multiplying the unit cost by the number of configured personnel; the service capacity allocation uses the number of configured personnel corresponding to this configuration record. The system simultaneously writes budget allocation details and resource capacity allocation details, both carrying the current configuration task number, data version number, and record status. Record status includes written, pending partial processing, and unconfigurable, enabling step four to re-aggregate the budget and capacity according to the same task scope. If an anonymous group is under a certain welfare category... If empty, the system writes a record to be configured. This record includes an anonymous group ID, the category to be configured, a set of corresponding candidate resource IDs, and a reason field, such as "insufficient budget boundary," "insufficient service capacity," or "no suitable resources for the current category." This record to be configured, together with the already written configuration records, constitutes the initial configuration scheme. And it will be processed as the object in step four.
[0046] After processing all anonymous groups and all permitted welfare categories, the system outputs the initial configuration scheme. . This includes written resource configuration records and pending configuration records. Written resource configuration records indicate that a certain anonymous group has configured a certain resource object, specifying the corresponding budget allocation, budget recovery margin, service capacity allocation, supplier number, validity period, and redemption conditions. Pending configuration records indicate that a certain anonymous group needs to continue processing under a certain welfare category, and record the corresponding candidate resource sources and reasons for their formation.
[0047] S4. Perform partial processing on the configuration records to be configured and the configuration records that need to be adjusted after verification in the initial configuration scheme. Select alternative resources from the configurable resource objects of the same anonymous group, the same welfare category and satisfying the adaptation relationship. Re-determine the group budget boundary by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determine the service capacity, validity period and redemption conditions. After completing the partial replacement, update the affected configuration records, budget occupation and capacity occupation, and generate an executable configuration result.
[0048] Specifically, step four uses the initial configuration scheme output in step three. As input, the initial configuration scheme The system performs partial validation and replacement of written configuration records and records to be configured, and generates an executable configuration result. Initial configuration scheme The already written configuration records already include the anonymous group ID, group region, configuration resource ID, resource category, unit cost, number of configured personnel, budget allocation, budget recovery margin, supplier ID, validity period, redemption conditions, and service capacity allocation; the records to be configured already include the anonymous group ID, the category to be configured, the set of candidate resource IDs, and the reason for formation. The system also calls the set of configurable resource objects output in step two. As an alternative resource source, call The set of adaptable anonymous groups for each resource object in the middle The resource category, unit cost, service capacity, validity period, and redemption conditions are used as the basis for replacement judgment. Therefore, step four does not involve regenerating the entire solution, but rather... The specific configuration location of "Anonymous Group - Welfare Category - Resource Object" is updated each time; each replacement only updates this configuration location and the budget and capacity usage records directly related to it, ultimately forming a result that can be directly used for welfare platform distribution, budget accounting, and supplier performance docking.
[0049] The system first configures the initial scheme. The system verifies each written configuration record. For any written configuration record, the system reads the anonymous group ID, configuration resource ID, number of users, budget allocation, supplier ID, validity period, redemption conditions, and service capacity allocation, and then performs verification based on these parameters. The total budget usage for the current group is summarized across all written configuration records within the same anonymous group, based on... The current resource service capacity usage is summarized for all written configuration records under the same resource ID. Budget verification uses the total budget usage of all written configuration records under this anonymous group and compares it with the group budget boundary. Comparison; Capacity verification uses the total service capacity usage of the same resource ID across all anonymous groups to compare with the service capacity of the resource object. The system compares the validity period of the resource object with the enterprise's service cycle. The redemption condition verification matches the resource redemption method, reservation rules, or delivery rules with the anonymous group's geographic location. The system records the data version number, which is consistent with the data version numbers of the current resource object, supplier rules, and contract configuration table. If the supplier rules or capacity field changes after the initial configuration, the system does not directly use the initial configuration result. Instead, it marks the affected configuration record as a pending local processing location and recalculates the capacity and validity period using the currently effective version. If a configuration record needs adjustment under any of the above conditions, the system marks that configuration record as a pending local processing location. And record the reason field, such as "Group budget exceeded", "Resource service capacity exceeded", "Validity period does not cover service period" or "Redemption conditions do not match group region". For The system directly uses the existing unconfigured records as locations to be processed locally. And use the formation reason field written in step three.
[0050] For each location to be locally processed The system reads its anonymous group Items of welfare pending processing The set of candidate resource IDs, the current resource object, and the current resource budget allocation. If... If the resource originates from a previously written configuration record, then the current resource object is the configuration resource in that record, and the current resource budget usage is the product of the resource's cost per person and the number of configured personnel; if If the resource originates from a pending configuration record, the current resource object is empty, and the current resource budget usage is treated as 0. The system then... Recalculate the Anonymous Group Current budget usage before partial processing The current budget usage includes the budget usage of all configuration records already written to this anonymous group; for those originating from already written configuration records... In subsequent replacement judgments, subtraction is used. Remove the current resource budget allocation and add a replacement resource budget allocation. The system also... The configuration records of the same resource object are used to recalculate the current service capacity usage of each candidate alternative resource. Subsequently, the system from Extract the location to be processed locally Scope of associated candidate resource objects .when When the data originates from the record to be configured, From the set of candidate resource IDs saved in the record to be configured; when Originating from when configuration records have been written, The set of resource objects that belong to the same anonymous group and resource category as the configuration record and have formed a compatibility relationship in step two are removed, and the current resource objects in the configuration record are excluded.
[0051] Alternative resource set The determination of the replacement location adopts the local neighborhood replacement idea in combined configuration. Mathematically, this idea belongs to discrete set filtering, that is, selecting a replacement object that meets the constraints from the candidate object set while keeping a certain configuration position unchanged. This application extends this idea to the scenario of enterprise welfare resource allocation, limiting the replacement position to... The specific anonymous groups and welfare categories are defined, limiting the candidate objects to the configurable resource objects generated in step two. The budget judgment is set to the group budget boundary judgment after "removing the current resource budget occupation, adding the alternative resource budget occupation, and the alternative resource budget repair margin," and the capacity judgment is set to the resource service capacity judgment after "adding the number of people in the anonymous group." This results in the following set of alternative resources: ; in, Indicates the location to be processed locally. The corresponding set of alternative resources is obtained by the system based on the conditions in the formula; This represents candidate alternative resource objects, derived from the set of configurable resource objects. ; Indicates the location to be processed locally. The scope of associated candidate resource objects comes from The set of candidate resource IDs for the current configuration record, or the set of candidate resource objects that are from the same anonymous group and the same resource category as the current configuration record, after removing the current resource object; Indicates the location to be processed locally. The corresponding anonymous group comes from Configuration records or records to be configured in the database; Indicates candidate alternative resource objects The set of adaptable anonymous groups is derived from the resource object field output in step two; Indicates candidate alternative resource objects The resource category is derived from the resource object field; Indicates the location to be processed locally. The welfare categories are derived from the welfare category field in the configuration record or the record to be configured in step three. Anonymous group The current budget allocation before partial processing is determined by the system based on... The configuration records written to this anonymous group are accumulated one by one. Indicates the location to be processed locally. The current budget allocation corresponding to the resources, if If it originates from a configuration record that has already been written, then The product of the current resource cost per person and the number of people allocated, if If it originates from a record to be configured, then =0; Indicates candidate alternative resource objects The cost per person is derived from the resource object field; Anonymous group The number of users configured comes from The corresponding anonymous group records; Indicates candidate alternative resource objects Configured for anonymous groups The remaining budget for repairs at that time is calculated using the same method as in step three. Anonymous group The group budget boundary originates from Anonymous group records carried in; Indicates candidate alternative resource objects The current service capacity is already in use, and the system will adjust accordingly. The configuration records using this resource object are accumulated one by one. Indicates candidate alternative resource objects The service capacity is derived from the resource object field output in step two; Indicates configuration constraints The service cycle in the process is derived from step one; Indicates candidate alternative resource objects The validity period is derived from the resource object field output in step two; Indicates candidate alternative resource objects For anonymous groups The result of the exchange condition judgment is the same as that in step two. Consistency is determined by the system based on field judgments of resource exchange methods, reservation rules, delivery rules, and the anonymous group's geographical location; a value of 1 is assigned when the condition is met. In the formula... This indicates the group budget allocation after removing the original resource budget allocation for the current local location and adding the alternative resource budget allocation and the replacement resource budget balance. This item is related to... Both represent the occupancy relationship within the budget boundary of the same group; and Both indicate the scale relationship of the same resource object; This indicates that the resource validity period covers the enterprise's service cycle; This indicates that the exchange conditions apply to this anonymous group. This formula is related to the budget repair margin calculation in step three: step three first calculates the resource-anonymous group combination. Step four involves incorporating this surplus into the budget boundary during partial replacement, thereby prioritizing the formation of replacement results that meet the nearest replacement boundary of the same category.
[0052] Based on the aforementioned configuration scenarios, assuming that step three results in... There exists a health-related configuration R005 for G1, with 120 members in G1, and a group budget boundary. The cost is 83076.92, the cost per person for R005 is 480, and the corresponding budget allocation is 57600; meanwhile, there are pending configuration records for the G1 family category, caused by insufficient budget boundaries. The system processes the pending configuration locations for the G1 family category. At that time, the current resource is empty, therefore G1's current budget usage Candidate resource range This is from the set of candidate resource IDs for the family category stored in the record to be configured. If the single-person cost of candidate resource R002 online family health service is 300, the budget repair margin is 0, the service capacity is 500, the currently occupied capacity is 0, it is compatible with G1, the validity period covers the enterprise service cycle, and the redemption conditions are met for G1, then the budget is determined as follows. This result exceeds the budget boundary of group G1 (83076.92), therefore R002 is not included. If the cost per person for candidate resource R007 Family Care E-voucher is 180, the budget repair margin is 1200, the service capacity is 1000, the currently occupied capacity is 0, it is compatible with G1, the validity period covers the enterprise service cycle, and the redemption conditions are met for G1, then the budget is determined as follows: It is within 83076.92; the capacity is judged as... Since the service capacity of R007 is below 1000, R007 enters... Based on this, the system converts the pending configuration record of G1 family class into the written configuration record of G1 configuration R007, and synchronously updates the G1 budget usage and R007 service capacity usage.
[0053] Furthermore, for configuration records that have already been written but require partial adjustment, the system uses the same set of alternative resources for processing. Assume... There is a configuration in G2 with health-related resource R005. G2 has 80 members, a group budget boundary of 55384.62, and a single-member cost of R005 of 480, corresponding to a budget allocation of... If the available service capacity for this period, as synchronized by the supplier's rule base under R005 before this execution, is 150, then... Record R005 is already occupied by G1 (120) and G2 (80), totaling 200, exceeding the current available service capacity of 150. Therefore, record G2-R005 is marked as a location awaiting local processing. At this point, the system reads the current budget usage of G2. For example, the current budget is 38,400; among the candidate resources in the same health category that are compatible with G2, candidate resource R001 health checkup package has a single-person cost of 500, a service capacity of 1,000, and a validity period covering the enterprise's service cycle. The redemption conditions are met for G2, and the budget repair margin is 1,600. The system performs a budget replacement judgment: It is within the G2 budget boundary of 55384.62; if R001 currently occupies 120 capacity, then the capacity is determined as follows. Since the service capacity of R001 is within 1000, R001 enters... The system replaces the record of G2 configuring R005 with the record of G2 configuring R001, while reducing the service capacity usage of R005 by 80 and increasing the service capacity usage of R001 by 80, and retaining the configuration records of G2 under other welfare categories.
[0054] The system from A fixed order rule is used when determining specific alternative resources. The system first selects the location to be processed. Resources of the same welfare category; in The remaining budget for the group is sorted from smallest to largest after replacement, so that the replacement resources are as close as possible to the original configuration budget boundary; if the remaining budgets are the same, they are sorted from highest to lowest according to the remaining service capacity of the replacement resources; if they are still the same, they are arranged in alphabetical order by resource number. The remaining budget for the group is determined by... The remaining service capacity is obtained by subtracting the group budget usage after replacement. The result is obtained by subtracting the resource capacity occupied after replacement; both are derived from... The configuration records and resource object fields output in step two are used to calculate the configuration. The system takes the first sorted resource object and writes it to the pending processing location. For records to be configured, the system converts them into records that have been written to the configuration record. For records that have been written to the configuration record, the system retains the anonymous group number and welfare category in the configuration record, replaces the resource number, single cost, budget occupancy, budget repair margin, supplier number, service capacity occupancy, validity period and redemption conditions fields, and writes the replacement reason field and replacement source field.
[0055] After each partial replacement, the system reviews the affected anonymous groups and resource objects. Affected anonymous groups include those corresponding to the current partial processing location, and affected resource objects include the removed resource objects and the replaced resource objects. The system recalculates the total budget usage for the anonymous group, recalculates the total service capacity usage of the removed and replaced resources, and re-evaluates the validity period and redemption conditions. If the review is successful, the system updates the configuration record, budget usage details, removed resource capacity usage details, and replaced resource capacity usage details within the same transaction, and writes the record number before replacement, the record number after replacement, and the replacement reason field. If the resource capacity version number changes again before the transaction is committed, the system rolls back the partial replacement and recalculates. .like If empty, the system retains a non-configurable record for that local location. This record includes the anonymous group ID, benefit category, set of candidate resource IDs, and a reason for non-configurability, such as "no alternative resource within budget boundaries," "no alternative resource within service capacity," or "no alternative resource within redemption conditions." This non-configurable record is included in the final output, enabling the enterprise benefits platform to identify locations requiring supplementary procurement, budget adjustments, or the addition of supplier resources.
[0056] System traversal After processing all records to be configured and all configuration records marked as requiring local adjustment, an executable configuration result is generated. . This includes executable configuration records that have been partially replaced, and non-configurable records that cannot be configured within the current resource set. For executable configuration records, the system generates a final welfare configuration plan, a group rights configuration table, a budget occupancy table, and a supplier fulfillment list. The final welfare configuration plan records the resource objects and welfare categories ultimately configured for each anonymous group. The group rights configuration table lists the configured resource number, resource name, redemption conditions, validity period, and supplier number by anonymous group number. The budget occupancy table lists the budget occupancy of each configured resource and the total group budget occupancy by anonymous group number. The supplier fulfillment list lists the number of configured personnel, service capacity occupancy, remaining capacity, service period, and redemption method by supplier number and resource number. For non-configurable records, The system records the corresponding anonymous group, welfare category, candidate resource ID set, and reason field. Convert the data into welfare distribution interface data packages, budget calculation interface data packages, and supplier fulfillment interface data packages according to the interface fields, and retain the configuration task number, anonymous group number, resource number, data version number, and record status for each output record; when If any unconfigurable records still exist, the system will not write those unconfigurable locations to the distribution interface; instead, it will only output a pending prompt indicating supplementary procurement, budget adjustment, or addition of supplier resources. This concludes the initial configuration scheme. The configuration record set and subsequent processing record set are converted into an executable set for the enterprise benefits platform.
[0057] This invention also provides a data processing system for configuring multiple constraints on enterprise welfare resources, the system comprising: The constraint generation module is used to obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size and group budget boundary corresponding to each anonymous group; The resource object generation module is used to obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. The anonymous groups whose configurable qualification judgment results are valid are written into the adaptable anonymous group set of the corresponding resource object, and a set of configurable resource objects is generated. The initial configuration module is used to generate an initial configuration scheme based on the set of configurable resource objects, according to the anonymous group and the set of allowed welfare categories; The partial verification and replacement module is used to perform partial processing on the configuration records to be configured and the written configuration records that need to be adjusted after verification in the initial configuration scheme. It selects alternative resources from configurable resource objects that are in the same anonymous group, the same welfare category and meet the adaptation relationship. It re-determines the group budget boundary by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determines the service capacity, validity period and redemption conditions. After the partial replacement is completed, it updates the affected configuration records, budget occupation and capacity occupation and generates an executable configuration result.
[0058] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0059] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A data processing method for multi-constraint configuration of enterprise welfare resources, characterized in that, The method includes the following steps: Obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size, and group budget boundary corresponding to each anonymous group; Obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. Write the anonymous groups whose configurable qualification judgment results are valid into the adaptable anonymous group set of the corresponding resource object, and generate a set of configurable resource objects. Based on the set of configurable resource objects, an initial configuration scheme is generated according to the set of anonymous groups and permitted welfare categories; The configuration records to be configured and the written configuration records that need to be adjusted after verification in the initial configuration scheme are partially processed. Alternative resources are selected from configurable resource objects that are in the same anonymous group, the same welfare category and meet the adaptation relationship. The group budget boundary is re-determined by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determining the service capacity, validity period and redemption conditions. After the partial replacement is completed, the affected configuration records, budget occupation and capacity occupation are updated to generate an executable configuration result.
2. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 1, characterized in that, The group budget boundary is calculated as follows: The first candidate boundary is obtained by multiplying the per capita budget boundary by the number of people in the group, and the second candidate boundary is obtained by multiplying the total budget boundary by the proportion of the group's number of people to all participants in the configuration. The smaller of the two values is taken as the group budget boundary of the current anonymous group. When only the per capita budget boundary is available, the first candidate boundary is used directly. When only the total budget boundary is available, the second candidate boundary is used directly. The per capita budget boundary and total budget boundary are both entered and set on the welfare configuration page.
3. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 1, characterized in that, The candidate resource records are read from the welfare goods library, service item library, and supplier rule library, and are the result of merging fields of the same resource that are scattered in multiple business tables; The candidate resource record includes category, supplier, validity period, applicable region, cost per person, service capacity, and redemption conditions.
4. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 3, characterized in that, The configurable eligibility criteria include: The product category belongs to the permitted welfare category, the supplier belongs to the range of available suppliers, the validity period covers the area, the group region belongs to the applicable resource region, the resource's individual cost multiplied by the number of people in the group does not exceed the group's budget boundary, the number of people in the group does not exceed the resource's service capacity, and the redemption conditions are met for the group region corresponding to the anonymous group; when all of the above conditions are met, the resource is eligible to be configured for the anonymous group.
5. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 4, characterized in that, The method for generating the adaptable anonymous group set is as follows: for each candidate resource, all the anonymous groups are traversed, and the anonymous groups whose configurable eligibility judgment results are valid are written into the adaptable anonymous group set of the current resource object, and the candidate resource records are organized into a unified configurable resource object; wherein, each configurable resource object includes resource number, resource name, resource category, applicable region, single person cost, supplier number, service capacity, validity period, redemption conditions and adaptable anonymous group set.
6. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 1, characterized in that, When generating an initial configuration scheme based on the set of configurable resource objects, according to the set of anonymous groups and allowed welfare categories, the configuration record number, anonymous group number, group region, configuration resource number, resource category, single-person cost, number of people configured, budget occupancy, budget repair margin, supplier number, validity period, redemption conditions and service capacity occupancy are also written for each configuration record.
7. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 6, characterized in that, Before generating the initial configuration scheme, for each anonymous group and each welfare category, resources are selected and written sequentially from the candidate resource set for writing the initial configuration scheme according to the following order: from low to high cost per person; if the cost per person is the same, resources are selected from high to low remaining service capacity; if they are still the same, resources are selected and written in alphabetical order of resource number. The budget repair margin is calculated as follows: In the set of configurable resource objects, for other resource objects of the same welfare category and also suitable for the same anonymous group, find the resource with the closest cost per person to the current resource, calculate the cost difference per person, multiply it by the number of people in the anonymous group, and obtain the budget repair margin when the current resource is allocated to the anonymous group. The selection criteria for the candidate resource set include: resource suitability for the anonymous group, resource category matching, current occupied budget plus current resource budget usage plus budget repair margin not exceeding the group budget boundary, and current occupied service capacity plus group size not exceeding the resource service capacity.
8. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 1, characterized in that, The verification conditions for the configuration records already written in the initial configuration scheme include: The total budget usage of all configuration records written under the current anonymous group does not exceed the group budget boundary; the total service capacity usage of the same resource number in all anonymous groups does not exceed the service capacity of that resource; the resource validity period covers the service cycle; and the redemption conditions match the region of the anonymous group. If any of these conditions are not met, the configuration record is marked as a location to be processed locally.
9. The data processing method for multi-constraint configuration of enterprise welfare resources according to claim 1, characterized in that, The criteria for selecting alternative resources include: The alternative resources are adapted to the anonymous group corresponding to the location to be processed; the category of the alternative resources is consistent with the welfare category of the location to be processed; after removing the current resource budget occupation and adding the alternative resource budget occupation and budget repair margin, the group budget occupation does not exceed the group budget boundary; after adding the number of people in the anonymous group, the service capacity occupation of the alternative resources does not exceed its service capacity; the validity period of the alternative resources covers the service cycle; and the redemption conditions are valid for the region of the anonymous group. When determining specific alternative resources from the alternative resource set, they are sorted from smallest to largest according to the remaining budget of the group after replacement. If the remaining budgets are the same, they are sorted from highest to lowest according to the remaining service capacity of the alternative resources. If they are still the same, they are arranged in alphabetical order according to the resource number. The first resource after sorting is written to the pending processing position.
10. A data processing system for multi-constraint configuration of enterprise welfare resources, characterized in that, The system includes: The constraint generation module is used to obtain configuration constraints; the configuration constraints include at least the current configuration task number, enterprise-level budget boundary, allowed welfare category set, service period, available supplier set, and the group number, group region, group size and group budget boundary corresponding to each anonymous group; The resource object generation module is used to obtain candidate resource records, establish resource-group configurable qualifications based on the candidate resource records and each anonymous group record, and establish configurable qualification judgment for each candidate resource record and each anonymous group. The anonymous groups whose configurable qualification judgment results are valid are written into the adaptable anonymous group set of the corresponding resource object, and a set of configurable resource objects is generated. The initial configuration module is used to generate an initial configuration scheme based on the set of configurable resource objects, according to the anonymous group and the set of allowed welfare categories; The partial verification and replacement module is used to perform partial processing on the configuration records to be configured and the written configuration records that need to be adjusted after verification in the initial configuration scheme. It selects alternative resources from configurable resource objects that are in the same anonymous group, the same welfare category and meet the adaptation relationship. It re-determines the group budget boundary by removing the current resource budget occupation, adding the alternative resource budget occupation and budget repair margin, and simultaneously determines the service capacity, validity period and redemption conditions. After the partial replacement is completed, it updates the affected configuration records, budget occupation and capacity occupation and generates an executable configuration result.