CN106850707B - Method, device and system for batch uploading materials - Google Patents

Method, device and system for batch uploading materials Download PDF

Info

Publication number
CN106850707B
CN106850707B CN201510880756.4A CN201510880756A CN106850707B CN 106850707 B CN106850707 B CN 106850707B CN 201510880756 A CN201510880756 A CN 201510880756A CN 106850707 B CN106850707 B CN 106850707B
Authority
CN
China
Prior art keywords
batch
uploading
task
data
batch transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510880756.4A
Other languages
Chinese (zh)
Other versions
CN106850707A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510880756.4A priority Critical patent/CN106850707B/en
Publication of CN106850707A publication Critical patent/CN106850707A/en
Application granted granted Critical
Publication of CN106850707B publication Critical patent/CN106850707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device and a system for batch uploading of materials, relates to the technical field of internet, and aims to solve the problem of high labor cost of batch uploading of materials. The method of the invention comprises the following steps: receiving a material batch transmission task reported by a front end, wherein the material batch transmission task comprises material data to be uploaded; when the uploading time indicated by the material batch transmission task is reached, dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party; uploading a plurality of material batches to a material receiving party; and returning the material batch transmission result to the front end. The invention is mainly applied to the batch transmission process of the materials facing the advertisement putting platform.

Description

Method, device and system for batch uploading materials
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device and a system for batch uploading of materials.
Background
The material can be Internet advertisement material, specifically content displayed in the advertisement, and the basic material form is material of character, picture and Flash type; or media materials, such as self-customized materials generated by inputting HTML or javascript codes by users according to the needs of the users.
Search Engine Marketing (SEM for short) has become an important channel for many enterprises to obtain high-efficiency output through the vigorous development in recent years. As third party digital marketing companies or enterprises with a large demand for advertising, they usually have SEM offline systems that meet the external customer or own business scenario. Although there are differences, the batch operation function of the materials is necessarily a common basic function. The material batch operation mainly comprises batch modification and batch addition of materials.
Batch operation requires a user to paste material data into a designated area according to batches and manually upload the material data to a media platform, and the whole uploading process requires the user to watch the material data in the whole process. Due to the limitation of the processing capacity of the media platform, the uploading time of a batch of material data is usually long, and a user can only upload the next batch of material data after the batch of material data is uploaded. Therefore, when the data volume of the material data reaches hundreds of thousands or even millions of scales, the uploading time can reach hours, and the labor cost is very high.
Disclosure of Invention
The method, the device and the system for batch uploading of the materials can solve the problem that labor cost is consumed in batch uploading of the materials.
In order to solve the above problem, in one aspect, the present invention provides a method for batch uploading materials, including:
receiving a material batch transmission task reported by a front end, wherein the material batch transmission task comprises material data to be uploaded;
when the uploading time indicated by the material batch transmission task is reached, dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party;
uploading a plurality of material batches to a material receiving party;
and returning the material batch transmission result to the front end.
On the other hand, the invention also provides a device for batch uploading of materials, which comprises:
the receiving unit is used for receiving a material batch transmission task reported by the front end, and the material batch transmission task comprises material data to be uploaded;
the material processing unit is used for dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party when the uploading time indicated by the material batch transmission task is reached;
the system comprises an uploading unit, a material receiving party and a control unit, wherein the uploading unit is used for uploading a plurality of material batches to the material receiving party;
and the return unit is used for returning the material batch transmission result to the front end.
In another aspect, the present invention further provides a batch material uploading system, including:
a front end and a server end;
the front end is used for creating a material batch transmission task, adding material data to be uploaded into the material batch transmission task, appointing the uploading time of the material data and reporting the material batch transmission task to the server;
and the server is used for dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiver when the uploading time is up, uploading the material batches to the material receiver, and returning a material batch transmission result to the front end.
The method, the device and the system for batch uploading of the materials can automatically upload material data to be uploaded at the front end in a material batch uploading task mode, and return the uploading result of the material data to the front end. According to the invention, a user only needs to provide the material data to be uploaded at one time and set the material uploading time, and the subsequent material batch transmission process is completely handed to the server side to be executed. Compared with the prior art, the invention does not need the user to watch the whole batch transmission process of the materials, can reduce the occupation of the time of the user and reduce the labor cost of batch transmission of the materials.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for batch uploading a material according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for batch uploading of materials according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating an apparatus for batch uploading of materials according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating another apparatus for batch uploading of materials according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating a system for batch uploading of materials according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment provides a method for batch uploading materials. Referring to fig. 1, a flowchart of a method for batch uploading a material provided in this embodiment is shown. As shown in fig. 1, the method for batch uploading of materials may include the following steps:
101. and receiving a material batch transmission task reported by the front end, wherein the material batch transmission task comprises material data to be uploaded.
The material data in this embodiment is provided to the server for processing at one time in the form of a material batch transmission task. The front end needs to create a material batch transmission task and completely add material data to be uploaded into the task. The step of adding all the material data to the material batch transmission task includes adding the material data to the task in the form of a data file, namely adding the data content to the task. The method also comprises the step of adding a storage path of the data file into the task, and searching the corresponding data file through the storage path when the server executes the material batch transmission task.
In addition, the front end needs to send the upload time for starting batch transmission of the materials to the server according to the setting of an operator, and the upload time can be added to the state attribute in the batch task of the materials and can also be uploaded to the server independently of the batch transmission task of the materials as an independent configuration parameter. The uploading time is set by an operator according to actual needs, and can be set to be 'immediate' or '2015-9-324: 00'. Or "after 5 hours" the present embodiment does not specifically limit the form and content of the upload time.
When an operator creates a material batch transmission task at the front end, the front end needs to receive the following items of attribute information input by the operator through an operation interface: task name, media platform type, entity type, operation type, scheduled execution time, and notification mode.
The task names are used for distinguishing different material batch transmission tasks; the media platform refers to a platform type of a material receiver, and when a search website is taken as the material receiver, the media platform type can be 'Baidu search', '360 search', and the like; entity types refer to types of material data, including but not limited to "keywords", "creatives", and "advertisements"; the operation type refers to the created task type, and in this embodiment, the operation type is "batch pass of materials"; the scheduled execution time is the uploading time, and the uploading time is added to the material batch transmission task as an attribute of the material batch transmission task in this embodiment; the notification mode is a mode in which the server returns a task execution result to the front end, and in practical application, all communication modes capable of transmitting data information in the prior art can be adopted.
The following description will be given for creating a material batch transfer task by way of example. Assuming that 519 ten thousand commodity prices in the hundred degree website need to be updated now, the operator needs to upload 519 ten thousand new commodity price data to the hundred degree website first. The attribute information of the material batch transmission task created by the front end comprises the following steps: the task name "the third quarter price update in 2015", the media platform type "hundred search", the entity type "commodity price", the operation type "batch upload", the scheduled execution time "2015-9-324: 00", and the notification mode "FLASH popup". And then, storing material data of 590 ten thousand commodity prices in a Comma-Separated Values (CSV) file and importing the data into the task, namely completing the creation of a material batch transmission task.
102. And when the uploading time indicated by the material batch transmission task is reached, dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party.
And after the server side obtains the material batch transmission task, checking the uploading time set by the front end, if the uploading time is up, executing the material batch transmission task, and uploading the material data in the CSV file in batches.
Generally, different media platforms limit the amount of material data uploaded in each batch according to their own data processing capabilities, so if too much material data is uploaded at one time, the time for processing the batch of material data on the media platform side is long, and in an extreme case, network congestion or a crash of the media platform server may also result. In the prior art, an operator needs to decide and divide batches according to the number requirement of the media platforms, in the embodiment, the operator only needs to add all material data into the material batch transmission task at one time, and the batch uploading process of the material data is automatically completed by the server without being concerned by the operator.
The server pre-stores material batch transmission requirements of different media platforms, wherein the requirements at least specify the maximum quantity of material data of each batch, such as 5000 pieces; other information may also, but is not limited to, specify a time to upload material data, a minimum time interval between uploading batches of material data, and the like. The material batch transmission requirements can be obtained by external configuration, and when the material batch transmission requirements of the media platform change, the material batch transmission requirements stored by the server can be manually or automatically updated.
After all the material data are obtained from the CSV file, the server divides all the material data into batches according to the maximum quantity of the material data of each batch to obtain a plurality of material batches, wherein the quantity of the material data of each batch is not more than the maximum quantity.
103. And uploading the plurality of material batches to a material receiving party.
After the material batches are divided, the server can upload the material batches to a material receiver, namely a media platform, according to a certain uploading sequence. The uploading sequence of the material batches can be determined according to various rules, and the uploading is performed according to the sequencing of the material batch division according to a common sequencing rule.
104. And returning the material batch transmission result to the front end.
After all the material batches are uploaded, the server returns a material batch transmission result to the front end, wherein the result can be 'material batch transmission completion', and when the uploading is interrupted due to a network link or other reasons, the result can also be 'batch transmission suspension' or 'batch transmission termination'.
In this embodiment, the server returns the batch transmission result to the front end according to the communication mode specified by the notification mode, for example, returns the result through a webpage or pops up a FLASH animation window.
When part of the material data are uploaded in error, the material batch transmission result further comprises a material data item with the uploading error. The server returns the error entry to the front end for manual modification by the operator.
For the modified material data, an operator can manually upload the modified material data according to the existing implementation mode, and can also create a material batch transmission task again to automatically upload the modified material data.
In this embodiment, the server may serve a plurality of front ends simultaneously, and when a plurality of material batch transmission tasks exist, the server executes each material batch transmission task in parallel, and the tasks are independent from each other and do not interfere with each other. In addition, the embodiment can be applied to front ends of different operating systems, including a windows operating system, a Linux operating system, an IOS operating system, and the like.
The method for batch uploading of the materials provided by this embodiment can automatically upload material data to be uploaded at the front end in the form of a material batch uploading task, and return the result of uploading the material data to the front end. In this embodiment, the user only needs to provide the material data to be uploaded at one time and set the material uploading time, and the subsequent batch material uploading process is completely handed to the server for execution. Compared with the prior art, this embodiment need not the user and criticizes the process of biography to the material and carry out whole on duty, can reduce the occupation to user's time, reduces the material and criticizes the cost of labor who passes.
In addition, because the uploading time of the material data can be set, the embodiment can also enable the operating personnel to arrange the working time of the operating personnel more flexibly compared with the prior art, and the uploading time is not needed to be attended. For example, a batch of material data needs to be uploaded at 12 pm, in this embodiment, an operator may create and upload a material batch task to a server at 6 pm, and set the upload time as 12 pm. Then the operator can go off duty or process other work, when 12 o' clock in evening is reached, the server side automatically executes the material batch transmission task, the material is uploaded, and a material batch transmission result is returned to the front end. And on the next day, the operator can directly check the batch transmission result of the materials through the front end when working.
Referring to fig. 2, another method for batch uploading materials provided by this embodiment is shown with respect to the method shown in fig. 1. As shown in fig. 2, step 101 "receiving a material batch transmission task reported by a front end, where the material batch transmission task includes material data to be uploaded" shown in fig. 1 may include the following steps:
201. and responding to a batch transmission interface calling request sent by the front end, and providing a batch transmission interface to the front end.
The server side writes function functions for creating, modifying, deleting and reporting tasks in advance, and encapsulates different function functions into different Application Programming interfaces (APIs for short). When the front end carries out task creation, an API for creating a material batch transmission task is requested to be called from the server end; and when the front end creates a task needing to be uploaded, the front end requests the server end to call the batch transmission API. The server responds to the request of the front end and provides different APIs for the front end to use.
It should be noted that, in the embodiment of the present invention, the material batch transmission function is taken as an example for description, and in practical application, the server may provide any function related to material processing to the front end, including but not limited to material update, material download, material deletion, material addition, and the like. Correspondingly, the service side can be configured with an API corresponding to different functions for front-end calling.
202. And receiving the batch transmission task of the materials reported by the front end through the batch transmission interface.
The front end calls a batch transmission API, and reports the created or modified material batch transmission task to the server according to the requirements of protocol type, field format, data type, communication mode and the like specified by the API.
According to the embodiment, various task functions are provided for the front end in a form of packaging the API, the coupling degree between codes can be reduced by 'modularization' management of the task functions, and the functions are called and maintained more flexibly and conveniently.
Referring to fig. 2, another method for batch uploading materials provided by this embodiment is shown with respect to the method shown in fig. 1. As shown in fig. 2, step 102 "dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party when the uploading time indicated by the material batch transmission task is reached" shown in fig. 1 may include the following steps:
203. and according to the single-batch material quantity required by the material receiving party, carrying out batch division on the material data sequenced according to a preset rule to obtain a plurality of material batches.
The single batch material quantity is the maximum quantity of the material data of each batch referred to above. And the server side sequentially divides the material batches according to the arrangement sequence of the material data by taking the single-batch material quantity as a batch dividing basis, wherein the material quantity in each material batch is not more than the single-batch material quantity.
In this embodiment, the material data may be sorted according to a certain rule. For example, sorting according to the material data size from large to small, or sorting according to the syllable sequence of the material content. In practical application, the material data may not be sorted independently, and the sequence of the material data in the CSV file may be used directly.
In an example of this embodiment, it is assumed that 590 ten thousand pieces of material data are uploaded in a batch, and the number of a single batch of material required by the media platform is 20 ten thousand. The server reads the 590 pieces of data from the CSV file when executing the material batch transmission task. The server divides the first 20 ten thousand pieces of material data into a first material batch according to the sequence of reading the material data from the CSV file, and then divides a second material batch from the 20 st ten thousand-1 piece of material data. When the twenty-ninth material batch is divided, 10 ten thousand pieces of material data are remained, and the server divides the 10 ten thousand pieces of material data into thirty material batches, so that thirty material batches are obtained.
Referring to fig. 2, another method for batch uploading materials provided by this embodiment is shown with respect to the method shown in fig. 1. As shown in fig. 2, the step 103 "uploading multiple material batches to the material receiving party" shown in fig. 1 may include the following steps:
204. each time a batch of material is uploaded to a material recipient.
The server uploads the material data according to the material batch transmission requirement of the media platform, and can upload at least one material batch at a time, that is, can pack a plurality of material batches at the same time to form a material batch for uploading, and the like.
205. And after receiving a response of successful uploading returned by the material receiving party, uploading the next material batch to the material receiving party.
And after receiving a material batch, the media platform returns an upload response to the server. And the server side continues to upload the next material batch to the media platform according to the response.
In practical application, the server may add a batch serial number to the uploaded material batch, and the media platform adds the serial number of the material batch to the upload response after receiving the material batch. And after receiving the uploading response, the server determines the next uploaded material batch according to the sequence number.
The embodiment provides another method for batch uploading of materials, which is a further extension and optimization of the method shown in fig. 1.
In this embodiment, according to a task adjustment request reported by a front end, modification, addition, deletion, and/or scheduling processing is performed on a material batch transmission task, where the scheduling processing includes: running a task, terminating a task, suspending a task, disabling a task, and enabling a task.
The modification, addition and deletion comprise modification, addition and deletion of the material batch transmission task and modification, addition and deletion of material data in the material batch transmission task. The scheduling processing mainly refers to scheduling aiming at material batch tasks. In practical application, the front end can provide the functions of running a task, terminating a task, suspending a task, disabling a task and enabling a task for an operator. When an operator triggers the function, the front end sends a task adjustment request to the server, the task state type (such as running, termination, suspension and the like) is sent to the server, and the server performs state adjustment on the unexecuted or executing material batch transmission task according to the task state type.
The running task is a function for providing an operator with a manual start task that is not limited by the upload time. The disabled task and the enabled task are used for freezing/unfreezing the task which is not executed by the user or is being executed, the frozen task is suspended by a system and is not executed any more, and the unfrozen task can be continuously executed or is selected to be executed according to the uploading time.
In addition, in this embodiment, the server may also return the state of executing the batch transmission task to the front end for the operator to check. The state returned by the server side comprises the running, termination, suspension, disabling and enabling states of the material batch transmission task. The server can return the task state to the front end at regular time, and can also return the task state according to the request of the front end. The current state of each task is recorded in the running instance of each material batch transmission task, and the server side obtains the task state in a system instance scanning mode.
Referring to fig. 2, another method for batch uploading materials provided by this embodiment is shown with respect to the method shown in fig. 1. As shown in fig. 2, the step 104 "return the material batch transmission result to the front end" shown in fig. 1 may include the following steps:
206. and returning the batch transmission result of the materials to the front end in the form of short messages and/or mails.
In this step, the server may return the material batch transmission result to the front end in a form of a short message and/or an email, or return the state of the material batch transmission task to the front end. When an operator uses the front end to perform task management, the operator needs to log in a personal account. The server side obtains the mobile phone number or the mailbox address corresponding to the account number, and then interacts with an operator in a form of sending short messages or mails. The information content sent by the short message or the mail may be structured data, or may also be unstructured data customized according to the requirement of the operator, which is not limited in this embodiment.
It should be noted that, in this embodiment, it is not limited that the receiving end of the short message or the mail is always consistent with the front end used by the operator. In practical application, an operator can upload materials through a computer, receive a server email through the computer, and also upload the materials through the computer, but receive a server short message through a mobile phone.
The embodiment provides another method for batch uploading of materials, which is a further extension and optimization of the method shown in fig. 1.
In this embodiment, the server communicates with the front end in a message subscription manner. The specific content of the message subscription lies in the management of the message publishers and the message subscribers, and the message published by the message publishers is sent to the message subscribers subscribing the message. In this embodiment, the communication between the front end and the server is bidirectional, and when the front end sends data to the server, the front end plays the role of a message publisher, and the server plays the role of a message subscriber; and when the server side sends data to the front end, the roles of the server side and the front end are interchanged. The specific manner of message subscription in this embodiment is as follows: a message publisher needs to publish a message with topic a, and if a message subscriber subscribes to the message, the system adds the ID of the message subscriber to the subscriber list for topic a. When a message publisher publishes the information of the topic A, the system finds the message subscriber according to the subscriber list of the topic A and pushes the information of the topic A to the message subscriber.
It should be noted that, in practical applications, the method shown in fig. 1 and fig. 2 involves a plurality of front ends and a plurality of servers, and the front ends and the servers share a set of message subscription system. It is therefore desirable to distinguish between different message subscribers by their ID.
In this embodiment, the task type (delete, create, update task/material) may be used as the subject of the message, and the state type (run, start, pause, etc.) of the task may also be used as the subject of the message. The specific information used as the message subject is determined by the roles of the front end and the server end and the functions to be implemented. This is illustrated by way of example below:
in one example, the front end requests the server end to view the status of the currently executed material batch transmission task. At this time, the server, as a message publisher, is going to publish a message with the topic of "task state", where the message records information that "task X is currently in a suspended state". The front end, as a message subscriber, wishes to obtain the current state of task X, and then sends its ID "2" and the topic "task state" to the system. The system adds ID "2" to the list of subscribers with a topic of "task state" according to the topic carried in the front-end request. When the server issues the message, the system looks up the subscriber list entitled "task state" in which the ID "2" of the front end is found. The system returns to the front end the information that task X is currently in a suspended state according to ID "2".
In another example, the server currently executes a material batching task 1, and the front end uploads a material batching task 2 with a higher priority, so that the server can interrupt the prior execution of the material batching task 2. Therefore, the front end needs to send a task preemption request to the server, and instructs the server to preferentially execute the material batch transmission task 2. At this time, the server side, as a message subscriber of the task preemption message, sends its ID "356" and topic "task preemption" to the system. The system adds ID "356" to the list of subscribers to the topic "task preemption". After the front end initiates a task preemption message of preferentially executing the material batch transmission task 2, the system searches whether a subscriber exists in a subscriber list with the topic of task preemption. When the ID '356' is found, the system pushes the message of 'preferentially executing the material batch transmission task 2' to the server with the ID '356'. As described above, there may be a plurality of servers in the system to provide services for different front ends, and therefore, in this example, there is a need to distinguish the servers by IDs.
In order to implement the above method embodiments, the present embodiment provides an apparatus embodiment corresponding to the above method embodiments. Please refer to fig. 3, which illustrates a schematic structural diagram of a device for batch uploading of materials according to this embodiment. The apparatus corresponds to the method shown in fig. 1 and 2. As shown in fig. 3, the apparatus for batch uploading of materials may include:
the receiving unit 301 is configured to receive a material batch transmission task reported by a front end, where the material batch transmission task includes material data to be uploaded;
the material processing unit 302 is configured to, when the uploading time indicated by the material batch transmission task is reached, divide the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party;
an uploading unit 303, configured to upload a plurality of material batches to a material receiving party;
and a returning unit 304, configured to return the material batch transmission result to the front end.
Further, the receiving unit 301 shown in fig. 3 is configured to:
responding to a batch transmission interface calling request sent by a front end, and providing a batch transmission interface for the front end;
and receiving the batch transmission task of the materials reported by the front end through the batch transmission interface.
Further, the material processing unit 302 shown in fig. 3 is configured to perform batch division on the material data sorted according to the preset rule according to the number of single-batch materials required by the material receiving party, so as to obtain multiple material batches, where the number of materials in each material batch is not more than the number of single-batch materials;
further, the upload unit 303 shown in fig. 3 is configured to:
uploading a material batch to a material receiving party each time;
and after receiving a response of successful uploading returned by the material receiving party, uploading the next material batch to the material receiving party.
Further, fig. 4 shows a schematic structural diagram of another device for batch uploading of materials provided by this embodiment.
The apparatus shown in fig. 4 further comprises:
the task processing unit 401 is configured to modify, add, delete, and/or schedule the material batch transmission task according to the task adjustment request reported by the front end, where the scheduling process includes: running a task, terminating a task, suspending a task, disabling a task, and enabling a task.
Further, the returning unit 34 shown in fig. 3 is used for returning the material batch transmission result to the front end in the form of short message and/or mail.
Further, the apparatuses shown in fig. 3 and 4 are used for communicating with the front end by means of message subscription.
The device that material uploaded in batches that this embodiment provided can be with the material batch transfer form of task to the front end need the material data that upload carry out automatic upload to return the result of material data upload to the front end. In this embodiment, the user only needs to provide the material data to be uploaded at one time and set the material uploading time, and the subsequent batch material uploading process is completely handed to the server for execution. Compared with the prior art, this embodiment need not the user and criticizes the process of biography to the material and carry out whole on duty, can reduce the occupation to user's time, reduces the material and criticizes the cost of labor who passes.
The device for batch uploading of materials provided by this embodiment includes a processor and a memory, where the receiving unit, the material processing unit, the uploading unit, the returning unit, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the material batch transmission task is automatically executed by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: receiving a material batch transmission task reported by a front end, wherein the material batch transmission task comprises material data to be uploaded; when the uploading time indicated by the material batch transmission task is reached, dividing the material data into a plurality of material batches according to the material batch transmission requirement of a material receiving party; uploading the plurality of material batches to the material receiving party; and returning a material batch transmission result to the front end.
In order to implement the above method embodiments, the present embodiment provides a system embodiment corresponding to the above method embodiments. Referring to fig. 5, a schematic structural diagram of a system for batch uploading materials provided in this embodiment is shown. The system comprises a front end 501 and a server 502, wherein the server 502 comprises the apparatus shown in fig. 3 or fig. 4.
The front end 501 is used for creating a material batch transmission task, adding material data to be uploaded into the material batch transmission task, specifying the uploading time of the material data, and reporting the material batch transmission task to the server 502;
the server 502 is configured to, when the upload time is reached, divide the material data into a plurality of material batches according to the material batch transmission requirement of the material receiver, upload the plurality of material batches to the material receiver, and return a material batch transmission result to the front end 501.
The system for batch uploading of materials provided by this embodiment can automatically upload material data to be uploaded at the front end in the form of a batch uploading task of materials, and return the uploading result of the material data to the front end. In this embodiment, the user only needs to provide the material data to be uploaded at one time and set the material uploading time, and the subsequent batch material uploading process is completely handed to the server for execution. Compared with the prior art, this embodiment need not the user and criticizes the process of biography to the material and carry out whole on duty, can reduce the occupation to user's time, reduces the material and criticizes the cost of labor who passes.
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 embodiments of 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A method for batch uploading of materials is characterized by comprising the following steps:
the server receives a material batch transmission task reported by the front end, wherein the material batch transmission task comprises material data to be uploaded;
when the uploading time indicated by the material batching task is reached, dividing the material data into a plurality of material batches according to the material batching requirement of a material receiving party, wherein the material batching requirement at least specifies the maximum quantity of the material data of each batch, and the uploading time is sent to the server by the front end according to the setting of an operator;
the dividing of the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party comprises:
dividing the material data into a plurality of material batches according to the maximum quantity of the material data of each batch, wherein the quantity of the material data contained in each material batch is less than or equal to the maximum quantity of the material data of each batch;
uploading the plurality of material batches to the material receiving party;
and returning a material batch transmission result to the front end.
2. The method of claim 1, wherein the receiving the batch delivery task of the material reported by the front end comprises:
responding to a batch transmission interface calling request sent by the front end, and providing a batch transmission interface for the front end;
and receiving the material batch transmission task reported by the front end through the batch transmission interface.
3. The method of claim 1, wherein the dividing the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party comprises:
according to the single-batch material quantity required by the material receiving party, carrying out batch division on the material data sequenced according to a preset rule to obtain a plurality of material batches, wherein the material quantity in each material batch is not more than the single-batch material quantity;
the uploading the plurality of material batches to the material receiving party includes:
uploading a material batch to the material receiving party each time;
and after receiving a response of successful uploading returned by the material receiving party, uploading the next material batch to the material receiving party.
4. The method of claim 1, further comprising:
according to the task adjustment request reported by the front end, modifying, adding, deleting and/or scheduling the material batch transmission task, wherein the scheduling process comprises the following steps: running a task, terminating a task, suspending a task, disabling a task, and enabling a task.
5. The method of claim 1, wherein said returning a material batch result to said front end comprises:
and returning the material batch transmission result to the front end in a short message and/or mail form.
6. The method according to any one of claims 1 to 5, wherein the communication with the head end is performed by means of message subscription.
7. The utility model provides a server-side for material is uploaded in batches which characterized in that, the server-side includes:
the receiving unit is used for receiving a material batch transmission task reported by a front end, wherein the material batch transmission task comprises material data to be uploaded;
the material processing unit is used for dividing the material data into a plurality of material batches according to the material batch transmission requirement of a material receiving party when the uploading time indicated by the material batch transmission task is reached, wherein the material batch transmission requirement at least specifies the maximum quantity of the material data of each batch, and the uploading time is sent to the server by the front end according to the setting of an operator;
the material processing unit is specifically configured to divide the material data into a plurality of material batches according to the maximum quantity of the material data of each batch, where the quantity of the material data included in each material batch is less than or equal to the maximum quantity of the material data of each batch;
the uploading unit is used for uploading the plurality of material batches to the material receiving party;
and the return unit is used for returning the material batch transmission result to the front end.
8. The server of claim 7, wherein the receiving unit is configured to:
responding to a batch transmission interface calling request sent by the front end, and providing a batch transmission interface for the front end;
and receiving the material batch transmission task reported by the front end through the batch transmission interface.
9. The server according to claim 7, wherein the material processing unit is configured to perform batch division on material data sorted according to a preset rule according to a single batch material quantity required by the material receiving party to obtain multiple material batches, where a material quantity in each material batch is not more than the single batch material quantity;
the uploading unit is used for:
uploading a material batch to the material receiving party each time;
and after receiving a response of successful uploading returned by the material receiving party, uploading the next material batch to the material receiving party.
10. A system for batch uploading of material, the system comprising: a front end and a server end;
the front end is used for creating a material batch transmission task, adding material data to be uploaded into the material batch transmission task, appointing the uploading time of the material data, and reporting the material batch transmission task to the server;
the server is used for dividing the material data into a plurality of material batches according to the material batch transmission requirement of a material receiving party when the uploading time is up, uploading the material batches to the material receiving party, and returning a material batch transmission result to the front end, wherein the material batch transmission requirement at least specifies the maximum quantity of the material data of each batch, and the uploading time is sent to the server by the front end according to the setting of an operator; the dividing of the material data into a plurality of material batches according to the material batch transmission requirement of the material receiving party comprises: dividing the material data into a plurality of material batches according to the maximum quantity of the material data of each batch, wherein the quantity of the material data contained in each material batch is less than or equal to the maximum quantity of the material data of each batch.
11. A storage medium, characterized in that the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute the method for batch uploading of material according to any one of claims 1 to 6.
12. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the method for batch uploading of material according to any one of claims 1 to 6.
CN201510880756.4A 2015-12-03 2015-12-03 Method, device and system for batch uploading materials Active CN106850707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510880756.4A CN106850707B (en) 2015-12-03 2015-12-03 Method, device and system for batch uploading materials

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510880756.4A CN106850707B (en) 2015-12-03 2015-12-03 Method, device and system for batch uploading materials

Publications (2)

Publication Number Publication Date
CN106850707A CN106850707A (en) 2017-06-13
CN106850707B true CN106850707B (en) 2020-08-21

Family

ID=59149807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510880756.4A Active CN106850707B (en) 2015-12-03 2015-12-03 Method, device and system for batch uploading materials

Country Status (1)

Country Link
CN (1) CN106850707B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566469B (en) * 2017-08-24 2020-06-05 平安科技(深圳)有限公司 User information uploading method and device and computer readable storage medium
CN110968778A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Media material processing method and device, storage medium and server
CN111598535B (en) * 2020-05-09 2023-06-13 西安精雕软件科技有限公司 Basic material importing method, system and computer equipment
CN115243318A (en) * 2022-07-01 2022-10-25 华迪计算机集团有限公司 Internet of things data transparent transmission method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447642B (en) * 2010-09-30 2015-04-15 腾讯科技(深圳)有限公司 Method and device for managing messages and pictures based on IM (Instant Messaging) client
CN103778556A (en) * 2014-01-09 2014-05-07 北京京东尚科信息技术有限公司 Reservation task processing method and device

Also Published As

Publication number Publication date
CN106850707A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
US10038619B2 (en) Providing a monitoring service in a cloud-based computing environment
CN106850707B (en) Method, device and system for batch uploading materials
US20140266714A1 (en) Automatic adjustment of metric alert trigger thresholds
CN110826831A (en) Method and device for restocking a picking zone of a warehouse
US11470030B2 (en) Temporary suspension of electronic communications
US9917808B2 (en) Grouping electronic messages
WO2014058933A2 (en) Techniques to present event information using an event timing visualization
US10789566B1 (en) Capability-based accelerated fulfillment of previously-ordered item
CN109194565A (en) A kind of message read states reminding method and device
CN111507674A (en) Task information processing method, device and system
US10911571B2 (en) System and method for prioritizing the disposition of remote assets for online product listings
US11425084B2 (en) Data processing for multi-objective communication engagement
CN110858332B (en) Order production method and device
CN110971544A (en) Data sending method and device
US8510426B2 (en) Communication and coordination between web services in a cloud-based computing environment
CN102739562B (en) Method and device for sending collection information
US10621622B1 (en) Adaptive sequencing of notifications in a client server architecture
CN113743879A (en) Automatic rule processing method, system and related equipment
CN115617555A (en) Information processing system and method
CN115658248A (en) Task scheduling method and device, electronic equipment and storage medium
CN112395337B (en) Data export method and device
TWI511060B (en) Device, method and non-transitory computer readable storage medium for performing instant message communication
US20170243247A1 (en) Push notifications for price change alerts
CN112732710A (en) Data processing method and device and electronic equipment
CN107395484B (en) Promotion information pushing method and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant