Signal source information sending method, device, electronic device and computer-readable medium
By processing the number source information in the cache area and sending it directly to the display terminal, the problems of time spent in the transmission of number source information and degraded database performance in the prior art are solved, and more efficient and stable number source information transmission is achieved.
Patent Information
- Application Number
- CN202110130515.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-01-29
AI Technical Summary
The prior art takes a long time to store the number source information in the database in real time and then send it to the display terminal. Especially when a large number of selection operations are selected, the database performance is degraded, memory overflows, causing the database system to be paralyzed, and the source information cannot be sent normally.
By directly processing the number source information in the cache area, avoiding the use of the database for storage and transmission, and directly sending the cached number source information to the display terminal, reducing the time spent in the process of obtaining and sending the information.
The time spent on sending source information is reduced, the failure of sending source information due to degraded database performance is avoided, and the stability and efficiency of the system are improved.
Smart Images

Figure CN114116859B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technologies, and more particularly, to a method, apparatus, electronic device, and computer-readable medium for sending number source information. Background Art
[0002] The method for sending number source information is a method for sending processed number source information to a display terminal. Currently, the commonly used method for sending number source information is to store the acquired number source information in a database in real time. Then, according to the user's selection operation (e.g., selecting a number source), all the number source information stored in the database is sent to the display terminal.
[0003] However, when using the above method to send number source information, the following technical problems often exist:
[0004] Storing the acquired number source information in a database in real time and then sending all the number source information in the database to the display terminal takes a relatively long time. Secondly, when a large number of selection operations occur simultaneously, the performance of the database will decline, a large amount of data will accumulate in the memory, causing memory overflow, and thus, the database system will crash, resulting in the inability to send number source information normally. Summary of the Invention
[0005] This section of the present disclosure is used to briefly introduce concepts, which will be described in detail in the subsequent Detailed Description section. This section of the present disclosure is not intended to identify the key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0006] Some embodiments of the present disclosure propose a method, apparatus, electronic device, and computer-readable medium for sending number source information to solve one or more of the technical problems mentioned in the above Background Art section.
[0007] In a first aspect, some embodiments of the present disclosure provide a method for sending number source information, the method including: determining a set of groups of to-be-processed number source information stored in a buffer area corresponding to pre-acquired number source information; determining initial number source information that matches the pre-acquired number source information in the set of groups of to-be-processed number source information, and adding the pre-acquired number source information to the number source information group corresponding to the initial number source information to obtain a first set of number source information groups after addition; sending the first set of number source information groups to a display terminal; in response to detecting a selection operation on the number source information in the first set of number source information groups, clearing the target number source information corresponding to the selection operation from the first set of number source information groups to obtain an updated second set of number source information groups, and sending the second set of number source information groups to the display terminal.
[0008] Optionally, the above-mentioned number source information includes: date and time period; and the above method further includes: in response to receiving the cancellation information of the above selection operation, based on the date and time period included in the above target number source information, adding the above target number source information to the above set of to-be-processed number source information groups to obtain a third set of number source information groups after addition; sending the above third set of number source information groups after addition to the display terminal.
[0009] Optionally, determining the set of to-be-processed number source information groups stored in the buffer corresponding to the pre-acquired number source information includes: determining the set of to-be-processed number source information groups stored in the buffer corresponding to the date included in the above pre-acquired number source information.
[0010] Optionally, determining the initial number source information that matches the above pre-acquired number source information in the above set of to-be-processed number source information groups, and adding the above pre-acquired number source information to the number source information group corresponding to the initial number source information to obtain a first set of number source information groups after addition, includes: determining the target to-be-processed number source information whose included time period in the above set of to-be-processed number source information groups matches the time period included in the above pre-acquired number source information to obtain a set of target to-be-processed number source information; adding the above pre-acquired number source information to the target to-be-processed number source information groups corresponding to each target to-be-processed number source information in the above set of target to-be-processed number source information to obtain a first set of number source information groups after addition.
[0011] Optionally, clearing the target number source information corresponding to the above selection operation from the above first set of number source information groups to obtain an updated second set of number source information groups includes: determining the first set of number source information groups in the buffer corresponding to the date included in the above target number source information as the set of number source information groups to be cleared; determining the number source information group corresponding to the time period included in the above target number source information in the above set of number source information groups to be cleared as the target number source information group to be cleared; clearing the above target number source information from the above target number source information group to be cleared to obtain an updated second set of number source information groups.
[0012] Optionally, clearing the target number source information corresponding to the above selection operation from the above first set of number source information groups to obtain an updated second set of number source information groups further includes: in response to determining that the number of second number source information in the above second set of number source information groups is equal to zero, clearing the above second set of number source information groups from the above second set of number source information groups.
[0013] Optionally, based on the date and time period included in the above-mentioned target source information, adding the above-mentioned target source information to the set of to-be-processed source information groups includes: determining the set of to-be-processed source information groups stored in the buffer area corresponding to the date included in the above-mentioned target source information as the target source information group set; determining the source information group corresponding to the time period included in the above-mentioned target source information in the above-mentioned target source information group set as the target source information group; in response to determining the existence of the above-mentioned target source information group, adding the above-mentioned target source information to the above-mentioned target source information group.
[0014] Optionally, based on the date and time period included in the above-mentioned target source information, adding the above-mentioned target source information to the set of to-be-processed source information groups further includes: in response to determining the non-existence of the above-mentioned target source information group, creating an updated source information group in the set of source information groups corresponding to the above-mentioned target source information; adding the above-mentioned target source information to the above-mentioned updated source information group.
[0015] In a second aspect, some embodiments of the present disclosure provide a source information sending device, the device includes: a first determination unit configured to determine a set of to-be-processed source information groups stored in a buffer area corresponding to pre-acquired source information; a second determination unit configured to determine initial source information that matches the pre-acquired source information in the set of to-be-processed source information groups, and adding the pre-acquired source information to the source information group corresponding to the initial source information to obtain a first set of added source information groups; a first sending unit configured to send the first set of added source information groups to a display terminal; a second sending unit configured to, in response to detecting a selection operation on the source information in the first set of added source information groups, remove the target source information corresponding to the selection operation from the first set of added source information groups to obtain an updated second set of source information groups, and sending the second set of source information groups to the display terminal.
[0016] Optionally, the above-mentioned source information includes: a date and a time period; and the above-mentioned source information sending device further includes: an adding unit and a sending unit. Among them, the adding subunit is configured to, in response to receiving cancellation information of the above-mentioned selection operation, based on the date and time period included in the above-mentioned target source information, add the above-mentioned target source information to the set of to-be-processed source information groups to obtain a third set of added source information groups; the sending subunit is configured to send the third set of added source information groups to the display terminal.
[0017] Optionally, the above-mentioned first determination unit includes: a determination subunit configured to determine a set of to-be-processed source information groups stored in a buffer area corresponding to the date included in the pre-acquired source information.
[0018] Optionally, the second determining unit includes: a target to-be-processed number source information determining subunit, configured to determine target to-be-processed number source information whose included time period matches the time period included in the pre-acquired number source information from the set of to-be-processed number source information groups, to obtain a set of target to-be-processed number source information; and a number source information adding subunit, configured to add the pre-acquired number source information to the target to-be-processed number source information groups corresponding to the respective target to-be-processed number source information in the set of target to-be-processed number source information, to obtain a first set of added number source information groups.
[0019] Optionally, the second sending unit includes: a first set of number source information groups determining subunit, configured to determine a set of to-be-cleared number source information groups in a buffer corresponding to the date included in the target number source information as the set of to-be-cleared number source information groups; a target to-be-cleared information group determining subunit, configured to determine, from the set of to-be-cleared number source information groups, the number source information groups corresponding to the time period included in the target number source information as target to-be-cleared number source information groups; and a target number source information clearing subunit, configured to clear the target number source information from the target to-be-cleared number source information groups, to obtain an updated second set of number source information groups.
[0020] Optionally, the second sending unit includes: a second set of number source information groups clearing subunit, configured to, in response to determining that the number of second number source information in the second set of number source information groups is equal to zero, clear the second set of number source information groups from the set of second number source information groups.
[0021] Optionally, the adding subunit includes: a target set of number source information groups determining module, configured to determine a set of to-be-processed number source information groups stored in a buffer corresponding to the date included in the target number source information as the target set of number source information groups; a target number source information group determining module, configured to determine, from the target set of number source information groups, the number source information groups corresponding to the time period included in the target number source information as target number source information groups; and a target number source information adding module, configured to, in response to determining the existence of the target number source information groups, add the target number source information to the target number source information groups.
[0022] Optionally, the adding subunit includes: an updated number source information group creating module, configured to, in response to determining the non-existence of the target number source information groups, create an updated number source information group in the set of number source information groups corresponding to the target number source information; and an updated number source information group adding module, configured to add the target number source information to the updated number source information group.
[0023] In a third aspect, some embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device storing one or more programs thereon, which, when executed by the one or more processors, cause the one or more processors to implement the method described in any implementation manner of the first aspect above.
[0024] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium storing a computer program thereon, wherein the program, when executed by a processor, implements the method described in any implementation manner of the first aspect above.
[0025] The above various embodiments of the present disclosure have the following beneficial effects: Through the number source information sending method of some embodiments of the present disclosure, the time consumed for sending number source information can be reduced. Specifically, the reasons for the relatively long time consumed for sending number source information and the inability to send number source information are as follows: The obtained number source information is stored in the database in real time, and then all the number source information in the database is sent to the display terminal. This process will use a large number of database operation commands, so it will consume a relatively long time. Secondly, when a large number of selection operations occur simultaneously, it will cause the performance of the database to decline, a large amount of data to accumulate in the memory, resulting in memory overflow, and thus causing the database system to crash. Based on this, the number source information sending method of some embodiments of the present disclosure can, first of all, directly process the number source information in the cache. Thus, it avoids storing and sending number source information using the database. Instead, the number source information in the cache is directly sent to the display terminal, which can reduce the time consumed in the process from obtaining to sending the number source information, and can, to a certain extent, avoid the situation where the sending of number source information fails due to the decline in database performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the elements and elements are not necessarily drawn to scale.
[0027] Figure 1 is a schematic diagram of an application scenario of a number source information sending method according to some embodiments of the present disclosure;
[0028] Figure 2 is a flowchart of some embodiments of the number source information sending method according to the present disclosure;
[0029] Figure 3 is a flowchart of some other embodiments of the number source information sending method according to the present disclosure;
[0030] Figure 4Schematic diagram of obtaining the first source information group set after addition in the source information sending method according to some embodiments of the present disclosure;
[0031] Figure 5 Schematic structural diagram of a source information sending device according to some embodiments of the present disclosure;
[0032] Figure 6 Schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed implementation manners
[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes and are not used to limit the protection scope of the present disclosure.
[0034] In addition, it should be noted that for the sake of convenience of description, only parts related to the relevant invention are shown in the drawings. Without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.
[0035] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0036] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".
[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0038] The present disclosure will be described in detail below with reference to the drawings and in combination with the embodiments.
[0039] Figure 1 Schematic diagram of an application scenario of the source information sending method according to some embodiments of the present disclosure.
[0040] In Figure 1In the application scenario, first, the computing device 101 can determine the set 103 of source information groups to be processed stored in the buffer area corresponding to the pre-acquired source information 102. As an example, the pre-acquired source information 102 can be: [Doctor Zhu, January 24th, 10:00 - 10:30 am]. The set 103 of source information groups to be processed can be: {[[Doctor Zhu, January 24th, 10:00 - 10:30 am], [Doctor Liu, January 24th, 10:00 - 10:30 am]], [[Doctor Zhu, January 24th, 10:30 - 11:00 am], [Doctor Liu, January 24th, 11:00 - 11:30 am]]}. Then, the computing device 101 can determine the initial source information 104 in the set 103 of source information groups to be processed that matches the pre-acquired source information 102, and add the pre-acquired source information 102 to the source information group corresponding to the initial source information 104 to obtain the first set 105 of source information groups after addition. As an example, the initial source information 104 can be: [Doctor Sun, January 24th, 10:00 - 10:30 am]. The first set 105 of source groups after addition can be: {[[Doctor Zhu, January 24th, 10:00 - 10:30 am], [Doctor Liu, January 24th, 10:00 - 10:30 am], [Doctor Sun, January 24th, 10:00 - 10:30 am]], [[Doctor Zhu, January 24th, 10:30 - 11:00 am], [Doctor Liu, January 24th, 11:00 - 11:30 am]]}. After that, the computing device 101 can send the first set 105 of source information groups to the display terminal 106. Finally, the computing device 101 can, in response to detecting a selection operation on the source information in the first set 105 of source information groups, remove the target source information corresponding to the selection operation from the first set 105 of source information groups to obtain the updated second set 107 of source information groups, and send the second set 107 of source information groups to the display terminal 106. As an example, the target source information 106 can be: [Doctor Zhu, January 24th, 10:00 - 10:30 am]. Then, the second set 107 of source information groups can be: {[[Doctor Liu, January 24th, 10:00 - 10:30 am], [Doctor Sun, January 24th, 10:00 - 10:30 am]], [[Doctor Zhu, January 24th, 10:30 - 11:00 am], [Doctor Liu, January 24th, 11:00 - 11:30 am]]}.
[0041] It should be noted that the above computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster composed of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the above-listed hardware devices. It can be implemented as, for example, multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.
[0042] It should be understood that Figure 1 the number of computing devices in
[0043] Continuing to refer to Figure 2 , a flowchart 200 of some embodiments of the number source information sending method according to the present disclosure is shown. The number source information sending method includes the following steps:
[0044] Step 201, determine a set of to-be-processed number source information groups stored in a buffer corresponding to pre-acquired number source information.
[0045] In some embodiments, the execution subject of the number source information sending method (such as Figure 1 the computing device 101 shown) can determine a set of to-be-processed number source information groups stored in a buffer corresponding to pre-acquired number source information. Among them, the set of to-be-processed number source information groups can be used to provide reservation options for users. The above pre-acquired number source information can be used to update the set of to-be-processed number source information groups. The pre-acquired number source information can include number source time information (for example, usage time point: 10 am). Number source information with the same included number source time information can correspond to one buffer, that is, the time information included in the number source information stored in one buffer can be the same. In addition, the buffer can be used to store the set of to-be-processed number source information groups. Therefore, a set of to-be-processed number source information groups stored in a buffer corresponding to pre-acquired number source information can be determined.
[0046] Step 202, determine the initial number source information that matches the pre-acquired number source information in the set of to-be-processed number source information groups, and add the pre-acquired number source information to the number source information group corresponding to the initial number source information to obtain a first set of number source information groups after addition.
[0047] In some embodiments, the above-mentioned execution entity may determine the initial source information that matches the pre-acquired source information in the set of to-be-processed source information groups, and add the pre-acquired source information to the source information group corresponding to the initial source information to obtain the first set of source information groups after addition. Among them, the match may be that the source time information included in the pre-acquired source information is the same as the source time information included in the to-be-processed source information in the set of to-be-processed source information groups.
[0048] Step 203: Send the first set of source information groups to the display terminal.
[0049] In some embodiments, the above-mentioned execution entity may send the first set of source information groups to the display terminal. Among them, the first set of source information groups sent to the display terminal can be used to provide reservation options for users.
[0050] Step 204: In response to detecting a selection operation on the source information in the first set of source information groups, remove the target source information corresponding to the selection operation from the first set of source information groups to obtain an updated second set of source information groups, and send the second set of source information groups to the above-mentioned display terminal.
[0051] In some embodiments, the above-mentioned execution entity may, in response to detecting a selection operation on the source information in the first set of source information groups, remove the target source information corresponding to the selection operation from the first set of source information groups to obtain an updated second set of source information groups, and send the second set of source information groups to the above-mentioned display terminal. Among them, the selection operation may be a selection operation of the user on the source information. The above-mentioned target source information may be the source information selected by the user through the display terminal. The above-mentioned removal may be to delete the source information that the user has already selected (i.e., the target source information corresponding to the selection operation) from the cache. After that, the set of source information groups remaining in the cache after deleting the above-mentioned target source information may be used as the updated second set of source information groups.
[0052] In some optional implementation manners of some embodiments, the above-mentioned execution entity removing the target source information corresponding to the selection operation from the first set of source information groups to obtain an updated second set of source information groups may include the following steps:
[0053] First step, determine the set of first source information groups in the buffer corresponding to the date included in the above target source information as the set of source information groups to be cleared. Among them, the dates included in the source information stored in one buffer can be the same. Therefore, the buffer can be corresponding to the date. So, the buffer corresponding to the date can be determined according to the date included in the target source information. Therefore, the set of first source information groups in the buffer can be used as the set of source information groups to be cleared.
[0054] Second step, determine the source information group corresponding to the time period included in the above target source information in the above set of source information groups to be cleared as the target source information group to be cleared. Among them, the time periods included in each source information in one source information group can be the same. So, after determining the set of source information groups corresponding to the source information, the corresponding source information group can be determined according to the time period included in the source information as the target source information group to be cleared.
[0055] Third step, remove the above target source information from the above target source information group to be cleared to obtain the updated second set of source information groups. Specifically, the set of source information groups to be cleared can correspond to the source information selected by the user. In actual situations, source information can only be selected by one user at a time. Therefore, the source information already selected by the user needs to be removed. Thus, duplicate selection of the same source information by different users can be avoided.
[0056] In some optional implementation manners of some embodiments, when the above execution subject removes the target source information corresponding to the above selection operation from the above first set of source information groups to obtain the updated second set of source information groups, the following steps may further be included:
[0057] In response to determining that the number of second source information in the above second set of source information groups is equal to zero, remove the above second set of source information groups from the above second set of source information groups. Among them, the number of second source information in the above second set of source information groups being equal to zero may indicate that the above second set of source information groups is empty. Therefore, the above second set of source information groups can be removed.
[0058] In some optional implementation manners of some embodiments, the above source information may include: date (source information usage date) and time period (source information usage time period). And when the above execution subject determines the set of source information groups to be processed stored in the buffer corresponding to the pre-acquired source information, the following steps may further be included:
[0059] First step, in response to receiving the cancellation information of the above selection operation, based on the date and time period included in the above target source information, add the above target source information to the above set of to-be-processed source information groups to obtain the added third source information group set. Among them, the buffer area can be divided according to the source use date included in the source information. Therefore, the buffer area corresponding to the pre-acquired source information can be the buffer area corresponding to the source use date included in the pre-acquired source information. Specifically, it is possible to first determine the to-be-processed source information group corresponding to the date and time period included in the above target source information in the set of to-be-processed source information groups, and then add the above target information group to the above to-be-processed source information group.
[0060] In some optional implementation manners of some embodiments, the above execution subject adding the above target source information to the above set of to-be-processed source information groups based on the date and time period included in the above target source information may include the following sub-steps:
[0061] First sub-step, determine the set of to-be-processed source information groups stored in the buffer area corresponding to the date included in the above target source information as the set of target source information groups. Among them, the date included in each target source information in the set of target source information groups may be the same as the date included in the above target source information.
[0062] Second sub-step, determine the source information group corresponding to the time period included in the above target source information in the above set of target source information groups as the target source information group. Among them, the target source information included in the above target source information group is not only the same as the date included in the above target source information, but also the same as the time period included in the above target source information.
[0063] Third sub-step, in response to determining the existence of the above target source information group, add the above target source information to the above target source information group. Determining the existence of the above target source information group may indicate that the time period included in the target source information in the target source information group is the same as the time period included in the above target source information. Then, adding the target source information to the above target source information group can ensure that the time periods included in all the source information in a source information group are the same.
[0064] In some optional implementation manners of some embodiments, the above execution subject adding the above target source information to the above set of to-be-processed source information groups based on the date and time period included in the above target source information may further include the following sub-steps:
[0065] The first sub-step is to create an updated source information group in the set of source information groups corresponding to the above target source information in response to determining that the above target source information group does not exist. Among them, determining that the above target source information group does not exist can indicate that the time periods included in each piece of to-be-processed source information in the above to-be-processed source information set are different from the time period included in the above target source information. That is, it can be indicated that there is no source information available for the user to make an appointment selection during this time period. Therefore, it is necessary to create a new source information group to store the above target source information.
[0066] The second sub-step is to add the above target source information to the above updated source information group.
[0067] The second step is to send the above added set of third source information groups to the display terminal. Among them, sending the above added set of third source information groups to the display terminal can be used to display the above target source information to the user for the user to perform an appointment selection operation.
[0068] In some optional implementation manners of some embodiments, the above execution subject determines the set of to-be-processed source information groups stored in the buffer corresponding to the pre-acquired source information, which may include the following steps:
[0069] Determine the set of to-be-processed source information groups stored in the buffer corresponding to the date included in the above pre-acquired source information. Among them, since the buffer corresponding to the pre-acquired source information may be the buffer corresponding to the source information usage date included in the pre-acquired source information. Therefore, the set of to-be-processed source information groups stored in the buffer corresponding to the above pre-acquired source information can be determined.
[0070] The above various embodiments of the present disclosure have the following beneficial effects: Through the source information sending method of some embodiments of the present disclosure, the time consumed for sending source information can be reduced. Specifically, the reasons for the relatively long time consumed for sending source information and the inability to send source information are as follows: The acquired source information is stored in the database in real time, and then all the source information in the database is sent to the display terminal. This process will use a large number of database operation commands, so it will consume more time. Secondly, when a large number of selection operations occur simultaneously, it will cause the performance of the database to decline, a large amount of data to accumulate in the memory, causing the memory to overflow, and thus causing the database system to crash. Based on this, the source information sending method of some embodiments of the present disclosure can, first of all, directly process the source information in the cache. Thus, it is avoided to use the database for storing and sending source information. Instead, the source information in the cache is directly sent to the display terminal, which can reduce the time consumed in the process of source information from acquisition to sending, and can, to a certain extent, avoid the situation of source information sending failure caused by the decline of database performance.
[0071] Continue to refer to Figure 3 , Figure 3 Flow 300 of some embodiments of the number source information sending method according to the present disclosure is shown. The number source information sending method includes the following steps:
[0072] Step 301, determine a set of to-be-processed number source information groups stored in a buffer area corresponding to pre-acquired number source information.
[0073] In some embodiments, the specific implementation manner of step 301 and the technical effects brought thereby can refer to step 201 in the corresponding embodiments, which will not be elaborated herein. Figure 2 corresponding those embodiments in the steps 201, will not be repeated here.
[0074] Step 302, determine target to-be-processed number source information whose included time period in the set of to-be-processed number source information groups matches the time period included in the pre-acquired number source information, to obtain a set of target to-be-processed number source information.
[0075] In some embodiments, the above execution entity may determine target to-be-processed number source information whose included time period in the set of to-be-processed number source information groups matches the time period included in the pre-acquired number source information, to obtain a set of target to-be-processed number source information. Among them, the number source information stored in a buffer area may be divided into multiple number source information groups according to the number source usage time period included in the number source information. Then, the divided multiple number source information groups are used as a set of number source information groups. Thus, it is possible to determine target to-be-processed number source information whose included time period in the set of to-be-processed number source information groups is the same as the time period included in the pre-acquired number source information.
[0076] Step 303, add the pre-acquired number source information to the target to-be-processed number source information groups corresponding to each piece of target to-be-processed number source information in the set of target to-be-processed number source information, to obtain a first set of number source information groups after addition.
[0077] In some embodiments, the above execution entity may add the pre-acquired number source information to the target to-be-processed number source information groups corresponding to each piece of target to-be-processed number source information in the set of target to-be-processed number source information, to obtain a first set of number source information groups after addition.
[0078] As Figure 4 shown, it is possible to determine initial number source information 403 in the set of to-be-processed number source information groups 402 that matches the time period 1021 included in the pre-acquired number source information 401 according to the time period 4011 included in the pre-acquired number source information 401. Add the pre-acquired number source information 401 to the number source information group 404 corresponding to the initial number source information 403, to obtain a first set of number source information groups 405 after addition.
[0079] Step 304: Send the first source information group set to the display terminal.
[0080] Step 305, in response to detecting a selection operation on source information in the first source information group set, clearing the target source information corresponding to the selection operation from the to-be-processed source information group set to obtain an updated second source information group set, and sending the second source information group set to the display terminal.
[0081] In some embodiments, the specific implementation of steps 304-305 and the technical effects brought about can be referred to Figure 2 The corresponding steps 203-204 in the embodiments are not described in detail here.
[0082] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 4 The process 300 of the number source information sending method of some corresponding embodiments embodies the step of updating the number source information group set to be processed when the number source information (for example, the newly added reservable number source information by the doctor) is obtained. When the number source information is obtained, the adding position can be determined according to the date and time period included in the number source information, and the number source information is added. After that, the added first number source information group set is sent to the display terminal for the user to perform an appointment selection operation. Since the number source information of different dates and time periods is divided in the cache, when adding new number source information, only the number source information of the corresponding cache area can be updated according to the included date and time period. The process of matching with a large amount of irrelevant number source information is avoided. Thereby, the time consumed by the number source information update is further reduced. Furthermore, the time consumed by the process from obtaining to sending the number source information can be reduced.
[0083] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a signal source information sending device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0084] like Figure 5As shown in the figure, the number source information sending device 500 of some embodiments includes: a first determination unit 501, a second determination unit 502, a first sending unit 503, and a second sending unit 504. Among them, the first determination unit 501 is configured to determine a set of to-be-processed number source information groups stored in a buffer area corresponding to pre-acquired number source information; the second determination unit 502 is configured to determine initial number source information that matches the pre-acquired number source information in the set of to-be-processed number source information groups, and add the pre-acquired number source information to a number source information group corresponding to the initial number source information to obtain an added first set of number source information groups; the first sending unit 503 is configured to send the first set of number source information groups to a display terminal; the second sending unit 504 is configured to, in response to detecting a selection operation on the number source information in the first set of number source information groups, remove the target number source information corresponding to the selection operation from the first set of number source information groups to obtain an updated second set of number source information groups, and send the second set of number source information groups to the display terminal.
[0085] In some optional implementation manners of some embodiments, the number source information includes: a date and a time period; and the number source information sending device 500 may further include: an adding unit (not shown in the figure) and a sending unit (not shown in the figure). Among them, the adding subunit is configured to, in response to receiving cancellation information of the selection operation, add the target number source information to the set of to-be-processed number source information groups based on the date and time period included in the target number source information to obtain an added third set of number source information groups; the sending subunit is configured to send the added third set of number source information groups to a display terminal.
[0086] In some optional implementation manners of some embodiments, the first determination unit 501 may include: a determination subunit (not shown in the figure), configured to determine a set of to-be-processed number source information groups stored in a buffer area corresponding to the date included in the pre-acquired number source information.
[0087] In some optional implementation manners of some embodiments, the second determination unit 502 may include: a target to-be-processed number source information determination subunit, configured to determine target to-be-processed number source information in the set of to-be-processed number source information groups whose included time period matches the time period included in the pre-acquired number source information to obtain a set of target to-be-processed number source information; a number source information adding subunit, configured to add the pre-acquired number source information to target to-be-processed number source information groups corresponding to each piece of target to-be-processed number source information in the set of target to-be-processed number source information to obtain an added first set of number source information groups.
[0088] In some alternative implementations of some embodiments, the above-mentioned second sending unit 504 may include: a set determination subunit of source information to be cleared, configured to determine a first set of source information groups in the buffer corresponding to the date included in the above-mentioned target source information as the set of source information groups to be cleared; a target information group to be cleared determination subunit, configured to determine the source information group corresponding to the time period included in the above-mentioned target source information in the above-mentioned set of source information groups to be cleared as the target source information group to be cleared; a target source information clearing subunit, configured to clear the above-mentioned target source information from the above-mentioned target source information group to be cleared to obtain an updated second set of source information groups.
[0089] In some alternative implementations of some embodiments, the above-mentioned second sending unit 504 may further include: a second set of source information clearing subunit, configured to, in response to determining that the number of second source information in the above-mentioned second set of source information is equal to zero, clear the above-mentioned second set of source information from the above-mentioned second set of source information groups.
[0090] In some alternative implementations of some embodiments, the above-mentioned adding subunit may include: a target set determination subunit of source information groups, configured to determine a set of source information groups to be processed stored in the buffer corresponding to the date included in the above-mentioned target source information as the target set of source information groups; a target source information group determination subunit, configured to determine the source information group corresponding to the time period included in the above-mentioned target source information in the above-mentioned target set of source information groups as the target source information group; a target source information adding subunit, configured to, in response to determining the existence of the above-mentioned target source information group, add the above-mentioned target source information to the above-mentioned target source information group.
[0091] In some alternative implementations of some embodiments, the above-mentioned adding subunit may further include: an updated source information group creation module, configured to, in response to determining the non-existence of the above-mentioned target source information group, create an updated source information group in the set of source information groups corresponding to the above-mentioned target source information; an updated source information group adding module, configured to add the above-mentioned target source information to the above-mentioned updated source information group.
[0092] It can be understood that the various units described in the apparatus 500 correspond to the respective steps in the method described with reference to Figure 3 Therefore, the operations, features, and beneficial effects described above for the method also apply to the apparatus 500 and the units included therein, and will not be elaborated herein.
[0093] Such as Figure 6As shown, the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may perform various appropriate actions and processes according to a program stored in the read-only memory (ROM) 602 or a program loaded from the storage device 608 into the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0094] Generally, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 an electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had. Figure 6 Each block shown in may represent a device or, as needed, multiple devices.
[0095] In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such some embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the methods of some embodiments of the present disclosure are executed.
[0096] It should be noted that, in some embodiments of the present disclosure, the above-mentioned computer-readable medium may be a computer-readable signal medium, 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0097] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed network.
[0098] The above computer-readable medium may be included in the above electronic device; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to: determine a set of to-be-processed number source information groups stored in a buffer area corresponding to pre-acquired number source information; determine initial number source information that matches the pre-acquired number source information in the above set of to-be-processed number source information groups, and add the pre-acquired number source information to the number source information group corresponding to the initial number source information to obtain a first set of number source information groups after addition; send the above first set of number source information groups to a display terminal; in response to detecting a selection operation on the number source information in the above first set of number source information groups, remove the target number source information corresponding to the selection operation from the above first set of number source information groups to obtain an updated second set of number source information groups, and send the above second set of number source information groups to the above display terminal.
[0099] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, 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 may be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0100] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations 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 diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0101] The units described in some embodiments of the present disclosure can be implemented in software or in hardware. The described units can also be provided in a processor. For example, it can be described as: a processor includes a first determination unit, a second determination unit, a first transmission unit, and a second transmission unit. Among them, the names of these units do not constitute a limitation to the unit itself in some cases. For example, the first transmission unit can also be described as "the unit that transmits the above-mentioned first source information group set to the display terminal".
[0102] The functions described above can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.
[0103] The above description is only some preferred embodiments of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, technical solutions formed by mutually replacing the above features with (but not limited to) technical features having similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A method for sending number source information, comprising: Determine the set of groups of to-be-processed source information stored in the buffer area corresponding to the pre-acquired source information, where the time information included in the source information stored in one buffer area is the same; Determine the initial source information in the set of groups of to-be-processed source information that matches the pre-acquired source information, and add the pre-acquired source information to the group of source information corresponding to the initial source information to obtain the first set of source information groups after addition; Send the first set of source information groups to the display terminal; In response to detecting a selection operation on the source information in the first set of source information groups, remove the target source information corresponding to the selection operation from the first set of source information groups to obtain the updated second set of source information groups, and send the second set of source information groups to the display terminal.
2. The method according to claim 1, wherein, The source information includes: date and time period; and The method further includes: In response to receiving the cancellation information of the selection operation, based on the date and time period included in the target source information, add the target source information to the set of groups of to-be-processed source information to obtain the third set of source information groups after addition; Send the third set of source information groups after addition to the display terminal.
3. The method according to claim 2, wherein, The determining the set of groups of to-be-processed source information stored in the buffer area corresponding to the pre-acquired source information includes: Determine the set of groups of to-be-processed source information stored in the buffer area corresponding to the date included in the pre-acquired source information.
4. The method according to claim 3, wherein, The determining the initial source information in the set of groups of to-be-processed source information that matches the pre-acquired source information, and adding the pre-acquired source information to the group of source information corresponding to the initial source information to obtain the first set of source information groups after addition includes: Determine the target to-be-processed source information in the set of groups of to-be-processed source information whose included time period matches the time period included in the pre-acquired source information to obtain a set of target to-be-processed source information; Add the pre-acquired source information to the groups of target to-be-processed source information corresponding to each target to-be-processed source information in the set of target to-be-processed source information to obtain the first set of source information groups after addition.
5. The method according to claim 2, wherein, The removing the target source information corresponding to the selection operation from the first set of source information groups to obtain the updated second set of source information groups includes: Determine the first set of source information groups in the buffer area corresponding to the date included in the target source information as the set of source information groups to be cleared; Determine the group of source information corresponding to the time period included in the target source information in the set of source information groups to be cleared as the target group of source information to be cleared; Remove the target source information from the target group of source information to be cleared to obtain the updated second group of source information.
6. The method according to claim 5, wherein, The removing the target source information corresponding to the selection operation from the first set of source information groups to obtain the updated second set of source information groups further includes: In response to determining that the number of second source information in the second group of source information is equal to zero, remove the second group of source information from the second set of source information groups.
7. The method according to claim 2, wherein, Based on the date and time period included in the target source information, adding the target source information to the set of to-be-processed source information groups includes: Determining the set of to-be-processed source information groups stored in the buffer corresponding to the date included in the target source information as the target source information group set; Determining the source information group corresponding to the time period included in the target source information in the target source information group set as the target source information group; In response to determining the existence of the target source information group, adding the target source information to the target source information group.
8. The method according to claim 7, wherein, Based on the date and time period included in the target source information, adding the target source information to the set of to-be-processed source information groups further includes: In response to determining the non-existence of the target source information group, creating an updated source information group in the set of source information groups corresponding to the target source information; Adding the target source information to the updated source information group.
9. A device for sending number source information, comprising: A first determination unit configured to determine the set of to-be-processed source information groups stored in the buffer corresponding to the pre-acquired source information, wherein the time information included in the source information stored in one buffer is the same; A second determination unit configured to determine the initial source information that matches the pre-acquired source information in the set of to-be-processed source information groups, and adding the pre-acquired source information to the source information group corresponding to the initial source information to obtain the first set of source information groups after addition; A first sending unit configured to send the first set of source information groups to the display terminal; A second sending unit configured to, in response to detecting a selection operation on the source information in the first set of source information groups, clear the target source information corresponding to the selection operation from the first set of source information groups to obtain an updated second set of source information groups, and send the second set of source information groups to the display terminal.
10. An electronic device, comprising: One or more processors; A storage device having stored thereon one or more programs, When the one or more programs are executed by the one or more processors, causing the one or more processors to implement the method according to any one of claims 1-8.
11. A computer-readable medium having a computer program stored thereon, wherein, The program, when executed by the processor, implements the method according to any one of claims 1-8.
Citation Information
Patent Citations
Information storage method and device
CN110019263A
Interface calling and counting method and device
CN110083501A