CN110781373B - List updating method and device, readable medium and electronic equipment - Google Patents

List updating method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN110781373B
CN110781373B CN201911040341.0A CN201911040341A CN110781373B CN 110781373 B CN110781373 B CN 110781373B CN 201911040341 A CN201911040341 A CN 201911040341A CN 110781373 B CN110781373 B CN 110781373B
Authority
CN
China
Prior art keywords
consumption
transaction serial
target
serial number
list
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.)
Active
Application number
CN201911040341.0A
Other languages
Chinese (zh)
Other versions
CN110781373A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911040341.0A priority Critical patent/CN110781373B/en
Publication of CN110781373A publication Critical patent/CN110781373A/en
Application granted granted Critical
Publication of CN110781373B publication Critical patent/CN110781373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/798Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for assessing skills or for ranking players, e.g. for generating a hall of fame
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed

Abstract

The disclosure relates to a list updating method, a list updating device, a readable medium and electronic equipment, which comprise: receiving a user consumption message sent by a client; determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message; determining state fields corresponding to the target list one by one according to the target list and the transaction serial number, and setting the state fields to be in an un-updated state; updating the target list according to the user consumption message; and under the condition that the target list is successfully updated, modifying the state field into an updated state. Therefore, the update state record is carried out through the state field, the update condition of the business data in the list can be known by directly judging according to the value of the state field corresponding to the transaction serial number consumed by the user, and the confirmation and the query of the update state of the list are greatly facilitated.

Description

List updating method and device, readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of networks, and in particular, to a list updating method, apparatus, readable medium, and electronic device.
Background
With the development of the internet, in many application scenarios, a list service for recording and sorting some business data so as to show the counted business data to the user appears, for example, a reward list, a popularity list, an online popularity list in online live broadcast, or a player point ranking list, a consumption list, a segment list and the like in online games.
Because the current list is widely applied, and the list updating of some special lists may need to be performed in a short time according to massive business data, for example, in a live broadcast scene, a daily list for sorting the gift receiving conditions of all anchor broadcasts of the current live broadcast platform needs to update all gift sending conditions of all anchor broadcast rooms, the data volume is massive, and the situation that part of business data, namely the gift sending data, cannot be updated successfully in the daily list easily occurs; moreover, after a user gives a lead, in addition to the daily leaderboard related to the lead reception situation, the user may need to update the consumption leaderboard, that is, a situation that the business data needing to update a plurality of leaderboards is updated successfully only in a part of leaderboards to be updated and fails in another part of leaderboards may occur frequently. In addition, at present, the process of updating the list service according to the business data is invisible, and when it is determined whether a certain piece of business data is successfully updated in all the lists related to the business data, a unified determination method does not exist, and a large amount of uncontrollable workload can be generated. Therefore, how to ensure that each piece of business data needing to be updated can be successfully and accurately updated in all relevant lists, and the updating condition of each piece of business data in the lists can be easily inquired is a problem which needs to be solved in the current list system.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a list updating method applied to a server, where the method includes:
receiving a user consumption message sent by a client;
determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message;
determining state fields corresponding to the target list one by one according to the target list and the transaction serial number, and setting the state fields to be in an un-updated state, wherein the state fields are used for representing the updated state of consumption corresponding to the user consumption message in the target list;
updating the target list according to the user consumption message;
and under the condition that the target list is successfully updated, the state field is modified into an updated state.
In a second aspect, the present disclosure further provides a list updating apparatus, applied to a server, where the apparatus includes:
the first receiving module is used for receiving a user consumption message sent by a client;
the first determining module is used for determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message;
a second determining module, configured to determine, according to the target list and the transaction serial number, a status field that is in one-to-one correspondence with the target list, and set the status field to an un-updated state, where the status field is used to represent an updated state of consumption corresponding to the user consumption message in the target list;
the list updating module is used for updating the target list according to the user consumption message;
and the state updating module is used for modifying the state field into an updated state under the condition that the target list is successfully updated.
In a third aspect, the present disclosure also provides a computer-readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure also provides an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of the first aspect.
According to the technical scheme, when a user generates business data needing to update the list through consumption, the server can acquire the transaction serial number generated by the consumption, and respectively determines a state field for one or more core target lists needing to be updated by the consumption of the user according to the transaction serial number so as to record the state of the consumption business data whether being updated successfully in the list.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart illustrating a list update method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a list update method according to yet another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a list update method according to yet another exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating a structure of a list updating apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating a structure of a list updating apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart illustrating a list update method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method includes steps 101 to 105.
In step 101, a user consumption message sent by a client is received. After a client user performs one consumption in any service scenario, the client uploads user consumption information related to the one consumption to the server, where the user consumption information may include, for example, a user ID of the consumed user, a consumption occurrence time, consumption content, a consumption amount, and the like.
In step 102, a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message are determined according to the user consumption message.
After receiving the user consumption information sent by the client, the serial number of the transaction flow generated by the consumption can be determined according to the user consumption information, and the serial number can be directly obtained from a server for processing the list updating at present or can be obtained from other servers. The transaction serial number is only related to the consumption, and as long as one consumption is generated, the transaction serial number corresponding to the consumption one by one is generated.
Moreover, according to the user consumption information, a list that needs to be updated may be determined, for example, in a live broadcast scenario, when the user a sends a gift with a value of 1 virtual coin for the anchor B, it may be necessary to add 1 virtual coin to the list sent by the user a in the live broadcast room of the anchor B, it may be necessary to add 1 virtual coin to the day list received by the anchor B, or it may be necessary to add 1 virtual coin to the day list received by the team to which the anchor belongs. Therefore, when a user consumes at a client, a plurality of lists may need to be updated, and when a target list needing to be updated is determined according to the user consumption information, the target list may include the plurality of lists.
In step 103, determining status fields corresponding to the target list one by one according to the target list and the transaction serial number, and setting the status fields to be in an un-updated state, where the status fields are used for representing an updated state of consumption corresponding to the user consumption message in the target list.
For example, if the transaction ranking number determined according to the user consumption information is "12345", and the target ranking determined according to the user consumption information includes 3 ranking lists, namely, a ranking list a, a ranking list B, and a ranking list C, then the status fields determined to correspond to the target ranking list according to the target ranking list and the transaction ranking number may be "12345A" corresponding to the ranking list a, "12345B" corresponding to the ranking list B, and "12345C" corresponding to the ranking list C, respectively. The status field may be used to represent whether the consumption corresponding to the user consumption information is updated in the list a, the list B, or the list C.
After the status corresponding to each target list is determined, it is first set to an un-updated status, for example, the status field "12345A" may be assigned to 0 to represent that the consumption corresponding to the transaction serial number "12345" is not updated in list a.
Because the transaction serial number is in one-to-one correspondence with the consumption corresponding to the consumption information of the user, when the update state of a certain consumption in the list needs to be queried, the state field related to the consumption can be searched according to the transaction serial number corresponding to the consumption, so that whether the consumption is updated in all target lists or not can be determined according to the value of the state field.
In step 104, the target list is updated according to the user consumption message.
In step 105, in the case that the target list is successfully updated, the status field is modified to be in an updated status. For example, the status field "12345A" assigned 0 may be assigned 1 to represent that the consumption corresponding to the transaction serial number "12345" has completed updating in the list a.
According to the technical scheme, when a user generates business data needing to update the list through consumption, the server can acquire the transaction serial number generated by the consumption, and respectively determines a state field for one or more core target lists needing to be updated by the consumption of the user according to the transaction serial number so as to record the state of the consumption business data whether being updated successfully in the list.
Fig. 2 is a flowchart illustrating a list update method according to yet another exemplary embodiment of the present disclosure. As shown in fig. 2, the method further includes steps 201 to 204.
In step 201, a first consumption query instruction sent by the client is received, where the first consumption query instruction includes a query condition for describing consumption to be queried. The client user can query the update condition of the consumption of the client user in the list by inputting the query condition at the client, and the query condition for describing the consumption to be queried by the user can be as follows: the time period or time point of the consumption to be queried, the consumption content of the consumption to be queried, the user ID of the consumption to be queried, the consumption amount of the consumption to be queried, and other query conditions, or the query conditions may also be a transaction serial number corresponding to the consumption to be queried.
In step 202, a first transaction serial number corresponding to the consumption to be queried is determined according to the first consumption query instruction, and the first transaction serial number is determined as a target transaction serial number.
The first transaction serial number determined according to the query condition included in the first consumption query instruction may be one or more, for example, when the user inputs the transaction serial number corresponding to the consumption to be queried in the query condition, the first transaction serial number determined according to the first consumption query instruction is the transaction serial number input by the user in the client, or when the query condition is broader, a plurality of first transaction serial numbers conforming to the query condition in the first consumption query instruction may be determined. Therefore, the serial number finally determined as the target transaction serial number may be one or more.
In step 203, a target status field corresponding to the target transaction serial number and a value of the target status field are queried. After the target transaction serial number is determined, a target state field corresponding to the target transaction serial number and a value of the target state field can be inquired. For example, the target transaction serial number may include two serial numbers "12345" and "12346", respectively, and after querying the two target transaction serial numbers, the query result may be: "12345" corresponds to two status fields "12345A" and "12345B", and "12346" corresponds to three status fields "12346A", "12346B", and "12346C".
In step 204, according to the target state field and the value of the target state field, determining an update state of the to-be-queried consumption in a list corresponding to the target transaction serial number, and sending the update state to the client. For example, all of the five status fields obtained by the query may be in an updated status, all of the five status fields may be in an un-updated status, or one part of the five status fields may be in an updated status and the other part of the five status fields may be in an un-updated status.
Since the status field is named according to the transaction serial number and the target list name, the consumption corresponding to the update status represented by the status field and the corresponding list can be known after the status field is inquired. Therefore, after the value of the target state field is acquired, the related update state consumed in the list to be queried can be sent to the client.
Through the technical scheme, the user can independently inquire the updating state of the self consumption in the list according to the self demand, so that the consumption experience of the user can be greatly improved.
Fig. 3 is a flowchart illustrating a list update method according to yet another exemplary embodiment of the present disclosure. As shown in fig. 3, the method further includes steps 301 to 306. Steps 301 to 306 are the method steps included in step 202 when the number of the first transaction serial numbers determined according to the first consumption inquiry command is determined in step 202 as shown in fig. 2.
In step 301, a first transaction serial number corresponding to the consumption to be queried is determined according to the first consumption query instruction.
In step 302, it is determined whether the number of the first transaction serial number is greater than a first preset threshold, if yes, go to step 303, and if no, go to step 306.
In step 303, first consumption information corresponding to the first transaction serial number is sent to the client.
In step 304, a second consumption query instruction input by the client in response to the first consumption information is received, where the second consumption query instruction includes second consumption information selected by the user of the client from the first consumption information corresponding to the first transaction serial number.
In step 305, the second transaction serial number corresponding to the second consumption information is determined as the target transaction serial number.
When the number of the first transaction serial numbers determined according to the first consumption query instruction input by the user is larger than the first preset threshold value, the first consumption information corresponding to the first transaction serial numbers is sent to the client, so that the number of the to-be-queried consumption which needs to be queried in an update state can be further reduced for the user according to the first consumption information. When the number of the first transaction serial numbers is greater than the first preset threshold, the problem that the query of the status field takes a long time and occupies too much resources at the server side may be caused, and in addition, when the user inputs the first consumption query instruction, the user may not well input the query condition capable of accurately describing the consumption to be queried, so that the number of the first transaction serial numbers is too much, if all the first transaction serial numbers are directly used as the target transaction serial numbers at this time, and the final updated status query result is sent to the client side, the problem that the user cannot find the actually required updated status query result in too many query results may be caused.
Therefore, when the number of the first transaction serial numbers is larger than the first preset threshold, the first consumption information corresponding to the first transaction serial numbers is sent to the client, the user further selects from the first consumption information, so that second transaction serial numbers with the number smaller than that of the first transaction serial numbers are obtained, and the second transaction serial numbers are determined as target transaction serial numbers to perform further examination of the list updating state. Therefore, the query speed of the list updating state can be guaranteed, the query reaction can be guaranteed within a certain time, the user experience is further guaranteed, the power consumption is reduced for the server, and the resource occupation is reduced.
In addition, in order to ensure that the number of the second transaction serial numbers is within the first preset threshold range, the user can be set to select only the second consumption information below the first preset threshold number range from the first consumption information. Alternatively, the user may be reminded in the form of text or the like.
In step 306, the first transaction serial number is determined to be the target transaction serial number. And under the condition that the number of the first transaction serial numbers is not greater than a first preset threshold value, directly inquiring the list updating state of the first transaction serial numbers.
In a possible implementation manner, the first consumption query instruction may also be a segment of text description, and after receiving the first consumption query instruction, the server may analyze the text description through semantic analysis to obtain the query condition for describing the consumption to be queried.
In a possible implementation, in a case that the number of the first transaction serial numbers determined according to the first consumption query instruction is greater than a second preset threshold, the method further includes: and sending a prompt instruction for representing that the query condition range is too large to the client.
Fig. 4 is a block diagram illustrating a structure of a list updating apparatus according to an exemplary embodiment of the present disclosure. The device is applied to the server and comprises: a first receiving module 10, configured to receive a user consumption message sent by a client; a first determining module 20, configured to determine, according to the user consumption message, a transaction serial number corresponding to the user consumption message and one or more target lists that need to be updated according to the user consumption message; the second determining module 30 is configured to determine, according to the target list and the transaction serial number, status fields that are in one-to-one correspondence with the target list, and set the status fields to be in an un-updated state, where the status fields are used to represent an updated state of consumption corresponding to the user consumption message in the target list; the list updating module 40 is configured to update the target list according to the user consumption message; and the state updating module 50 is configured to modify the state field into an updated state when the target list is updated successfully.
According to the technical scheme, when the user generates the business data needing to update the list through consumption, the server can acquire the transaction serial number generated by the consumption, respectively determines a state field for the one or more core target lists needing to be updated by the consumption of the user according to the transaction serial number, and records whether the consumption business data is successfully updated in the list, so that when the business data generated by the consumption of the user is confirmed, inquired and the like in the update condition of the list, a large amount of time is not consumed, the judgment can be directly carried out according to the value of the state field corresponding to the transaction serial number consumed by the user, and the confirmation and inquiry of the update state of the list data are greatly facilitated.
Fig. 5 is a block diagram illustrating a structure of a list updating apparatus according to still another exemplary embodiment of the present disclosure. As shown in fig. 5, the apparatus further includes: a second receiving module 60, configured to receive a first consumption query instruction sent by the client, where the first consumption query instruction includes a query condition for describing consumption to be queried; a third determining module 70, configured to determine, according to the first consumption query instruction, a first transaction serial number corresponding to the consumption to be queried, and determine the first transaction serial number as a target transaction serial number; the query module 80 is configured to query a target status field corresponding to the target transaction serial number and a value of the target status field; the sending module 90 is configured to determine, according to the target status field and the value of the target status field, an update status of the to-be-queried consumption in the list corresponding to the target transaction serial number, and send the update status to the client.
In a possible implementation, as shown in fig. 5, in a case that the number of the first transaction serial numbers determined by the third determination module according to the first consumption query instruction is greater than a first preset threshold, the third determination module 70 includes: a first determining submodule 701, configured to determine, according to the first consumption query instruction, a first transaction serial number corresponding to the consumption to be queried; a sending sub-module 702, configured to send first consumption information corresponding to the first transaction serial number to the client; the receiving sub-module 703 is configured to receive a second consumption query instruction input by the client in response to the first consumption information, where the second consumption query instruction includes second consumption information selected by the user of the client from the first consumption information corresponding to the first transaction serial number; and the second determining submodule 704 is configured to determine the second transaction serial number corresponding to the second consumption information as the target transaction serial number.
In a possible implementation manner, as shown in fig. 5, in a case that the number of the first transaction serial numbers determined by the third determining module according to the first consumption query instruction is greater than a second preset threshold, the apparatus further includes: and the prompt module 100 is configured to send a prompt instruction for representing that the query condition range is too large to the client.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a user consumption message sent by a client; determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message; determining status fields corresponding to the target list one by one according to the target list and the transaction serial number, and setting the status fields to be in an un-updated state, wherein the status fields are used for representing the updated state of consumption corresponding to the user consumption message in the target list; updating the target list according to the user consumption message; and under the condition that the target list is successfully updated, the state field is modified into an updated state.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not constitute a limitation to the module itself in some cases, for example, the first receiving module may also be described as a "module that receives a user consumption message sent by a client".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, example 1 provides a list updating method applied to a server, including: receiving a user consumption message sent by a client; determining a transaction serial number corresponding to the user consumption message and one or more target list sheets needing to be updated according to the user consumption message; determining state fields corresponding to the target list one by one according to the target list and the transaction serial number, and setting the state fields to be in an un-updated state, wherein the state fields are used for representing the updated state of consumption corresponding to the user consumption message in the target list; updating the target list according to the user consumption message; modifying the status field to be in an updated status under the condition that the target list is successfully updated
According to one or more embodiments of the present disclosure, example 2 provides the method of example 1, further including receiving a first consumption query instruction sent by the client, where the first consumption query instruction includes a query condition for describing consumption to be queried; determining a first transaction serial number corresponding to the consumption to be inquired according to the first consumption inquiry instruction, and determining the first transaction serial number as a target transaction serial number; inquiring a target state field corresponding to the target transaction serial number and the value of the target state field; and determining the update state of the to-be-queried consumption in the list corresponding to the target transaction serial number according to the target state field and the value of the target state field, and sending the update state to the client.
In accordance with one or more embodiments of the present disclosure, example 3 provides the method of example 2, where in a case that the number of the first transaction serial numbers determined according to the first consumption query instruction is greater than a first preset threshold, the determining, according to the first consumption query instruction, a first transaction serial number corresponding to the consumption to be queried and determining the first transaction serial number as a target transaction serial number includes: a first transaction serial number corresponding to the consumption to be inquired is determined according to the first consumption inquiry instruction; sending first consumption information corresponding to the first transaction serial number to the client; receiving a second consumption query instruction input by the client in response to the first consumption information, wherein the second consumption query instruction comprises second consumption information selected by a user of the client from the first consumption information corresponding to the first transaction serial number; and determining a second transaction serial number corresponding to the second consumption information as a target transaction serial number.
Example 4 provides the method of example 2, wherein, in a case that the number of the first transaction serial numbers determined from the first consumption query instruction is greater than a second preset threshold, the method further comprises: and sending a prompt instruction for representing that the query condition range is too large to the client.
According to one or more embodiments of the present disclosure, example 5 provides a list updating apparatus applied to a server, including: the first receiving module is used for receiving a user consumption message sent by a client; the first determining module is used for determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message; the second determining module is used for determining status fields which are in one-to-one correspondence with the target list according to the target list and the transaction serial number, and setting the status fields to be in an un-updated state, wherein the status fields are used for representing the updated state of consumption corresponding to the user consumption message in the target list; the list updating module is used for updating the target list according to the user consumption message; and the state updating module is used for modifying the state field into an updated state under the condition that the target list is updated successfully.
Example 6 provides the apparatus of example 5, in accordance with one or more embodiments of the present disclosure, further comprising: a second receiving module, configured to receive a first consumption query instruction sent by the client, where the first consumption query instruction includes a query condition for describing consumption to be queried; a third determining module, configured to determine, according to the first consumption query instruction, a first transaction serial number corresponding to the consumption to be queried, and determine the first transaction serial number as a target transaction serial number; the query module is used for querying a target state field corresponding to the target transaction serial number and the value of the target state field; and the sending module is used for determining the update state of the to-be-queried consumption in the list corresponding to the target transaction serial number according to the target state field and the value of the target state field, and sending the update state to the client.
Example 7 provides the apparatus of example 6, where the number of the first transaction serial numbers determined by the third determination module according to the first consumption query instruction is greater than a first preset threshold, the third determination module including: the first determining sub-module is used for determining a first transaction serial number corresponding to the consumption to be queried according to the first consumption query instruction; the sending submodule is used for sending first consumption information corresponding to the first transaction serial number to the client; the receiving submodule is used for receiving a second consumption query instruction input by the client in response to the first consumption information, wherein the second consumption query instruction comprises second consumption information selected by a user of the client from the first consumption information corresponding to the first transaction serial number; and the second determining submodule is used for determining the second transaction serial number corresponding to the second consumption information as the target transaction serial number.
Example 8 provides the apparatus of example 6, where the number of the first transaction serial numbers determined by the third determination module according to the first consumption query instruction is greater than a second preset threshold, the apparatus further including: and the prompt module is used for sending a prompt instruction for representing that the query condition range is overlarge to the client.
Example 9 provides a computer readable medium having stored thereon a computer program that, when executed by a processing apparatus, performs the steps of the method of any of examples 1-4, in accordance with one or more embodiments of the present disclosure.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, an electronic device comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to carry out the steps of the method of any of examples 1-4.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A list updating method is applied to a server, and is characterized by comprising the following steps:
receiving a user consumption message sent by a client;
determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message;
determining status fields corresponding to the target lists one by one according to the target lists and the transaction serial numbers, and setting the status fields to be in an un-updated state, wherein the status fields are used for representing the updated state of consumption corresponding to the user consumption messages in the target lists, and the status fields can be obtained by searching according to the transaction serial numbers and the target lists;
updating the target list according to the user consumption message;
and under the condition that the target list is successfully updated, the state field is modified into an updated state.
2. The method of claim 1, further comprising:
receiving a first consumption query instruction sent by the client, wherein the first consumption query instruction comprises query conditions for describing consumption to be queried;
determining a first transaction serial number corresponding to the to-be-queried consumption according to the first consumption query instruction, and determining the first transaction serial number as a target transaction serial number;
inquiring a target state field corresponding to the target transaction serial number and the value of the target state field;
and determining the update state of the to-be-queried consumption in the list corresponding to the target transaction serial number according to the target state field and the value of the target state field, and sending the update state to the client.
3. The method according to claim 2, wherein in a case that the number of the first transaction serial numbers determined according to the first consumption inquiry instruction is greater than a first preset threshold, the determining a first transaction serial number corresponding to the consumption to be inquired according to the first consumption inquiry instruction and determining the first transaction serial number as a target transaction serial number comprises:
a first transaction serial number corresponding to the consumption to be inquired is determined according to the first consumption inquiry instruction;
sending first consumption information corresponding to the first transaction serial number to the client;
receiving a second consumption query instruction input by the client in response to the first consumption information, wherein the second consumption query instruction comprises second consumption information selected by a user of the client from the first consumption information corresponding to the first transaction serial number;
and determining a second transaction serial number corresponding to the second consumption information as a target transaction serial number.
4. The method according to claim 2, wherein in case the number of first transaction serial numbers determined according to the first consumption query instruction is greater than a second preset threshold, the method further comprises:
and sending a prompt instruction for representing that the query condition range is too large to the client.
5. A list updating device applied to a server, the device comprising:
the first receiving module is used for receiving a user consumption message sent by a client;
the first determining module is used for determining a transaction serial number corresponding to the user consumption message and one or more target lists needing to be updated according to the user consumption message;
the second determining module is used for determining a state field which is in one-to-one correspondence with the target list according to the target list and the transaction serial number, and setting the state field to be in an un-updated state, wherein the state field is used for representing an updated state of consumption corresponding to the user consumption message in the target list, and the state field can be obtained by searching according to the transaction serial number and the target list;
the list updating module is used for updating the target list according to the user consumption message;
and the state updating module is used for modifying the state field into an updated state under the condition that the target list is successfully updated.
6. The apparatus of claim 5, further comprising:
the second receiving module is used for receiving a first consumption query instruction sent by the client, wherein the first consumption query instruction comprises query conditions for describing consumption to be queried;
a third determining module, configured to determine, according to the first consumption query instruction, a first transaction serial number corresponding to the consumption to be queried, and determine the first transaction serial number as a target transaction serial number;
the query module is used for querying a target state field corresponding to the target transaction serial number and a value of the target state field;
and the sending module is used for determining the update state of the to-be-queried consumption in the list corresponding to the target transaction serial number according to the target state field and the value of the target state field, and sending the update state to the client.
7. The apparatus according to claim 6, wherein in the case that the number of the first transaction serial numbers determined by the third determination module according to the first consumption query instruction is greater than a first preset threshold, the third determination module comprises:
the first determining sub-module is used for determining a first transaction serial number corresponding to the to-be-queried consumption according to the first consumption query instruction;
the sending submodule is used for sending first consumption information corresponding to the first transaction serial number to the client;
the receiving submodule is used for receiving a second consumption query instruction input by the client in response to the first consumption information, wherein the second consumption query instruction comprises second consumption information selected by a user of the client from the first consumption information corresponding to the first transaction serial number;
and the second determining submodule is used for determining the second transaction serial number corresponding to the second consumption information as the target transaction serial number.
8. The apparatus of claim 6, wherein in case that the number of the first transaction serial numbers determined by the third determining module according to the first consumption query instruction is larger than a second preset threshold, the apparatus further comprises:
and the prompt module is used for sending a prompt instruction for representing that the query condition range is overlarge to the client.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a processing means, carries out the steps of the method according to any one of claims 1 to 4.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 4.
CN201911040341.0A 2019-10-29 2019-10-29 List updating method and device, readable medium and electronic equipment Active CN110781373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911040341.0A CN110781373B (en) 2019-10-29 2019-10-29 List updating method and device, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911040341.0A CN110781373B (en) 2019-10-29 2019-10-29 List updating method and device, readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110781373A CN110781373A (en) 2020-02-11
CN110781373B true CN110781373B (en) 2022-09-06

Family

ID=69387567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911040341.0A Active CN110781373B (en) 2019-10-29 2019-10-29 List updating method and device, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110781373B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405297B (en) * 2020-02-14 2022-11-04 广州方硅信息技术有限公司 Activity list settlement method and device and storage medium
CN111372089B (en) * 2020-02-14 2021-08-24 广州方硅信息技术有限公司 Method, device and storage medium for updating activity list
CN111914140A (en) * 2020-07-24 2020-11-10 上海阅文信息技术有限公司 Real-time list realization method and system based on message data source
CN112115153A (en) * 2020-09-21 2020-12-22 北京字跳网络技术有限公司 Data processing method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4648036A (en) * 1985-03-06 1987-03-03 At&T Bell Laboratories Method for controlling query and update processing in a database system
CN104462477A (en) * 2014-12-18 2015-03-25 深圳市科漫达智能管理科技有限公司 Data synchronizing method, device and system based on timestamp
CN104537018A (en) * 2014-12-18 2015-04-22 深圳市科漫达智能管理科技有限公司 Data synchronization method, device and system
CN105631715A (en) * 2016-01-07 2016-06-01 重庆中陆承大科技有限公司 Advertisement updating supervision method and device
CN107665099A (en) * 2016-07-28 2018-02-06 富士施乐株式会社 Message processing device and information processing method
CN108536752A (en) * 2018-03-13 2018-09-14 北京信安世纪科技有限公司 A kind of method of data synchronization, device and equipment
CN109241401A (en) * 2018-07-19 2019-01-18 姚建城 State information searching method, client, server and computer-readable medium
CN109788053A (en) * 2019-01-04 2019-05-21 深圳壹账通智能科技有限公司 Method of data synchronization and system
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7114037B2 (en) * 2002-07-11 2006-09-26 Oracle International Corporation Employing local data stores to maintain data during workflows
US20040044799A1 (en) * 2002-09-03 2004-03-04 Nokia Corporation Method, device and system for synchronizing of data providing for the handling of an interrupted synchronization process
US7010534B2 (en) * 2002-11-16 2006-03-07 International Business Machines Corporation System and method for conducting adaptive search using a peer-to-peer network
US7302489B2 (en) * 2003-08-01 2007-11-27 Sap Ag Systems and methods for synchronizing data objects among participating systems via asynchronous exchange of messages
EP1503312A1 (en) * 2003-08-01 2005-02-02 Sap Ag Computer-implemented method of, and system for, messaging in a computer network
US20110185136A1 (en) * 2010-01-22 2011-07-28 Microsoft Corporation Moving large dynamic datasets via incremental change synchronization
CN101945045B (en) * 2010-09-14 2013-01-02 北京星网锐捷网络技术有限公司 Method for updating status information of data stream, system and equipment thereof
CN104935654B (en) * 2015-06-10 2018-08-21 华为技术有限公司 Caching method, write-in point client in a kind of server cluster system and read client
CN107147711B (en) * 2017-05-04 2020-03-13 浙江数链科技有限公司 Application service updating method and device
CN108921712A (en) * 2018-06-13 2018-11-30 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment
CN109359463A (en) * 2018-10-08 2019-02-19 郑州云海信息技术有限公司 Single device information query method and relevant apparatus based on multiple equipment management platform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4648036A (en) * 1985-03-06 1987-03-03 At&T Bell Laboratories Method for controlling query and update processing in a database system
CN104462477A (en) * 2014-12-18 2015-03-25 深圳市科漫达智能管理科技有限公司 Data synchronizing method, device and system based on timestamp
CN104537018A (en) * 2014-12-18 2015-04-22 深圳市科漫达智能管理科技有限公司 Data synchronization method, device and system
CN105631715A (en) * 2016-01-07 2016-06-01 重庆中陆承大科技有限公司 Advertisement updating supervision method and device
CN107665099A (en) * 2016-07-28 2018-02-06 富士施乐株式会社 Message processing device and information processing method
CN108536752A (en) * 2018-03-13 2018-09-14 北京信安世纪科技有限公司 A kind of method of data synchronization, device and equipment
CN109241401A (en) * 2018-07-19 2019-01-18 姚建城 State information searching method, client, server and computer-readable medium
CN109788053A (en) * 2019-01-04 2019-05-21 深圳壹账通智能科技有限公司 Method of data synchronization and system
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种异构关系型数据库间的数据同步方案;李宁;《福建电脑》;20181025(第10期);第118-121页 *
数据缓存按需同步的设计与应用;周京晖;《软件》;20130515(第05期);第14-19页 *

Also Published As

Publication number Publication date
CN110781373A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111163324B (en) Information processing method and device and electronic equipment
CN110569057A (en) gray scale distribution method and device, electronic equipment and computer readable medium
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111679990A (en) Test data generation method and device, readable medium and electronic equipment
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN110618768B (en) Information presentation method and device
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111262907B (en) Service instance access method and device and electronic equipment
CN112559898A (en) Item information sending method, item information sending device, electronic equipment and computer readable medium
CN112148744A (en) Page display method and device, electronic equipment and computer readable medium
CN112367241A (en) Message generation and message transmission method, device, equipment and computer readable medium
CN111798251A (en) Verification method and device of house source data and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN111367592B (en) Information processing method and device
CN112685075A (en) Gray scale distribution method and device, electronic equipment and computer readable medium
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN110619079A (en) Method and device for pushing information
CN111787043A (en) Data request method and device
CN111291254A (en) Information processing method and device
CN111294657A (en) Information processing 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
GR01 Patent grant
GR01 Patent grant