CN115409537A - Method and equipment for determining subsidies of users - Google Patents

Method and equipment for determining subsidies of users Download PDF

Info

Publication number
CN115409537A
CN115409537A CN202210886445.9A CN202210886445A CN115409537A CN 115409537 A CN115409537 A CN 115409537A CN 202210886445 A CN202210886445 A CN 202210886445A CN 115409537 A CN115409537 A CN 115409537A
Authority
CN
China
Prior art keywords
subsidy
calculator
type
order information
commodity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210886445.9A
Other languages
Chinese (zh)
Inventor
吴方兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Original Assignee
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wanwu Xinsheng Environmental Technology Group Co filed Critical Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority to CN202210886445.9A priority Critical patent/CN115409537A/en
Publication of CN115409537A publication Critical patent/CN115409537A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0224Discounts or incentives, e.g. coupons or rebates based on user history

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The method comprises the steps of creating a subsidy calculator in advance, wherein the subsidy calculator comprises at least one subsidy type, an enumeration value corresponding to the subsidy type and a subsidy rule corresponding to the enumeration value; in a recycling application scene of a commodity, obtaining recycling order information obtained after the recycled commodity is subjected to quality inspection and a subsidy snapshot when a user places an order; determining the subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot; the subsidy calculator is used for subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity, so that the subsidy calculator is suitable for calculating subsidy rules of different scenes of the business under the condition that the system change range is the minimum, meanwhile, the accuracy of subsidy calculation can be ensured, the purposes of small change, large function, convenience in operation and convenience in use are achieved, the change of the business is met, and the continuous development and the growth of the business are promoted.

Description

Method and equipment for determining subsidies of users
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a user subsidy.
Background
With the continuous expansion of service systems, a single service mode cannot meet complex service scenes, and micro services with various functions emerge from the water surface. Various subsidies of the user can be praised together to form different subsidy rules, such as common full subsidy, brand subsidy, quantity subsidy, platform subsidy and the like, and various subsidies for the user are full of contents and are interwoven together, and some subsidies have mutual exclusion rules or do not have mutual exclusion rules, so that the system is challenged to calculate the subsidy amount. At present, most systems judge through if conditions of the systems when performing patch calculation, if the types of patches are the logic calculation rules, such a calculation mode is very unfavorable for the expansibility of the system, because the technology cannot predict what types of patches can be configured for a service, the maximum adaptation can be achieved only on the basis of the technology, and the problem that the development of the service is influenced because a new patch rule needs to be modified once and is put on line again is avoided.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for determining a user subsidy, which are capable of adapting to the calculation of subsidy rules of different scenes of a service under the condition of the minimum system change range, and simultaneously ensuring the accuracy of subsidy calculation, so as to achieve the purposes of small change, large function, convenient operation and convenient use, so as to meet the change of the service in the future and the future, thereby promoting the continuous development of the service.
According to an aspect of the present application, there is provided a method of determining a user subsidy, wherein the method comprises:
creating a subsidy calculator, wherein the subsidy calculator comprises at least one subsidy type related to the recovery service, an enumerated value corresponding to the subsidy type and a subsidy rule corresponding to the enumerated value;
acquiring the recovery order information obtained after the quality inspection of the recovered commodity and a subsidy snapshot when a user places an order;
determining a subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot;
and subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity.
Further, in the above method, the creating a subsidy calculator, where the subsidy calculator includes at least one subsidy type, an enumerated value corresponding to the subsidy type, and a subsidy rule corresponding to the enumerated value includes:
creating at least one subsidy type associated with the reclamation service based on the service requirements;
defining an enumeration value for subsidy for each subsidy type, and presetting a corresponding subsidy rule for each enumeration value;
and creating a subsidy calculator based on the at least one subsidy type, the enumerated values corresponding to the subsidy type and the subsidy rules corresponding to each enumerated value.
Further, in the above method, the determining, from the subsidy calculator, the subsidy amount corresponding to the commodity in the recovery order information based on the recovery order information and the subsidy snapshot includes:
determining at least one target subsidy type hit when the commodity is placed based on the recovery order information and the subsidy snapshot;
traversing a target enumeration value corresponding to each target subsidy type in the at least one target subsidy type from the subsidy calculator;
acquiring a target subsidy rule corresponding to each target enumeration value from the subsidy calculator;
and calculating and determining subsidy amount corresponding to the commodities in the recovery order information based on all target subsidy rules corresponding to the target enumeration values.
Further, in the above method, the recycle order information includes a quality inspection amount of the commodity, a commodity identifier when the user places an order, and a commodity order identifier.
According to another aspect of the present application, there is also provided a non-transitory storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to implement the method of determining a user subsidy as described above.
According to another aspect of the present application, there is also provided an apparatus for determining a user subsidy, wherein the apparatus comprises:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a method of determining a user subsidy as described above.
Compared with the prior art, the method comprises the steps of creating a subsidy calculator in advance, wherein the subsidy calculator comprises at least one subsidy type relevant to the recovery service, an enumerated value corresponding to the subsidy type and a subsidy rule corresponding to the enumerated value; in a recycling application scene of a commodity, firstly, obtaining recycling order information obtained after the quality of the recycled commodity is inspected and a subsidy snapshot when a user places an order; then determining a subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot; and finally, subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity, so that the subsidy calculator is used for realizing the calculation of subsidy rules of different scenes of the service under the condition of the minimum system change range, and simultaneously ensuring the accuracy of subsidy calculation, thereby achieving the purposes of small change, large function, convenient operation and convenient use, meeting the change of the service day by day and night, and further promoting the continuous development and the growth of the service.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method of determining a user subsidy according to one aspect of the present application;
FIG. 2 illustrates a logical view of a method of determining a user subsidy according to one aspect of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, an aspect of the present application provides a flowchart of a method for determining a user subsidy, where the method includes step S11, step S12, step S13, and step S14, and specifically includes the following steps:
step S11, a subsidy calculator is created, wherein the subsidy calculator comprises at least one subsidy type related to the recovery service, an enumeration value corresponding to the subsidy type and a subsidy rule corresponding to the enumeration value;
s12, acquiring recovery order information obtained after quality inspection of the recovered commodities and subsidy snapshots of users when ordering; here, the recycle order information includes, but is not limited to, a quality inspection amount of the item, an item identifier when the user places an order, and an item order identifier.
Step S13, determining the subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot;
and S14, subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity.
Through the steps S11 to S14, the subsidy calculator is used for realizing the calculation of the subsidy rules of different scenes of the business under the condition that the system change range is the minimum, and simultaneously, the accuracy of the subsidy calculation can be ensured, so that the purposes of small change, large function, convenient operation and convenient use are achieved, the change of the business is met, and the continuous development and the growth of the business are promoted.
For example, after the subsidy calculator is successfully created, the subsidy calculator includes N subsidy types related to the service, where N is a positive integer greater than or equal to 1, and is respectively subsidy type 1, subsidy type 2, subsidy type 3, \8230;, subsidy type (N-1), and subsidy type N, and an enumerated value corresponding to each subsidy type and a subsidy rule corresponding to each enumerated value, that is, different subsidy types correspond to different subsidy rules, and the subsidy rules include a related calculation algorithm for indicating a subsidy amount for calculating a current subsidy type, and the like. In the subsidy calculator, enumerated values corresponding to different subsidy types and subsidy rules corresponding to the enumerated values are stored in the subsidy calculator, so that in subsequent use, the subsidy calculator can inquire and obtain corresponding target subsidy rule handlers by acquiring the enumerated values corresponding to one or more target subsidy types transmitted by an interface, different rule handlers corresponding to the enumerated values corresponding to each subsidy type belong to different asynchronous message processing modes, asynchronous processing and complementary interference of different subsidy rules can be realized, and the final subsidy amount is calculated and output.
In the process of continuous development and expansion of a service, if a new subsidy type appears, only the new subsidy type needs to be added into the subsidy calculator, a corresponding new enumerated value is defined for the new subsidy type, and a subsidy rule corresponding to the new subsidy type corresponds to the new enumerated value, so that the subsidy rule corresponding to the new enumerated value is the subsidy rule corresponding to the new subsidy type, and the addition of the new subsidy type and the subsidy rule is realized. If the existing subsidy type needs to be deleted, the enumerated value corresponding to the existing subsidy rule can be directly deleted in the subsidy calculator, or the enumerated value corresponding to the existing subsidy rule and the subsidy rule corresponding to the enumerated value are deleted, so that the existing subsidy type and the subsidy rule needing to be deleted can be deleted, the subsidy calculator can dynamically increase or decrease the subsidy types in an enumerated mode, the system can automatically adjust the subsidy rule under the condition of not moving too many service codes, and more active types can be used. Here, the definition of different subsidy types corresponding to different subsidy rules may be implemented by:
Figure BDA0003765974590000061
Figure BDA0003765974590000071
here, as shown in fig. 2, the subsidy type includes, but is not limited to, a full subsidy, a quantity subsidy, a platform subsidy, a brand subsidy, and the like, and the full subsidy is used to indicate that corresponding subsidy information is given when the commodity of the user reaches a preset amount; the quantity subsidy is used for indicating that when a plurality of commodities are placed simultaneously, the quantity subsidy is available, for example, 10 yuan is supplemented by 2 machines, 50 yuan is supplemented by 3 machines, and the like; the brand subsidies are used for showing that the user can hit the brand subsidies when purchasing the commodities of the brand on the platform before, and a certain subsidy amount is given; the platform subsidies are used for representing extra reward subsidies given by the platform and the like in order to attract old users to continue recovering and ordering the articles.
In a recycling application scenario of the commodity, step S12 obtains recycling order information obtained after quality inspection of the recycled commodity and a subsidy snapshot when the user places an order; the recovery order information includes, but is not limited to, a quality inspection amount of the commodity, a commodity identification sku when the user places an order, and a commodity order identification oid when the user places an order, where the subsidy snapshot when the user places an order may reflect subsidy information hit by the commodity when placing an order, such as a type of subsidy, so as to determine a subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator subsequently based on the recovery order information and the subsidy snapshot; finally, subsiding corresponding amount of money for the user according to the subsidy amount corresponding to the commodity, realizing calculation of subsidy rules adapted to different scenes of the service under the condition of the minimum system change range through a subsidy calculator, and simultaneously ensuring the accuracy of subsidy calculation to achieve the purposes of small change, large function, convenient operation and convenient use, so as to meet the change of the service day by day and night, thereby promoting the continuous development and the growth of the service.
Following the above embodiment of the present application, the step S11 creates a patch calculator, where the patch calculator includes at least one patch type, an enumerated value corresponding to the patch type, and a patch rule corresponding to the enumerated value, and specifically includes:
creating at least one subsidy type associated with the reclamation service based on the service requirements;
defining an enumeration value for subsidy for each type of subsidy, and presetting a corresponding subsidy rule for each enumeration value;
and creating a subsidy calculator based on the at least one subsidy type, the enumerated values corresponding to the subsidy type and the subsidy rules corresponding to each enumerated value.
For example, when creating a subsidy calculator, firstly, based on service requirements, N subsidy types related to a service need to be created, where N is a positive integer greater than or equal to 1, and is subsidy type 1, subsidy type 2, subsidy type 3, \ 8230 \ 8230;, subsidy type (N-1), and subsidy type N, respectively; then, defining a unique enumeration value for each subsidy type and used for subsidy enumeration, and presetting the subsidy rule corresponding to each subsidy type as the subsidy rule corresponding to the corresponding enumeration value, so as to realize enumeration setting of different subsidy types corresponding to different subsidy rules; and finally, writing the subsidy type 1 and an enumerated value corresponding to the subsidy type 1, the subsidy type 2 and an enumerated value corresponding to the subsidy type 2, the subsidy type 3 and an enumerated value corresponding to the subsidy type 3, \8230, the subsidy type (N-1) and an enumerated value corresponding to the subsidy type N, and a subsidy rule corresponding to each enumerated value into a subsidy calculator to realize the creation of the subsidy calculator, so that one or more target subsidy rules hit by the commodities in the recovery order information are determined from the subsidy calculator based on the recovery order information and the subsidy snapshot when the user places orders in the recovery application scene of the actual commodities.
It should be noted here that the internal implementation principle of the created subsidy calculator can be implemented by the following code:
info ("subsidy trial with parameters: { }", param);
JsonResult<SubsidyTrialDiscountDTO>result=JsonResult.build();
SubsidyTrialDiscountDTO dto=new SubsidyTrialDiscountDTO();
long count=0;
String ruleType=null;
Map<String,CommonSubsidyTrialDiscountDetilDTO>detilMap=new HashMap<>(4);
// final implementation of subsidy calculation and determination
try{
validSubsidyTrialDiscountParam(param);
List<OldProductDetailParam>oldProductDetailList=param.getOldProduct DetailList();
Map<String,CommonSubsidyRuleParam>ruleMap=param.getRuleMap();
// traverse to obtain and process the handler method of subsidy
for(Map.Entry<String,CommonSubsidyRuleParam>entry:ruleMap.entrySet()){
ruleType=entry.getKey();
SubsidyTrialDiscountHandler<CommonSubsidyRuleParam>handler=subsidyManager.getHandlerByType(entry.getKey());
if(Objects.isNull(handler)){
log.info ("unsupported subsidy type [ { } ], param [ { } ]", entry. GetKey (), param);
throw new ActivityParamException (E10001. Getcode (), "unsupported patch type:" + entry. GetKey ());
}
CommonSubsidyTrialDiscountDetilDTO detilDTO=handler.subsidyTrial DiscountByRules(oldProductDetailList,entry.getValue());
count+=detilDTO.getSubsidyAmount();
detilMap.put(entry.getKey(),detilDTO);
}
dto.setSubsidyCount(count);
dto.setSubsidyMap(detilMap);
result.setData(dto);
return result;
}catch(ActivityParamException e){
log.info ("failure of parameter check, code [ { } ], msg [ { } ]", e.getErrorMsg (), e.getErrorMsg ());
result.turnFailResult(E10001.getCode(),e.getErrorMsg());
return result;
}catch(ClassCastException e){
info ("failure of parameter check, mismatch of subsidy rule and subsidy rule entry, [ { } ], param [ { } ]", ruleType, param);
turn fail result (E10001. Getcode (), "parameter check failed, subsidy rule does not match with subsidy rule entry, type:" + ruleType);
return result;
}
next to the foregoing embodiment of the present application, the step S13 determines, from the subsidy calculator, a subsidy amount corresponding to the commodity in the recovery order information based on the recovery order information and the subsidy snapshot, and specifically includes:
determining at least one target subsidy type hit when the commodity is placed based on the recovery order information and the subsidy snapshot;
traversing a target enumeration value corresponding to each target subsidy type in the at least one target subsidy type from the subsidy calculator;
acquiring a target subsidy rule corresponding to each target enumeration value from the subsidy calculator;
and calculating and determining subsidy amount corresponding to the commodities in the recovery order information based on all target subsidy rules corresponding to the target enumeration values.
For example, in an actual recycling application scenario of a commodity, recycling order information after the commodity needs to be obtained first, including but not limited to a quality inspection amount of the commodity, a commodity ID (i.e., sku) when a user places an order, and a commodity order ID (i.e., oid) when the user places an order; meanwhile, a subsidy snapshot when a commodity is placed needs to be obtained and is used for reflecting subsidy information hit by a user when the commodity is placed, for example, the order and subsidy types in which the corresponding commodity can participate, such as a full-minus type, a brand type, an old user type and the like, so that calculation is performed by referring to the subsidy snapshot when the real subsidy amount is calculated in the subsequent process, and specific function realization can be realized through the following codes to complete determination of an participating object of the subsidy calculator:
JsonResult<SubsidyTrialDiscountDTO>subsidyTrialDiscountByRules(SubsidyTrialDiscountParam param);
after determining at least one target subsidy type hit when the commodity is placed by combining the recovered order information and the subsidy snapshot when the user places an order, traversing a target enumeration value corresponding to each target subsidy type in the at least one target subsidy type from the subsidy calculator, and obtaining a target subsidy rule corresponding to each target enumeration value from the subsidy calculator, so that in the subsidy calculator, the subsidy rule corresponding to the subsidy type hit when the user places an order can be quickly locked through the enumeration values, so that the subsidy amount corresponding to the commodity in the recovered order information is calculated and determined based on all the target subsidy rules corresponding to the target enumeration values hit, that is, the subsidy logic corresponding to different subsidy types is processed through different subsidy rules handlers, different target subsidy rules handlers hit by the order are searched, and different subsidy amounts are calculated, thereby achieving the purpose of calculating and determining the subsidy amount corresponding to the commodity in the recovered order information by using the following codes:
Figure BDA0003765974590000111
Figure BDA0003765974590000121
according to another aspect of the present application, there is also provided a non-transitory storage medium having computer-readable instructions stored thereon, which, when executed by a processor, cause the processor to implement a method of determining a user subsidy as described above.
According to another aspect of the present application, there is also provided an apparatus for determining a user subsidy, wherein the apparatus comprises:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a method of determining a user subsidy as described above.
Here, for details of each embodiment of the device for determining a user's subsidy, reference may be specifically made to a corresponding part of the embodiment of the method for determining a user's subsidy, and details are not described here again.
In summary, the present application creates a subsidy calculator in advance, where the subsidy calculator includes at least one subsidy type related to a recycling service, an enumerated value corresponding to the subsidy type, and a subsidy rule corresponding to the enumerated value; in a recycling application scene of a commodity, firstly, obtaining recycling order information obtained after the quality of the recycled commodity is inspected and a subsidy snapshot when a user places an order; then determining a subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot; and finally, subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity, so that the subsidy calculator is used for realizing the calculation of subsidy rules of different scenes of the service under the condition of the minimum system change range, and simultaneously ensuring the accuracy of subsidy calculation, thereby achieving the purposes of small change, large function, convenient operation and convenient use, meeting the change of the service day by day and night, and further promoting the continuous development and the growth of the service.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (6)

1. A method of determining a user subsidy, wherein the method comprises:
creating a subsidy calculator, wherein the subsidy calculator comprises at least one subsidy type related to the recovery service, an enumerated value corresponding to the subsidy type and a subsidy rule corresponding to the enumerated value;
acquiring the recovery order information obtained after the quality inspection of the recovered commodity and a subsidy snapshot when a user places an order;
determining a subsidy amount corresponding to the commodity in the recovery order information from the subsidy calculator based on the recovery order information and the subsidy snapshot;
and subsiding the corresponding amount of the user according to the subsidy amount corresponding to the commodity.
2. The method of claim 1, wherein the create patch calculator, wherein the patch calculator includes at least one patch type and its corresponding enumerated value and a patch rule to which the enumerated value corresponds, comprises:
creating at least one subsidy type associated with the reclamation service based on the service requirements;
defining an enumeration value for subsidy for each type of subsidy, and presetting a corresponding subsidy rule for each enumeration value;
and creating a subsidy calculator based on the at least one subsidy type, the enumerated values corresponding to the subsidy type and the subsidy rules corresponding to each enumerated value.
3. The method of claim 1, wherein the determining, from the subsidy calculator, the subsidy amount corresponding to the item in the recovery order information based on the recovery order information and the subsidy snapshot comprises:
determining at least one target subsidy type hit when the commodity is placed based on the recovery order information and the subsidy snapshot;
traversing a target enumeration value corresponding to each target subsidy type in the at least one target subsidy type from the subsidy calculator;
acquiring a target subsidy rule corresponding to each target enumeration value from the subsidy calculator;
and calculating and determining subsidy amount corresponding to the commodities in the recovery order information based on all target subsidy rules corresponding to the target enumeration values.
4. The method according to any one of claims 1 to 3, wherein the recycle order information includes a quality inspection amount of the item, an item identification when the user places an order, and an item order identification.
5. A non-transitory storage medium having stored thereon computer readable instructions which, when executed by a processor, cause the processor to implement the method of any one of claims 1 to 4.
6. An apparatus for determining a user subsidy, wherein the apparatus comprises:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
CN202210886445.9A 2022-07-26 2022-07-26 Method and equipment for determining subsidies of users Pending CN115409537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210886445.9A CN115409537A (en) 2022-07-26 2022-07-26 Method and equipment for determining subsidies of users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210886445.9A CN115409537A (en) 2022-07-26 2022-07-26 Method and equipment for determining subsidies of users

Publications (1)

Publication Number Publication Date
CN115409537A true CN115409537A (en) 2022-11-29

Family

ID=84157732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210886445.9A Pending CN115409537A (en) 2022-07-26 2022-07-26 Method and equipment for determining subsidies of users

Country Status (1)

Country Link
CN (1) CN115409537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117788057A (en) * 2024-02-27 2024-03-29 浙江恒中养老产业发展有限公司 Patch issuing and using method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117788057A (en) * 2024-02-27 2024-03-29 浙江恒中养老产业发展有限公司 Patch issuing and using method and device

Similar Documents

Publication Publication Date Title
CN106897205B (en) Test data generation method and device
CN107483221B (en) Cross-application problem troubleshooting method, device and system
CN106897342B (en) Data verification method and equipment
CN115409537A (en) Method and equipment for determining subsidies of users
CN111784468A (en) Account association method and device and electronic equipment
CN106878365B (en) data synchronization method and device
CN109471901B (en) Data synchronization method and device
CN112181830B (en) Memory leak detection method, device, terminal and medium
CN110336731B (en) User matching method and device in group
CN116719799A (en) Environment-friendly data management method, device, computer equipment and storage medium
CN114500249B (en) Root cause positioning method and device
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN112860746B (en) Cache reduction-based method, equipment and system
CN111552703B (en) Data processing method and device
CN114416442A (en) Hardware change detection method and device, electronic equipment and readable storage medium
CN111694995B (en) Optimization method, device and processing equipment of relational network
CN111427871B (en) Data processing method, device and equipment
CN114416560A (en) Program crash analysis aggregation method and system
CN113869989A (en) Information processing method and device
CN112286792A (en) Interface testing method, device, equipment and storage medium
CN110020348B (en) Early warning method and device for circled events
CN114900531B (en) Data synchronization method, device and system
CN116846741B (en) Alarm convergence method, device, equipment and storage medium
CN117555955B (en) Data conversion method, data conversion device, computer device, and storage medium
CN108132951B (en) Data access method and data access device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination