CN113704228A - Method and device for field self-increment, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN113704228A
CN113704228A CN202111013263.2A CN202111013263A CN113704228A CN 113704228 A CN113704228 A CN 113704228A CN 202111013263 A CN202111013263 A CN 202111013263A CN 113704228 A CN113704228 A CN 113704228A
Authority
CN
China
Prior art keywords
field
increment
local
auto
value
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.)
Granted
Application number
CN202111013263.2A
Other languages
Chinese (zh)
Other versions
CN113704228B (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

Images

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-increment method and device, electronic equipment and a storage medium. The method is used for solving the problem of migration risk existing after business data migration. In the embodiment of the application, business data to be imported into a second system is received; determining whether a field value of a first local autonomy field of the service data is designated; if a first local auto-increment field of the service data is specified and a field value of the first local auto-increment field is not included in a set of field values of a second local auto-increment field of the second system, the field value of the first local auto-increment field is adopted as the field value of the second local auto-increment field of the service data in the second system.

Description

Method and device for field self-increment, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for field self-increment, an electronic device, and a storage medium.
Background
With the development of the technology, more and more operation platforms appear, when business data are migrated from an original platform to a new platform, an original field value cannot be reserved, and the same data can only be migrated through a unified field value generated by the new platform in a self-increment mode, so that the problem that after the business data are migrated on the platform, the field value is inconsistent and migration risk exists.
Disclosure of Invention
The application aims to provide a field self-increment method, a field self-increment device, electronic equipment and a storage medium, which are used for solving the problem of migration risk existing after business data migration.
In a first aspect, an embodiment of the present application provides a method for field self-increment, where the method includes:
receiving service data to be imported into a second system; the service data is derived from a specified service type of the first system;
determining whether a field value of a first local autonomy field of the service data is designated; the first local autonomy field is used for identifying the unique identification of the service data in the specified service type of the first system;
if a first local auto-increment field of the business data is specified and the field value of the first local auto-increment field is not contained in a field value set of a second local auto-increment field of the second system, adopting the field value of the first local auto-increment field as the field value of the second local auto-increment field of the business data in the second system; the second local self-increment field is used for identifying the unique identification of the service data in the specified service type of the second system.
In one embodiment, the method further comprises:
determining a maximum value within a field value set of a second local auto-increment field of the second system if a field value of a first local auto-increment field of the traffic data is not specified;
performing automatic growth in a specified growth manner on the basis of a maximum value in a field value set of the second local self-increment field;
and taking the automatically increased field value as the field value of a second local self-increment field of the business data in the second system.
In one embodiment, if the first local autonomy field of the service data is specified, the method further includes:
outputting an error prompt if a field value of a first local auto-increment field is contained in a set of field values of a second local auto-increment field of the second system.
In one embodiment, the second system further comprises a global autonomic field, wherein a field value of the global autonomic field is used for identifying a time sequence of importing the business data into the second system, and the global autonomic field is used for identifying a unique identification of the business data in the second system.
In an 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 autoincrement field;
performing automatic growth in a specified growth mode on the basis of the maximum value in the field value set of the global auto-increment field;
and taking the field value of the automatically increased global auto-increment field as the field value of the business data in the global auto-increment field of the second system.
In one embodiment, the second local autonomy field satisfies both an autonomy rule and a unique rule that identifies that the second local autonomy field is field value unique within the same traffic class.
In one embodiment, the global autonomy field satisfies both an autonomy rule and a globally unique rule that identifies that the global autonomy field is field value unique on the second system.
In one embodiment, after the field value of the first local autonomy field is included in the field value set of the second local autonomy 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 auto-increment field of the second system;
and outputting the recommended value.
Second aspect the present application also provides an apparatus for field self-increment, 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 a specified service type of the first system;
a determination module to determine whether a field value of a first local autonomy field of the service data is specified; the first local autonomy field is used for identifying the unique identification of the service data in the specified service type of the first system;
a multiplexing module, configured to, if a first local autonomy field of the service data is specified and a field value of the first local autonomy field is not included in a field value set of a second local autonomy field of the second system, adopt the field value of the first local autonomy field as a field value of a second local autonomy field of the service data in the second system; the second local self-increment field is used for identifying the 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 auto-increment field of the second system if a field value of a first local auto-increment field of the service data is not specified;
a first auto-increment module, configured to perform auto-increment in a specified increment manner based on a maximum value in a field value set of the second local auto-increment field;
a first field value determining module, configured to use the automatically incremented field value as a field value of a second local self-increment field of the service data in the second system.
In one embodiment, the multiplexing module performs that 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-increment field is contained in the field value set of the second local self-increment field of the second system.
In one embodiment, the second system further comprises a global autonomic field, wherein a field value of the global autonomic field is used for identifying a time sequence of importing the business data into the second system, and the global autonomic field is used for identifying a unique identification of the business data in the second system.
In an embodiment, after the receiving module receives the service data to be imported to the second system, the apparatus further includes:
a second maximum determination module, configured to determine a maximum value within a field value set of the global auto-increment field;
a second auto-increment module, configured to perform auto-increment in a specified increment manner based on a maximum value in a field value set of the global auto-increment field;
and the second field value determining module is used for taking the automatically-increased field value of the global auto-increment field as the field value of the business data in the global auto-increment field of the second system.
In one embodiment, the second local autonomy field satisfies both an autonomy rule and a unique rule that identifies that the second local autonomy field is field value unique within the same traffic class.
In one embodiment, the global autonomy field satisfies both an autonomy rule and a globally unique rule that identifies that the global autonomy field is field value unique on the second system.
In one embodiment, the error reporting module performs that if the field value of the first local auto-increment field is included in the field value set of the second local auto-increment field of the second system, the apparatus further comprises:
a recommended value determining module, configured to determine a recommended value according to a maximum value in the field value set of a second local auto-increment 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 further 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, and the instructions are executed 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, and the computer program is configured to cause a computer to execute any one of the methods provided in the first aspect of the present application.
In a fifth aspect, another embodiment of the present application further provides a computer program product, which, when run on a computer, causes the computer to perform the method according to any one of the above.
In the embodiment of the application, the processing method of the field value of the business data is determined by judging whether the field value of the business data is designated or not, so that the original field value of the business data is taken as the field value of the new platform as much as possible, thereby avoiding the need of adjusting all code programs corresponding to the whole business data due to the change of the field value, saving human resources and avoiding the migration risk.
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 the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof 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 needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application scenario diagram of a field auto-increment method according to an embodiment of the present application;
fig. 2 is an overall flowchart of a field auto-increment method according to an embodiment of the present application;
fig. 3A is a schematic diagram of an error notification output by the field auto-increment method according to the embodiment of the present application;
fig. 3B is a schematic diagram of an output recommended value of a field auto-increment method according to an embodiment of the present application;
fig. 3C is a schematic diagram of a field auto-increment method according to an embodiment of the present application, which simultaneously outputs an error notification prompt and a recommendation value;
fig. 4 is a flowchart illustrating a case where a field value of service data of a field adding method according to an embodiment of the present application is not specified;
FIG. 5 is a diagram illustrating repeatable field values of different service types of a field self-increment method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a global field of a field auto-increment method according to an embodiment of the present application;
fig. 7 is a flowchart of a global auto-increment field auto-increment of the field auto-increment method according to the embodiment of the present application;
fig. 8 is a schematic diagram of a global auto-increment field value and a field value of a second local auto-increment field of a field auto-increment method according to an embodiment of the present application;
fig. 9 is a schematic diagram of a field auto-increment device according to an embodiment of the present application;
fig. 10 is a schematic view of an electronic device of a field auto-increment method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It is noted that the terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The inventor researches and discovers that more and more operation platforms appear along with the development of the technology, when business data are migrated into a new platform from an original platform, the original field value cannot be reserved, and the same data can only use a uniform field value generated by the platform in a self-increment mode after being migrated, so that the business data are inconsistent before and after the field value after the platform is migrated, and the migration risk problem exists.
In view of the above, the present application provides a method, an apparatus, an electronic device, and a storage medium for field self-increment, so as to solve the above problems. The inventive concept 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 autonomy field of the service data is designated; if a first local auto-add field of service data is specified and a field value of the first local auto-add field is not included in a set of field values of a second local auto-add field of the second system, adopting the field value of the first local auto-add field as a field value of a second local auto-add field of the service data in the second system.
Fig. 1 is a diagram of an application scenario of the field self-increment method in the embodiment of the present application. The figure includes: network 10, server 20, storage 30, terminal device 40;
wherein: the server 20 receives service data to be imported to the second system through the network 10, the service data being derived from the specified service type of the first system; determining whether a field value of a first local autonomy field of the service data is designated; if a first local auto-add field of the service data is designated and a field value of the first local auto-add field is not overlapped with a field value of a second local auto-add field of the second system, multiplexing the field value of the first local auto-add field as a field value of the second local auto-add field of the service data. The service data may be stored in the memory 30, and it should be understood that the steps performed by the server may be performed by the terminal.
Only a single server or terminal device is detailed in the description of the present application, but it will be understood by those skilled in the art that the terminal device 40, the server 20 and the memory 30 shown are intended to represent the operations of the terminal device, the server and the memory involved in the technical aspects of the present disclosure. The individual servers and memories are described in detail for convenience of illustration only and are not meant to imply limitations on the number, type, or location of end devices and servers. It should be noted that the underlying concepts of the example embodiments of the present application may not be altered if additional modules are added or removed from the illustrated environments. In addition, although a bidirectional arrow from the memory 30 to the server 20 is shown in fig. 1 for convenience of explanation, it will be understood by those skilled in the art that the above-described processing of the service data also needs to be implemented through the network 10.
It should be noted that the storage 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, and the like. In addition, the field self-increment 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-increment requirements.
For the convenience of understanding, the field adding method provided by the embodiment 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 auto-increment provided in the embodiment of the present application is shown, where:
in step 201: receiving service data to be imported into a second system; wherein the service data is derived from a specified service type of the first system;
in the embodiment of the application, the service data may be a sticker, a template, and 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 autonomy field of the service data is designated; the first local self-increment field is used for identifying the unique identification of the service data in the specified service type of the first system;
in step 203: if a first local auto-increment field of the business data is specified and the field value of the first local auto-increment field is not contained in a field value set of a second local auto-increment field of a second system, adopting the field value of the first local auto-increment field as the field value of the second local auto-increment field of the business data in the second system; the second local self-increment field is used for identifying the unique identification of the service data in the specified service type of the second system.
In one embodiment, when business data is migrated from an original platform to a second system, a person skilled in the relevant art enters a field value of the business data in the original platform in the second system, so that the field value of the business data is designated.
In an embodiment, after the field value of the service data is specified, there may be an overlap between the field value of the first local auto-increment field and the field value of the second local auto-increment field of the second system, that is, the field value of the first local auto-increment field is included in the field value set of the second local auto-increment field of the second system, when this occurs, in the embodiment of the present application, in order to remind the relevant technician of the second system to handle the problem, an error notification as shown in fig. 3A is output, and the relevant technician is timely reminded of the current error through the error notification, so that the technician can technically handle the problem.
In one embodiment, after the field value of the first local auto-increment field is included in the field value set of the second local auto-increment field of the second system, a recommended value may be determined according to a maximum value of the field value of the second local auto-increment field of the second system as in fig. 3B; and outputting the recommended value. So that a person skilled in the relevant art can modify the field value of the second local self-increment field of the business data and other relevant contents corresponding to the business data according to the recommended value. It should be noted that, the present application does not limit the time sequence of outputting the error-reporting prompt and the recommended value, that is, the error-reporting prompt may be output first and then the recommended value may be output, the recommended value may be output first and then the error prompt may be output, or the error-reporting prompt and the recommended value may be output simultaneously as shown in fig. 3C.
If a person skilled in the relevant art does not enter the field value of the service data in the original platform in the second system, it indicates that the field value of the service data is not specified, and then the steps shown in fig. 4 may be executed:
in step 401: determining a maximum value within a field value set of a second local auto-increment field of a second system if a field value of a first local auto-increment field of the traffic data is not specified;
in step 402: automatically growing in a specified growing manner on the basis of a maximum value within the set of field values 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-increment field of the business data.
In the embodiment of the present application, in order to ensure that the field value of the auto-increment field after the automatic increment is implemented is not included in the field value set of the second local auto-increment field of the second system, and improve the success rate of the auto-increment field, the automatic increment is performed on the basis of the maximum value of the field value of the second local auto-increment field, in an embodiment, the auto-increment 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-increment field of the current second system is 100, when the field value of the first local self-increment field of the service data is not specified, the field value of the second local self-increment field of the service data is self-incremented in a mode of +1 from 100, namely the field value of the second local self-increment field of the service data is 101.
In one embodiment, since the service data in different service types do not affect each other, and each service data is unique in the same service type, the second local self-increment field simultaneously satisfies the self-increment rule and the unique rule, and the unique rule identifies that the field value of the second local self-increment field is unique in the same service type. As shown in fig. 5, in the template service data, the field value of the second local self-increment field of the template a may be 100, and the field value of the second local self-increment field of the template B is 101; in the sticker service data, the field value of the second partial autonomy field of the sticker a is 100, and the field value of the second partial autonomy field of the sticker B is 101. By means of the unique rule, error problems caused by field value repetition of the second local self-increment field of the business data in the same business type are avoided.
In one embodiment, in order to determine the time sequence of the current business data imported to the second system, a global indirection field is further included in the second system, as shown in fig. 6, a field value of the global indirection field is used to identify the time sequence of the business data imported to the second system, and the time sequence of the business data imported to the second system can be conveniently viewed by a person skilled in the relevant art through the field value of the global indirection field.
In the embodiment of the present application, the global auto-increment field also has an auto-increment 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 the maximum value of the field value of the global auto-increment field;
in step 702: automatically growing in a specified growing mode on the basis of the maximum value of the field value of the global auto-increment field;
in step 703: and taking the field value of the automatically increased global auto-increment field as the field value of the global auto-increment field of the business data in the second system.
In one embodiment, the global auto-increment field may also be incremented by one on the basis of the maximum value, for example: when the maximum value of the field value of the global auto-increment field of the current second system is 200, the field value of the global auto-increment field of the service data imported into the second system at this time is 201. Other self-increment modes are also applicable to the application, and the application is not limited to the self-increment mode.
By the method, the time sequence of the business data imported into the second system is clarified, and the total quantity of the business data currently contained in the second system can be clearly seen by persons skilled in the relevant field.
In one embodiment, the global discretionary field satisfies both an discretionary rule and a globally unique rule, the globally unique rule identifying that the global discretionary field is field value unique on said second system. As shown in FIG. 8, the field value of the global auto-increment field of the sticker A is 100, the field value of the global auto-increment field of the template A is 101, the field value of the global auto-increment field of the sticker B is 102, and the field value of the global auto-increment field of the template B is 103. By the method, the field values of the global self-increment fields of all types of services are unique, and the total number of the services of the current second system can be definitely obtained.
As shown in fig. 9, based on the same inventive concept, an apparatus 900 for field auto-increment is proposed, which includes:
a receiving module 9001, configured to receive service data to be imported to a second system; the service data is derived from a specified service type of the first system;
a determining module 9002, configured to determine whether a field value of a first local autonomy field of the service data is specified; the first local autonomy field is used for identifying the unique identification of the service data in the specified service type of the first system;
a multiplexing module 9003, configured to adopt a field value of a first local autonomy field of the service data as a field value of a second local autonomy field of the service data in a second system if the first local autonomy field of the service data is specified and the field value of the first local autonomy field is not included in a set of field values of the second local autonomy field of the second system; the second local self-increment field is used for identifying the 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 auto-increment field of the second system if a field value of a first local auto-increment field of the service data is not specified;
a first auto-increment module, configured to perform auto-increment in a specified increment manner based on a maximum value in a field value set of the second local auto-increment field;
a first field value determining module, configured to use the automatically incremented field value as a field value of a second local self-increment field of the service data in the second system.
In one embodiment, the multiplexing module performs that 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-increment field is contained in the field value set of the second local self-increment field of the second system.
In one embodiment, the second system further comprises a global autonomic field, wherein a field value of the global autonomic field is used for identifying a time sequence of importing the business data into the second system, and the global autonomic field is used for identifying a unique identification of the business data in the second system.
In an embodiment, after the receiving module receives the service data to be imported to the second system, the apparatus further includes:
a second maximum determination module, configured to determine a maximum value within a field value set of the global auto-increment field;
a second auto-increment module, configured to perform auto-increment in a specified increment manner based on a maximum value in a field value set of the global auto-increment field;
and the second field value determining module is used for taking the automatically-increased field value of the global auto-increment field as the field value of the business data in the global auto-increment field of the second system.
In one embodiment, the second local autonomy field satisfies both an autonomy rule and a unique rule that identifies that the second local autonomy field is field value unique within the same traffic class.
In one embodiment, the global autonomy field satisfies both an autonomy rule and a globally unique rule that identifies that the global autonomy field is field value unique on the second system.
In one embodiment, the error reporting module performs that if the field value of the first local auto-increment field is included in the field value set of the second local auto-increment field of the second system, the apparatus further comprises:
a recommended value determining module, configured to determine a recommended value according to a maximum value in the field value set of a second local auto-increment field of the second system;
and the output module is used for outputting the recommended value.
Having described the field incrementing method and apparatus of the exemplary embodiments of the present application, an electronic device according to another exemplary embodiment of the present application is next described.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally 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. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the field self-increment method according to various exemplary embodiments of the present application described above in the present specification.
The electronic apparatus 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 only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 10, the electronic device 130 is represented in the form of a general electronic device. The components of the 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 that connects the various system components (including the memory 132 and the processor 131).
Bus 133 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The 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 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise 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.), with one or more devices that enable a user to interact with the electronic device 130, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur via input/output (I/O) interfaces 135. Also, the electronic device 130 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 136. As shown in FIG. 10, network adapter 136 communicates with other modules for electronic device 130 via bus 133. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of a field addition method provided by the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of a field addition method according to various exemplary embodiments of the present application described above in this specification 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. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc 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 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.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A 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 and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices 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., 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 division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of field incrementing, the method comprising:
receiving service data to be imported into a second system; the service data is derived from a specified service type of the first system;
determining whether a field value of a first local autonomy field of the service data is designated; the first local autonomy field is used for identifying the unique identification of the service data in the specified service type of the first system;
if a first local auto-increment field of the business data is specified and the field value of the first local auto-increment field is not contained in a field value set of a second local auto-increment field of the second system, adopting the field value of the first local auto-increment field as the field value of the second local auto-increment field of the business data in the second system; the second local self-increment field is used for identifying the unique identification of the service data in the specified service type of the second system.
2. The method of claim 1, further comprising:
determining a maximum value within a field value set of a second local auto-increment field of the second system if a field value of a first local auto-increment field of the traffic data is not specified;
performing automatic growth in a specified growth manner on the basis of a maximum value in a field value set of the second local self-increment field;
and taking the automatically increased field value as the field value of a second local self-increment field of the business data in the second system.
3. The method of claim 1, wherein if the first local discretionary field of the traffic data is specified, the method further comprises:
outputting an error prompt if a field value of a first local auto-increment field is contained in a set of field values of a second local auto-increment field of the second system.
4. The method of claim 1, wherein the second system further comprises a global autonomic field, wherein a field value of the global autonomic field is used to identify a temporal order in which the business data is imported to the second system, and wherein the global autonomic field is used to identify a unique identification of the business data in the second system.
5. The method of claim 4, 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 autoincrement field;
performing automatic growth in a specified growth mode on the basis of the maximum value in the field value set of the global auto-increment field;
and taking the field value of the automatically increased global auto-increment field as the field value of the business data in the global auto-increment field of the second system.
6. The method according to any of claims 1-5, wherein the second local autonomy field satisfies both an autonomy rule and a unique rule, the unique rule identifying that the second local autonomy field is field value unique within the same traffic class.
7. An apparatus for field incrementing, 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 a specified service type of the first system;
a determination module to determine whether a field value of a first local autonomy field of the service data is specified; the first local autonomy field is used for identifying the unique identification of the service data in the specified service type of the first system;
a multiplexing module, configured to, if a first local autonomy field of the service data is specified and a field value of the first local autonomy field is not included in a field value set of a second local autonomy field of the second system, adopt the field value of the first local autonomy field as a field value of a second local autonomy field of the service data in the second system; the second local self-increment field is used for identifying the unique identification of the service data in the specified service type of the second system.
8. 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-6.
9. A computer storage medium, characterized in that the computer storage medium stores a computer program for causing a computer to execute the method of any one of claims 1-6.
10. A computer program product, characterized in that, when the computer program is run on a computer, it causes the computer to perform the method according to any of claims 1-6.
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 true CN113704228A (en) 2021-11-26
CN113704228B 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 (8)

* 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
US20170279657A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Communicating between components in business process management systems
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

Patent Citations (8)

* 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
US20170279657A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Communicating between components in business process management systems
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
CN113704228B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
US20190163524A1 (en) Method and apparatus for processing task in smart device
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
WO2021259013A1 (en) Data processing method and apparatus, electronic device, and computer-readable medium
US20130117157A1 (en) Optimally sourcing services in hybrid cloud environments
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
US9497096B2 (en) Dynamic control over tracing of messages received by a message broker
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
US9948524B2 (en) Network element diagnostic evaluation
WO2019075845A1 (en) Construction method and device for link call relationship, computer device and storage medium
CN110781180B (en) Data screening method and data screening device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN114489954A (en) Tenant creation method based on virtualization platform, tenant access method and equipment
CN113515271A (en) Service code generation method and device, electronic equipment and readable storage medium
CN109194567B (en) Method and apparatus for retransmitting information
CN113704228A (en) Method and device for field self-increment, electronic equipment and storage medium
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN111881025B (en) Automatic test task scheduling method, device and system
CN108512688A (en) Network node configuration method and terminal
CN113779021A (en) Data processing method, device, computer system and readable storage medium
CN115913912A (en) Message interception and service link diagram generation method and device
CN113141407A (en) Page resource loading method and device and electronic equipment
CN116450465B (en) Data processing method, device, equipment and medium
CN109614566A (en) Traffic source analysis method, system and device

Legal Events

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