CN113704228B - Method, device, electronic equipment and storage medium for field self-addition - Google Patents

Method, device, electronic equipment and storage medium for field self-addition Download PDF

Info

Publication number
CN113704228B
CN113704228B CN202111013263.2A CN202111013263A CN113704228B CN 113704228 B CN113704228 B CN 113704228B CN 202111013263 A CN202111013263 A CN 202111013263A CN 113704228 B CN113704228 B CN 113704228B
Authority
CN
China
Prior art keywords
field
self
increasing
value
service 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.)
Active
Application number
CN202111013263.2A
Other languages
Chinese (zh)
Other versions
CN113704228A (en
Inventor
赵岳宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111013263.2A priority Critical patent/CN113704228B/en
Publication of CN113704228A publication Critical patent/CN113704228A/en
Application granted granted Critical
Publication of CN113704228B publication Critical patent/CN113704228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a field self-increasing method, a field self-increasing device, electronic equipment and a storage medium. The method is used for solving the problem of migration risk existing after service data migration. In the embodiment of the application, service data to be imported to a second system is received; determining whether a field value of a first local self-increment field of the service data is specified; if the first local self-increasing field of the service data is specified and the field value of the first local self-increasing field is not included in the field value set of the second local self-increasing field of the second system, the field value of the first local self-increasing field is adopted as the field value of the second local self-increasing field of the service data in the second system.

Description

Method, device, electronic equipment and storage medium for field self-addition
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and apparatus for field self-augmentation, an electronic device, and a storage medium.
Background
With the development of technology, more and more operation platforms appear, when service data is migrated from an original platform to a new platform, the original field value cannot be reserved, and the same data can only pass through a unified field value generated by the new platform in a self-increasing mode after migration, so that the field value is inconsistent after the migration of the service data, and the migration risk problem exists.
Disclosure of Invention
The purpose of the application is to provide a field self-increasing method, a device, electronic equipment and a storage medium, which are used for solving the problem of migration risk existing after service data migration.
In a first aspect, an embodiment of the present application provides a method for field self-addition, where the method includes:
receiving service data to be imported into a second system; the service data is derived from the appointed service type of the first system;
determining whether a field value of a first local self-increment field of the service data is specified; the first local self-increasing field is used for identifying a unique identifier of the service data in the designated service type of the first system;
if a first local self-increasing field of the service data is designated and the field value of the first local self-increasing field is not contained in the field value set of a second local self-increasing field of the second system, adopting the field value of the first local self-increasing field as the field value of the second local self-increasing field of the service data in the second system; the second local self-increment field is used for identifying a unique identification of the service data in the specified service type of the second system.
In one embodiment, the method further comprises:
if the field value of the first local self-increasing field of the service data is not specified, determining the maximum value in the field value set of the second local self-increasing field of the second system;
automatically increasing in a specified increasing manner based on a maximum value in a field value set of the second local self-increasing field;
and taking the automatically increased field value as the field value of a second local self-increasing field of the service data in the second system.
In one embodiment, after the first local self-increment field of the service data is specified, the method further includes:
and if the field value of the first local self-increasing field is contained in the field value set of the second local self-increasing field of the second system, outputting an error reporting prompt.
In one embodiment, the second system further comprises a global self-increment field, a field value of the global self-increment field is used for identifying a time sequence of importing the service data into the second system, and the global self-increment field is used for identifying a unique identification of the service data in the second system.
In one embodiment, after receiving the service data to be imported to the second system, the method further includes:
Determining a maximum value within a set of field values of the global self-increment field;
automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the global self-increasing field;
and taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the business data in the second system.
In one embodiment, the second local self-increment field satisfies both a self-increment rule and a unique rule that identifies that the second local self-increment field is unique in field value in the same traffic class.
In one embodiment, the global self-increment field satisfies both a self-increment rule and a globally unique rule that identifies that the global self-increment field is unique in field value on the second system.
In one embodiment, after the field value of the first local self-increment field is included in the field value set of the second local self-increment field of the second system, the method further comprises:
determining a recommended value according to a maximum value in a field value set of a second local self-increasing field of the second system;
and outputting the recommended value.
Second aspect the present application also provides a field self-increment apparatus, the apparatus comprising:
The receiving module is used for receiving the service data to be imported into the second system; the service data is derived from the appointed service type of the first system;
a determining module, configured to determine whether a field value of a first local self-increment field of the service data is specified; the first local self-increasing field is used for identifying a unique identifier of the service data in the designated service type of the first system;
a multiplexing module, configured to, if a first local self-increment field of the service data is specified and a field value of the first local self-increment field is not included in a field value set of a second local self-increment field of the second system, adopt the field value of the first local self-increment field as a field value of a second local self-increment field of the service data in the second system; the second local self-increment field is used for identifying a unique identification of the service data in the specified service type of the second system.
In one embodiment, the apparatus further comprises:
a first maximum value determining module, configured to determine a maximum value in a field value set of a second local self-increase field of the second system if a field value of a first local self-increase field of the service data is not specified;
The first self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the second local self-increasing field;
and the first field value determining module is used for taking the automatically increased field value as the field value of a second local self-increasing field of the service data in the second system.
In one embodiment, after the multiplexing module performs the step of if the first local self-increment field of the service data is specified, the apparatus further includes:
and the error reporting module is used for outputting an error reporting prompt if the field value of the first local self-increasing field is contained in the field value set of the second local self-increasing field of the second system.
In one embodiment, the second system further comprises a global self-increment field, a field value of the global self-increment field is used for identifying a time sequence of importing the service data into the second system, and the global self-increment field is used for identifying a unique identification of the service data in the second system.
In one embodiment, after the receiving module performs receiving service data to be imported to the second system, the apparatus further includes:
a second maximum value determining module, configured to determine a maximum value in a field value set of the global self-increasing field;
The second self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the global self-increasing field;
and the second field value determining module is used for taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the service data in the second system.
In one embodiment, the second local self-increment field satisfies both a self-increment rule and a unique rule that identifies that the second local self-increment field is unique in field value in the same traffic class.
In one embodiment, the global self-increment field satisfies both a self-increment rule and a globally unique rule that identifies that the global self-increment field is unique in field value on the second system.
In one embodiment, the error reporting module performs the step of, after the field value of the first local self-increment field is included in the field value set of the second local self-increment field of the second system, further comprising:
the recommended value determining module is used for determining a recommended value according to the maximum value in the field value set of the second local self-increasing field of the second system;
And the output module is used for outputting the recommended value.
In a third aspect, another embodiment of the present application also provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods provided by the embodiments of the first aspect of the present application.
In a fourth aspect, another embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program for causing a computer to perform any one of the methods provided by the embodiments of the first aspect of the present application.
In a fifth aspect, another embodiment of the present application also provides a computer program product, which when run on a computer causes the computer to perform the method as set forth in any one of the preceding claims.
In the embodiment of the application, the processing method for determining the field value of the service data is determined by whether the field value of the service data is designated or not, so that the service data takes the original field value as the field value of a new platform as far as possible, all code programs corresponding to the whole service data are prevented from being adjusted due to the change of the field value, manpower resources are saved, and migration risks are avoided.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is obvious that the drawings that are described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario diagram of a field self-increasing method provided in an embodiment of the present application;
FIG. 2 is an overall flow chart of a field self-increasing method provided in an embodiment of the present application;
FIG. 3A is a schematic diagram of an output error report of the field self-increasing method according to the embodiment of the present application;
FIG. 3B is a schematic diagram of an output recommendation of the field self-increasing method according to the embodiment of the present application;
FIG. 3C is a schematic diagram of outputting error reporting prompts and recommended values while using the field self-increasing method according to the embodiment of the present application;
Fig. 4 is a flowchart of a field value of service data of a field self-increasing method provided in an embodiment of the present application when the field value is not specified;
fig. 5 is a schematic diagram of repeatable field values of different service types of the field self-increment method according to the embodiment of the present application;
FIG. 6 is a schematic diagram of a global field of a field self-increment method according to an embodiment of the present disclosure;
FIG. 7 is a flow chart of a global self-increment field self-increment of the field self-increment method according to the embodiment of the present application;
FIG. 8 is a diagram illustrating a global self-increment field value and a field value of a second local self-increment field according to the field self-increment method provided in the embodiment of the present application;
fig. 9 is a schematic diagram of a field self-increasing device provided in an embodiment of the present application;
fig. 10 is a schematic diagram of an electronic device of a field self-increasing method according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and in the claims are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The inventor researches and discovers that with the development of technology, more and more operation platforms appear, when service data is migrated from an original platform to a new platform, the original field value cannot be reserved, and the same data can only use a unified field value generated by the platform in a self-increasing mode after the migration, so that the service data is inconsistent before and after the migration of the platform, and the migration risk problem exists.
In view of this, the present application proposes a method, apparatus, electronic device and storage medium for field self-augmentation, which are used to solve the above-mentioned problems. The inventive concepts of the present application can be summarized as follows: receiving service data to be imported into a second system; determining whether a field value of a first local self-increment field of the service data is specified; if a first local self-increasing field of the service data is specified and the field value of the first local self-increasing field is not included in the field value set of the second local self-increasing field of the second system, the field value of the first local self-increasing field is adopted as the field value of the second local self-increasing field of the service data in the second system.
Fig. 1 is an application scenario diagram of a field self-adding method in an embodiment of the present application. The drawings include: network 10, server 20, memory 30, and terminal device 40;
Wherein: the server 20 receives, via the network 10, service data to be imported to the second system, the service data originating from a specified service type of the first system; determining whether a field value of a first local self-increment field of the service data is specified; if the first local self-increasing field of the service data is designated and the field value of the first local self-increasing field is not repeated with the field value of the second local self-increasing field of the second system, multiplexing the field value of the first local self-increasing field as the field value of the second local self-increasing field of the service data. The service data may be stored in the memory 30, and it is to be understood that the steps performed by the server may also be performed by the terminal.
In the description herein, only a single server or terminal device is described in detail, but it should be understood by those skilled in the art that the illustrated terminal device 40, server 20 and memory 30 are intended to represent operations of the terminal device, server and memory to which the aspects of the present disclosure relate. The details of the individual servers and memories are provided for at least descriptive convenience and not to imply any limitation on the number, type, location, etc. of terminal devices and servers. It should be noted that the underlying concepts of the example embodiments of the present application are not altered if additional modules are added to or individual modules are removed from the illustrated environment. In addition, although a bi-directional arrow from the memory 30 to the server 20 is shown in fig. 1 for ease of illustration, it will be appreciated by those skilled in the art that the processing of traffic data described above may also need to be accomplished through the network 10.
It should be noted that, the memory in the embodiments of the present application may be, for example, a cache system, or may also be a hard disk storage, a memory storage, or the like. In addition, the field self-increasing method provided by the application is not only suitable for the application scene shown in fig. 1, but also suitable for any device with field self-increasing requirement.
For easy understanding, the field self-increasing method provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings:
as shown in fig. 2, an overall flowchart of a method for field self-addition according to an embodiment of the present application is provided, where:
in step 201: receiving service data to be imported into a second system; wherein the service data originates from a specified service type of the first system;
in the embodiment of the present application, the service data may be a sticker, a template, or the like, and the application does not limit the category of the service data.
In the embodiment of the present application, in order to preserve the original field value of the service data as much as possible, in step 202: determining whether a field value of a first local self-increment field of the service data is specified; the first local self-increasing field is used for identifying the unique identification of the service data in the appointed service type of the first system;
in step 203: if the first local self-increasing field of the service data is designated and the field value of the first local self-increasing field is not contained in the field value set of the second local self-increasing field of the second system, adopting the field value of the first local self-increasing field as the field value of the second local self-increasing field of the service data in the second system; the second local self-increment field is used to identify a unique identification of the service data in a specified service type of the second system.
In one embodiment, when the service data is migrated from the original platform to the second system, if the field value of the service data in the original platform is entered in the second system, the field value of the service data is specified by a person skilled in the relevant art.
In one embodiment, after the field value of the service data is specified, there may be a repetition of the field value of the first local self-increasing field and the field value of the second local self-increasing field of the second system, that is, the field value of the first local self-increasing field is included in the field value set of the second local self-increasing field of the second system, and when this occurs, in this embodiment, in order to remind the related technician of the second system to handle the problem, an error report prompt as shown in fig. 3A is output, and the related technician is timely reminded of the current error through the error report prompt, so that the technician can technically handle the problem.
In one embodiment, after the field value of the first local self-increment field is included in the field value set of the second local self-increment field of the second system, a recommended value may be determined according to a maximum value of the field values of the second local self-increment field of the second system as shown in fig. 3B; and outputting a recommended value. So that a person skilled in the relevant art can modify the field value of the second local self-increasing field of the service data and other relevant contents corresponding to the service data according to the recommended value. It should be noted that, the time sequence of outputting the error report and the recommended value is not limited, that is, the error report and the recommended value can be output first, the error report can be output later, and the error report and the recommended value can be output at the same time as shown in fig. 3C.
If the person skilled in the relevant art does not enter the field value of the service data in the second system, it indicates that the field value of the service data is not specified, and at this time, the steps shown in fig. 4 may be performed:
in step 401: if the field value of the first local self-increasing field of the service data is not specified, determining the maximum value in the field value set of the second local self-increasing field of the second system;
in step 402: automatically increasing in a specified increasing manner based on a maximum value in a field value set of the second local self-increasing field;
in step 403: and taking the automatically increased field value as the field value of the second local self-increasing field of the service data.
In the embodiment of the present application, in order to ensure that the field value of the self-increasing field after implementing automatic increase is not included in the field value set of the second local self-increasing field of the second system, and improve the success rate of the self-increasing field, the automatic increase is performed on the basis of the maximum value of the field value of the second local self-increasing field, and in one embodiment, the self-increasing mode may be a mode of adding 1 on the basis of the maximum value; for example: when the maximum value of the field value of the second local self-increasing field of the current second system is 100, and when the field value of the first local self-increasing field of the service data is not specified, the field value of the second local self-increasing field of the service data is self-increased in a +1 mode from 100, namely, the field value of the second local self-increasing field of the service data is 101.
In one embodiment, since the service data in different service types do not affect each other, each service data is unique in the same service type, the second local self-increasing field satisfies the self-increasing rule and the unique rule at the same time, and the unique rule identifies that the second local self-increasing field is unique in field value in the same service type. As shown in fig. 5, in the template service data, the field value of the second local self-increasing field of the template a may be 100, and the field value of the second local self-increasing field of the template B is 101; in the sticker business data, the field value of the second local self-increasing field of the sticker A is 100, and the field value of the second local self-increasing field of the sticker B is 101. By means of the unique rule, the problem of errors caused by repeated field values of the second local self-increasing field of the service data in the same service type is avoided.
In one embodiment, in order to determine the time sequence of the current service data being imported into the second system, the second system further includes a global self-increment field, as shown in fig. 6, where the field value of the global self-increment field is used to identify the time sequence of the service data being imported into the second system, and the time sequence of the service data being imported into the second system can be conveniently checked by a person skilled in the relevant field through the field value of the global self-increment field.
In the embodiment of the present application, the global self-increasing field also has a self-increasing function, so after receiving the service data to be imported into the second system, the steps shown in fig. 7 are implemented:
in step 701: determining a maximum value of field values of the global self-increment field;
in step 702: automatically increasing in a specified increasing mode on the basis of the maximum value of the field value of the global self-increasing field;
in step 703: and taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the service data in the second system.
In one embodiment, the global self-increment field may also be incremented by one on the basis of a maximum value, for example: when the maximum value of the field value of the global self-increasing field of the current second system is 200, the field value of the global self-increasing field of the service data imported to the second system at this time is 201. Other self-increasing modes are also suitable for the application, which is not limited by the application.
By the method, the time sequence of importing the service data into the second system is clarified, and the total number of the service data currently contained in the second system can be clearly seen by a person skilled in the relevant field.
In one embodiment, the global self-increment field satisfies both a self-increment rule and a global unique rule, the global unique rule identifying that the global self-increment field is unique in field value on the second system. As shown in fig. 8, the field value of the global self-increasing field of the sticker a is 100, the field value of the global self-increasing field of the template a is 101, the field value of the global self-increasing field of the sticker B is 102, and the field value of the global self-increasing field of the template B is 103. The field value of the global self-increasing field of all types of services is unique through the method, and the total number of the services of the current second system can be obtained definitely.
As shown in fig. 9, based on the same inventive concept, a field self-adding apparatus 900 is provided, including:
a receiving module 9001, configured to receive service data to be imported to the second system; the service data is derived from the appointed service type of the first system;
a determining module 9002, configured to determine whether a field value of a first local self-increment field of the service data is specified; the first local self-increasing field is used for identifying a unique identifier of the service data in the designated service type of the first system;
a multiplexing module 9003, configured to, if a first local self-increment field of the service data is specified and a field value of the first local self-increment field is not included in a field value set of a second local self-increment field of the second system, adopt the field value of the first local self-increment field as a field value of a second local self-increment field of the service data in the second system; the second local self-increment field is used for identifying a unique identification of the service data in the specified service type of the second system.
In one embodiment, the apparatus further comprises:
a first maximum value determining module, configured to determine a maximum value in a field value set of a second local self-increase field of the second system if a field value of a first local self-increase field of the service data is not specified;
the first self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the second local self-increasing field;
and the first field value determining module is used for taking the automatically increased field value as the field value of a second local self-increasing field of the service data in the second system.
In one embodiment, after the multiplexing module performs the step of if the first local self-increment field of the service data is specified, the apparatus further includes:
and the error reporting module is used for outputting an error reporting prompt if the field value of the first local self-increasing field is contained in the field value set of the second local self-increasing field of the second system.
In one embodiment, the second system further comprises a global self-increment field, a field value of the global self-increment field is used for identifying a time sequence of importing the service data into the second system, and the global self-increment field is used for identifying a unique identification of the service data in the second system.
In one embodiment, after the receiving module performs receiving service data to be imported to the second system, the apparatus further includes:
a second maximum value determining module, configured to determine a maximum value in a field value set of the global self-increasing field;
the second self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the global self-increasing field;
and the second field value determining module is used for taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the service data in the second system.
In one embodiment, the second local self-increment field satisfies both a self-increment rule and a unique rule that identifies that the second local self-increment field is unique in field value in the same traffic class.
In one embodiment, the global self-increment field satisfies both a self-increment rule and a globally unique rule that identifies that the global self-increment field is unique in field value on the second system.
In one embodiment, the error reporting module performs the step of, after the field value of the first local self-increment field is included in the field value set of the second local self-increment field of the second system, further comprising:
The recommended value determining module is used for determining a recommended value according to the maximum value in the field value set of the second local self-increasing field of the second system;
and the output module is used for outputting the recommended value.
Having described the field self-increasing method and apparatus of an exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is described.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device according to the present application may include at least one processor, and at least one memory. The memory stores therein program code that, when executed by the processor, causes the processor to perform the steps in the field self-increasing method according to various exemplary embodiments of the present application described above in this specification.
An electronic device 130 according to this embodiment of the present application is described below with reference to fig. 10. The electronic device 130 shown in fig. 10 is merely an example, and should not be construed to limit the functionality and scope of use of embodiments of the present application in any way.
As shown in fig. 10, the electronic device 130 is embodied in the form of a general-purpose electronic device. Components of electronic device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting the various system components, including the memory 132 and the processor 131.
Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 132 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
Memory 132 may also include a program/utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic device 130, and/or any device (e.g., router, modem, etc.) that enables the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur through an input/output (I/O) interface 135. Also, electronic device 130 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 136. As shown in fig. 10, network adapter 136 communicates with other modules for electronic device 130 over bus 133. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 130, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible embodiments, aspects of a field self-addition method provided herein may also be implemented in the form of a program product comprising program code for causing a computer device to perform the steps of a field self-addition method according to various exemplary embodiments of the present application as described herein above when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for field self-augmentation of embodiments of the present application may employ a portable compact disc read-only memory (CD-ROM) and include program code and may be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a 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.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, 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 consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device, partly on the remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (16)

1. A method of field self-addition, the method comprising:
receiving service data to be imported into a second system; the service data is derived from the appointed service type of the first system;
determining whether a field value of a first local self-increasing field of the service data is specified, wherein if the field value of the service data in the first system is recorded in the second system, the field value of the first local self-increasing field of the service data is specified; the first local self-increasing field is used for identifying a unique identifier of the service data in the designated service type of the first system;
If a first local self-increasing field of the service data is designated and the field value of the first local self-increasing field is not contained in the field value set of a second local self-increasing field of the second system, adopting the field value of the first local self-increasing field as the field value of the second local self-increasing field of the service data in the second system; the second local self-increasing field is used for identifying a unique identifier of the service data in the appointed service type of the second system;
if the field value of the first local self-increasing field of the service data is not specified, determining the maximum value in the field value set of the second local self-increasing field of the second system;
automatically increasing in a specified increasing manner based on a maximum value in a field value set of the second local self-increasing field;
and taking the automatically increased field value as the field value of a second local self-increasing field of the service data in the second system.
2. The method of claim 1, wherein after the first local self-increment field of the service data is specified, the method further comprises:
and if the field value of the first local self-increasing field is contained in the field value set of the second local self-increasing field of the second system, outputting an error reporting prompt.
3. The method of claim 1, wherein the second system further comprises a global self-increment field, wherein a field value of the global self-increment field is used to identify a time sequence in which the business data is imported to the second system, and wherein the global self-increment field is used to identify a unique identification of the business data in the second system.
4. A method according to claim 3, wherein after receiving the service data to be imported to the second system, the method further comprises:
determining a maximum value within a set of field values of the global self-increment field;
automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the global self-increasing field;
and taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the business data in the second system.
5. The method of any of claims 1-4, wherein the second local self-increment field satisfies both a self-increment rule and a unique rule that identifies that the second local self-increment field is unique in field value within the same traffic class.
6. The method of any of claims 3-4, wherein the global self-increment field satisfies both a self-increment rule and a global unique rule that identifies that the global self-increment field is unique in field value on the second system.
7. The method of claim 2, wherein after the field value of the first locally self-increased field is included in the set of field values of the second locally self-increased field of the second system, the method further comprises:
determining a recommended value according to a maximum value in a field value set of a second local self-increasing field of the second system;
and outputting the recommended value.
8. An apparatus for field self-addition, the apparatus comprising:
the receiving module is used for receiving the service data to be imported into the second system; the service data is derived from the appointed service type of the first system;
a determining module, configured to determine whether a field value of a first local self-increasing field of the service data is specified, where if the field value of the service data in the first system is entered in the second system, the field value of the first local self-increasing field of the service data is specified; the first local self-increasing field is used for identifying a unique identifier of the service data in the designated service type of the first system;
a multiplexing module, configured to, if a first local self-increment field of the service data is specified and a field value of the first local self-increment field is not included in a field value set of a second local self-increment field of the second system, adopt the field value of the first local self-increment field as a field value of a second local self-increment field of the service data in the second system; the second local self-increasing field is used for identifying a unique identifier of the service data in the appointed service type of the second system;
A first maximum value determining module, configured to determine a maximum value in a field value set of a second local self-increase field of the second system if a field value of a first local self-increase field of the service data is not specified;
the first self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the second local self-increasing field;
and the first field value determining module is used for taking the automatically increased field value as the field value of a second local self-increasing field of the service data in the second system.
9. The apparatus of claim 8, wherein the multiplexing module performs the multiplexing if the first local self-increment field of the traffic data is specified, the apparatus further comprising:
and the error reporting module is used for outputting an error reporting prompt if the field value of the first local self-increasing field is contained in the field value set of the second local self-increasing field of the second system.
10. The apparatus of claim 8, wherein the second system further comprises a global self-increment field, wherein a field value of the global self-increment field is used to identify a time sequence in which the traffic data is imported to the second system, and wherein the global self-increment field is used to identify a unique identification of the traffic data in the second system.
11. The apparatus of claim 10, wherein the receiving module performs receiving service data to be imported to the second system, and wherein the apparatus further comprises:
a second maximum value determining module, configured to determine a maximum value in a field value set of the global self-increasing field;
the second self-increasing module is used for automatically increasing in a specified increasing mode on the basis of the maximum value in the field value set of the global self-increasing field;
and the second field value determining module is used for taking the field value of the automatically-increased global self-increasing field as the field value of the global self-increasing field of the service data in the second system.
12. The apparatus according to any of claims 8-11, wherein the second local self-increment field satisfies both a self-increment rule and a unique rule, the unique rule identifying that the second local self-increment field is unique in field value in the same traffic class.
13. The apparatus of any of claims 10-11, wherein the global self-increment field satisfies both a self-increment rule and a global unique rule that identifies that the global self-increment field is unique in field value on the second system.
14. The apparatus of claim 9, wherein the error reporting module performs the step of, after the field value of the first locally self-increased field is included in the field value set of the second locally self-increased field of the second system, further comprising:
the recommended value determining module is used for determining a recommended value according to the maximum value in the field value set of the second local self-increasing field of the second system;
and the output module is used for outputting the recommended value.
15. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A computer storage medium, characterized in that the computer storage medium stores a computer program for causing a computer to perform the method of any one of claims 1-7.
CN202111013263.2A 2021-08-31 2021-08-31 Method, device, electronic equipment and storage medium for field self-addition Active CN113704228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111013263.2A CN113704228B (en) 2021-08-31 2021-08-31 Method, device, electronic equipment and storage medium for field self-addition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111013263.2A CN113704228B (en) 2021-08-31 2021-08-31 Method, device, electronic equipment and storage medium for field self-addition

Publications (2)

Publication Number Publication Date
CN113704228A CN113704228A (en) 2021-11-26
CN113704228B true CN113704228B (en) 2024-02-06

Family

ID=78658076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111013263.2A Active CN113704228B (en) 2021-08-31 2021-08-31 Method, device, electronic equipment and storage medium for field self-addition

Country Status (1)

Country Link
CN (1) CN113704228B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706803A (en) * 2009-11-27 2010-05-12 天津工业大学 Method for migrating production data of weaving workshop
CN106528793A (en) * 2016-12-14 2017-03-22 国家测绘地理信息局卫星测绘应用中心 Spatial-temporal fragment storage method for distributed spatial database
CN107609068A (en) * 2017-08-30 2018-01-19 苏州朗动网络科技有限公司 A kind of noninductive moving method of data
CN110674108A (en) * 2019-08-30 2020-01-10 中国人民财产保险股份有限公司 Data processing method and device
CN111680103A (en) * 2020-05-29 2020-09-18 成都新希望金融信息有限公司 Method and device for generating ordered unique value by distributed database self-increment field
CN112015764A (en) * 2020-08-13 2020-12-01 仁励家网络科技(杭州)有限公司 Data processing method and device of business system, electronic equipment and storage medium
CN113312338A (en) * 2021-06-29 2021-08-27 中国农业银行股份有限公司 Data consistency checking method, device, equipment, medium and program product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170279657A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Communicating between components in business process management systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706803A (en) * 2009-11-27 2010-05-12 天津工业大学 Method for migrating production data of weaving workshop
CN106528793A (en) * 2016-12-14 2017-03-22 国家测绘地理信息局卫星测绘应用中心 Spatial-temporal fragment storage method for distributed spatial database
CN107609068A (en) * 2017-08-30 2018-01-19 苏州朗动网络科技有限公司 A kind of noninductive moving method of data
CN110674108A (en) * 2019-08-30 2020-01-10 中国人民财产保险股份有限公司 Data processing method and device
CN111680103A (en) * 2020-05-29 2020-09-18 成都新希望金融信息有限公司 Method and device for generating ordered unique value by distributed database self-increment field
CN112015764A (en) * 2020-08-13 2020-12-01 仁励家网络科技(杭州)有限公司 Data processing method and device of business system, electronic equipment and storage medium
CN113312338A (en) * 2021-06-29 2021-08-27 中国农业银行股份有限公司 Data consistency checking method, device, equipment, medium and program product

Also Published As

Publication number Publication date
CN113704228A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US10360087B2 (en) Web API recommendations based on usage in cloud-provided runtimes
CN113254254B (en) Root cause positioning method and device of system fault, storage medium and electronic device
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN110932910A (en) Method and device for recording logs of software faults
CN108804279A (en) Change the method and application apparatus of daily record printing grade
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN107203464B (en) Method and device for positioning service problem
CN115576817A (en) Automatic test system, method, electronic equipment and storage medium
CN109710474B (en) Hard disk fault detection method and device, terminal and readable storage medium
CN116194894A (en) Fault localization of native cloud applications
CN115705190A (en) Method and device for determining dependence degree
CN113704228B (en) Method, device, electronic equipment and storage medium for field self-addition
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN110719325A (en) Method and device for responding to user request
CN114416420A (en) Equipment problem feedback method and system
CN114549097A (en) Enterprise invoice system version management method and device, electronic equipment and storage medium
CN115913912A (en) Message interception and service link diagram generation method and device
CN114090514A (en) Log retrieval method and device for distributed system
CN113760307A (en) Method and device for obtaining differential coverage rate of application code
CN117591104B (en) Model generation method and device, electronic equipment and storage medium
CN109271306A (en) Life test method, device, equipment and medium based on direct fault location
CN115102943B (en) Multi-channel-based data trans-regional transmission method and device
CN113542103B (en) Method and device for monitoring invitations of accounts in social communication group and mobile terminal
CN114710397B (en) Service link fault root cause positioning method and device, electronic equipment and medium
CN112905429B (en) Monitoring method and device for system simulation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant