CN117111995A - Data processing method, device, electronic equipment and computer readable medium - Google Patents

Data processing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN117111995A
CN117111995A CN202311260719.4A CN202311260719A CN117111995A CN 117111995 A CN117111995 A CN 117111995A CN 202311260719 A CN202311260719 A CN 202311260719A CN 117111995 A CN117111995 A CN 117111995A
Authority
CN
China
Prior art keywords
sequence number
main
number value
selected image
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311260719.4A
Other languages
Chinese (zh)
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202311260719.4A priority Critical patent/CN117111995A/en
Publication of CN117111995A publication Critical patent/CN117111995A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data processing method, a device, electronic equipment and a computer readable medium, relating to the technical field of computers, wherein a specific implementation mode comprises the steps of responding to a data processing request, determining a selected image and acquiring a first main sequence number value of the selected image; determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value; calling an updating program to update the slave serial number of the selected image according to the first master serial number value; calling an updating program to update the main serial number of the selected image according to the third main serial number value; determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number; and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers. The method and the device can respond to the operation of adjusting the document sequence in real time, persistence the document sequence in time, improve the processing efficiency and improve the user experience.

Description

Data processing method, device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a computer readable medium.
Background
At present, in the application innovation of the trampling information technology, in the process of carrying out domestic transformation on the existing application system, partial functional modules need to be reconstructed so as to adapt to a new software and hardware platform. Localization reconstruction is not a simple functional translation. Taking the scanning acquisition function of a certain file system as an example, before the creation and localization of the file system, the system uses a C language development IE control to realize the function, specifically to a client image sequence persistence function point, the sequence of the acquired image files is recorded by using a data pointer linked list and is persisted into a text file. When the information creation is localization, the scanning acquisition function can only use JAVA language to develop WebSocket service for reconstruction, and the processing efficiency is low.
Disclosure of Invention
In view of the above, embodiments of the present application provide a data processing method, apparatus, electronic device, and computer readable medium, which can solve the problem of low efficiency in processing the sequence of the collected image files in the prior art.
To achieve the above object, according to an aspect of an embodiment of the present application, there is provided a data processing method including:
responding to the data processing request, determining a selected image, and acquiring a first main serial number value of the selected image;
determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value;
calling an updating program to update the slave serial number of the selected image according to the first master serial number value;
calling an updating program to update the main serial number of the selected image according to the third main serial number value;
determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number;
and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers.
Optionally, determining the third main sequence number value of the selected image includes:
and subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image.
Optionally, updating the slave serial number of the selected image includes:
and assigning the first main serial number value to the slave serial number of the selected image.
Optionally, updating the main serial number of the selected image includes:
and assigning the third main serial number value to the main serial number of the selected image.
Optionally, determining the sequence number according to the number, the third master sequence number value and the slave sequence number includes:
responding to the quantity being larger than a preset threshold value, and determining the maximum sequence number corresponding to the selected image according to the third main sequence number value;
determining the sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number;
updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number;
and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
Optionally, updating the master sequence number of the full-volume image corresponding to the data processing request according to the sequence number includes:
and assigning the sequence number of the full-volume image to the main sequence number of the full-volume image.
Optionally, after updating the master serial number of the full-volume image corresponding to the data processing request, the method further includes:
and sequencing and displaying the main serial numbers of the updated full images according to a preset sequence.
Optionally, after updating the master serial number of the full-volume image corresponding to the data processing request, the method further includes:
reset from sequence number to fixed assignment.
In addition, the application also provides a data processing device, which comprises:
an acquisition unit configured to determine a selected image in response to a data processing request, and acquire a first main sequence number value of the selected image;
a sequence number value determining unit configured to determine a second main sequence number value of the target image, and determine a third main sequence number value of the selected image according to the second main sequence number value;
the first updating unit is configured to call an updating program to update the slave serial number of the selected image according to the first master serial number value;
the second updating unit is configured to call an updating program to update the main sequence number of the selected image according to the third main sequence number value;
the sequence number determining unit is configured to determine the number of the selected images, and further determine the sequence number according to the number, the third master sequence number value and the slave sequence number;
and the third updating unit is configured to update the main serial numbers of the full images corresponding to the data processing requests according to the serial numbers.
Optionally, the sequence number value determining unit is further configured to:
and subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image.
Optionally, the first updating unit is further configured to:
and assigning the first main serial number value to the slave serial number of the selected image.
Optionally, the second updating unit is further configured to:
and assigning the third main serial number value to the main serial number of the selected image.
Optionally, the sequence number determination unit is further configured to:
responding to the quantity being larger than a preset threshold value, and determining the maximum sequence number corresponding to the selected image according to the third main sequence number value;
determining the sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number;
updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number;
and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
Optionally, the third updating unit is further configured to:
and assigning the sequence number of the full-volume image to the main sequence number of the full-volume image.
Optionally, the data processing apparatus further comprises a presentation unit configured to:
and sequencing and displaying the main serial numbers of the updated full images according to a preset sequence.
Optionally, the data processing apparatus further comprises a reset unit configured to:
reset from sequence number to fixed assignment.
In addition, the application also provides data processing electronic equipment, which comprises: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described above.
In addition, the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements the data processing method as described above.
To achieve the above object, according to still another aspect of an embodiment of the present application, there is provided a computer program product.
A computer program product of an embodiment of the present application includes a computer program, which when executed by a processor implements a data processing method provided by the embodiment of the present application.
One embodiment of the above application has the following advantages or benefits: the method comprises the steps of responding to a data processing request, determining a selected image, and obtaining a first main serial number value of the selected image; determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value; calling an updating program to update the slave serial number of the selected image according to the first master serial number value; calling an updating program to update the main serial number of the selected image according to the third main serial number value; determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number; and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers. The method and the device can respond to the operation of adjusting the document sequence in real time, persistence the document sequence in time, improve the processing efficiency and improve the user experience.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the application and are not to be construed as unduly limiting the application. Wherein:
FIG. 1 is a schematic diagram of the main flow of a data processing method according to one embodiment of the application;
FIG. 2 is a schematic diagram of the main flow of a data processing method according to one embodiment of the application;
FIG. 3 is a schematic diagram of the main flow of a data processing method according to one embodiment of the application;
FIG. 4 is a schematic diagram of the main units of a data processing apparatus according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. In the technical scheme of the application, the aspects of acquisition, analysis, use, transmission, storage and the like of the related user personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of the relevant laws and regulations, and ensure the personal information of the user. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting the data collection and/or deletion.
User privacy is protected by de-identifying data when used, including in some related applications, such as by removing a particular identifier, controlling the amount or specificity of stored data, controlling how data is stored, and/or other methods.
FIG. 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present application, and as shown in FIG. 1, the data processing method includes:
step S101, responding to a data processing request, determining a selected image, and acquiring a first main serial number value of the selected image.
In this embodiment, the execution body (for example, may be a server) of the data processing method may receive the data processing request by means of a wired connection or a wireless connection. The data processing request may be a request for adjusting the image sequence.
For example, document order adjustment may be as shown in Table 1 below:
TABLE 1
For example, as shown in table 1 above, the 2 nd and 9 th images were selected to be adjusted to the 5 th front. The selected image may be the 2 nd image and the 9 th image. The first main serial number value of the selected image is 2 and 9.
Step S102, a second main serial number value of the target image is determined, and a third main serial number value of the selected image is determined according to the second main serial number value.
For example, as shown in table 1, the target image may be, for example, the 5 th image. The second main serial number of the target image is 5. And determining a third main sequence number value of the selected image according to the second main sequence number value. The number of the selected images can be one or more. When the number of selected images is plural, the third main serial number value of all selected images may be the second main serial number value minus a preset value, and the preset value may be 1. For example, when the number of selected images is 2, the third main number values of the selected 2 nd and 9 th images are 4 (i.e., 5-1=4) as shown in table 1, that is, 4 between 1 and 3 and 4 between 8 and 10 in the 3 rd column (main number column) main number value in table 1.
Step S103, calling an updating program to update the slave serial number of the selected image according to the first master serial number value.
For example, the first primary sequence number corresponds to the primary sequence number of the selected image, e.g., 2, 9. And updating the slave serial number of the selected image by using the original master serial number of the selected image, namely assigning the original master serial number value of the selected image to the slave serial number value of the selected image. The updated slave sequence number values are shown as 2 and 9 in column 4 of table 1.
Step S104, call up the updating procedure in order to update the main serial number of the selected image according to the third main serial number value.
For example, the third main sequence number is the new main sequence number of the selected image, that is, the new main sequence number obtained according to the main sequence number of the target image, for example, 5-1=4. The main sequence number of the selected image is modified to a corresponding third main sequence number value, for example, 1 st 4 and 3 rd 4 in column 3 (main sequence number column) in the table.
Step S105, the number of the selected images is determined, and then the sequence number is determined according to the number, the third master sequence number value and the slave sequence number.
The number of selected images affects the maximum value of the sequence numbers corresponding to the selected images.
Specifically, determining the sequence number according to the number, the third master sequence number value and the slave sequence number includes: responding to the quantity being larger than a preset threshold value, and determining the maximum sequence number corresponding to the selected image according to the third main sequence number value; determining the sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number; updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number; and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
The preset threshold may be, for example, 1, and the embodiment of the present application does not specifically limit the preset threshold. That is, when the number of selected images is greater than 1, the maximum value of the corresponding sequence numbers needs to be determined according to the number of selected images. For example, when the number of selected images is 2 and the third main number is 4, as shown in column 5 (main number column) in table 1, numbers 1 and 3,1 and 3 smaller than 4 before 4 respectively occupy one sequence number value, and it can be known that the minimum sequence number value corresponding to the main number 4 is 3. The 5 th column (master sequence number column) in table 1 has 3 total 4 (adding one original 4), and at this time, the sequence number corresponding to each master sequence number 4 is determined according to the size of the slave sequence number value in the 6 th column (slave sequence number column) in table 1. The larger the slave sequence number is, the larger the corresponding sequence number is, since the 1 st 4 in the 5 th column (master sequence number column) in table 1 corresponds to the slave sequence number 2, the 2 nd 4 corresponds to the slave sequence number 0, and the 3 rd 4 corresponds to the slave sequence number 9, the smallest of the 3 4 is the 3, the 1 st 4 corresponds to the sequence number 4, and the 3 rd 4 corresponds to the sequence number 5 according to the slave sequence number ranking. The sequence number value corresponding to each selected image is obtained.
The larger the corresponding sequence number value based on the master sequence number value. Then, the executing body may update the sequence number value corresponding to the 7 th column (sequence number column) in table 1 in full according to the known sequence number value corresponding to the selected image and the size of the main sequence number value in the 5 th column (main sequence number column) in table 1, so as to obtain the overall sequence number value.
Step S106, updating the main serial numbers of the full images corresponding to the data processing requests according to the serial numbers.
Specifically, updating the master serial number of the full-volume image corresponding to the data processing request according to the sequence number includes: and assigning the sequence number of the full-volume image to the main sequence number of the full-volume image.
After obtaining the full sequence number value corresponding to the sequence number, the execution body can assign the full sequence number value to the corresponding main sequence number so as to complete the requirement of updating the image sequence.
In the embodiment, a selected image is determined by responding to a data processing request, and a first main serial number value of the selected image is obtained; determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value; calling an updating program to update the slave serial number of the selected image according to the first master serial number value; calling an updating program to update the main serial number of the selected image according to the third main serial number value; determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number; and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers. The method and the device can respond to the operation of adjusting the document sequence in real time, persistence the document sequence in time, improve the processing efficiency and improve the user experience.
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application, and as shown in FIG. 2, the data processing method includes:
step S201, responding to the data processing request, determining the selected image, and acquiring a first main serial number value of the selected image.
The selected image may be the selected image requiring position adjustment. The first master sequence number value of the selected image may be the initial master sequence number value of the selected impact.
Step S202, determining a second main sequence number of the target image, and subtracting 1 from the second main sequence number to obtain a third main sequence number of the selected image.
The target image may be an image in which the selected image is placed in front or an image in which the selected image is placed in rear, and the relative positional relationship between the target image and the selected image is not particularly limited in the embodiment of the present application. The second master sequence number of the target image may be an initial master sequence number of the target image. And subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image, namely a new main serial number value of the selected image.
In step S203, an update procedure is invoked to assign a first master sequence number value to a slave sequence number of the selected image.
By assigning the first master sequence number value to the slave sequence number value corresponding to the slave sequence number of the selected image, the sequence number value of the selected image can be accurately determined according to the slave sequence number value of the selected image, so that preparation is conveniently made for subsequent master sequence number value update, and the accuracy of master sequence number value update is improved.
Step S204, call up the updating procedure to assign the third main serial number value to the main serial number of the selected image.
And assigning the third main serial number value to the main serial number of the selected image, namely updating the new main serial number value of the selected image to be the third main serial number value.
Step S205, the number of the selected images is determined, and then the sequence number is determined according to the number, the third master sequence number value and the slave sequence number.
When the number of the selected images is 1, after updating the new master sequence number value of the selected images, the maximum value of the corresponding sequence number is determined directly according to the number of the selected images and the number of the original master sequence number value smaller than the third master sequence number value of the selected images, and then the sequence number of the selected images is determined according to the third master sequence number value of the selected images (namely the new master sequence number value of the selected images), the maximum value of the sequence number and the slave sequence number corresponding to the selected images.
Step S206, updating the main serial numbers of the full images corresponding to the data processing requests according to the serial numbers.
Specifically, the execution body may assign the updated value of the full sequence number to the corresponding master sequence number value.
Specifically, after updating the master serial number of the full-volume image corresponding to the data processing request, the method further includes: and sequencing and displaying the main serial numbers of the updated full images according to a preset sequence.
And sequencing and displaying the main sequence number values corresponding to the main sequence numbers of the updated full images according to a preset sequence (such as an ascending sequence or a descending sequence).
Specifically, after updating the master serial number of the full-volume image corresponding to the data processing request, the method further includes: reset from sequence number to fixed assignment.
The slave sequence number value that is selected to be accepted can be reset to a fixed value, for example 0 or a. The embodiment of the application does not specifically limit the fixed assignment.
Fig. 3 is a schematic flow chart of a data processing method according to an embodiment of the present application. The data processing method of the embodiment of the application can be applied to the scene which adjusts the sequence of the image documents and is durable. For example, as shown in fig. 3, JAVA is used to implement operations of real-time response recording of image file names and adjustment of image document sequence based on a database, so as to meet the requirement of timely persistence of image document sequence. Firstly, scanning or importing a document image, scanning a paper document into the document image by using image acquisition equipment such as a scanner through a scanning function provided by an execution main body, and acquiring the document image into the execution main body, or importing an existing document image into the execution main body through an importing function provided by the execution main body. The execution main body records the names and the sequence of the image files by using a database, the execution main body stores the image files into the file execution main body one by one, and records 3 pieces of key information of the images into the database, wherein the key information is respectively as follows: image file name (english name FileName), at this time, the full path name of the image file is assigned. The main serial number (English name MainNo) is assigned in increasing order according to the sequence of the image file entering the execution main body, the initial number is 1, the step length is 1. From the sequence number (english name MinorNo), the sequence is adjusted and used, and at this time, 0 is assigned. The execution main body displays the images and the sequence, and the execution main body displays the certificate images and the main sequence number values on the interface according to the sequence of the main sequence number. And selecting the image by the mouse and dragging the image to the target image. And selecting part of the images by the mouse, dragging the part of the images to a certain image, and receiving an order adjustment instruction for adjusting the selected images to the front of the target image by the execution main body. The execution subject calculates a new master sequence number for the selected image. The execution subject inquires the main serial number of the target image in the database under the condition of the file name, and subtracts 1 from the inquired main serial number to obtain a new main serial number value (NewMainNo) of the selected image. The main body is executed to traverse the selected images, and the master sequence number and the slave sequence number of the database are modified. The execution main body traverses the selected image, modifies the slave serial number value to be the original master serial number value by taking the file name of the selected image as a condition, and modifies the master serial number value to be the calculated new master serial number value. The execution body modifies the master sequence number and the slave sequence number of the database one by one. The execution main body inquires the full table by using the 1 st sorting field with the main sequence number and the 2 nd sorting field with the slave sequence number, and modifies the main sequence number and the slave sequence number of all records one by one: the main serial number is assigned value in an incremental way according to the initial number of 1 and the step length of 1. Reset from sequence number, fix assigned 0. The execution subject is for displaying images and sequences. The executive body displays the certificate image and the new main serial number value on the interface according to the main serial number sequence. The data processing method of the embodiment of the application uses JAVA language to realize the real-time response operation of adjusting the sequence of the image documents and the requirement of timely persistence of the sequence of the image documents based on a database. When the sequence is adjusted, the sequence problem is solved by adopting the slave sequence to accept the original master sequence value and the master sequence and the slave sequence participate in the sequence. And after the sequence adjustment is completed, the master sequence number and slave sequence number values are cleaned in time, so that the next sequence adjustment request can be responded conveniently. And responding to the operation of an operator for adjusting the document sequence in real time, and persistence of the document sequence in time, so that the processing efficiency is improved, and the user experience is improved.
Fig. 4 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present application. As shown in fig. 4, the data processing apparatus 400 includes an acquisition unit 401, a sequence number value determination unit 402, a first update unit 403, a second update unit 404, a sequence number determination unit 405, and a third update unit 406.
The acquiring unit 401 is configured to determine a selected image in response to a data processing request, and acquire a first main serial number value of the selected image.
The sequence number value determining unit 402 is configured to determine a second main sequence number value of the target image, and determine a third main sequence number value of the selected image according to the second main sequence number value.
The first updating unit 403 is configured to invoke an updating procedure to update the slave serial number of the selected image according to the first master serial number value.
The second updating unit 404 is configured to invoke an updating procedure to update the master sequence number of the selected image according to the third master sequence number value.
The sequence number determining unit 405 is configured to determine the number of the selected images, and further determine the sequence number according to the number, the third master sequence number value and the slave sequence number.
The third updating unit 406 is configured to update the master sequence number of the full-volume image corresponding to the data processing request according to the sequence number.
In some embodiments, the sequence number value determination unit 402 is further configured to: and subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image.
In some embodiments, the first updating unit 403 is further configured to: and assigning the first main serial number value to the slave serial number of the selected image.
In some embodiments, the second updating unit 404 is further configured to: and assigning the third main serial number value to the main serial number of the selected image.
In some embodiments, the sequence number determination unit 405 is further configured to: responding to the quantity being larger than a preset threshold value, and determining the maximum sequence number corresponding to the selected image according to the third main sequence number value; determining the sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number; updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number; and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
In some embodiments, the third updating unit 406 is further configured to: and assigning the sequence number of the full-volume image to the main sequence number of the full-volume image.
In some embodiments, the data processing apparatus further comprises a presentation unit, not shown in fig. 4, configured to: and sequencing and displaying the main serial numbers of the updated full images according to a preset sequence.
In some embodiments, the data processing apparatus further comprises a reset unit, not shown in fig. 4, configured to: reset from sequence number to fixed assignment.
The data processing method and the data processing apparatus of the present application have a corresponding relationship in terms of implementation, and therefore, the description is not repeated.
Fig. 5 illustrates an exemplary system architecture 500 in which a data processing method or data processing apparatus of an embodiment of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a data processing screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for data processing requests submitted by users using the terminal devices 501, 502, 503. The background management server can respond to the data processing request, determine the selected image and acquire a first main serial number value of the selected image; determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value; calling an updating program to update the slave serial number of the selected image according to the first master serial number value; calling an updating program to update the main serial number of the selected image according to the third main serial number value; determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number; and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers. The method can respond to the operation of adjusting the document sequence in real time, persistence the document sequence in time, improve the processing efficiency and promote the user experience
It should be noted that, the data processing method provided by the embodiment of the present application is generally executed by the server 505, and accordingly, the data processing apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the computer system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is 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 of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-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 computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a sequence number value determination unit, a first update unit, a second update unit, a sequence number determination unit, and a third update unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to determine a selected image in response to a data processing request, and acquire a first master sequence number value of the selected image; determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value; calling an updating program to update the slave serial number of the selected image according to the first master serial number value; calling an updating program to update the main serial number of the selected image according to the third main serial number value; determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number; and updating the main serial numbers of the full images corresponding to the data processing requests according to the sequence numbers.
The computer program product of the application comprises a computer program which, when being executed by a processor, implements the data processing method in the embodiments of the application.
According to the technical scheme provided by the embodiment of the application, the operation of adjusting the document sequence can be responded in real time, the document sequence is timely persistence, the processing efficiency is improved, and the user experience is improved.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (16)

1. A method of data processing, comprising:
responding to a data processing request, determining a selected image, and acquiring a first main serial number value of the selected image;
determining a second main sequence number value of the target image, and determining a third main sequence number value of the selected image according to the second main sequence number value;
calling an updating program to update the slave serial number of the selected image according to the first master serial number value;
calling an updating program to update the main serial number of the selected image according to the third main serial number value;
determining the number of the selected images, and further determining a sequence number according to the number, the third master sequence number value and the slave sequence number;
and updating the main serial numbers of the full images corresponding to the data processing requests according to the serial numbers.
2. The method of claim 1, wherein determining a third master sequence number value for the selected image comprises:
and subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image.
3. The method of claim 1, wherein updating the slave serial number of the selected image comprises:
and assigning the first master sequence number value to the slave sequence number of the selected image.
4. The method of claim 1, wherein updating the master serial number of the selected image comprises:
and assigning the third main serial number value to the main serial number of the selected image.
5. The method of claim 1, wherein said determining a sequence number from said number, said third master sequence number value, and said slave sequence number comprises:
determining a maximum sequence number corresponding to the selected image according to the third main sequence number value in response to the number being greater than a preset threshold;
determining a sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number;
updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number;
and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
6. The method according to claim 5, wherein updating the master sequence number of the full-volume image corresponding to the data processing request according to the sequence number comprises:
and assigning the sequence number of the full-volume image to the main sequence number of the full-volume image.
7. The method of claim 1, wherein after the updating the master sequence number of the full-volume image corresponding to the data processing request, the method further comprises:
and sequencing and displaying the updated main serial numbers of the full images according to a preset sequence.
8. The method of claim 1, wherein after the updating the master sequence number of the full-volume image corresponding to the data processing request, the method further comprises:
resetting the slave sequence number to a fixed assignment.
9. A data processing apparatus, comprising:
an acquisition unit configured to determine a selected image in response to a data processing request, and acquire a first main sequence number value of the selected image;
a sequence number value determining unit configured to determine a second main sequence number value of a target image, and determine a third main sequence number value of the selected image according to the second main sequence number value;
the first updating unit is configured to call an updating program to update the slave serial number of the selected image according to the first master serial number value;
the second updating unit is configured to call an updating program to update the main sequence number of the selected image according to the third main sequence number value;
a sequence number determining unit configured to determine the number of the selected images, and further determine a sequence number according to the number, the third master sequence number value, and the slave sequence number;
and the third updating unit is configured to update the main serial numbers of the full images corresponding to the data processing requests according to the serial numbers.
10. The apparatus of claim 9, wherein the sequence number value determination unit is further configured to:
and subtracting 1 from the second main serial number value to obtain a third main serial number value of the selected image.
11. The apparatus of claim 9, wherein the first updating unit is further configured to:
and assigning the first master sequence number value to the slave sequence number of the selected image.
12. The apparatus of claim 9, wherein the second updating unit is further configured to:
and assigning the third main serial number value to the main serial number of the selected image.
13. The apparatus of claim 9, wherein the sequence number determination unit is further configured to:
determining a maximum sequence number corresponding to the selected image according to the third main sequence number value in response to the number being greater than a preset threshold;
determining a sequence number corresponding to each selected image according to the slave sequence number, the number and the maximum sequence number;
updating the main serial number of the full image corresponding to the data processing request based on the first main serial number value to obtain an updated main serial number;
and determining the sequence number of the full image according to the updated main sequence number and the sequence number corresponding to each selected image.
14. A data processing electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
15. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
16. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any of claims 1-8.
CN202311260719.4A 2023-09-27 2023-09-27 Data processing method, device, electronic equipment and computer readable medium Pending CN117111995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311260719.4A CN117111995A (en) 2023-09-27 2023-09-27 Data processing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311260719.4A CN117111995A (en) 2023-09-27 2023-09-27 Data processing method, device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN117111995A true CN117111995A (en) 2023-11-24

Family

ID=88798512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311260719.4A Pending CN117111995A (en) 2023-09-27 2023-09-27 Data processing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN117111995A (en)

Similar Documents

Publication Publication Date Title
CN108804450B (en) Information pushing method and device
CN110473036B (en) Method and device for generating order number
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN108011949B (en) Method and apparatus for acquiring data
CN110706093A (en) Accounting processing method and device
CN111126948A (en) Processing method and device for approval process
CN113971243A (en) Data processing method, system, equipment and storage medium applied to questionnaire survey
CN111222067B (en) Information generation method and device
CN111352957A (en) Remote dictionary service optimization method and related equipment
CN107885872B (en) Method and device for generating information
CN117111995A (en) Data processing method, device, electronic equipment and computer readable medium
CN116049099A (en) Data processing method, device, electronic equipment and computer readable medium
CN115658605A (en) Method and device for processing page snapshot
CN111723274B (en) Method and device for processing information
CN115022266A (en) Group member adding method, device, equipment and medium
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN112905427B (en) Data processing method and device
CN110874302A (en) Method and device for determining buried point configuration information
KR102495790B1 (en) An integrated medical management system for integrating and managing data including data located on external servers
CN114691325B (en) Application management method and device
CN117672477A (en) Inspection project management method and device
CN115114021A (en) Method, device and system for managing service
CN116346760A (en) Message processing method and device
CN116228396A (en) Credit data processing method and device
CN115600886A (en) Service processing method and device, electronic equipment and computer readable medium

Legal Events

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