State control method and device
By automatically setting the status of the controller according to preset date and time rules, it solves the resource waste and time deviation problems caused by manual control by business personnel and achieves the accuracy of event processing time.
Patent Information
- Application Number
- CN202211183410.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-09-27
AI Technical Summary
When the event processing time of the target event arrives, the business personnel need to manually control the controller to change the operation status of the target event, resulting in waste of human resources and time deviation, and unable to guarantee the accuracy of the event processing time.
By obtaining the current date and time, the controller state is automatically set to the first operating state or the second operating state, and the preset date rules and time rules are used to control the opening or closing state of the resource transfer event to avoid manual intervention.
Save human resources, avoid inconsistencies between event processing time and pre-set time, and ensure the accuracy of event processing time.
Smart Images

Figure CN115639757B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of task scheduling, and in particular to a state control method and device. Background Art
[0002] In daily life, business personnel often need to manually control a controller that can change the target event's operating state when the target event's event processing time arrives. For example, using the controller to set the target event from a first operating state to a second operating state, where the first operating state and the second operating state are used to represent the two states of the target event. In the process of controlling the target event's operating state through the controller, business personnel need to pay attention to the arrival of the event processing time, which not only consumes human resources but also may cause certain time deviations, making it impossible to ensure that the actual event processing time is consistent with the pre-set event processing time. Summary of the Invention
[0003] To solve existing technical problems, the embodiments of the present application provide a state control method and device, which can save human resources and ensure the accuracy of event processing time.
[0004] In a first aspect, an embodiment of the present application provides a state control method, applied to a server, the method comprising:
[0005] Get the current date and time;
[0006] If the current date and the current time meet a preset first rule, setting the state of the controller to a first operating state; the first rule includes a preset first date rule and a preset first time; the first operating state is used to indicate that the resource transfer event is in an enabled state;
[0007] If the current date and the current time meet the preset second rule, the state of the controller is set to the second operating state; the second rule includes a preset second date rule and a preset second time; the second operating state is used to represent that the resource transfer event is in a closed state.
[0008] The state control method provided by the embodiment of the present application can obtain the current date and the current time; if the current date and the current time meet the preset first rule, the state of the controller is set to the first operating state; if the current date and the current time meet the preset second rule, the state of the controller is set to the second operating state; wherein the first operating state is used to represent that the resource transfer event is in the open state; the second operating state is used to represent that the resource transfer event is in the closed state; the first rule contains the preset first date rule and the preset first time; the second rule contains the preset second date rule and the preset second time. Through this method, the state of the controller can be automatically set, therefore, not only can human resources be saved, but also the situation where the event processing time is inconsistent with the preset event processing time can be avoided, thereby ensuring the accuracy of the event processing time.
[0009] In an optional embodiment, obtaining the current date and the current time includes:
[0010] Acquire first state information of the controller; the first state information indicates whether the controller is in a working state or a non-working state;
[0011] If it is determined according to the first status information that the controller is in the working state, the current date and the current time are obtained.
[0012] In an optional embodiment, if the current date meets the preset first date rule and the current time is consistent with the preset first time, setting the state of the controller to the first operating state includes:
[0013] If the current date and the current time meet a preset first rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0014] If it is determined according to the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state.
[0015] In an optional embodiment, if the current date meets the preset second date rule and the current time is consistent with the preset second time, setting the state of the controller to the second operating state includes:
[0016] If the current date and the current time meet a preset second rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0017] If it is determined according to the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state.
[0018] In a second aspect, an embodiment of the present application further provides a state control device, the device comprising:
[0019] Acquisition unit, used to obtain the current date and current time;
[0020] A setting unit is used to set the state of the controller to a first operating state if the current date and the current time meet a preset first rule; the first rule includes a preset first date rule and a preset first time; the first operating state is used to indicate that the resource transfer event is in an open state; if the current date and the current time meet a preset second rule, the state of the controller is set to a second operating state; the second rule includes a preset second date rule and a preset second time; the second operating state is used to indicate that the resource transfer event is in a closed state.
[0021] In an optional embodiment, the acquiring unit is specifically configured to:
[0022] Acquire first state information of the controller; the first state information indicates whether the controller is in a working state or a non-working state;
[0023] If it is determined according to the first status information that the controller is in the working state, the current date and the current time are obtained.
[0024] In an optional embodiment, the setting unit is specifically configured to:
[0025] If the current date and the current time meet the preset first rule, obtaining the second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0026] If it is determined according to the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state.
[0027] In an optional embodiment, the setting unit is specifically configured to:
[0028] If the current date and the current time meet a preset second rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0029] If it is determined according to the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state.
[0030] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the state control method of the first aspect is implemented.
[0031] In a fourth aspect, an embodiment of the present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the processor implements the state control method of the first aspect.
[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device performs the steps of any one of the above-mentioned state control methods.
[0033] The technical effects brought about by any one of the implementation methods of the second to fifth aspects can refer to the technical effects brought about by the implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0035] Figure 1 A flow chart of a state control method provided in an embodiment of the present application;
[0036] Figure 2 A flowchart of another state control method provided in an embodiment of the present application;
[0037] Figure 3 A flowchart of another state control method provided in an embodiment of the present application;
[0038] Figure 4 A structural block diagram of a state control device provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0041] In order to save human resources, avoid the situation where the event processing time is inconsistent with the pre-set event processing time, and ensure the accuracy of the event processing time, the embodiment of the present application provides a state control method and device.
[0042] It should be noted that the terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0043] In the technical solution of this application, the collection, dissemination, and use of data comply with the requirements of relevant national laws and regulations.
[0044] The technical solutions provided by the embodiments of the present application are described below with reference to the accompanying drawings.
[0045] In daily life, business personnel often need to manually control the controller that can change the target event's operational status when the target event's event processing time arrives. In the process of controlling the target event's operational status through the controller, business personnel need to pay attention to the arrival of the event processing time. This not only consumes human resources, but also may cause certain time deviations, and it is impossible to ensure that the actual event processing time is consistent with the preset event processing time.
[0046] In view of this, an embodiment of the present application provides a state control method and device, which can obtain the current date and current time; if the current date meets the preset first date rule, and the current time is consistent with the preset first time, the state of the controller is set to the first operating state; if the current date meets the preset second date rule, and the current time is consistent with the preset second time, the state of the controller is set to the second operating state; wherein the first operating state is used to represent that the resource transfer event is in the open state; the second operating state is used to represent that the resource transfer event is in the closed state. Through this method, the state of the controller can be automatically set, therefore, not only can human resources be saved, but also the situation where the event processing time is inconsistent with the preset event processing time can be avoided, thereby ensuring the accuracy of the event processing time.
[0047] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.
[0048] The state control method provided in the embodiment of the present application is further explained below. Figure 1 As shown, the following steps are included:
[0049] Step S101, obtaining the current date and time.
[0050] In an embodiment of the present application, the format of the current date obtained can be XX / XX / XX / Week X, or XX / XX / XX / Week X, and this application does not limit this; the format of the current time obtained can be X hours, X minutes, and X seconds, or X hours, X minutes, and this application does not limit this.
[0051] In an optional embodiment, when obtaining the current date and current time, the server may first obtain first status information of the controller. If the controller is determined to be in an operating state based on the first status information of the controller, the current date and current time are obtained. The first status information is used to indicate whether the controller is in an operating state or a non-operating state.
[0052] Specifically, assuming that PFT_OCC_PD_00001157_AUTO is the first state information identifier of the controller, when the value of PFT_OCC_PD_00001157_AUTO is 01, it indicates that the controller is in an operating state, and when the value of PFT_OCC_PD_00001157_AUTO is 02, it indicates that the controller is in a non-operating state. When obtaining the current date and time, the server can first obtain the value of PFT_OCC_PD_00001157_AUTO. If the value of PFT_OCC_PD_00001157_AUTO is 01, indicating that the controller is in an operating state, the current date and time are obtained. If the value of PFT_OCC_PD_00001157_AUTO is 02, indicating that the controller is in a non-operating state, no subsequent operations are performed.
[0053] In an embodiment of the present application, the first state information of the controller can be pre-set by the business personnel. After receiving the setting operation of the business personnel for the first state information of the controller, the server can also record and store the business personnel's personnel identification Opr_Trid, operation time TMS, and the first state information PFT_OCC_PD_00001157_AUTO of the controller after the setting is completed.
[0054] Step S102: If the current date and the current time meet a preset first rule, the state of the controller is set to a first operating state.
[0055] Among them, the first operation state is used to characterize that the resource transfer event is in the open state. The first rule includes a preset first date rule and a preset first moment. The first date rule can be not XX month XX day and week X, or XX month XX day and not week X, or XX month XX day and week X. The first moment can include at least one moment information.
[0056] In an optional embodiment, if the current date and current time meet a preset first rule, the second state information of the controller can be obtained. If it is determined based on the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state, wherein the second state information is used to characterize whether the controller is in the first operating state or the second operating state.
[0057] Specifically, assuming that PFT_OCC_PD_FXDK is the second state information identifier of the controller, when the value of PFT_OCC_PD_FXDK is 01, it indicates that the controller is in the first operating state. When the value of PFT_OCC_PD_FXDK is 02, it indicates that the controller is in the second operating state. If the current date and current time meet the preset first rule, the server can obtain the value of PFT_OCC_PD_FXDK. If the value of PFT_OCC_PD_FXDK is 01, the state of the controller remains unchanged; if the value of PFT_OCC_PD_FXDK is 02, the controller is set from the second operating state to the first operating state.
[0058] For example, assume that the first date rule contains three rules, the first rule is Mondays other than January 1, the second rule is January 2nd other than Saturday, and the third rule is January 2nd other than Sunday. The first time is 7:00 a.m. The first rule is that the current date meets the preset first date rule, and the current time is consistent with the preset first time.
[0059] In one embodiment, assuming that the current date obtained is Monday, January 3, and the current time obtained is 8:00 a.m., that is, the current date meets the preset first date rule, but the current time is inconsistent with the preset first time, that is, the current date and the current time do not meet the preset first rule, and the server ends the processing status.
[0060] In another embodiment, assuming that the current date obtained is Monday, January 3, and the current time obtained is seven o'clock, that is, the current date meets the preset first date rule, and the current time is consistent with the preset first time, that is, the current date and the current time meet the preset first rule, the server can obtain the second state information of the controller, that is, obtain the value of PFT_OCC_PD_FXDK. If the value of PFT_OCC_PD_FXDK is 01, it indicates that the controller is in the first operating state, and the state of the controller remains unchanged; if the value of PFT_OCC_PD_FXDK is 02, it indicates that the controller is in the second operating state, and the controller is set from the second operating state to the first operating state.
[0061] In an embodiment of the present application, a business person can also set the second state information of the controller. Therefore, the second state information of the controller can be identified by four values. For example, when the value of PFT_OCC_PD_FXDK is 01, it indicates that the controller is in the first automatic operation state; when the value of PFT_OCC_PD_FXDK is 02, it indicates that the controller is in the second automatic operation state; when the value of PFT_OCC_PD_FXDK is 03, it indicates that the controller is in the first manual operation state; when the value of PFT_OCC_PD_FXDK is 04, it indicates that the controller is in the second manual operation state. Each time a change operation of the controller's second state information is received, the server can also record and store the business person's personnel identification Opr_Trid, the operation time TMS, and the controller's second state information PFT_OCC_PD_FXDK after the setting is completed.
[0062] Step S103: If the current date and the current time meet the preset second rule, the state of the controller is set to the second operating state.
[0063] Among them, the second operation state is used to characterize that the resource transfer event is in a closed state. The second rule includes a preset second date rule and a preset second moment. The second date rule can be not XX month XX day and week X, or XX month XX day and not week X, or XX month XX day and week X. The second moment can include at least one moment information.
[0064] In an optional embodiment, if the current date and current time meet a preset second rule, the second state information of the controller is obtained; if it is determined based on the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state; the second state information is used to characterize whether the controller is in the first operating state or the second operating state.
[0065] Specifically, assuming that PFT_OCC_PD_FXDK is the second state information identifier of the controller, when the value of PFT_OCC_PD_FXDK is 01, it indicates that the controller is in the first operating state. When the value of PFT_OCC_PD_FXDK is 02, it indicates that the controller is in the second operating state. If the current date and current time meet the preset second rule, the server can obtain the value of PFT_OCC_PD_FXDK. If the value of PFT_OCC_PD_FXDK is 01, the controller is set from the first operating state to the second operating state; if the value of PFT_OCC_PD_FXDK is 02, the state of the controller remains unchanged.
[0066] For example, assume that the second date rule contains two rules, the first rule is Saturday and the second rule is December 31st, the second time contains two times, the first time is 4:00 a.m. and the second time is 4:00 p.m., and the second rule includes that when the second date rule is Saturday, the second time is 4:00 a.m.; when the second date rule is December 31st, the second time is 4:00 p.m.
[0067] In one embodiment, assuming that the current date obtained is March 9 and is a Saturday, and the current time is three o'clock in the afternoon, that is, the current date meets the preset second date rule, but the current time is inconsistent with the preset second time, that is, the current date and the current time do not meet the preset second rule, and the server ends the processing status.
[0068] In another embodiment, assuming that the current date obtained is March 9 and is a Saturday, and the current time is 4 a.m., that is, the current date meets the preset second date rule, and the current time is consistent with the preset second time, that is, the current date and the current time meet the preset second rule, the server obtains the second state information of the controller, that is, obtains the value of PFT_OCC_PD_FXDK. If the value of PFT_OCC_PD_FXDK is 01, if it indicates that the controller is in the first operating state, the controller is set from the first operating state to the second operating state; if the value of PFT_OCC_PD_FXDK is 02, if it indicates that the controller is in the second operating state, the state of the controller remains unchanged.
[0069] Through the above method, the state of the controller can be automatically set and the changes in the first state information and the second state information of the controller can be recorded. Therefore, it can not only save human resources, avoid the inconsistency between the event processing time and the pre-set event processing time, and ensure the accuracy of the event processing time, but also facilitate the later tracing of the change information of the first state information and the second state information of the controller.
[0070] Figure 2 The method for setting the first operating state of the controller in the state control method provided in the embodiment of the present application is shown as follows: Figure 2 Said method comprises:
[0071] Step S201: Acquire first state information of the controller.
[0072] Step S202 , determining whether the controller is in an on state according to the first state information; if so, executing step S203 , if not, executing step S204 .
[0073] Step S203: Get the current date and time.
[0074] Step S204, end the processing.
[0075] Step S205: whether the current date and the current time meet the preset first rule; if so, execute step S206; if not, execute step S204.
[0076] Step S206: Acquire second state information of the controller.
[0077] Step S207 , determining whether the controller is in the first operating state according to the second state information; if so, executing step S208 , if not, executing step S209 .
[0078] Step S208: Keep the state of the controller unchanged.
[0079] Step S209: Setting the state of the controller from the second operating state to the first operating state.
[0080] Figure 3 The method for setting the second operating state of the controller in the state control method provided in the embodiment of the present application is shown. Figure 3 Said method comprises:
[0081] Step S301: Acquire first state information of the controller.
[0082] Step S302 , determining whether the controller is in an on state according to the first state information; if so, executing step S303 , if not, executing step S304 .
[0083] Step S303: Get the current date and time.
[0084] Step S304, end the processing.
[0085] Step S305: whether the current date and the current time meet the preset second rule; if so, execute step S306; if not, execute step S304.
[0086] Step S306: Acquire second state information of the controller.
[0087] Step S307 , determining whether the controller is in the second operating state according to the second state information; if so, executing step S308 , if not, executing step S309 .
[0088] Step S308: Keep the state of the controller unchanged.
[0089] Step S309: Setting the state of the controller from the first operating state to the second operating state.
[0090] Based on the same inventive concept, the present invention also provides a state control device. Since the device corresponds to the state control method of the present invention and the principle of solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated.
[0091] Figure 4 A schematic diagram of the structure of a state control device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device includes: an acquisition unit 401 and a setting unit 402, wherein:
[0092] Acquisition unit 401, used to obtain the current date and current time;
[0093] The setting unit 402 is used to set the state of the controller to the first operating state if the current date and the current time meet the preset first rule; the first rule includes the preset first date rule and the preset first time; the first operating state is used to represent that the resource transfer event is in the open state; if the current date and the current time meet the preset second rule, the state of the controller is set to the second operating state; the second rule includes the preset second date rule and the preset second time; the second operating state is used to represent that the resource transfer event is in the closed state.
[0094] In an optional embodiment, the acquiring unit 401 is specifically configured to:
[0095] Acquire first state information of the controller; the first state information indicates whether the controller is in a working state or a non-working state;
[0096] If it is determined according to the first status information that the controller is in the working state, the current date and the current time are obtained.
[0097] In an optional embodiment, the setting unit 402 is specifically configured to:
[0098] If the current date and the current time meet the preset first rule, obtaining the second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0099] If it is determined according to the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state.
[0100] In an optional embodiment, the setting unit 402 is specifically configured to:
[0101] If the current date and the current time meet a preset second rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state;
[0102] If it is determined according to the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state.
[0103] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can implement the state control method provided in the embodiment of the present application, such as Figure 5 As shown, the device includes a memory 501 , a communication module 503 and one or more processors 502 .
[0104] Memory 501 is used to store computer programs executed by processor 502. Memory 501 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and programs required for running instant messaging functions, while the data storage area may store various instant messaging messages and operating instruction sets.
[0105] Memory 501 may be a volatile memory, such as random-access memory (RAM); a non-volatile memory, such as read-only memory, flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 501 may be a combination of the above memories.
[0106] The processor 502 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 502 is configured to implement the above-mentioned state control method when calling the computer program stored in the memory 501 .
[0107] The communication module 503 is used to communicate with electronic devices and other terminals or servers.
[0108] The specific connection medium between the memory 501, the communication module 503 and the processor 502 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 504. Figure 5 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus 504 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0109] Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium, a computer program product comprising: computer program code, which, when executed on a computer, causes the computer to execute any of the state control methods discussed above. Because the principles underlying the problems solved by the computer-readable storage medium are similar to those of the state control method, the implementation of the computer-readable storage medium can be referred to as the implementation of the method, and any repetitions will not be repeated.
[0110] Based on the same inventive concept, embodiments of the present application further provide a computer program product, comprising: computer program code, which, when executed on a computer, causes the computer to execute any of the state control methods discussed above. Because the principles underlying the problems solved by the aforementioned computer program products are similar to those of the state control methods, the implementation of the aforementioned computer program products can be referenced to the implementation of the methods, and any repetitions will not be repeated.
[0111] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0112] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0113] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0115] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A state control method, characterized in that: Applied to a server, the method includes: Get the current date and time; If the current date and the current time meet a preset first rule, setting the state of the controller to a first operating state; the first rule includes a preset first date rule and a preset first time; the first operating state is used to indicate that the resource transfer event is in an enabled state; If the current date and the current time meet a preset second rule, setting the state of the controller to a second operating state; the second rule includes a preset second date rule and a preset second time; the second operating state is used to indicate that the resource transfer event is in a closed state; The obtaining of the current date and time includes: Acquire first state information of the controller; the first state information indicates whether the controller is in a working state or a non-working state; If it is determined that the controller is in a working state according to the first state information, then obtaining the current date and the current time; wherein the first state information is preset; In response to the completion of the setting operation of the first state information of the controller, an operation log of setting the first state information is recorded and stored.
2. The method according to claim 1, characterized in that If the current date and the current time meet a preset first rule, setting the state of the controller to the first operating state includes: If the current date and the current time meet a preset first rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state; If it is determined according to the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state.
3. The method according to claim 1, characterized in that If the current date and the current time meet a preset second rule, setting the state of the controller to the second operating state includes: If the current date and the current time meet a preset second rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state; If it is determined according to the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state.
4. A state control device, characterized in that: The device comprises: Acquisition unit, used to obtain the current date and current time; A setting unit is configured to set the state of the controller to a first operating state if the current date and the current time meet a preset first rule; the first rule includes a preset first date rule and a preset first time; the first operating state is used to indicate that the resource transfer event is in an open state; and to set the state of the controller to a second operating state if the current date and the current time meet a preset second rule; the second rule includes a preset second date rule and a preset second time; the second operating state is used to indicate that the resource transfer event is in a closed state; The acquisition unit is specifically configured to: Acquire first state information of the controller; the first state information indicates whether the controller is in a working state or a non-working state; If it is determined that the controller is in a working state according to the first state information, then obtaining the current date and the current time; wherein the first state information is preset; A recording unit is configured to record and store an operation log of setting the first state information in response to completion of the setting operation of the first state information of the controller.
5. The device according to claim 4, characterized in that The setting unit is specifically used for: If the current date and the current time meet the preset first rule, obtaining the second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state; If it is determined according to the second state information that the controller is in the second operating state, the controller is set from the second operating state to the first operating state.
6. The device according to claim 4, characterized in that The setting unit is specifically used for: If the current date and the current time meet a preset second rule, obtaining second state information of the controller; the second state information is used to indicate whether the controller is in the first operating state or the second operating state; If it is determined according to the second state information that the controller is in the first operating state, the controller is set from the first operating state to the second operating state.
7. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 3 is implemented.
9. A computer program product, characterized in that It includes computer instructions, which are stored in a computer-readable storage medium; when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device performs the steps of any method in claims 1 to 3.
Citation Information
Patent Citations
Timing transaction task processing method and device, computer equipment and storage medium
CN109584060A