CN114237694A - Data change method and device, terminal equipment and storage medium - Google Patents
Data change method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN114237694A CN114237694A CN202111570939.8A CN202111570939A CN114237694A CN 114237694 A CN114237694 A CN 114237694A CN 202111570939 A CN202111570939 A CN 202111570939A CN 114237694 A CN114237694 A CN 114237694A
- Authority
- CN
- China
- Prior art keywords
- attribute
- configuration
- value
- updating
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a data change method, a data change device, terminal equipment and a storage medium, wherein the method comprises the following steps: responding to a selection instruction, and selecting a configuration object and configuration attributes of the configuration object; responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value; and updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period. The data change can be realized conveniently and automatically, and the communication cost and the labor cost are reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data change method, a data change device, terminal equipment and a storage medium.
Background
The requirements of services in the data platform are flexible and changeable, for example, different parameters of different service objects need to be configured for various service activities. With the diversified development of business activities, different parameters of each business object need to be changed frequently.
In the prior art, a research and development side person needs to execute a code according to data provided by a business side person to implement instant configuration on a business object.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art: frequent data change not only increases communication cost among departments, but also requires research and development side personnel to frequently maintain codes to realize data change, so that a large amount of labor cost is consumed.
Disclosure of Invention
The embodiment of the invention provides a data change method, a data change device, terminal equipment and a storage medium, which can realize convenient and automatic data change and reduce communication cost and labor cost.
In a first aspect, an embodiment of the present invention provides a data changing method, including:
responding to a selection instruction, and selecting a configuration object and configuration attributes of the configuration object;
responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value;
and updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period.
In a second aspect, an embodiment of the present invention provides a data changing apparatus, including:
the selection module is used for responding to a selection instruction and selecting a configuration object and the configuration attribute of the configuration object;
the configuration module is used for responding to a configuration instruction, and configuring the attribute updating value of the configuration attribute and the effective time period of the attribute updating value;
and the updating module is used for updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data alteration method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a data change method according to any embodiment of the present invention.
According to the data change method, the data change device, the terminal equipment and the storage medium, the configuration object and the configuration attribute of the configuration object are selected in response to the selection instruction; responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value; and updating the attribute original value of the configuration attribute according to the attribute update value in the effective time period.
The user only needs to input instructions such as selection, configuration and the like to execute the device of the data change method, and the automatic data change can be realized, so that business side personnel who do not know codes can conveniently change the data, and the communication cost among departments is saved. In addition, the data change method can also support the selection of the configuration attributes needing to be configured in at least one configuration object under different scenes, thereby meeting flexible and diverse requirements on services. In addition, the data change method can also support the configuration of an effective time period, can realize the data update in a certain time period, does not need frequent manual operation, and saves the labor cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a data change method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data modification method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a selection interface in a data modification method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a configuration interface in a data change method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a flow in a data change method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data modification apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating a data modification apparatus according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 shows a flowchart of a data modification method according to an embodiment of the present invention. The data change method provided by the embodiment of the invention can be applied to the condition of changing the attribute value of the configuration attribute of the configuration object, for example, the condition of changing the attribute value of the attribute of different business objects aiming at different business activities by utilizing a server of a business platform. The method may be performed by a data modification apparatus, which is implemented in software and/or hardware, and the apparatus may be integrated into a data modification system and configured in a terminal device, such as a server, along with the data modification system.
As shown in fig. 1, the data changing method provided in the embodiment of the present invention includes the following steps:
s110, responding to the selection instruction, and selecting the configuration object and the configuration attribute of the configuration object.
Wherein the configuration object may belong to a business service provided by a service provider. The configuration attributes of the configuration object may belong to service items in the business service. For example, when the data change method is applied to the e-commerce field, the configuration object may be a service provided by a service provider and having a single-face partial data hidden, so as to avoid user data leakage and improve the security and privacy of the user data. At this time, the configuration attribute of the configuration object may include a switch attribute of the business service, and the like.
In the embodiment of the invention, the device for executing the data change method can be integrated in the data change system, and the data change system can provide a user interface for a user to input the operation instruction.
For example, the data modification system may provide a selection interface for a user to input a selection instruction. In the selection interface, a plurality of controls for elements available for selection can be included. The selectable elements may include configurable objects, configurable attributes and the like. The selection instruction of the element can be generated by triggering the control of the element.
Based on the selection instruction, the selection of the elements can be realized. For example, a configuration object to be configured may be selected from the configurable objects; and selecting the configuration attribute needing to be configured from the configurable attributes of the configuration object. It is understood that the configurable objects are at least one, and the selected configuration objects may be at least one of the configurable objects; the configurable attributes of the configuration object include at least one item, and the selected configuration attributes may be at least one of the configurable attributes.
By supporting the selection of the configuration objects and the configuration attributes, the selection of different configurable objects and the attributes needing to be configured in the configuration objects can be realized in different scenes. That is, in different scenes, the selected configuration objects may be different, and the configuration attributes of the same selected configuration object may also be different, so that flexible and diverse requirements on services can be met.
And S120, responding to the configuration instruction, configuring the attribute update value of the configuration attribute and the validation time period of the attribute update value.
In this embodiment, the data change system may further generate and display a configuration interface according to the selected configuration object and the configuration attribute, so that a user may input a configuration instruction. In the configuration interface, a configuration control for configuring the configuration attribute of the object may be included, and a configuration control for an effective time period may also be included. The configuration command can be generated through the operation of the configuration control.
Based on the configuration instruction, the configuration attribute of the selected configuration object can be configured with the attribute update value, and the validity time period can be configured. Wherein the validation time period may be considered as a time range of the validation time of the attribute update value. That is, within the time range, the attribute original value may be replaced with the attribute updated value; outside this time range, the attribute value of the configuration attribute remains the attribute original value.
Typically, the attribute update value is different from the attribute original value. The effective time period may include a start value and an end value, the start value of the effective time period may range from the current time to any future time, the end value of the effective time period may range from the start value to any future time, and the end value is different from the start value.
And S130, updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period.
When the current time reaches the initial value, the attribute original value of the configuration attribute can be updated according to the attribute update value. The method specifically comprises the following steps: after configuration is completed, the attribute update values may be stored; and when the current time reaches the initial value, replacing the original attribute value of the configuration attribute corresponding to the updated attribute value according to the stored updated attribute value so as to update the attribute value of the configuration attribute.
And when the current time reaches the termination value, restoring the attribute update value of the configuration attribute according to the attribute original value. The method specifically comprises the following steps: and when the current time reaches the termination value, replacing the attribute update value of the corresponding configuration attribute with the original value of the attribute so as to restore the attribute value of the configuration attribute.
In the traditional data change process, research and development side personnel are needed, and when the business side personnel provide time, code writing and running are carried out according to the change data provided by the business side personnel, so that the data can be changed immediately. Therefore, the development personnel need to perform checkpoint operation on the codes, so that data change is very inconvenient. Moreover, frequent data changes increase the communication cost between the business side and the research and development side, and also increase the labor cost of the research and development side.
The data execution method provided in this embodiment can change the attribute value of the configuration attribute of the configuration object based on the operation instruction input by the user, such as the selection instruction and the configuration instruction. The data change is realized without writing the running code by research personnel, so that the data change can be conveniently carried out by business side personnel who do not know the code, and the communication cost among departments is saved. By supporting the configuration of the effective time period, the data can be updated or restored at a certain time node without frequent manual checkpoint operation, so that the convenience of data change is further improved, and the labor cost is saved.
In some optional embodiments, further comprising: when the current time reaches the initial value of the effective time interval, the attribute original value of the configuration attribute is backed up; correspondingly, after updating the attribute original value of the configuration attribute according to the attribute update value, the method further includes: and when the current time reaches the termination value of the effective time period, restoring the attribute updating value of the configuration attribute according to the backup attribute original value.
The attribute original value is backed up, and the attribute original value may be backed up to a preset file storage system, and a storage location of the backed-up data is recorded. Correspondingly, before restoring the attribute updated value by using the attribute original value, the attribute original value can also be read from the storage position of the preset file storage system.
In these alternative embodiments, a smooth restore of the attribute values can be achieved by backing up the original attribute values before updating them with the updated attribute values.
In some alternative embodiments, the validation period comprises at least one set of a start value and an end value.
The attribute updating value can be configured with a plurality of sections of effective time periods, and each section of effective time period can be configured with a start value and an end value, namely, at least one set of start value and end value is configured. Wherein the time ranges of the sets of start and end values do not generally overlap.
In these optional embodiments, by configuring multiple effective time periods, automatic change of attribute values of configuration attributes at multiple time points can be realized, so that time consumption of manual operation is greatly reduced, and labor cost is reduced.
In the data change method provided by the embodiment of the invention, the configuration object and the configuration attribute of the configuration object are selected in response to the selection instruction; responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value; and updating the attribute original value of the configuration attribute according to the attribute update value in the effective time period.
The user only needs to input instructions such as selection, configuration and the like to execute the device of the data change method, and the automatic data change can be realized, so that business side personnel who do not know codes can conveniently change the data, and the communication cost among departments is saved. In addition, the data change method can also support the selection of the configuration attributes needing to be configured in at least one configuration object under different scenes, thereby meeting flexible and diverse requirements on services. In addition, the data change method can also support the configuration of an effective time period, can realize the data update in a certain time period, does not need frequent manual operation, and saves the labor cost.
Example two
The present embodiment is based on the above-described embodiment, and supplements the content configured in response to the configuration instruction. For example, the system identification of the external system may be configured based on the configuration instructions. The configuration system identification can be used for characterizing an external system with data modification authority. Therefore, in the effective time period, if modification instructions sent by the external systems with modification permission are received, data restoration can be carried out according to the modified attribute original values, and the accuracy of data restoration can be ensured.
And/or, the configuration scope may also be configured based on the configuration instruction. The configuration range can be used for characterizing the client account needing to change data. Therefore, when the current time reaches the initial value, the attribute value of the configuration attribute can be changed for the configuration objects corresponding to the client accounts needing to change the data, and the change of the data corresponding to the client accounts within a certain range can be realized, so that the flexibility of data change is improved.
Fig. 2 shows a flowchart of a data change method according to a second embodiment of the present invention. Referring to fig. 2, the data change method includes the following steps:
s210, responding to the selection instruction, and selecting the configuration object and the configuration attribute of the configuration object.
S220, responding to the configuration instruction, and configuring the attribute update value of the configuration attribute, the effective time period of the attribute update value, the system identification of the external system with modification authority, and the configuration range.
The system identifier of the configured external system may be used to characterize that the external system has a right to modify the original attribute value of the configuration attribute. The configuration range is a range formed by client accounts to be configured. The client account may be considered as an account number for using a business service provided by a service provider. For example, when the data change method is applied to the e-commerce field, the client account may be an account number of a merchant client using the e-commerce platform service.
The configuration scope can be used for representing that the service items of the business objects enjoyed by the client accounts in the scope need to be changed. For example, in the e-commerce field, if the configuration object is a business service with a single-part data hidden, and the configuration attribute is off, the client account in the configuration range may be considered as the client account that needs to be turned off for the business service with the single-part data hidden.
In this embodiment, the configuration interface may further include a configuration control identified by the system and a configuration control in the configuration range. Configuration instructions can be generated by operating the configuration controls, and the configuration instructions can configure the system identifier and the configuration range.
The process of configuring the configuration scope may include inputting an account identifier of the client account to be configured (e.g., inputting a white list). Correspondingly, when the attribute value of the configuration attribute in the configuration range is updated, the client account corresponding to the account identifier in the white list can be determined to obtain the configuration range, and the attribute value of the configuration attribute in the configuration range is updated.
However, in some cases, the number of client accounts to be configured is much larger than the number of accounts of clients that do not need to be configured. At this time, the process of configuring the configuration scope may further include inputting an account identifier of the client account that does not need to be configured (e.g., inputting a blacklist). Correspondingly, when the attribute value of the configuration attribute in the configuration range is updated, the client account corresponding to the account identifier except the account identifier in the blacklist can be determined to obtain the configuration range, and the attribute value of the configuration attribute in the configuration range is updated. Therefore, the account identification of a large number of client accounts can be prevented from being input, and the configuration efficiency can be improved to a certain extent.
And S230, when the current time reaches the initial value, determining a configuration object corresponding to the client account in the configuration range.
The configuration object corresponding to the client account can belong to the business service enjoyed by the client account. When the current time reaches the initial value of the effective time period, the configuration range can be determined according to the account identifier of the client account to be configured, which is input before, or the account identifier of the client account which is input before and does not need to be configured. And, the configuration object to be configured can be determined from the business service enjoyed by the client account.
S240, updating the attribute original value of the configuration attribute of the determined configuration object according to the attribute updated value.
The configuration attributes of the corresponding configuration object in the service enjoyed by the client account and in the configuration range can be replaced by utilizing the attribute updating value. The business services which are enjoyed by the client accounts and are not the configuration objects in the configuration range and the business services which are enjoyed by the client accounts and are not the configuration objects do not need to be changed.
And S250, if a modification instruction of the external system corresponding to the system identifier for the original value of the attribute is received within the effective time period, modifying the original value of the attribute according to the modification instruction when the current time reaches a termination value.
Modifying the original value of the attribute according to the modification instruction may include: firstly, reading an attribute original value from the storage position of a preset file storage system; and then, modifying the original value of the attribute corresponding to the configuration attribute according to the attribute modification value carried in the modification instruction.
And S260, restoring the attribute updated value of the configuration attribute according to the modified attribute original value.
The restoring the attribute updated value of the configuration attribute of the configuration object according to the modified attribute original value may include: firstly, determining a configuration object corresponding to a client account in a configuration range; then, the attribute updated value of the configuration attribute of the configuration object is replaced by the modified attribute original value. Therefore, the updated attribute values in the configuration range are restored.
In addition, if no modification instruction of the external system corresponding to the system identifier for the original value of the attribute is received within the effective time period, when the current time reaches the termination value, the attribute update value of the configuration attribute of the configuration object can be directly restored according to the original value of the attribute.
In some optional implementations, configuring the configuration scope includes: configuring the storage address of the configuration range file; the file content of the configuration range file is used for representing a client account to be configured;
correspondingly, before updating the original value of the attribute of the configuration attribute of the determined configuration object according to the updated value of the attribute, the method further includes: acquiring a configuration range file according to the storage address; and analyzing the configuration range file to obtain the client account in the configuration range.
The configuration range file may be a list including an account identifier of a client account to be configured, and may be a list in an excel table format. The configuration range file can also be stored in a preset file storage system, and the configuration range can be configured by configuring the storage address of the configuration range file. Correspondingly, when the configuration object corresponding to the client account within the configuration range is determined, the configuration range file can be obtained according to the storage address, and the account identifier in the configuration range file is analyzed to determine the client account within the configuration range.
In these optional implementations, by configuring the storage address, the amount of data stored in the system can be reduced, and the consumption of system memory resources can be reduced to a certain extent.
In addition, in some optional implementations, the system identifier and the configuration range of the external system having the modification right may be optionally configured. I.e., the operation of configuring the system identification, and the operation of setting the configuration scope is an "and/or" relationship.
Correspondingly, when only the system identifier is configured in the two, it can be considered that all the client accounts need to be configured uniformly. At this time, the original values of the attributes of the configuration objects of all the client accounts may be updated according to the updated values of the attributes. When only the configuration range is configured in the two types of accounts, all the client accounts can be considered to have no modification authority. At this time, the attribute updated value of the configuration attribute of the configuration object can be restored directly according to the original value of the attribute.
The embodiment of the invention is based on the above embodiment, and supplements the content configured in response to the configuration instruction. For example, the system identification of the external system may be configured based on the configuration instructions. The configuration system identification can be used for characterizing an external system with data modification authority. Therefore, in the effective time period, if modification instructions sent by the external systems with modification permission are received, data restoration can be carried out according to the modified attribute original values, and the accuracy of data restoration can be ensured.
And/or, the configuration scope may also be configured based on the configuration instruction. The configuration range can be used for characterizing the client account needing to change data. Therefore, when the current time reaches the initial value, the attribute value of the configuration attribute can be changed for the configuration objects corresponding to the client accounts needing to change the data, and the change of the data corresponding to the client accounts within a certain range can be realized, so that the flexibility of data change is improved.
In addition, the embodiment of the present invention and the data modification method proposed by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the embodiment, and the embodiment has the same beneficial effects as the embodiment.
EXAMPLE III
In this embodiment, an application scenario of the data change method is described in detail on the basis of the above embodiments. The data change method provided by the embodiment can be applied to a server of an e-commerce platform; accordingly, the configuration object may be considered an object of the business services provided by the e-commerce platform, which may include, but is not limited to, a bill of lading object and/or a transit time object, for example.
In the E-commerce field, the service appeal of the platform is flexible and changeable. For example, during the activity period of each shopping mall of the whole year, data updating and restoring are required for different service items of different business service objects, that is, the attribute values of the configuration attributes of the configuration objects need to be changed. In the traditional scheme, frequent data modification not only improves communication cost among departments, but also consumes a large amount of labor cost.
In this embodiment, when the data change method is applied to a server of an e-commerce platform, the e-commerce platform can be supported to change attribute values of different configuration attributes of at least one configuration object according to different service activity scenes (for example, different shopping festival scenes), so as to meet flexible and diverse requirements on services.
When the configuration object is a bill object, the bill object may include a business service object of a confidential bill, that is, a service in which a user privacy data portion is replaced with a predetermined symbol in an express bill. The configuration attribute of the security policy object may include a switch attribute, and the attribute value of the switch attribute may include on and off.
For consumption peaks of each shopping mall, the server of the e-commerce platform may configure the attribute value of the switch attribute of the confidential list object to be off, and may configure the validation time period to be an active period. Correspondingly, when the shopping festival activity starts, the attribute value of the switch attribute of the confidential menu object can be updated to be closed; at the end of the shopping session activity, the attribute value of the switch attribute of the confidential sheet object may be restored to on. In some implementation manners, a configuration range of the client account of the confidential paper object can be set to be closed, so that the client account of a common merchant can be guaranteed to be suspended from providing confidential paper services during activities, the client account of an important merchant still provides confidential paper services, and the experience of the important merchant is improved.
By temporarily stopping the provision of the business service of the confidential menu object during the shopping session, the platform can use the processing resources to cope with the consumption peak, thereby ensuring the normal response of important operations such as shopping during the shopping session.
When the configuration object is a transportation time object, the transportation time object may include a service of "negotiation re-delivery check days", that is, a service of checking a re-delivery application after delivery failure. The configuration attribute of the "number of review days to negotiate again" object may include an attribute of review time.
For the consumption peak of each shopping node, the server of the e-commerce platform may configure the attribute of the review time of the review number of days object of the re-posting negotiation as a number of days longer than the original value of the attribute, for example, if the original value of the attribute is 3 days, the updated value of the attribute may be 7 days; also, the validation period may be configured as an active period. Correspondingly, when the shopping festival activity starts, the attribute value of the attribute of the audit time can be updated to 7 days; at the end of the shopping session activity, the attribute value of the audit time attribute may be restored to 3 days.
By delaying the auditing response to the application during the shopping period, the platform can use the processing resources to deal with the consumption peak, thereby ensuring the normal response of important operations such as shopping during the shopping period.
In addition, when the data change method is applied to a server of an e-commerce platform, the configuration object can also be other objects, such as a business service object for maintaining basic data of a merchant, and an object of the number of check days for a return application. The attribute update value of the configuration attribute of the configuration object is generally a value that can be configured to suspend the consumption of the platform processing resource. Therefore, normal response of important operations such as shopping and the like during shopping festival activities can be ensured to a certain extent.
Exemplarily, fig. 3 shows a schematic diagram of a selection interface in a data change method provided by a third embodiment of the present invention. Referring to fig. 3, elements available for selection in the selection interface may include configurable objects 310, configurable attributes 320, and the like.
In FIG. 3, configurable objects 310, for example, include business service objects such as privacy profiles and negotiation re-audit days. Configurable attributes 320 include, for example, merchant element attributes, attributes of time elements, and other element attributes, among others. The configuration of the merchant code in the attribute of the merchant element is equivalent to the configuration of the account identifier of the client account, so that the configuration of the configuration range can be realized; the configuration of whether the merchant in the merchant elements is valid is equivalent to the configuration of the switch attribute of the business service; the arrangement of the arrangement start time and the arrangement end time in the time element attribute is equivalent to the arrangement of the start value and the end value of the effective time period; configuration of the number of auditing days is re-submitted for negotiation in the time element attribute, which is equivalent to configuration of the auditing time attribute; receiving modification source data and configuring a modification source data storage in other elements, wherein the configuration is equivalent to the configuration for receiving the attribute modification value (namely, the configuration for an external system with modification authority), and the configuration for storing the attribute modification value; configuration of the current node may be achieved based on a comparison of the current time and the validation period.
The current node may include, but is not limited to, several nodes to be executed, in execution, and after execution. When the current time does not reach the initial value, the current node is to be executed; when the current time is between the starting value and the ending value, the current node is in execution; the current time is the time after the termination value, and the current node is finished executing. If the current node receives the attribute modification value while executing, the node may be considered to receive the attribute modification value of the external system within the validation time period.
Under different scenes, different configurable objects and configurable attributes can be selected to obtain multiple configuration policy combinations. Taking the confidential bill as an example, hundreds of thousands of merchants are involved in batch configuration operation which does not support the confidential bill service during shopping festival activities each year, the operation is at least 10+ times per year, and special guarantee needs to be carried out for part of important merchants to maintain the confidential bill service. At this time, the data change method provided in the embodiment of the present invention may select elements such as the privacy statement, the merchant code, whether the merchant is valid, the configuration start time, and the configuration end time based on the selection instruction.
Exemplarily, fig. 4 is a schematic diagram illustrating a configuration interface in a data change method according to a third embodiment of the present invention. Referring to fig. 4, taking the security policy as an example, the data change system may also generate and display a configuration interface according to the selected elements. In the configuration interface, a configuration instruction can be generated through the operation of the configuration control. Configuration controls may include, but are not limited to, pull-down controls (e.g., controls corresponding to whether a merchant is valid), input controls (e.g., controls to configure a start value and an end value), button controls (e.g., select controls to configure a scope file, save controls), and the like. The control for configuring the starting value and the ending value may include at least one control for configuring at least one set of validation time periods. In addition, a text display control may be further included in the configuration interface, so as to display the configuration rule (for example, the configuration rule of the effective time period, the editing rule of the configuration range file, and the like).
Exemplarily, fig. 5 shows a schematic diagram of a flow in a data change method provided by a third embodiment of the present invention. Referring to fig. 5, after the save control of the configuration interface is triggered, the server may receive information configured in the configuration interface. And the data can be changed by the following steps:
and S1, creating a configuration table. Wherein, the configuration table may include: at least one configuration object, start and end values of the validation period, addresses of the current node and configuration range file, etc. The configuration range file may be a white list file or a black list file, and the file may be stored in a preset file storage system after the file is edited. Accordingly, the address of the configuration range file may be considered as an address in the default file storage system.
And S2, generating a task table to be executed. The to-be-executed task table may include a client account, a to-be-executed task, and an execution state within a configuration range corresponding to a to-be-executed configuration object (e.g., a privacy policy). The tasks to be executed may include backup, update, and restore tasks. The execution state may include a current execution state of the execution task to be executed, during execution, and after execution.
And S3, when the current time reaches the initial value, performing data backup and updating. Firstly, a configuration range file can be obtained and analyzed according to the address of the configuration range file to obtain a configuration object corresponding to a client account in a configuration range; then, an attribute original value of the configuration attribute of the configuration object can be extracted from the database, the attribute original value is written into a backup file, the backup file is stored in a preset file storage system, and a storage address of the backup file is recorded; and finally, when the backup is finished, updating the corresponding attribute original value by using the attribute updating value.
And S4, when the current time reaches the end value, judging whether the data in the effective time period is modified. If a modification instruction of an external system with modification authority on the original value of the attribute is received within the effective time period, the data is considered to be modified, and the attribute modification value carried in the modification instruction can be received and stored. And if the modification instruction of the external system with modification authority on the original value of the attribute is not received in the effective time period, the data is considered to be unmodified.
And S5, if the modification exists, restoring the data by utilizing the modification. At this time, when the current time reaches the end value, the backup file can be downloaded and analyzed according to the recorded storage address of the backup file; and changing the original value of the attribute in the backup file according to the stored attribute modified value, namely restoring the updated value of the attribute which is changed before with reference to the original value of the attribute modified by the external system.
And S6, if no modification exists, restoring the data by using the original value of the attribute. At this time, when the current time reaches the end value, the backup file can be downloaded and analyzed according to the recorded storage address of the backup file; and restoring the updated values of the attributes changed previously according to the original values of the attributes in the backup file.
The embodiment of the invention describes the application scene of the data change method in detail on the basis of the above embodiment. By applying the data change method to the server of the e-commerce platform, the e-commerce platform can be supported to change the attribute values of different configuration attributes of at least one configuration object according to different service activity scenes (such as different shopping festival scenes), so that flexible and various appeal requirements on services are met.
In addition, the embodiment of the present invention and the data modification method proposed by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the embodiment, and the embodiment has the same beneficial effects as the embodiment.
Example four
Fig. 6 is a schematic structural diagram of a data modification apparatus according to a fourth embodiment of the present invention. The data changing device provided by the embodiment of the invention can be applied to the situation of changing the attribute value of the configuration attribute of the configuration object, for example, the situation of changing the attribute value of the attribute of different business objects aiming at different business activities by utilizing a server of a business platform.
As shown in fig. 6, the data changing apparatus in the embodiment of the present invention may include:
a selecting module 610, configured to select the configuration object and the configuration attribute of the configuration object in response to the selecting instruction;
the configuration module 620 is configured to configure the attribute update value of the configuration attribute and the validation time period of the attribute update value in response to the configuration instruction;
the updating module 630 is configured to update the original value of the attribute of the configuration attribute according to the attribute update value in the validation time period.
In some optional embodiments, the data changing apparatus may further include:
the backup module is used for backing up the attribute original value of the configuration attribute when the current time reaches the initial value of the effective time interval;
and the restoring module is used for restoring the attribute updated value of the configuration attribute according to the backed-up attribute original value after the attribute original value of the configuration attribute is updated according to the attribute updated value and when the current time reaches the termination value of the effective time period.
In some optional embodiments, the configuration module may be further configured to: responding to a configuration instruction, and configuring a system identifier of an external system with modification authority;
accordingly, the reduction module may be configured to: if a modification instruction of an external system corresponding to the system identifier for the original value of the attribute is received within the effective time period, modifying the original value of the attribute according to the modification instruction when the current time reaches a termination value; and restoring the attribute updated value of the configuration attribute according to the modified attribute original value.
In some optional embodiments, the configuration module may be further configured to: responding to a configuration instruction, and configuring a configuration range; the configuration range is a range formed by client accounts to be configured;
accordingly, the update module may be configured to: determining a configuration object corresponding to a client account in a configuration range; and updating the attribute original value of the configuration attribute of the determined configuration object according to the attribute updating value.
In some optional embodiments, the configuration module may be specifically configured to:
configuring the storage address of the configuration range file; the file content of the configuration range file is used for representing a client account to be configured;
correspondingly, before the restoring module updates the original attribute value of the configuration attribute of the determined configuration object according to the attribute update value, the restoring module may further be configured to: acquiring a configuration range file according to the storage address; and analyzing the configuration range file to obtain the client account in the configuration range.
In some alternative embodiments, the validation period comprises at least one set of a start value and an end value.
In some alternative embodiments, the server is applied to an e-commerce platform; accordingly, the configuration object includes at least: a wayside object and/or a transit time object.
The data modification device provided by the embodiment of the present invention is the same as the data modification method provided by the above embodiment, and the technical details that are not described in detail in the embodiment of the present invention can be referred to the above embodiment, and the embodiment of the present invention has the same beneficial effects as the above embodiment.
EXAMPLE five
Fig. 7 is a schematic structural diagram illustrating a data modification apparatus according to a fifth embodiment of the present invention. The terminal device in the embodiments of the present invention may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the terminal device 700 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the terminal apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the terminal device 700 to communicate with other devices wirelessly or by wire to exchange data. While fig. 7 illustrates a terminal device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. When executed by the processing device 701, the computer program executes the above-described functions defined in the data modification method according to the embodiment of the present invention.
The terminal provided by the embodiment of the present invention and the data changing method provided by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present invention can be referred to the above embodiment, and the embodiment of the present invention has the same beneficial effects as the above embodiment.
EXAMPLE six
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the data change method provided by the above-described embodiment.
It should be noted that the computer readable storage medium mentioned above in the embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or FLASH Memory (FLASH), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In yet another embodiment of the invention, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer-readable storage medium may be included in the terminal device or may be separately present without being incorporated in the terminal device.
The terminal device stores one or more programs, and when the one or more programs are executed by the terminal device, the terminal device is enabled to:
responding to the selection instruction, and selecting the configuration object and the configuration attribute of the configuration object;
responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value;
and updating the attribute original value of the configuration attribute according to the attribute update value in the effective time period.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functional pages noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method of data alteration, comprising:
responding to a selection instruction, and selecting a configuration object and configuration attributes of the configuration object;
responding to a configuration instruction, configuring an attribute updating value of the configuration attribute and an effective time period of the attribute updating value;
and updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period.
2. The method of claim 1, further comprising:
when the current time reaches the initial value of the effective time interval, the attribute original value of the configuration attribute is backed up;
correspondingly, after the updating the original value of the attribute of the configuration attribute according to the attribute update value, the method further includes:
and when the current time reaches the termination value of the effective time period, restoring the attribute updated value of the configuration attribute according to the backed-up attribute original value.
3. The method of claim 2, further comprising:
responding to the configuration instruction, and configuring the system identification of the external system with modification authority;
correspondingly, when the current time reaches the end value of the effective time period, restoring the attribute updated value of the configuration attribute according to the backup attribute original value, including:
if a modification instruction of the external system corresponding to the system identifier for the original value of the attribute is received within the effective time period, modifying the original value of the attribute according to the modification instruction when the current time reaches the termination value;
and restoring the attribute updated value of the configuration attribute according to the modified attribute original value.
4. The method of claim 1, further comprising:
responding to the configuration instruction, and configuring a configuration range; the configuration range is a range formed by client accounts to be configured;
correspondingly, the updating the attribute original value of the configuration attribute according to the attribute update value includes:
determining a configuration object corresponding to the client account in the configuration range;
and updating the original value of the attribute of the configuration attribute of the determined configuration object according to the updated value of the attribute.
5. The method of claim 4, wherein the configuring the configuration scope comprises:
configuring the storage address of the configuration range file; the file content of the configuration range file is used for representing a client account to be configured;
correspondingly, before the updating the original value of the attribute of the configuration attribute of the determined configuration object according to the updated value of the attribute, the method further includes:
acquiring the configuration range file according to the storage address;
and analyzing the configuration range file to obtain the client account in the configuration range.
6. The method of any of claims 1-5, wherein the validation period comprises at least one set of a start value and an end value.
7. The method according to any one of claims 1 to 5, characterized in that it is applied to a server of an e-commerce platform; correspondingly, the configuration object at least comprises: a wayside object and/or a transit time object.
8. A data modification apparatus, comprising:
the selection module is used for responding to a selection instruction and selecting a configuration object and the configuration attribute of the configuration object;
the configuration module is used for responding to a configuration instruction, and configuring the attribute updating value of the configuration attribute and the effective time period of the attribute updating value;
and the updating module is used for updating the attribute original value of the configuration attribute according to the attribute updated value in the effective time period.
9. A terminal device, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the data change method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data alteration method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111570939.8A CN114237694A (en) | 2021-12-21 | 2021-12-21 | Data change method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111570939.8A CN114237694A (en) | 2021-12-21 | 2021-12-21 | Data change method and device, terminal equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114237694A true CN114237694A (en) | 2022-03-25 |
Family
ID=80760333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111570939.8A Pending CN114237694A (en) | 2021-12-21 | 2021-12-21 | Data change method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237694A (en) |
-
2021
- 2021-12-21 CN CN202111570939.8A patent/CN114237694A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634598B (en) | Page display method, device, equipment and storage medium | |
CN108287708B (en) | Data processing method and device, server and computer readable storage medium | |
CN111400488B (en) | Online document information processing method and device, electronic equipment and readable medium | |
CN109408481B (en) | Log collection rule updating method and device, electronic equipment and readable medium | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN112035030B (en) | Information display method and device and electronic equipment | |
CN110704833A (en) | Data permission configuration method, device, electronic device and storage medium | |
CN115145560B (en) | Business orchestration method, apparatus, device, computer-readable medium, and program product | |
CN115344688A (en) | Business data display method and device, electronic equipment and computer readable medium | |
CN109634702B (en) | Information prompting method and device, electronic equipment and readable medium | |
CN115022269A (en) | Message processing method, device, equipment and medium | |
CN116136758A (en) | Page generation method, device, equipment and medium | |
CN115713295A (en) | Information processing method, device, terminal and storage medium | |
CN114995690A (en) | Document creation method, device, equipment and storage medium | |
CN111756953A (en) | Video processing method, device, equipment and computer readable medium | |
CN115793927A (en) | Task list creating method, device, equipment and medium | |
CN116016420A (en) | Task list sharing method, device, equipment and medium | |
CN114237694A (en) | Data change method and device, terminal equipment and storage medium | |
CN113079085B (en) | Business service interaction method, business service interaction device, business service interaction equipment and storage medium | |
CN115470754A (en) | Data analysis method and device, computer readable medium and electronic equipment | |
CN113220293A (en) | Page display method and device, electronic equipment and computer readable medium | |
CN111324349A (en) | Method, device, terminal and storage medium for generating interactive interface | |
CN112637048B (en) | Information sending method, information sending device, electronic equipment and computer readable medium | |
CN110633324A (en) | Method, apparatus, electronic device and computer readable medium for synchronizing data | |
CN113971060B (en) | Interface display method, device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |