CN109858907A - Transaction record storage, settle accounts calculation method and device - Google Patents
Transaction record storage, settle accounts calculation method and device Download PDFInfo
- Publication number
- CN109858907A CN109858907A CN201910002897.4A CN201910002897A CN109858907A CN 109858907 A CN109858907 A CN 109858907A CN 201910002897 A CN201910002897 A CN 201910002897A CN 109858907 A CN109858907 A CN 109858907A
- Authority
- CN
- China
- Prior art keywords
- day
- time
- trading
- record sheet
- transaction
- 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
Links
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Abstract
The embodiment of the invention discloses a kind of storage of transaction record, settle accounts calculation method and device, intermediate server, settle accounts calculation system and computer readable storage mediums, wherein in one embodiment of the invention, the transaction record storage method includes: reception transaction record;Judge whether the transaction record includes day cutting the time;When the transaction record includes day cutting the time, the transaction record is stored in trading record sheet corresponding with the time is cut the day.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of transaction record storage, settle accounts calculation method and device, in
Between server, settle accounts calculation system and computer readable storage medium.
Background technique
Universal with cCredit card payment and various e-payments, the transaction between consumer and trade company uses more and more
CCredit card payment and various e-payments are paid in cash to replace.
When trading between consumer and trade company, the transaction terminal of POS (Point of Sale) terminal etc. will
Transaction record including trade company number, terminal number, transaction amount, exchange hour etc. uploads to intermediate server, such as the preposition system of POS
System, which stores transaction record into trading record sheet according to exchange hour sequence, when trading record sheet is more than
Given threshold is then stored into next trading record sheet.
Acquirer is usually settled accounts using the day of trade as the period to trade company, i.e., the transaction occurred on T gave trade company on T+1
Clearing, the cut-point between the day of trade is exactly day to cut the time.Day cuts what the time was usually fixed, such as the time of cutting day of Unionpay is
23 points namely proxima luce (prox. luc) 23:00:01 belong to the transaction occurred in T days to the transaction occurred between same day 23:00:00, need in T+
Progress settle accounts calculation on the 1st, and the transaction occurred after same day 23:00:01 belongs to the transaction occurred in T+1 days, needs to carry out on T+2
Settle accounts calculation.
However, it is hoped that there will be different days to cut the time for certain trade companies, for example, 2 points of some trade companies just close, it is desirable to which day cuts the time
It is 2 points.In order to meet the needs of these trade companies, a kind of currently used scheme is to send the transaction terminal of these trade companies
Transaction record in mostly comprising cutting the data of time a day.For this purpose, settle accounts calculation system when being settled accounts, needs to judge currently
Whether transaction record includes day cutting the time, if including day cutting the time, when to the exchange hour of the transaction record and cutting the day
Between be compared with determine the transaction record belonging to the day of trade, if not including day cutting the time, the friendship to the transaction record
Easy time and default are cut the time day and are compared to determine the day of trade belonging to the transaction record, and then complete to settle accounts.Settle accounts calculation
System, which needs to record All Activity, is carried out the step of above-mentioned judgement-is compared, low so as to cause treatment effeciency.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of storages of transaction record, settle accounts calculation method and device, intermediary service
Device, settle accounts calculation system and computer readable storage medium, it is various to solve settle accounts calculation system execution step in the prior art, locate
The technical issues of managing inefficiency.
According in a first aspect, the embodiment of the invention provides a kind of transaction record storage methods, comprising: receive transaction note
Record;Judge whether the transaction record includes day cutting the time;When the transaction record includes day cutting the time, the transaction is remembered
Address book stored is in trading record sheet corresponding with the time is cut the day.
Optionally, the method also includes: when the transaction record does not include day cutting the time, the transaction record is deposited
Chu Yu default is cut in time corresponding trading record sheet day.
According to second aspect, the embodiment of the invention provides a kind of transaction record storage methods, comprising: receives transaction note
Record;Judge whether the transaction record includes day cutting the time;When the transaction record includes day cutting the time, the transaction is remembered
The exchange hour of record is compared with the time is cut the day;When the exchange hour is to cut the time day or when cutting the day
Between before when, the transaction record is stored in first kind trading record sheet;Or when the exchange hour is in the day
When cutting after the time, the transaction record is stored in Second Type trading record sheet.
Optionally, the method also includes: when the transaction record does not include day cutting the time, by the transaction record
Exchange hour is cut the time day with default and is compared;When the exchange hour is to cut the time default day or in the default day
When cutting before the time, the transaction record is stored in first kind trading record sheet;Or when the exchange hour is in institute
When stating default and cutting day after the time, the transaction record is stored in Second Type trading record sheet.
According to the third aspect, the embodiment of the invention provides a kind of settle accounts calculation methods, comprising: obtains currently processed transaction
The day of record sheet cuts the time, and the day having the same of the transaction record in the trading record sheet cuts the time;According to the current place
The time is cut the exchange hour of each transaction record in the trading record sheet of reason and the day to the currently processed transaction
Record sheet carries out settle accounts calculation.
Optionally, it is described obtain currently processed trading record sheet day cut the time, comprising: read described currently processed
The label of trading record sheet cuts the time to obtain the day;Or any friendship in the reading currently processed trading record sheet
Easily record cuts the time to obtain the day.
According to fourth aspect, the embodiment of the invention provides a kind of settle accounts calculation methods, comprising: obtains currently processed transaction
The type of record sheet, the trading record sheet include first kind trading record sheet and Second Type trading record sheet, wherein institute
The exchange hour for stating the transaction record in first kind trading record sheet is to cut the time day or before day cuts the time, described second
The exchange hour of transaction record in type transactions record sheet is cutting the time after day;When the currently processed trading record sheet
When for first kind trading record sheet, settle accounts calculation is carried out to the first kind trading record sheet.
Optionally, the method also includes: when the currently processed trading record sheet be Second Type trading record sheet
When, next trading record sheet is handled, and settle accounts calculation is carried out to the Second Type trading record sheet in next day of trade.
According to the 5th aspect, the embodiment of the invention provides a kind of transaction record storage devices, comprising: first receives list
Member, for receiving transaction record;First judging unit, for judging whether the transaction record includes day cutting the time;First deposits
Storage unit, for the transaction record being stored in and cuts time phase with the day when the transaction record including day cutting the time
In corresponding trading record sheet.
Optionally, described device further include: the second storage unit, for not including day cutting the time when the transaction record
When, the transaction record is stored in and is cut day in time corresponding trading record sheet with default.
According to the 6th aspect, the embodiment of the invention provides a kind of transaction record storage devices, comprising: second receives list
Member, for receiving transaction record;Second judgment unit, for judging whether the transaction record includes day cutting the time;Third is deposited
Storage unit, for when the transaction record includes day cutting the time, by the exchange hour of the transaction record and when cutting the day
Between be compared, when the exchange hour is to cut the time day or when before the day cutting the time, by the transaction record
It is stored in first kind trading record sheet;Or when the exchange hour is when cutting after the time day, by the transaction
Record storage is in Second Type trading record sheet.
Optionally, described device further include: the 4th storage unit, for not including day cutting the time when the transaction record
When, the exchange hour of the transaction record is cut into the time day with default and is compared, when the exchange hour is the default day
It cuts the time or when before the default day cutting the time, the transaction record is stored in first kind trading record sheet;Or
The transaction record is stored in Second Type transaction record when the exchange hour is when cutting after the time default day by person
In table.
According to the 7th aspect, the embodiment of the invention provides a kind of settle accounts calculation devices, comprising: first acquisition unit is used for
The day for obtaining currently processed trading record sheet cuts the time, when the day having the same of the transaction record in the trading record sheet cuts
Between;First settle accounts calculation unit, for the exchange hour according to each transaction record in the currently processed trading record sheet
And the time is cut the day to the currently processed trading record sheet progress settle accounts calculation.
According to eighth aspect, the embodiment of the invention provides a kind of settle accounts calculation devices, comprising: second acquisition unit is used for
The type of currently processed trading record sheet is obtained, the trading record sheet includes first kind trading record sheet and Second Type
Trading record sheet, wherein the exchange hour of the transaction record in the first kind trading record sheet is to cut the time day or cut in day
Before time, the exchange hour of the transaction record in the Second Type trading record sheet is cutting the time after day;Second settles accounts
Unit is calculated, for handing over the first kind when the currently processed trading record sheet is first kind trading record sheet
Easy record sheet carries out settle accounts calculation.
Optionally, described device further include: third settle accounts calculation unit, for being when the currently processed trading record sheet
When Second Type trading record sheet, next trading record sheet is handled, and trade and remember to the Second Type in next day of trade
It records table and carries out settle accounts calculation.
According to the 9th aspect, the embodiment of the invention provides a kind of intermediate servers, comprising: memory and processor, institute
It states and communicates with each other connection between memory and the processor, computer instruction, the processor are stored in the memory
By executing the computer instruction, thereby executing method described in any one of above-mentioned first aspect or second aspect.
According to the tenth aspect, the embodiment of the invention provides a kind of settle accounts calculation systems, comprising: memory and processor, institute
It states and communicates with each other connection between memory and the processor, computer instruction, the processor are stored in the memory
By executing the computer instruction, thereby executing method described in any one of the above-mentioned third aspect or fourth aspect.
On the one hand according to the tenth, the embodiment of the invention provides a kind of computer readable storage mediums, which is characterized in that institute
Stating computer-readable recording medium storage has a computer instruction, and the computer instruction is for making the computer execute above-mentioned the
Method described in one side or second aspect or any one of the third aspect or fourth aspect.
Transaction record storage according to an embodiment of the present invention, settle accounts calculation method and device, intermediate server, settle accounts calculation system
And computer readable storage medium, by being stored in transaction record time or default are cut day with setting day to cut the time corresponding
Trading record sheet in so that the transaction record day having the same in trading record sheet cuts the time, settle accounts calculation system only needs
Obtaining a next day cuts the time, it can according to the exchange hour of each transaction record in the trading record sheet and acquired
Time progress settle accounts calculation is cut day, to improve the treatment effeciency of settle accounts calculation system.
Transaction record storage according to another embodiment of the present invention, settle accounts calculation method and device, intermediate server, settle accounts calculation
System and computer readable storage medium, by according to the day of trade belonging to transaction corresponding to transaction record by transaction record
It is respectively stored in first kind trading record sheet or Second Type trading record sheet, settle accounts calculation system only needs to judge currently to hand over
The type of easy record sheet can know the day of trade belonging to transaction corresponding to the transaction record in current trading record sheet with
Settle accounts calculation is carried out, without carrying out any other operation, to improve the treatment effeciency of settle accounts calculation system.
Detailed description of the invention
The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, and attached drawing is schematically without that should manage
Solution is carries out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 shows the flow charts of transaction record storage method according to an embodiment of the present invention;
Fig. 3 shows the flow chart of settle accounts calculation method according to an embodiment of the present invention;
Fig. 4 shows the flow chart of transaction record storage method according to another embodiment of the present invention;
Fig. 5 shows the flow chart of settle accounts calculation method according to another embodiment of the present invention;
Fig. 6 shows the schematic diagram of transaction record storage device according to an embodiment of the present invention;
Fig. 7 shows the schematic diagram of transaction record storage device according to another embodiment of the present invention;
Fig. 8 shows the schematic diagram of settle accounts calculation device according to an embodiment of the present invention;
Fig. 9 shows the schematic diagram of settle accounts calculation device according to another embodiment of the present invention;And
Figure 10 shows the schematic diagram of intermediate server according to an embodiment of the present invention and settle accounts calculation system.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Fig. 1 shows the application scenarios schematic diagram of the embodiment of the present invention, as shown in Figure 1, when sending out between consumer and trade company
When raw transaction, transaction record is uploaded to the intermediary service of POS front-end system etc. by the transaction terminal of POS terminal etc.
Device, the intermediate server are mainly used for managing the transaction terminal of front end, receive and store the transaction record of transaction terminal upload, and
And the transaction record stored is sent to settle accounts calculation system, so that transaction record carries out settle accounts calculation system based on the received
Settle accounts calculation.
Fig. 2 shows transaction record storage method according to an embodiment of the present invention, this method is suitable for the preposition system of such as POS
The intermediate server of system etc., may include steps of:
S11. transaction record is received.
When trading between consumer and trade company, transaction record can be uploaded to intermediate server by transaction terminal,
In each trade company can be assigned unique trade company number, each trade company can have an at least transaction terminal, each transaction terminal meeting
It is assigned unique terminal number, when the transaction record that transaction terminal is uploaded includes trade company number, terminal number, transaction amount, transaction
Between etc..When the time is cut it is hoped that there will be different days by trade company, the transaction record that transaction terminal is uploaded will also include cuts the time day, should
Day cuts the time and can be trade company's sets itself, and trade company can for example pass through the human-computer interaction interface sets itself day of transaction terminal
The time is cut, this day cuts the time and be also possible to be solidificated in transaction terminal.
S12. judge whether transaction record includes day cutting the time, when the transaction record includes day cutting the time, execute step
S13 executes step S14 when the transaction record does not include day cutting the time.
Whether intermediate server is after receiving transaction record, by judging in transaction record to include day cutting the time, so that it may
With know transaction corresponding to the transaction record be using trade company setting cut day the time or default day cut the time, when transaction remember
It include judging that the transaction cuts the time using trade company's setting day, when not including cutting day in transaction record when day cutting the time in record
Between when, judge the transaction using default day cut the time.Day cuts the specific position for the time being stored in transaction record, and intermediate server is only
Needing to read the specific position can quickly judge, such as when reading value is empty (NULL), can determine that the transaction is adopted
It is cut the time day with default, when reading value is some numerical value, the time of cutting day that can determine that the transaction uses is the numerical value.
S13. the transaction record is stored in trading record sheet corresponding with the time is cut the day.
In the present embodiment, the transaction record for cutting the time different days stores the same transaction into different trading record sheets
It is identical for cutting the time day of the transaction record stored in record sheet.As a kind of optional embodiment, each trading record sheet
A label can be set, the time is cut with the day for indicating the transaction record stored in the trading record sheet.
S14. the transaction record is stored in and is cut day in time corresponding trading record sheet with default.
Similarly, it cuts the transaction record stored in time corresponding trading record sheet day with default and is all made of default and cut day
Time.As a kind of optional embodiment, cutting time corresponding trading record sheet day with default also can be set a label
Day the time is cut to indicate that the transaction record stored in the trading record sheet is all made of default.
By above method step, intermediate server by transaction record store with setting cut day the time or default cut day when
Between in corresponding trading record sheet, trading record sheet is sent to settle accounts calculation system by subsequent intermediate server, due to same friendship
The transaction record stored in easy record sheet cut day the time be it is identical, for same trading record sheet, settle accounts calculation system is only needed
Obtaining a next day cuts the time, it can according to the exchange hour of each transaction record in the trading record sheet and acquired
Time of cutting day carry out settle accounts calculation, therefore transaction record storage method according to an embodiment of the present invention can be improved settle accounts calculation system
Treatment effeciency.
Fig. 3 shows settle accounts calculation method according to an embodiment of the present invention, and this method is suitable for settle accounts calculation system, may include
Following steps:
S21. the day for obtaining currently processed trading record sheet cuts the time.
Trading record sheet is that settle accounts calculation system is sent to by intermediate server, trading record sheet can have it is multiple, each
Transaction record day having the same in trading record sheet cuts the time, which for example can reality according to Fig.2,
The transaction record storage method applied in example obtains.
Since the transaction record day having the same in trading record sheet cuts the time, settle accounts calculation system, which can for example be read, to be worked as
Any transaction record in the trading record sheet of pre-treatment cuts the time with the day for obtaining the trading record sheet.Specifically, working as institute
It include when day cutting the time in the transaction record of reading, this day cuts the day that the time is the trading record sheet and cut the time;When being read
Transaction record in do not include cutting the time day of the trading record sheet for default day to cut the time when day cutting the time.
As a kind of optional embodiment, as described above, a label is provided with to indicate in each trading record sheet
In the case that the day of transaction record in the trading record sheet cuts the time, settle accounts calculation system can read the mark of the trading record sheet
Label cut the time with the day for obtaining the trading record sheet.
S22. the time is cut according to the exchange hour of each transaction record in currently processed trading record sheet and the day
Settle accounts calculation is carried out to currently processed trading record sheet.
After the day that the trading record sheet has been determined cuts the time, since the transaction record in trading record sheet is having the same
Day cut the time, it can know that All Activity in the trading record sheet recorded cuts the time day, settle accounts calculation system only needs to obtain
The exchange hour of acquired each transaction record is cut the time with the day respectively and compared by the exchange hour of each transaction record
Relatively it is assured that the day of trade belonging to each transaction record, i.e., when exchange hour is to cut the time day or before day cuts the time
When, it can determine that transaction corresponding to the transaction record is transaction in T days, settle accounts calculation system settles accounts the transaction record
It calculates;And when exchange hour is after the day cutting the time, it can determine that transaction corresponding to the transaction record is transaction in T+1 days,
Settle accounts calculation system carries out settle accounts calculation to the transaction record in next day of trade.After having handled currently processed trading record sheet,
Settle accounts calculation system can repeat the above steps, and carry out settle accounts calculation to next trading record sheet.
Pass through above method step, when the day having the same of the transaction record in trading record sheet cutting the time, settle accounts calculation
System only needs to obtain a next day and cuts the time, it can according to the exchange hour of each transaction record in the trading record sheet with
And cut time progress settle accounts calculation acquired day, to improve the treatment effeciency of settle accounts calculation system.
Fig. 4 shows transaction record storage method according to another embodiment of the present invention, and this method is equally applicable to such as
The intermediate server of POS front-end system etc., may include steps of:
S31. transaction record is received, particular content may refer to the description in step S11.
S32. judge whether transaction record includes day cutting the time, when the transaction record includes day cutting the time, execute step
S33 executes step S34 when the transaction record does not include day cutting the time, and particular content may refer to the description in step S12.
S33. the exchange hour of the transaction record is compared with the time is cut day, when exchange hour be cut day the time or
When day cut before the time, which is stored in first kind trading record sheet;When exchange hour cut day the time it
When afterwards, which is stored in Second Type trading record sheet.
In the present embodiment, exchange hour is to cut the time day or the transaction record before day cuts the time is stored in the first kind
The transaction that transaction corresponding to transaction record in type trading record sheet namely in first kind trading record sheet is T days, needs
It was settled accounts on T+1;Exchange hour is stored in Second Type trading record sheet in the transaction record after day cutting the time,
The transaction that transaction corresponding to transaction record i.e. in Second Type trading record sheet is T+1 days, needs to be tied on T+2
It calculates, transaction record is respectively stored in first kind transaction note thus in accordance with the day of trade belonging to transaction corresponding to transaction record
It records in table or Second Type trading record sheet.It can be first kind trading record sheet and the as a kind of optional embodiment
A label is arranged to distinguish in two type transactions record sheets.
S34. the exchange hour of the transaction record is cut the time day with default to be compared, when exchange hour is that default is cut day
Time or default day cut the time before when, which is stored in first kind trading record sheet;Work as exchange hour
When default is cut after the time day, which is stored in Second Type trading record sheet.
It is that default cuts the transaction record of time day also according to transaction corresponding to transaction record similarly, for the time is cut day
Transaction record is respectively stored in first kind trading record sheet or Second Type trading record sheet by the affiliated day of trade.
By above method step, intermediate server will trade according to the day of trade belonging to transaction corresponding to transaction record
Record is respectively stored in first kind trading record sheet or Second Type trading record sheet, and intermediate server is by trading record sheet
After being sent to settle accounts calculation system, settle accounts calculation system only need to judge current trading record sheet be first kind trading record sheet or
Second Type trading record sheet, it can know transaction belonging to transaction corresponding to the transaction record in current trading record sheet
Day is to carry out settle accounts calculation, therefore transaction record storage method according to an embodiment of the present invention can be improved the processing of settle accounts calculation system
Efficiency.
As some optional embodiments of the embodiment of the present invention, intermediate server may not necessarily simultaneously be handed over the first kind
Easy record sheet and Second Type trading record sheet are sent to settle accounts calculation system.Due to the transaction note in first kind trading record sheet
The transaction that the corresponding transaction of record is T days, needs to be settled accounts on T+1, intermediate server current trading day can only by
First kind trading record sheet is sent to settle accounts calculation system, therefore the friendship that settle accounts calculation system can directly send intermediate server
Transaction record in easy record sheet is settled accounts.The transaction as corresponding to the transaction record in Second Type trading record sheet is
Transaction in T+1 days needs to be settled accounts on T+2, the second class that intermediate server can will obtain before this in next day of trade
The first kind trading record sheet that type trading record sheet and next day of trade obtain is sent to settle accounts calculation system, settle accounts calculation system
The transaction record in trading record sheet that can directly send to intermediate server is settled accounts.Thereby, it is possible to further increase
The treatment effeciency of settle accounts calculation system.
Fig. 5 shows settle accounts calculation method according to another embodiment of the present invention, this method is suitable for settle accounts calculation system, can
To include the following steps:
S41. the type for obtaining currently processed trading record sheet, when currently processed trading record sheet is first kind friendship
When easy record sheet, step S42 is executed, when currently processed trading record sheet is Second Type trading record sheet, executes step
S43。
In the present embodiment, trading record sheet includes first kind trading record sheet and Second Type trading record sheet,
The exchange hour of transaction record in middle first kind trading record sheet is to cut the time day or before day cuts the time, Second Type
The exchange hour of transaction record in trading record sheet, such as can be in embodiment according to Fig.4, after day cuts the time
Transaction record storage method obtain above-mentioned first kind trading record sheet and Second Type trading record sheet.
In order to obtain the type of currently processed trading record sheet, settle accounts calculation system can for example read currently processed friendship
Any transaction record in easy record sheet is to obtain exchange hour and the Qie time of the transaction record, specifically, ought be read
It include when day cutting the time, cutting the day that the time is the transaction record day read and cutting the time, work as institute in the transaction record taken
It does not include cutting the time day of the transaction record when day cutting the time and being cut the time day for default in the transaction record of reading, settle accounts calculation system
System is compared by exchange hour to the transaction record and Qie time and is assured that currently processed trading record sheet
Type, i.e., the exchange hour of read transaction record is to cut the time day or when before day cutting the time, currently processed friendship
Easy record sheet is first kind trading record sheet, and the transaction of read transaction record is currently processed when cutting after the time day
Trading record sheet be Second Type trading record sheet.
As a kind of optional embodiment, as described above, in first kind trading record sheet and Second Type transaction note
In the case that record table is provided with a label to distinguish, settle accounts calculation system can be by reading currently processed trading record sheet
Label to obtain the type of the trading record sheet.
S42. settle accounts calculation is carried out to first kind trading record sheet.
Since the exchange hour of each transaction record in first kind trading record sheet is to cut the time day or when cutting day
Between before, therefore transaction corresponding to the transaction record in first kind trading record sheet is transaction in T days, is needed on T+1
It is settled accounts, therefore settle accounts calculation system directly can carry out settle accounts calculation to first kind trading record sheet, it is any without carrying out
Other operations.
S43. next trading record sheet is handled, and Second Type trading record sheet is settled accounts in next day of trade
It calculates.
Since the exchange hour of each transaction record in Second Type trading record sheet is after day cuts the time, the
The transaction that transaction corresponding to transaction record in two type transactions record sheets is T+1 days, needs to be settled accounts on T+2, because
This settle accounts calculation system can handle next trading record sheet, and in next day of trade to untreated Second Type transaction record
Table carries out settle accounts calculation.
By above method step, since each transaction record is by the difference according to the day of trade belonging to corresponding transaction
It is stored as first kind trading record sheet or Second Type trading record sheet, settle accounts calculation system only needs to judge current transaction record
It is clear to carry out that the type of table can know the day of trade belonging to transaction corresponding to the transaction record in current trading record sheet
Clearing, without carrying out any other operation, to improve the treatment effeciency of settle accounts calculation system.
Correspondingly, as shown in fig. 6, may include: the embodiment of the invention also provides a kind of transaction record storage device
First receiving unit 11, for receiving transaction record, particular content may refer to the description in step S11;
First judging unit 12, for judging whether the transaction record includes cutting the time day, particular content be may refer to
Description in step S12;
First storage unit 13, for when the transaction record includes day cutting the time, the transaction record to be stored in
In trading record sheet corresponding with the time is cut the day, particular content may refer to the description in step S13;
Second storage unit 14, for when the transaction record does not include day cutting the time, the transaction record to be stored
It is cut day in time corresponding trading record sheet with default, particular content may refer to the description in step S14.
The detail of each component units of above-mentioned transaction record storage device can be corresponded to refering to reality shown in Fig. 2
It applies corresponding associated description and effect in example and is understood that details are not described herein again.
It correspondingly, can be with as shown in fig. 7, another embodiment of the present invention additionally provides a kind of transaction record storage device
Include:
Second receiving unit 21, for receiving transaction record, particular content may refer to the description in step S31;
Second judgment unit 22, for judging whether the transaction record includes cutting the time day, particular content be may refer to
Description in step S32;
Third storage unit 23, for when the transaction record includes day cutting the time, by the transaction of the transaction record
Time is compared with the time is cut the day, when the exchange hour is to cut the time day or before the day cuts the time
When, the transaction record is stored in first kind trading record sheet;Or when the exchange hour cuts the time in the day
When later, the transaction record is stored in Second Type trading record sheet, particular content may refer to retouching in step S33
It states;
4th storage unit 24, for when the transaction record does not include day cutting the time, by the friendship of the transaction record
Easy time and default are cut the time day and are compared, when the exchange hour is cuts the time default day or cut in the default day
When before the time, the transaction record is stored in first kind trading record sheet;Or when the exchange hour is described
When defaulting after cutting the time day, the transaction record is stored in Second Type trading record sheet, particular content may refer to
Description in step S34.
The detail of each component units of above-mentioned transaction record storage device can be corresponded to refering to reality shown in Fig. 4
It applies corresponding associated description and effect in example and is understood that details are not described herein again.
Correspondingly, as shown in figure 8, may include: the embodiment of the invention also provides a kind of settle accounts calculation device
First acquisition unit 31, the day for obtaining currently processed trading record sheet cut the time, the trading record sheet
In cut the time transaction record day having the same, particular content may refer to the description in step S21;
First settle accounts calculation unit 32, for the friendship according to each transaction record in the currently processed trading record sheet
It the easy time and cuts the time day settle accounts calculation is carried out to the currently processed trading record sheet, particular content may refer to walk
Description in rapid S22.
The detail of each component units of above-mentioned settle accounts calculation device can be corresponded to refering in embodiment shown in Fig. 3
Corresponding associated description and effect are understood that details are not described herein again.
Correspondingly, as shown in figure 9, another embodiment of the present invention additionally provides a kind of settle accounts calculation device, may include:
Second acquisition unit 41, for obtaining the type of currently processed trading record sheet, the trading record sheet includes
First kind trading record sheet and Second Type trading record sheet, wherein the transaction record in the first kind trading record sheet
Exchange hour be to cut the time day or before day cuts the time, the transaction of the transaction record in the Second Type trading record sheet
Time, particular content may refer to the description in step S41 after day cuts the time;
Second settle accounts calculation unit 42, for being first kind trading record sheet when the currently processed trading record sheet
When, settle accounts calculation is carried out to the first kind trading record sheet, particular content may refer to the description in step S42;
Third settle accounts calculation unit 43, for being Second Type trading record sheet when the currently processed trading record sheet
When, next trading record sheet is handled, and settle accounts calculation is carried out to the Second Type trading record sheet in next day of trade, specifically
Content may refer to the description in step S43.
The detail of each component units of above-mentioned settle accounts calculation device can be corresponded to refering in embodiment shown in fig. 5
Corresponding associated description and effect are understood that details are not described herein again.
As shown in Figure 10, the embodiment of the invention also provides a kind of intermediate servers and settle accounts calculation system, referring back to Fig. 1
As it can be seen that the intermediate server of such as POS front-end system and the consumption terminal of multiple such as POS terminals pass through wired or wireless side
Formula communication connection, for receiving and storing the transaction record of consumption terminal transmission to form trading record sheet, settle accounts calculation system is logical
Wired or wireless mode and intermediate server is crossed to communicate to connect, for receiving the trading record sheet of intermediate server transmission, and
Settle accounts calculation processing is carried out to the transaction record in trading record sheet.The intermediate server and settle accounts calculation system may each comprise processing
Device 51 and memory 52, wherein processor 51 can be connected with memory 52 by bus or other modes, with logical in Figure 10
It crosses for bus connection.
Processor 51 can be central processing unit (Central Processing Unit, CPU).Processor 51 can be with
For other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 52 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, as in the embodiment of the present invention transaction record storage method or settle accounts calculation method institute
Corresponding program instruction.The non-transient software instruction that processor 51 is stored in memory 52 by operation, thereby executing processing
The various function application and data processing of device, i.e. transaction record storage method or settle accounts calculation in realization above method embodiment
Method.
Memory 52 may include high-speed random access memory, can also include non-transient memory, for example, at least one
A disk memory, flush memory device or other non-transient solid-state memories.In some embodiments, memory 52 is optional
Including the memory remotely located relative to processor 51, these remote memories can pass through network connection to processor 51.
The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The detail of above-mentioned intermediate server and settle accounts calculation system can correspond to embodiment referring to FIG. 1 to 4
In corresponding associated description and effect understood that details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk
(Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (18)
1. a kind of transaction record storage method characterized by comprising
Receive transaction record;
Judge whether the transaction record includes day cutting the time;
When the transaction record includes day cutting the time, the transaction record is stored in friendship corresponding with the time is cut the day
In easy record sheet.
2. the method according to claim 1, wherein further include:
When the transaction record does not include day cutting the time, the transaction record is stored in day to cut the time corresponding with default
In trading record sheet.
3. a kind of transaction record storage method characterized by comprising
Receive transaction record;
Judge whether the transaction record includes day cutting the time;
When the transaction record includes day cutting the time, the exchange hour of the transaction record is compared with the time is cut the day
Compared with;
When the exchange hour is to cut the time day or when before the day cutting the time, the transaction record is stored in the
In one type trading record sheet;Or
When the exchange hour is when cutting after the time day, the transaction record is stored in Second Type trading record sheet
In.
4. according to the method described in claim 3, it is characterized by further comprising:
When the transaction record does not include day cutting the time, the exchange hour of the transaction record and default are cut into time progress day
Compare;
When the exchange hour is to cut the time default day or when before the default day cutting the time, by the transaction record
It is stored in first kind trading record sheet;Or
When the exchange hour is when cutting after the time default day, the transaction record is stored in Second Type transaction note
It records in table.
5. a kind of settle accounts calculation method characterized by comprising
The day for obtaining currently processed trading record sheet cuts the time, the day having the same of the transaction record in the trading record sheet
Cut the time;
The time pair is cut according to the exchange hour of each transaction record in the currently processed trading record sheet and the day
The currently processed trading record sheet carries out settle accounts calculation.
6. according to the method described in claim 5, it is characterized in that, described obtain currently processed when cutting day of trading record sheet
Between, comprising:
The label for reading the currently processed trading record sheet cuts the time to obtain the day;Or
It reads any transaction record in the currently processed trading record sheet and cuts the time to obtain the day.
7. a kind of settle accounts calculation method characterized by comprising
The type of currently processed trading record sheet is obtained, the trading record sheet includes first kind trading record sheet and second
Type transactions record sheet, wherein the exchange hour of the transaction record in the first kind trading record sheet be cut day the time or
Before day cuts the time, the exchange hour of the transaction record in the Second Type trading record sheet is cutting the time after day;
When the currently processed trading record sheet is first kind trading record sheet, to the first kind trading record sheet
Carry out settle accounts calculation.
8. the method according to the description of claim 7 is characterized in that further include:
When the currently processed trading record sheet is Second Type trading record sheet, next trading record sheet is handled, and
Settle accounts calculation is carried out to the Second Type trading record sheet in next day of trade.
9. a kind of transaction record storage device characterized by comprising
First receiving unit, for receiving transaction record;
First judging unit, for judging whether the transaction record includes day cutting the time;
First storage unit, for when the transaction record includes day cutting the time, by the transaction record be stored in it is described
Day cuts in time corresponding trading record sheet.
10. device according to claim 9, which is characterized in that further include:
Second storage unit, for when the transaction record does not include day cutting the time, the transaction record being stored in and being write from memory
Recognize and cuts day in time corresponding trading record sheet.
11. a kind of transaction record storage device characterized by comprising
Second receiving unit, for receiving transaction record;
Second judgment unit, for judging whether the transaction record includes day cutting the time;
Third storage unit, for when the transaction record includes day cutting the time, by the exchange hour of the transaction record with
Cutting the time day is compared, when the exchange hour is to cut the time day or when before the day cutting the time, by institute
Transaction record is stated to be stored in first kind trading record sheet;Or when the exchange hour is when cutting after the time day,
The transaction record is stored in Second Type trading record sheet.
12. device according to claim 11, which is characterized in that further include:
4th storage unit, for when the transaction record does not include day cutting the time, by the exchange hour of the transaction record
The time is cut day with default to be compared, when the exchange hour be cut the default day time or cut the default day time it
When preceding, the transaction record is stored in first kind trading record sheet;Or when the exchange hour is in the default day
When cutting after the time, the transaction record is stored in Second Type trading record sheet.
13. a kind of settle accounts calculation device characterized by comprising
First acquisition unit, the day for obtaining currently processed trading record sheet cut the time, the friendship in the trading record sheet
It easily records and day having the same cuts the time;
First settle accounts calculation unit, for the exchange hour according to each transaction record in the currently processed trading record sheet
And the time is cut the day to the currently processed trading record sheet progress settle accounts calculation.
14. a kind of settle accounts calculation device characterized by comprising
Second acquisition unit, for obtaining the type of currently processed trading record sheet, the trading record sheet includes the first kind
Type trading record sheet and Second Type trading record sheet, wherein the transaction of the transaction record in the first kind trading record sheet
Time is to cut the time day or before day cuts the time, the exchange hour of the transaction record in the Second Type trading record sheet exists
Day cut after the time;
Second settle accounts calculation unit, for when the currently processed trading record sheet be the first kind trading record sheet when, to institute
It states first kind trading record sheet and carries out settle accounts calculation.
15. device according to claim 14, which is characterized in that further include:
Third settle accounts calculation unit, for handling when the currently processed trading record sheet is Second Type trading record sheet
Next trading record sheet, and settle accounts calculation is carried out to the Second Type trading record sheet in next day of trade.
16. a kind of intermediate server characterized by comprising memory and processor, the memory and the processor it
Between communicate with each other connection, be stored with computer instruction in the memory, the processor by executing the computer instruction,
Thereby executing method of any of claims 1-4.
17. a kind of settle accounts calculation system characterized by comprising memory and processor, the memory and the processor it
Between communicate with each other connection, be stored with computer instruction in the memory, the processor by executing the computer instruction,
Thereby executing method described in any one of claim 5-8.
18. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to
It enables, the computer instruction is used to that the computer perform claim to be made to require method described in any one of 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002897.4A CN109858907A (en) | 2019-01-02 | 2019-01-02 | Transaction record storage, settle accounts calculation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002897.4A CN109858907A (en) | 2019-01-02 | 2019-01-02 | Transaction record storage, settle accounts calculation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109858907A true CN109858907A (en) | 2019-06-07 |
Family
ID=66893814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002897.4A Pending CN109858907A (en) | 2019-01-02 | 2019-01-02 | Transaction record storage, settle accounts calculation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109858907A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567912A (en) * | 2010-12-14 | 2012-07-11 | 中国移动通信集团湖南有限公司 | Switching method of accounting date and business clearing and settlement system |
CN104881768A (en) * | 2015-05-25 | 2015-09-02 | 北京京东尚科信息技术有限公司 | Order-sorting out-of-warehouse task processing method and apparatus |
CN105405007A (en) * | 2015-11-19 | 2016-03-16 | 成都连银信息技术有限公司 | Unified account processing system supporting multiple types of payment channels |
CN106204192A (en) * | 2016-06-28 | 2016-12-07 | 王京 | Order information management system and method |
CN106708879A (en) * | 2015-11-16 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Business data processing method and apparatus |
CN107203875A (en) * | 2017-04-01 | 2017-09-26 | 北京波若科技有限公司 | Fund clearing method, device and server |
-
2019
- 2019-01-02 CN CN201910002897.4A patent/CN109858907A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567912A (en) * | 2010-12-14 | 2012-07-11 | 中国移动通信集团湖南有限公司 | Switching method of accounting date and business clearing and settlement system |
CN104881768A (en) * | 2015-05-25 | 2015-09-02 | 北京京东尚科信息技术有限公司 | Order-sorting out-of-warehouse task processing method and apparatus |
CN106708879A (en) * | 2015-11-16 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Business data processing method and apparatus |
CN105405007A (en) * | 2015-11-19 | 2016-03-16 | 成都连银信息技术有限公司 | Unified account processing system supporting multiple types of payment channels |
CN106204192A (en) * | 2016-06-28 | 2016-12-07 | 王京 | Order information management system and method |
CN107203875A (en) * | 2017-04-01 | 2017-09-26 | 北京波若科技有限公司 | Fund clearing method, device and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468302B (en) | A kind of method, apparatus and system of processing data | |
CN105404596B (en) | A kind of data transmission method, apparatus and system | |
CN103310334A (en) | Business processing method and device | |
CN104021034A (en) | Task processing method and system | |
CN109032910A (en) | Log collection method, device and storage medium | |
CN110460653A (en) | The method and device of automatic driving vehicle data transmission | |
CN111027984A (en) | Business order processing method and system, electronic equipment and computer storage medium | |
CN111445340A (en) | Method and device for estimating value of financial product, electronic equipment and readable storage medium | |
CN106250322B (en) | A kind of method and apparatus for writing data | |
CN110210982A (en) | Order allocation method, device, server and storage medium | |
CN107741965B (en) | Database synchronous processing method and device, computing equipment and computer storage medium | |
CN107797893A (en) | A kind of method and apparatus for the duration for calculating hard disk processing read write command | |
CN105808707A (en) | Data processing method, data processing device and e-commerce platform | |
JP2011510414A (en) | Method and system for improving replica server performance | |
CN109934693A (en) | Classification account checking method and system, storage medium, electronic equipment | |
CN106341448A (en) | Distributed storage method, device and system | |
CN109858907A (en) | Transaction record storage, settle accounts calculation method and device | |
CN108876339B (en) | E-pet transaction method and device based on certificate | |
CN115712654A (en) | Method and device for inquiring transaction state | |
TWI646488B (en) | Method of liquidation of multi-currency transactions | |
CN109784713A (en) | Form method, settlement method and the device of clearing task queue | |
US8775687B1 (en) | Method to ensure data coherency in a scalable aggregate neighbor-device interface | |
CN110458537A (en) | Golden transaction processing method and device out | |
CN109801044A (en) | It insures creation method, device and the storage medium of product | |
CN103916472B (en) | A kind of content routing method and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |