CN108510333A - A kind of more clients integrate the processing method and processing device of fast-aging - Google Patents

A kind of more clients integrate the processing method and processing device of fast-aging Download PDF

Info

Publication number
CN108510333A
CN108510333A CN201810389937.0A CN201810389937A CN108510333A CN 108510333 A CN108510333 A CN 108510333A CN 201810389937 A CN201810389937 A CN 201810389937A CN 108510333 A CN108510333 A CN 108510333A
Authority
CN
China
Prior art keywords
shop
integral
expired
record
processing
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.)
Granted
Application number
CN201810389937.0A
Other languages
Chinese (zh)
Other versions
CN108510333B (en
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.)
Xiamen Nan Xun Software Technology Co Ltd
Original Assignee
Xiamen Nan Xun Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Nan Xun Software Technology Co Ltd filed Critical Xiamen Nan Xun Software Technology Co Ltd
Priority to CN201810389937.0A priority Critical patent/CN108510333B/en
Publication of CN108510333A publication Critical patent/CN108510333A/en
Application granted granted Critical
Publication of CN108510333B publication Critical patent/CN108510333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Abstract

The present invention relates to field of computer technology, disclose a kind of processing method of more client's integral fast-agings, include the following steps, inquire shop list, judge whether the shop for needing to carry out expired Integral Processing;It will need the shop for carrying out expired Integral Processing that caching is added, form pending shop queue;Shop record in extraction caching, creates a corresponding sub- expired integration data in thread process shop, Thread Count+1, while the shop quantity handled is no more than the maximum thread of preset sub-line journey, the shop exceeded enters wait state;After the expired integration data in shop is disposed, Thread Count 1 discharges sub-line journey, extracts the shop in being waited for, and creates the expired integration data in the corresponding sub- thread process shop;It reruns until all expired Integral Processings in shop finish, addition processing complement mark, exits flow, end task in the buffer.The present invention improves the efficiency of expired Integral Processing.

Description

A kind of more clients integrate the processing method and processing device of fast-aging
Technical field
The present invention relates to field of computer technology, especially a kind of more clients integrate the processing method and dress of fast-aging It sets.
Background technology
In E-business applications, integral is a kind of effective extending user group, improves the marketing tool of consumer loyalty degree. Using very universal in businessman, main way is exactly consumer after order transaction, can obtain certain integral, integrate Accumulation can be used for exchanging for a certain extent a variety of different free or preferential gifts, service, commodity.But with user The accumulation of integral can generate risk to the operation for consuming platform.So in order to improve enthusiasm and the reduction of customer consumption integral To generate the influence of risk to consumption platform operation, consumption platform needs to clear up integral the accumulative a large amount of integrals of user. General manner of cleaning up is by the term of validity of regulation user integral, and then periodic cleaning is more than the integral of the term of validity, and does not influence Existing customer earning, consumption integral.But when client's integration amount is big, it may appear that integrate that expired treatment effeciency is low to ask Topic, to influence whether client's newly earning or the operation of consumption integral.
Invention content
In order to solve above-mentioned the deficiencies in the prior art, the invention discloses the processing sides that a kind of more clients integrate fast-aging Method and device, it is therefore an objective to which solution expired Integral Processing efficiency in the case where client's number is big is low, and influences client to integral The problem of consumption or earning, to reduce shop operations risks.
To realize above-mentioned technical purpose and the technique effect, the invention discloses a kind of more clients to integrate quick mistake The processing method of phase, main thread include the following steps,
S1:Shop record sheet is inquired, judges whether the shop for needing to carry out expired Integral Processing;
S2:It will need the shop for carrying out expired Integral Processing that caching is added, form pending shop queue;It will be without expired integral Shop be set to processing completion status;
S3:A pending shop record in extraction caching, obtains the integral recording table in the shop, creates a corresponding son The expired integration data in thread process shop, Thread Count+1, while the shop quantity handled is no more than the maximum of preset sub-line journey Thread Count, the shop exceeded enter wait state;
S4:After the expired integration data in shop is disposed, Thread Count -1 discharges sub-line journey, extracts the shop in being waited for Paving creates the expired integration data in the corresponding sub- thread process shop;
S5:Judge whether there is also not out of date integrals in each shop, if so, step S3 and S4 are repeated, if not, in the buffer Processing complement mark is added, exits flow, ends task.
Further, in step sl, the shop record sheet is used to record the expired integration information remittance in multiple shops Always, content includes shop number and integral expired time;In step s3, the integral recording table is for recording each shop Under all presence wait for the user integral information of expired integral, content include shop number, integral expired time, Customs Assigned Number and Wait for that expired integrated value, the Customs Assigned Number carry out sort ascending.
Further, in step s3, the sub-line journey includes the following steps,
S3-1:Create buffer lock;
S3-2:Setting Page Length is a, and b client's integration information note is sequentially extracted since next that originating subscriber is numbered Record is recorded as one group of integral, and the maximum Customs Assigned Number in group integral record is assigned to the new originating subscriber in caching Number;
S3-3:Discharge buffer lock;
S3-4:Whether the quantity x of extractible client's integration information record is less than Page Length a in judgment step S3-2, if It is to remove shop record from the shop queue in caching;
S3-5:One group of integral record that step S3-2 is extracted is subjected to Integral Processing one by one, integral records basis by treated Customs Assigned Number updates the integrated value in the table of integrals one by one, and deletes the data that relative users are numbered in integral recording table, and batch is inserted Enter to integrate log sheet.
Further, it in step S3-2, when inquiring for the first time, is numbered using 0 originating subscriber as the shop.
Further, in step S3-2, when the quantity x of extractible client's integration information record is more than a, b=a;When When the quantity x of extractible client's integration information record is less than a, b=x.
Further, in step S3-5, the table of integrals is used to record user integral letter all under each shop Breath, content include shop number, integral expired time, Customs Assigned Number and integrated value.
The invention also discloses the processing unit that a kind of more clients integrate fast-agings, including query unit, taxon, Sub-line journey unit, wherein
The query unit judges whether to need to carry out expired Integral Processing for inquiring shop record sheet Shop;
Caching is added in the shop that the taxon is used to need to carry out expired Integral Processing, forms pending shop team Row;The shop of no expired integral is set to processing completion status;
The sub-line journey unit is for handling the expired integration data in shop.
Further, the sub-line journey unit includes buffer lock creating unit, data extracting unit, buffer lock release list Member, condition adjudgement unit and data processing unit, wherein
The buffer lock creating unit is for creating buffer lock;
B client's integration information note is sequentially extracted next that the data extracting unit is used to number since originating subscriber Record is recorded as one group of integral, and the maximum Customs Assigned Number in group integral record is assigned to the new originating subscriber in caching Number;
The buffer lock releasing unit is for discharging buffer lock;
The condition adjudgement unit is used to judge that the quantity x of extractible client's integration information record in data extracting unit to be It is no to be less than Page Length a;
The data processing unit is used to one group of integral record that data extracting unit is extracted carrying out Integral Processing one by one, will Treated, and integral record updates the integrated value in the table of integrals according to Customs Assigned Number one by one, and deletes in integral recording table and mutually apply The data of family number, batch are inserted into integral log sheet.
The invention has the advantages that:
The present invention provides a kind of simple, reliable expired integration processing methods, can quickly remove and have expired integral, right The expired integration data slipped due to being abnormal can also carry out correction process;Client is not influenced to the consumption of integral or is earned It takes, to reduce shop operations risks.
Description of the drawings
Fig. 1 is the main thread flow chart that more clients of the present invention integrate the processing method of fast-aging;
Fig. 2 is the flow chart of the sub-line journey of the present invention;
Fig. 3 is the schematic block diagram that more clients of the present invention integrate the processing unit of fast-aging;
Fig. 4 is the schematic block diagram of the sub-line journey unit of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.
The invention discloses the processing methods that a kind of more clients integrate fast-aging, as shown in Figure 1, main thread includes following Step,
S1:Shop record sheet is inquired, judges whether the shop for needing to carry out expired Integral Processing;Shop record sheet Expired integration information for recording multiple shops summarizes, and content includes shop number and integral expired time.
S2:It will need the shop for carrying out expired Integral Processing that caching is added, form pending shop queue;It will be not expired The shop of integral is set to processing completion status.
S3:A pending shop record in extraction caching, obtains the integral recording table in the shop, wherein integral note Record table includes shop number, product for recording the user integral information that presence all under each shop waits for expired integral, content Point expired time, Customs Assigned Number and wait for expired integrated value, the Customs Assigned Number in integral recording table carries out sort ascending.It creates corresponding A sub- expired integration data in thread process shop, Thread Count+1, at the same handle shop quantity be no more than preset sub-line The maximum thread of journey, the shop exceeded enter wait state, judge whether sub-line journey surpasses again after 500 milliseconds of main thread suspend mode Go out preset maximum thread.
S4:After the expired integration data in shop is disposed, Thread Count -1 discharges sub-line journey, and extraction one is in waiting shape Shop in state creates the expired integration data in the corresponding sub- thread process shop.
S5:Judge whether there is also not out of date integrals in each shop, if so, step S3 and S4 are repeated, if not, slow Middle addition processing complement mark is deposited, flow is exited, ends task.More clients of the present embodiment integrate the processing side of fast-aging Method, by being extracted repeatedly to the data in integral recording table, until not having the data of expired integral in integral recording table Until, correction process is carried out to the expired integration data slipped due to being abnormal to realize.
Specifically, as shown in Fig. 2, in the present embodiment, the sub-line journey in step S3 includes the following steps,
S3-1:Create buffer lock;
S3-2:Setting Page Length is a, and b client's integration information note is sequentially extracted since next that originating subscriber is numbered Record is recorded as one group of integral, when the quantity x of extractible client's integration information record is more than a, b=a;As extractible visitor When the quantity x of family integration information record is less than a, b=x.And the maximum Customs Assigned Number in group integral record is assigned in caching New originating subscriber number, when inquiring for the first time, the maximum Customs Assigned Number in the shop is not present in caching, is used as this using 0 at this time The originating subscriber in shop is numbered.
S3-3:Discharge buffer lock;
S3-4:Whether the quantity x of extractible client's integration information record is less than Page Length a in judgment step S3-2, if It is to remove shop record from the shop queue in caching;
S3-5:One group of integral record that step S3-2 is extracted is subjected to Integral Processing one by one, integral records basis by treated Customs Assigned Number updates the integrated value in the table of integrals one by one, and deletes the data that relative users are numbered in integral recording table, and batch is inserted Enter to integrate log sheet.Wherein, the table of integrals includes that shop is compiled for recording user integral information all under each shop, content Number, integral expired time, Customs Assigned Number and integrated value.
The invention also discloses the processing units that a kind of more clients integrate fast-aging, as shown in figure 3, including cargo tracer Member, taxon, sub-line journey unit, wherein
Query unit judges whether the shop for needing to carry out expired Integral Processing for inquiring shop record sheet;
Caching is added in the shop that taxon is used to need to carry out expired Integral Processing, forms pending shop queue;To not have There is the shop of expired integral to be set to processing completion status;
Sub-line journey unit is for handling the expired integration data in shop.
Specifically, as shown in figure 4, in the present embodiment, sub-line journey unit includes buffer lock creating unit, data extraction list Member, buffer lock releasing unit, condition adjudgement unit and data processing unit.
Buffer lock creating unit is for creating buffer lock.
B client's integration information record is sequentially extracted next that data extracting unit is used to number since originating subscriber It is recorded as one group of integral, and the maximum Customs Assigned Number in group integral record is assigned to the new originating subscriber in caching and is compiled Number.
Buffer lock releasing unit is for discharging buffer lock.
Condition adjudgement unit be used to judge extractible client's integration information record in data extracting unit quantity x whether Less than Page Length a.
Data processing unit is used to one group of integral record that data extracting unit is extracted carrying out Integral Processing one by one, will locate Integral record after reason updates the integrated value in the table of integrals according to Customs Assigned Number one by one, and deletes relative users in integral recording table The data of number, batch are inserted into integral log sheet.
More than, it is merely preferred embodiments of the present invention, but scope of protection of the present invention is not limited thereto, it is any Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in It is included within the scope of the present invention.

Claims (8)

1. a kind of more clients integrate the processing method of fast-aging, which is characterized in that main thread includes the following steps,
S1:Shop record sheet is inquired, judges whether the shop for needing to carry out expired Integral Processing;
S2:It will need the shop for carrying out expired Integral Processing that caching is added, form pending shop queue;It will be without expired integral Shop be set to processing completion status;
S3:A pending shop record in extraction caching, obtains the integral recording table in the shop, creates a corresponding son The expired integration data in thread process shop, Thread Count+1, while the shop quantity handled is no more than the maximum of preset sub-line journey Thread Count, the shop exceeded enter wait state;
S4:After the expired integration data in shop is disposed, Thread Count -1 discharges sub-line journey, extracts the shop in being waited for Paving creates the expired integration data in the corresponding sub- thread process shop;
S5:Judge whether there is also not out of date integrals in each shop, if so, step S3 and S4 are repeated, if not, in the buffer Processing complement mark is added, exits flow, ends task.
2. a kind of more clients as described in claim 1 integrate the processing method of fast-aging, which is characterized in that
In step sl, the shop record sheet summarizes for recording the expired integration information in multiple shops, and content includes shop Paving number and integral expired time;
In step s3, the integral recording table is used to record user's product that presence all under each shop waits for expired integral Point information, content include shop number, integral expired time, Customs Assigned Number and wait for expired integrated value, the Customs Assigned Number into Row sort ascending.
3. a kind of more clients as claimed in claim 2 integrate the processing method of fast-aging, which is characterized in that in step S3 In, the sub-line journey includes the following steps,
S3-1:Create buffer lock;
S3-2:Setting Page Length is a, and b client's integration information note is sequentially extracted since next that originating subscriber is numbered Record is recorded as one group of integral, and the maximum Customs Assigned Number in group integral record is assigned to the new originating subscriber in caching Number;
S3-3:Discharge buffer lock;
S3-4:Whether the quantity x of extractible client's integration information record is less than Page Length a in judgment step S3-2, if It is to remove shop record from the shop queue in caching;
S3-5:One group of integral record that step S3-2 is extracted is subjected to Integral Processing one by one, integral records basis by treated Customs Assigned Number updates the integrated value in the table of integrals one by one, and deletes the data that relative users are numbered in integral recording table, and batch is inserted Enter to integrate log sheet.
4. a kind of more clients as claimed in claim 3 integrate the processing method of fast-aging, which is characterized in that in step S3-2 In, when inquiring for the first time, numbered using 0 originating subscriber as the shop.
5. a kind of more clients as claimed in claim 4 integrate the processing method of fast-aging, which is characterized in that in step S3-2 In, when the quantity x of extractible client's integration information record is more than a, b=a;When extractible client's integration information record When quantity x is less than a, b=x.
6. a kind of more clients as claimed in claim 5 integrate the processing method of fast-aging, which is characterized in that in step S3-5 In, the table of integrals is for recording user integral information all under each shop, and content includes shop number, it is expired to integrate Time, Customs Assigned Number and integrated value.
7. a kind of more clients integrate the processing unit of fast-aging, which is characterized in that including query unit, taxon, sub-line Cheng Danyuan, wherein
The query unit judges whether to need to carry out expired Integral Processing for inquiring shop record sheet Shop;
Caching is added in the shop that the taxon is used to need to carry out expired Integral Processing, forms pending shop team Row;The shop of no expired integral is set to processing completion status;
The sub-line journey unit is for handling the expired integration data in shop.
8. a kind of more clients as claimed in claim 7 integrate the processing unit of fast-aging, which is characterized in that the sub-line Cheng Danyuan includes buffer lock creating unit, data extracting unit, buffer lock releasing unit, condition adjudgement unit and data processing list Member, wherein
The buffer lock creating unit is for creating buffer lock;
B client's integration information note is sequentially extracted next that the data extracting unit is used to number since originating subscriber Record is recorded as one group of integral, and the maximum Customs Assigned Number in group integral record is assigned to the new originating subscriber in caching Number;
The buffer lock releasing unit is for discharging buffer lock;
The condition adjudgement unit is used to judge that the quantity x of extractible client's integration information record in data extracting unit to be It is no to be less than Page Length a;
The data processing unit is used to one group of integral record that data extracting unit is extracted carrying out Integral Processing one by one, will Treated, and integral record updates the integrated value in the table of integrals according to Customs Assigned Number one by one, and deletes in integral recording table and mutually apply The data of family number, batch are inserted into integral log sheet.
CN201810389937.0A 2018-04-27 2018-04-27 Multi-client point rapid expiration processing method and device Active CN108510333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810389937.0A CN108510333B (en) 2018-04-27 2018-04-27 Multi-client point rapid expiration processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810389937.0A CN108510333B (en) 2018-04-27 2018-04-27 Multi-client point rapid expiration processing method and device

Publications (2)

Publication Number Publication Date
CN108510333A true CN108510333A (en) 2018-09-07
CN108510333B CN108510333B (en) 2022-11-15

Family

ID=63399535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810389937.0A Active CN108510333B (en) 2018-04-27 2018-04-27 Multi-client point rapid expiration processing method and device

Country Status (1)

Country Link
CN (1) CN108510333B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409958A (en) * 2018-10-29 2019-03-01 四川长虹电器股份有限公司 Integrate the method that balance of points is quickly updated in expired system
CN113256355A (en) * 2021-07-14 2021-08-13 北京宇信科技集团股份有限公司 Method, device, medium, equipment and system for determining integral rights and interests in real time
CN117611249A (en) * 2024-01-16 2024-02-27 杭州数云信息技术有限公司 Member point information processing method and device, readable storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530792A (en) * 2012-07-03 2014-01-22 东芝泰格有限公司 Point managing system, point managing server and method thereof
CN105469275A (en) * 2015-11-12 2016-04-06 广州优识资讯系统有限公司 Credit data processing method and system based on plurality of merchants
CN106648872A (en) * 2016-12-29 2017-05-10 深圳市优必选科技有限公司 Multi-thread processing method and device and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530792A (en) * 2012-07-03 2014-01-22 东芝泰格有限公司 Point managing system, point managing server and method thereof
CN105469275A (en) * 2015-11-12 2016-04-06 广州优识资讯系统有限公司 Credit data processing method and system based on plurality of merchants
CN106648872A (en) * 2016-12-29 2017-05-10 深圳市优必选科技有限公司 Multi-thread processing method and device and server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409958A (en) * 2018-10-29 2019-03-01 四川长虹电器股份有限公司 Integrate the method that balance of points is quickly updated in expired system
CN109409958B (en) * 2018-10-29 2021-11-16 四川长虹电器股份有限公司 Method for quickly updating point balance in point overdue system
CN113256355A (en) * 2021-07-14 2021-08-13 北京宇信科技集团股份有限公司 Method, device, medium, equipment and system for determining integral rights and interests in real time
CN113256355B (en) * 2021-07-14 2021-09-17 北京宇信科技集团股份有限公司 Method, device, medium, equipment and system for determining integral rights and interests in real time
CN117611249A (en) * 2024-01-16 2024-02-27 杭州数云信息技术有限公司 Member point information processing method and device, readable storage medium and terminal
CN117611249B (en) * 2024-01-16 2024-04-16 杭州数云信息技术有限公司 Member point information processing method and device, readable storage medium and terminal

Also Published As

Publication number Publication date
CN108510333B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN108510333A (en) A kind of more clients integrate the processing method and processing device of fast-aging
EP1471441A3 (en) Performance management of a computer system with a database management system
González et al. Ergonomic performance and quality relationship: an empirical evidence case
HUP0301769A2 (en) Rapid valuation of portfolios of assets such as financial instruments
CN107016536A (en) The method and trading server of trading processing
CN105469275A (en) Credit data processing method and system based on plurality of merchants
CN107615313A (en) The business activity servicing unit and business activity householder method predicted using contract cancellation
CN106407442B (en) A kind of mass text data processing method and device
CN110033826A (en) A kind of analysis method applied to macrovirus group high-flux sequence data
CN106845880A (en) The recognition methods of Air Way Bill No. ownership and device
CN106484791A (en) A kind of data statistical approach and device
CN111538915A (en) Allocation method and device for orphan insurance policy, computer equipment and storage medium
CN105630580A (en) Scheduling platform based data summarizing method and data summarizing apparatus
CN110674122B (en) Data cleaning system based on data transaction
CN104639452B (en) The processing method and processing device of data
CN113670422A (en) Express item weight abnormity detection method, device, equipment and storage medium
CN111666428A (en) Network media propagation evaluation method
EP1291813A3 (en) Determination of a number of sequentially ordered pages in a set of ordered media
CN109634948A (en) A kind of data auditing method and task dispatcher
JP2009098844A (en) Process management system
JP5622049B2 (en) Batch processing system and batch processing method
CN106250243B (en) The processing method and processing device of banking system application based on poll tupe
CN111399453A (en) Intelligent catalyst manufacturing method based on MES big data
CN111105255A (en) Method for realizing store multi-channel member centralized management based on Internet platform
CN106952095A (en) A kind of art sales data handling system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 361101 1-3F, Zone D, innovation building, software park, Xiamen Torch High tech Zone, Xiamen City, Fujian Province

Applicant after: Xiamen Nanxun Co.,Ltd.

Address before: 361008 Fujian province Xiamen software park two sunrise Road No. 22 unit 401

Applicant before: XIAMEN NASCENT SOFTWARE TECHNOLOGY CO.,LTD.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant