CN109558391B - File distribution control method and device - Google Patents

File distribution control method and device Download PDF

Info

Publication number
CN109558391B
CN109558391B CN201811348730.5A CN201811348730A CN109558391B CN 109558391 B CN109558391 B CN 109558391B CN 201811348730 A CN201811348730 A CN 201811348730A CN 109558391 B CN109558391 B CN 109558391B
Authority
CN
China
Prior art keywords
file
source
source file
matching
successful
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
CN201811348730.5A
Other languages
Chinese (zh)
Other versions
CN109558391A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811348730.5A priority Critical patent/CN109558391B/en
Publication of CN109558391A publication Critical patent/CN109558391A/en
Application granted granted Critical
Publication of CN109558391B publication Critical patent/CN109558391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure relates to the technical field of data processing, and discloses a method and a device for controlling file distribution, wherein the method comprises the following steps: acquiring a source file identification of a source file derived from a database system; matching the target file identification in the target file identification set provided by file distribution according to the request with the source file identification; marking a successful matching mark or a non-successful matching mark for the source file mark and the target file mark according to the matching result; generating an exception prompt of the derived source file according to the unmatched success flag; and distributing the derived source file according to the matching success flag. On one hand, prompt and timely processing are carried out on source files which are not successfully matched in time; on the other hand, the source file is distributed according to the successful matching mark, so that the accuracy of the distributed file is ensured, and the problem that a downstream user cannot acquire the distributed file after the file is distributed in the prior art is solved.

Description

File distribution control method and device
Technical Field
The disclosure relates to the technical field of data processing, and in particular relates to a method and a device for controlling file distribution.
Background
The file distribution is to distribute the files in the source folder to the target folder, so that after the file distribution, the downstream user can extract the required files from the target folder. Wherein the files in the source folder are exported from the database system. In the prior art, a database system provides two file export modes: automatic timing derivation and manual derivation. In exporting files from a database system to a source folder, there are two cases:
(1) If the timing export function of the database is closed but not perceived by the staff, the file is missed;
(2) Since the system server is set up so that even when the same data is exported, the file name of the file exported by the automatic timed export method is inconsistent with the file name of the file exported by the manual export method, the file name of the file distributed to the target folder may be inconsistent with the file name used when the user actually extracts the file.
For both cases, when a downstream user extracts a file from the target folder according to the file list provided upstream (i.e., the party distributing the file), this results in the inability to extract the desired file, e.g., the extracted file is not exported or the file name in the file list does not match the file name of the file in the target folder.
From the above, it is known how to accurately distribute the file, so as to ensure that the downstream user can extract the required file.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a method and apparatus for controlling file distribution.
A method of controlling file distribution, the method comprising:
acquiring a source file identification of a source file derived from a database system;
matching a target file identifier in a target file identifier set provided by file distribution according to a request with the source file identifier;
marking a successful matching mark or a non-successful matching mark on the source file mark and the target file mark according to the matching result;
generating an exception prompt of the derived source file according to the unmatched success flag; and distributing the exported source file according to the matching success mark.
A control apparatus for file distribution, the apparatus comprising:
an acquisition module configured to: acquiring a source file identification of a source file derived from a database system;
a matching module configured to: matching a target file identifier in a target file identifier set provided by file distribution according to a request with the source file identifier;
the marking module is configured to: marking a successful matching mark or a non-successful matching mark on the source file mark and the target file mark according to the matching result;
a hint module configured to generate an exception hint for the derived source file based on the unmatched success tag; and
a distribution module configured to: and distributing the corresponding source file according to the matching success mark.
A control apparatus for file distribution, the apparatus comprising:
a processor; and
A memory having stored thereon computer readable instructions which when executed by the processor implement a method as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the source file identification and the target file identification are matched, and the matching success mark and the non-matching success mark are marked according to the matching result, so that a corresponding source file exception prompt can be generated according to the non-matching success mark, and source file distribution is carried out according to the matching success mark. On one hand, aiming at the source file which is not successfully matched, prompt and timely processing can be performed in time; on the other hand, the source file is distributed according to the matching success mark, so that downstream users of the distributed source file can be guaranteed to be extracted according to the target file identification, the accuracy of the distributed file is guaranteed, and the problem that the downstream users cannot acquire the distributed file after the file is distributed in the prior art is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block diagram of an apparatus according to an example embodiment;
FIG. 2 is a block diagram illustrating a method of controlling file distribution according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method of controlling file distribution according to another exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of controlling file distribution according to another exemplary embodiment;
FIG. 5 is a flowchart of step S150 of the corresponding embodiment of FIG. 4;
FIG. 6 is a flowchart of step S170 of the corresponding embodiment of FIG. 2;
FIG. 7 is a flowchart of step S180 of the corresponding embodiment of FIG. 2;
FIG. 8 is a block diagram of a control device for file distribution, according to an exemplary embodiment;
fig. 9 is a block diagram of a control apparatus for file distribution according to another exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Fig. 1 is a block diagram of an apparatus 200, shown in accordance with an exemplary embodiment. The device 200 may be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, etc. for running a program.
Referring to fig. 2, apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, a sensor component 214, and a communication component 216. It should be noted that the apparatus 200 is only an example adapted to the present invention, and should not be construed as providing any limitation to the scope of the present invention. Nor should the apparatus 200 be construed as necessarily relying on or necessarily having one or more of the components of the exemplary apparatus 200 shown in fig. 1.
The processing component 202 generally controls overall operation of the apparatus 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, among others. The processing component 202 may include one or more processors 218 to execute instructions to perform all or part of the steps of the methods described below. Further, the processing component 202 can include one or more modules that facilitate interactions between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the apparatus 200. Examples of such data include instructions for any application or method operating on the apparatus 200. The Memory 204 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM), electrically erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. Also stored in memory 204 are one or more modules configured to be executed by the one or more processors 218 to perform all or part of the steps of any of the illustrated method embodiments of control method for file distribution described below.
The power supply component 206 provides power to the various components of the device 200. The power supply components 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
The multimedia component 208 includes a screen between the device 200 and the user that provides an output interface. In some embodiments, the screen may include a liquid crystal display (Liquid Crystal Display, LCD for short) and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. The screen may also include an organic electroluminescent display (Organic Light Emitting Display, OLED for short).
The audio component 210 is configured to output and/or input audio signals. For example, the audio component 210 includes a Microphone (MIC) configured to receive external audio signals when the device 200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 further includes a speaker for outputting audio signals.
The sensor assembly 214 includes one or more sensors for providing status assessment of various aspects of the apparatus 200. For example, the sensor assembly 214 may detect an open/closed state of the device 200, a relative positioning of the assemblies, the sensor assembly 214 may also detect a change in position of the device 200 or a component of the device 200, and a change in temperature of the device 200. In some embodiments, the sensor assembly 214 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate communication between the apparatus 200 and other devices in a wired or wireless manner. The device 200 may access a WIreless network based on a communication standard, such as WiFi (WIreless-Fidelity). In one exemplary embodiment, the communication component 216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 216 further includes a near field communication (Near Field Communication, NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on radio frequency identification (Radio Frequency Identification, RFID) technology, infrared data association (Infrared Data Association, irDA) technology, ultra Wideband (UWB) technology, bluetooth technology, and other technologies.
In an exemplary embodiment, the apparatus 200 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processors, digital signal processing devices, programmable logic devices, field programmable gate arrays, controllers, microcontrollers, microprocessors or other electronic components for executing the methods described below.
Fig. 2 is a flowchart illustrating a method of controlling file distribution according to an exemplary embodiment. The method for controlling file distribution may be performed by the apparatus 200, and may include the following steps:
step S110, a source file identification of a source file derived from a database system is obtained.
The source file is a file obtained by exporting data in a database system according to needs, wherein the database system provides a data export function for the data in the database system, so as to obtain the source file. The source file derived from the database system may be one or more, and is not limited herein.
The source file identity is the file name of the source file, by which the source file is uniquely identified.
In an exemplary embodiment, as shown in fig. 3, step S110 further includes:
step S010, extracting file identification of the source file derived from the database system.
The source file identification corresponding to the source file can be obtained by extracting the file identification of the source file.
In a specific embodiment, text recognition is performed on the file name of the source file, so that the file name of the source file is obtained. Of course, other ways of extracting the file name are also applicable to the present invention, and are not specifically limited herein.
In one implementation, source files derived from the database system are stored in a source folder, wherein the source files in the source folder are source files, and when the file identification extraction is performed, the file names of the source files in the source folder are extracted.
Step S130, matching the target file identification in the set with the source file identification is carried out according to the target file identification set provided by file distribution according to the request.
The target file identification is the file name of the distributed file, and the target file identification set is the file name set of all the distributed files.
When the file distribution is carried out, the file corresponding to the target file identification in the target file identification set is the source file which needs to be distributed. After the source file is distributed, the downstream user also obtains the distributed source file for the target file identifications in the set of file target file identifications. Therefore, in the technical scheme, control of file distribution is needed, and the source file identification in the source folder and the target file identification in the target file identification set can be completely matched, so that after file distribution is requested according to the target file identification set, a downstream user can acquire a corresponding source file according to the target file identification in the target file identification set.
In an exemplary embodiment, as shown in fig. 4, step S130 includes:
step S131, according to the character string matching algorithm, matching each target file identifier and the source file identifier in the set is performed.
Since the file distribution and the acquisition of the distributed files by the downstream user are performed according to the target file identification sets, when the matching is performed, the matching is performed according to the target file identification sets, namely, each target file identification in the target file identification sets is respectively matched in the source file identification. Therefore, each target file identifier in the target file identifier set can be matched.
The matching according to the character string matching algorithm is accurate matching, namely when each target file identifier in the set is matched, if the source file identifier matched from the source file identifiers is the file identifier which is identical to the target file identifier, the matching is successful; if the source file identity is not matched to be identical to the target file identity, the matching is unsuccessful.
The string matching algorithm used may be BF (Brute Force), RK (Robin-Karp), KMP, BM (Boyer Moore), sunday algorithm, etc., and is not particularly limited herein.
And step S150, marking the source file identification and the target file identification with a successful matching mark or a successful non-matching mark according to the matching result.
According to the matching of the source file identifier and the target file identifier, a matching result is correspondingly obtained, and if the matching is successful, a successful matching mark is marked on the source file identifier and the target file identifier respectively; if the matching is unsuccessful, marking the source file identification and the target file identification with unmatched successful marks respectively. Thus, after the matching is finished, each source file identifier and each target file identifier are marked with a matching success mark or a non-matching success mark.
Wherein the match success flag (or the no match success flag) noted for the source file identification or the target file identification is a computer identifiable flag. Before step S150 is performed, the statement of the matching success flag and the non-matching success flag is performed in the program, so that after the corresponding labeling is performed on the source file identifier or the target file identifier, the corresponding operation can be performed in the subsequent step by identifying the labeled matching success flag or non-matching success flag.
In an exemplary embodiment, as shown in fig. 5, step S150 includes:
step S151, if the file identification which is the same as the target file identification is matched from the source file identifications, marking the target file identification and the matched source file identification with successful matching marks respectively.
And step S152, if the file identification which is the same as the target file identification is not matched from the source file identification, marking the target file identification with a successful unmatched mark.
And step 153, marking the source file identifiers which are not marked with successful marks after the matching of the target file identifiers in the set is completed.
Each source file identity and each destination file identity are marked with a match success flag or a no match success flag, via steps S151-S153.
Step S170, generating an exception prompt of the exported source file according to the unmatched success marks.
In an exemplary embodiment, as shown in fig. 6, step S170 includes:
step S171, searching for the unmatched successful marks in the target file identification and the source file identification and comparing.
In step S172, if the target file identifier marked with the unmatched successful tag is found and the source file identifier marked with the unmatched successful tag is not found, a first exception prompt is generated, where the first exception prompt is used to indicate that the file corresponding to the found target file identifier marked with the unmatched successful tag is missed to be exported.
And step S173, if the number of the source file identifications marked with the unmatched successful marks is the same as the number of the target file identifications marked with the unmatched successful marks, generating a second exception prompt, wherein the second exception prompt is used for indicating that the source file identifications marked with the unmatched successful marks are inconsistent with the provided target file identifications.
And step S174, if the number of the source file identifications marked with the unmatched successful marks is different from the number of the target file identifications marked with the unmatched successful marks, generating a third exception prompt, wherein the third exception prompt is used for indicating that the file identifications corresponding to the missed export files and the file identifications inconsistent with the source file identifications exist in the searched target file identifications marked with the unmatched successful marks at the same time.
In the actual distribution process, there may be (1) source files mentioned in the background art that are missed to be exported; or (2) the file identification of the source file is inconsistent with the target file identification when the file distribution is carried out; or (1) and (2) both. Aiming at the case (1), after matching and labeling of the source file identifier and the target file identifier, the search result corresponding to the unmatched successful mark in the step S172 is obtained; for case (2), i.e., corresponding to the search result in step S173; for case (3), i.e. corresponding to the search result in step S174.
In the generated exception prompt, namely the first exception prompt, the second exception prompt or the third exception prompt, the file identifier (the target file identifier and/or the source file identifier) with the exception is indicated, so that a party receiving the exception prompt can perform corresponding processing according to the file identifier indicated in the exception prompt, and when files in the source file are relatively more, the situation that the files are compared one by one according to each source file can be avoided, and the efficiency is improved. For example, in a first exception prompt, designating a target file identifier corresponding to the leaked export file; in the second exception prompt, designating a source file identity that is inconsistent with the target file identity; in a third exception hint, the source file identity and the destination file identity marked with the unmatched successful marks are indicated.
After the corresponding abnormal prompt is generated according to the abnormal condition, timely processing can be performed according to the abnormal prompt, so that the problem that the corresponding problem is found after the file is distributed is avoided.
In an exemplary embodiment, in order to timely process the existing abnormal situation, step S170 further includes:
and sending the exception prompt to an administrator to prompt the administrator to process the source file in the exception prompt.
Thus, after the abnormality notification is sent to the administrator, the administrator can perform corresponding processing according to the abnormality notification. For example, the files which are not exported are exported again to the source folder for the case (1), and the source files which are inconsistent with the target file identification are exported again for the case (2).
Further, after the administrator receives the exception prompt and performs corresponding processing, matching and labeling of the source file identifier and the target file identifier are performed again until the marks in the source file identifier and the target file identifier are both successful matching marks.
In an exemplary embodiment, after sending the exception prompt to the administrator, further comprising:
and updating and monitoring the source folder.
If the source file folder is monitored to be updated, the source file identification of the updated source file is obtained. Wherein the updating of the source folder includes the newly added source file in the source folder and the source file identification of the source file being updated.
And matching each target file identifier marked with an unmatched successful mark in the target file identifier set in the source file identifier corresponding to the updated source file, marking the matched successful mark and/or the unmatched successful mark according to the step S150 (the step S151-S153), and carrying out corresponding abnormal prompt according to the step S170 (the step S171-S174) until the target file identifiers in the target file identifier set are marked with the matched successful mark.
And step S180, distributing the exported source files according to the matching success marks.
In an exemplary embodiment, as shown in fig. 7, step S180 includes:
step S181, according to the marked target file identifications, detecting whether the target file identifications in the collection are marked with successful marks.
Step S182, if yes, distributing the exported source file according to the target file identification marked with the successful mark of the matching.
If the target file identifiers in the set have unmatched successful marks, stopping distributing until the target file identifiers in the set are marked by the marked matched successful marks.
The object file identifications in the object file identification set are marked with successful marks for distributing the source files in the source folder, so that after the file distribution is finished, a downstream user can acquire corresponding files according to the object file identifications in the object file identification set, the accuracy of the distributed files is ensured, and the problem that the downstream user cannot extract the corresponding files after the file distribution is finished in the prior art is solved.
In an exemplary embodiment, after step S180, further includes:
after the distribution of the source file is completed, a prompt for the completion of file distribution is generated and sent to the associated user. The associated user can be an administrator or a user needing to be distributed with the files. The specific limitation is not specifically defined herein.
The following is an embodiment of a control method that may be used to perform file distribution performed by the apparatus 200 of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the control method for distribution of the present disclosure.
Fig. 8 is a block diagram of a control apparatus for file distribution, which may be used to perform all or part of the steps of the method shown in any of the above embodiments of a control method for file distribution, according to an exemplary embodiment. As shown in fig. 8, the apparatus includes:
an acquisition module 110 configured to: a source file identification of a source file derived from a database system is obtained.
A matching module 130 configured to: and matching the target file identification in the set with the source file identification according to the target file identification set provided by file distribution according to the request.
The labeling module 150 is configured to: and marking the source file identification and the target file identification with a successful matching mark or a successful non-matching mark according to the matching result.
A hint module 170 configured to generate an exception hint for the derived source file based on the unmatched success tag. And
A distribution module 180 configured to: and distributing the corresponding source file according to the matching success mark.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the control method of file distribution, and will not be described herein.
It is to be understood that these modules may be implemented in hardware, software, or a combination of both. When implemented in hardware, these modules may be implemented as one or more hardware modules, such as one or more application specific integrated circuits. When implemented in software, the modules may be implemented as one or more computer programs executing on one or more processors, such as the program stored in memory 204 as executed by processor 218 of fig. 2.
In an exemplary embodiment, the control device for file distribution further includes:
an extraction module configured to extract a file identity of a source file derived from a database system.
In an exemplary embodiment, the matching module 130 includes:
and the matching unit is configured to match each target file identifier with the source file identifier in the set according to a character string matching algorithm.
In an exemplary embodiment, the labeling module 150 includes:
a first labeling unit configured to: if the file identification is matched with the file identification which is the same as the target file identification from the source file identifications, marking the target file identification and the matched source file identification with successful matching marks respectively.
And a second labeling unit configured to: if the file identification which is the same as the target file identification is not matched from the source file identification, the target file identification is marked with a successful unmatched mark.
A third labeling unit configured to: after the matching of each target file identifier in the set is completed, marking the source file identifier which is not marked with a successful matching mark.
In an exemplary embodiment, the prompt module 170 includes:
the search and comparison unit is configured to: and searching for an unmatched successful mark in the target file identifier and the source file identifier and comparing.
A first abnormality notification unit configured to: if the target file identifier marked with the unmatched successful mark is found and the source file identifier marked with the unmatched successful mark is not found, generating a first exception prompt, wherein the first exception prompt is used for indicating that the file corresponding to the found target file identifier marked with the unmatched successful mark is missed to be exported. And
A second abnormality notification unit configured to: if the number of the source file identifications marked with the unmatched successful marks is the same as the number of the target file identifications marked with the unmatched successful marks, generating a second exception prompt, wherein the second exception prompt is used for indicating that the source file identifications marked with the unmatched successful marks are inconsistent with the provided target file identifications.
A third abnormality notification unit configured to: if the number of the source file identifications marked with the unmatched successful marks is different from the number of the target file identifications marked with the unmatched successful marks, generating a third exception prompt, wherein the third exception prompt is used for indicating that the file identifications corresponding to the missed derived files and the file identifications inconsistent with the source file identifications exist in the searched target file identifications marked with the unmatched successful marks at the same time.
In an exemplary embodiment, the file distribution control apparatus further includes:
and the sending module is configured to send the abnormality prompt to an administrator so as to prompt the administrator to process the source file in the abnormality prompt.
In an exemplary embodiment, the distribution module 180 includes:
a detection unit configured to: and detecting whether the target file identifications in the set are marked successfully by marking according to the marked target file identifications.
A distribution unit configured to: and if the detection unit detects that all the target file identifiers in the set are marked with the successful mark, distributing the derived source file according to the target file identifiers marked with the successful mark.
The implementation process of the functions and roles of each module/unit in the above device is specifically shown in the implementation process of the corresponding steps in the control method of file distribution, and will not be described herein again.
Optionally, the present disclosure further provides a control device for file distribution, where the device 200 of fig. 1 may perform all or part of the steps of any of the methods shown in the foregoing embodiments of the method for controlling file distribution. As shown in fig. 9, the control apparatus 1000 for file distribution includes:
a processor 1001; and
A memory 1002, said memory 1002 having stored thereon computer readable instructions which, when executed by said processor 1002, implement all or part of the steps in the control method embodiments of file distribution as above. When executed, the computer readable instructions may be read from memory 1002 via communication bus/data line 1003.
The specific manner in which the processor of the apparatus in this embodiment performs the operations has been described in detail in connection with embodiments of the control method of the file distribution, and will not be described in detail herein.
In an exemplary embodiment, a computer readable storage medium is also provided, which when executed by a processor, implements all or part of the steps in the above-described control method embodiments of file distribution. The computer readable storage medium may be, for example, a memory 250 comprising a computer program executable by the processor 218 in the apparatus 200 to perform the control method of file distribution described above.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. A method for controlling file distribution, the method comprising:
text identifying a file name of a source file derived from a database system to obtain a source file name for uniquely identifying the source file;
according to a distribution file name set provided by file distribution according to a request, matching each distribution file name in the set with the source file name through a character string matching algorithm;
marking a successful matching mark or a successful unmatched mark for the source file name and the distributed file name according to the matching result;
generating an exception prompt of the derived source file according to the unmatched success flag; and distributing the derived source file according to the matching success mark;
updating and monitoring the source folder;
if the source file folder is monitored to be updated, acquiring a source file name of the updated source file; wherein the updating of the source folder comprises that newly added source files and source file names in the source folder are updated.
2. The method according to claim 1, wherein labeling the source file name and the distribution file name with a match success flag or a no match success flag according to a matching result comprises:
if the file name which is the same as the distribution file name is matched from the source file names, marking the distribution file names and the matched source file names with matching success marks respectively; and
if the file name which is the same as the distribution file name is not matched from the source file names, marking the distribution file name with a successful unmatched mark;
and after the matching of each distributed file name in the set is completed, marking the source file name which is not marked with the successful matching mark.
3. The method of claim 1, wherein generating an exception hint for the derived source file from the unmatched success tag comprises:
searching for an unmatched successful mark in the distributed file name and the source file name and comparing the unmatched successful marks;
if the distribution file name marked with the unmatched successful mark is found and the source file name marked with the unmatched successful mark is not found, generating a first exception prompt, wherein the first exception prompt is used for indicating that the found file corresponding to the distribution file name marked with the unmatched successful mark is leaked out; and
if the number of the source file names marked with the unmatched successful marks is the same as the number of the distributed file names marked with the unmatched successful marks, generating a second exception prompt, wherein the second exception prompt is used for indicating that the source file names marked with the unmatched successful marks are inconsistent with the provided distributed file names; and
if the number of the source file names marked with the unmatched successful marks is different from the number of the distributed file names marked with the unmatched successful marks, generating a third exception prompt, wherein the third exception prompt is used for indicating that the file identification corresponding to the missed derived file and the file identification inconsistent with the source file name exist in the searched distributed file names marked with the unmatched successful marks at the same time.
4. The method of claim 1, wherein after generating an exception hint for the derived source file from the unmatched success tag, further comprising:
and sending the abnormality prompt to an administrator to prompt the administrator to process the source file in the abnormality prompt.
5. The method of claim 1, wherein the distributing of the derived source file according to the match success flag comprises:
detecting whether the distributed file names in the set are marked successfully by marking according to the marked distributed file names;
if so, distributing the derived source file according to the distributed file name marked by the marked matching successful mark.
6. A control apparatus for file distribution, the apparatus comprising:
an acquisition module configured to: text identifying a file name of a source file derived from a database system to obtain a source file name for uniquely identifying the source file;
a matching module configured to: according to a distribution file name set provided by file distribution according to a request, matching each distribution file name in the set with the source file name through a character string matching algorithm;
the marking module is configured to: marking a successful matching mark or a successful unmatched mark for the source file name and the distributed file name according to the matching result;
a hint module configured to generate an exception hint for the derived source file based on the unmatched success tag; and
a distribution module configured to: distributing the corresponding source file according to the matching success mark;
the control device for file distribution is also used for: updating and monitoring the source folder; if the source file folder is monitored to be updated, acquiring a source file name of the updated source file; wherein the updating of the source folder comprises that newly added source files and source file names in the source folder are updated.
7. A control apparatus for file distribution, the apparatus comprising:
a processor; and
A memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1 to 5.
8. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 5.
CN201811348730.5A 2018-11-13 2018-11-13 File distribution control method and device Active CN109558391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811348730.5A CN109558391B (en) 2018-11-13 2018-11-13 File distribution control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811348730.5A CN109558391B (en) 2018-11-13 2018-11-13 File distribution control method and device

Publications (2)

Publication Number Publication Date
CN109558391A CN109558391A (en) 2019-04-02
CN109558391B true CN109558391B (en) 2024-03-08

Family

ID=65866197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811348730.5A Active CN109558391B (en) 2018-11-13 2018-11-13 File distribution control method and device

Country Status (1)

Country Link
CN (1) CN109558391B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596632B1 (en) * 2004-10-05 2009-09-29 At&T Intellectual Property Ii, L.P. Windowing by prefix matching
CN103699571A (en) * 2013-11-25 2014-04-02 小米科技有限责任公司 Method and device for file synchronization and electronic equipment
CN107832393A (en) * 2017-10-31 2018-03-23 上海交通大学 Towards the subscribing matching degree adaptive matching method and system of case distribution

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398281B2 (en) * 2005-02-28 2008-07-08 At&T Delaware Intellectual Property, Inc. Document repository
US9311314B2 (en) * 2013-08-27 2016-04-12 Netapp, Inc. System and method for migrating data from a source file system to a destination file system with use of attribute manipulation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596632B1 (en) * 2004-10-05 2009-09-29 At&T Intellectual Property Ii, L.P. Windowing by prefix matching
CN103699571A (en) * 2013-11-25 2014-04-02 小米科技有限责任公司 Method and device for file synchronization and electronic equipment
CN107832393A (en) * 2017-10-31 2018-03-23 上海交通大学 Towards the subscribing matching degree adaptive matching method and system of case distribution

Also Published As

Publication number Publication date
CN109558391A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN110069401B (en) System test abnormality positioning method and system based on data modeling
US10248414B2 (en) System and method for determining component version compatibility across a device ecosystem
CN106951228B (en) Method and device for processing differences in version iteration
CN110162442B (en) System performance bottleneck positioning method and system
US20200259895A1 (en) Maintenance of a persistent master identifier for clusters of user identifiers across a plurality of devices
CN110460583B (en) Sensitive information recording method and device and electronic equipment
KR101954976B1 (en) System for managing data backup and method thereof
CN112689979A (en) Article identity management method, terminal, micro-processing unit, identification equipment and system
US11616860B2 (en) Information display method, terminal, and server
CN110347672A (en) Verification method and device, the electronic equipment and storage medium of tables of data related update
CN104219378A (en) Information processing method and device
CN110083527A (en) A kind of generation method and device, electronic equipment of test case
CN109558391B (en) File distribution control method and device
CN108509188B (en) List establishing method and device and electronic equipment
CN110716914A (en) Database configuration method, system, computer readable storage medium and terminal equipment
WO2020140645A1 (en) Abnormal data provision detection method and apparatus based on data migration, and terminal device
CN105677430A (en) Mobile phone software updating method and system
CN110046095B (en) System integration method and device based on test flow improvement
US11431590B2 (en) Method and device to update contacts
CN110414809B (en) Optimization method and device of risk management system and related equipment
CN106911497A (en) Identification, the method and apparatus of adaption system more new equipment
KR102064877B1 (en) System for analyzing building energy consumption and saving rate and method thereof
CN110245330B (en) Character sequence matching method, preprocessing method and device for realizing matching
CN107451498B (en) Method and device for providing association relationship between objects and smart card
CN110309159B (en) Data modification method and system and electronic equipment

Legal Events

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