CN109240996A - Attachment deriving method, device, computer equipment and computer readable storage medium - Google Patents

Attachment deriving method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN109240996A
CN109240996A CN201810965415.0A CN201810965415A CN109240996A CN 109240996 A CN109240996 A CN 109240996A CN 201810965415 A CN201810965415 A CN 201810965415A CN 109240996 A CN109240996 A CN 109240996A
Authority
CN
China
Prior art keywords
attachment
level package
file
package structure
screened
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810965415.0A
Other languages
Chinese (zh)
Other versions
CN109240996B (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 CN201810965415.0A priority Critical patent/CN109240996B/en
Publication of CN109240996A publication Critical patent/CN109240996A/en
Application granted granted Critical
Publication of CN109240996B publication Critical patent/CN109240996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses attachment deriving method, device, equipment and storage medium, method includes: to obtain a kind of level package structure from preset a variety of level package structures;According to the level package structure of acquisition obtain level package object, the level package object include it is multiple be screened attachment and multiple Hierarchical Files folder;By calling integrated mode to be combined acquired level package object according to acquired level package structure;By call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion and create multi-layer file, and multiple attachmentes that are screened are stored in respectively in the last layer file of corresponding created multi-layer file;And if receive the export instruction of user's input, by the multi-layer file created pressurization at being exported after compressed package.It needs repeatedly to retrieve when can solve in the prior art export attachment in batches by implementing this programme, the cumbersome problem of whole operation process caused by multiple downloading.

Description

Attachment deriving method, device, computer equipment and computer readable storage medium
Technical field
The present invention relates to file download technical field more particularly to a kind of attachment deriving method, device, computer equipment and Computer readable storage medium.
Background technique
In the service application scene using attachment as carrier, for example, there are different attached in the operation system of user Part, those attachmentes may be the attachment of different days, different company, different service types and different business state, and it is deposited The position put is disorderly and unsystematic, when user is in the business conference using attachment as carrier, needs to find out the theme with the business conference When relevant all attachmentes, however it is often difficult to accurately be quickly found out the attachment for meeting self-demand.In the prior art, often pass through Search key searches attachment, and the accuracy that keyword searches attachment is lower, and the title of attachment is needed to have keyword that could retrieve It obtains, then also needs manually to click and choose all files being retrieved and be downloaded, operate relatively complicated trouble. It during downloading the attachment of batch different themes, also usually needs repeatedly to retrieve, repeatedly downloads, industry could be met by all The attachment of business demand downloads, the cumbersome trouble of whole operation process, and the attachment downloaded is all disorderly and unsystematic, can not embody The specific service application scene of all attachmentes being downloaded.
Summary of the invention
The embodiment of the invention provides a kind of attachment deriving method, device, computer equipment and computer-readable storage mediums Matter, it is intended to solve whole operation process caused by needs multiple retrieval when batch export attachment in the prior art, repeatedly downloading The problem of cumbersome trouble.
In a first aspect, the embodiment of the invention provides a kind of attachment deriving methods comprising: it is sealed from preset a variety of levels A kind of level package structure is obtained in assembling structure, the level package structure is multi-layer file nested structure;According to being obtained The level package structure that takes obtains level package object, and the level package object includes multiple being screened attachment and multiple layers Grade file;By calling integrated mode that acquired level package object is carried out group according to acquired level package structure It closes;By call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion create multi-layer file Folder, and by multiple the last layer files for being screened attachment and being stored in corresponding created multi-layer file respectively It is interior;And if receive the export instruction of user's input, by the multi-layer file created pressurization at being exported after compressed package.
Second aspect, the embodiment of the invention also provides a kind of attachment guiding devices comprising for executing above-mentioned first The unit of the method for aspect.
The third aspect, the embodiment of the invention also provides a kind of computer equipment, the computer equipment includes memory And processor, computer program is stored on the memory, the processor is realized above-mentioned when executing the computer program The method of first aspect.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Storage media is stored with computer program, and the computer program includes program instruction, and described program instruction, which is worked as, to be executed by processor When can realize above-mentioned first aspect method.
The embodiment of the invention provides a kind of attachment deriving method, device, computer equipment and computer-readable storage mediums Matter.The embodiment of the present invention needs multiple search key attached to search when can effectively overcome batch export attachment in the prior art Part, the problem that the cumbersome trouble of whole operation process caused by down operation is performed a plurality of times, and solve pass through keyword simultaneously Retrieval attachment is often difficult to the problem of quick and precisely finding relevant attachment.The embodiment of the present invention is multiple by will acquire It is screened attachment and multiple Hierarchical Files folder is combined according to acquired level package structure, acquired level package Structure is determined by its business concrete application scene, and establishes multi-layer file according to combined level package structure, in turn It will be screened in the corresponding the last layer file being stored in the multi-layer file of attachment, storage had and is screened attachment The pressurization of multi-layer file is exported at the latter key of compressed package, and then the attachment for being exported this and its concrete application field may be implemented The purpose that scape is mapped.After derived compressed package decompression is opened, the storage position for the attachment being exported is located at corresponding layer In class encapsulation structure, storage position is had regulations to abide by, and can fully demonstrate and be exported the service application scene of accessory association, should Method greatly reduces cost of labor, improves user experience, and the reusability of function is higher, be suitable for it is various with attachment be carry The service application scene of body.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for attachment deriving method that first embodiment of the invention provides;
Fig. 2 is a kind of sub-process schematic diagram for attachment deriving method that first embodiment of the invention provides;
Fig. 3 is a kind of another sub-process schematic diagram for attachment deriving method that first embodiment of the invention provides;
Fig. 4 is a kind of flow diagram for attachment deriving method that second embodiment of the invention provides;
Fig. 5 is a kind of schematic block diagram for attachment guiding device that first embodiment of the invention provides;
Fig. 6 is a kind of schematic frame of the first acquisition unit for attachment guiding device that first embodiment of the invention provides Figure;
Fig. 7 is a kind of schematic frame of the first creating unit of attachment guiding device that first embodiment of the invention provides Figure;
Fig. 8 is a kind of schematic block diagram for attachment guiding device that second embodiment of the invention provides;And
Fig. 9 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, a kind of schematic flow chart of its attachment deriving method provided for first embodiment of the invention.It should Attachment deriving method is applied to various using attachment as in the service application scene of carrier.As shown in Figure 1, this method may include step S110 to S150.
S110, a kind of level package structure, the level package structure are obtained from preset a variety of level package structures For multi-layer file nested structure.
Specifically, any level package structure in preset a variety of level package structures is that multi-layer file clamps Nested structure, multi-layer file may include one layer, two layers, three layers and n-layer etc., herein not to the specific of multi-layer file The nested number of plies is defined, and the specific nested number of plies of this document folder is determined that this is default by a kind of acquired level package structure A variety of level package structures correspond respectively to the multiple business application scenarios of user, i.e., determined according to the service application scene of user The fixed level package structure, for example, if in the operation system of user there are different days, different company, different service types with And the attachment of different business state, then, user can choose with a kind of " days-company-type of service-service condition " this layer Class encapsulation structure successively creates multi-layer file, i.e., first layer file is days file, second layer file is public Department's file, third layer file is type of service file and the 4th layer of file is service condition file, wherein the One layer of file nesting second layer, second layer file nesting third layer and third layer file are 4th layer, the 4th layer nested For file for storing specific attachment, the attachment is according to a kind of " days-company-type of service-service condition " this layer Specific attachment determined by class encapsulation structure, wherein the position of any layer in " days-company-type of service-service condition " Replacement can be adjusted correspondingly or modified according to the business demand of user, such as can be using company as first layer file Folder, days are as second layer file, it follows that if total number of plies of multi-layer nesting file is 4 layers, to 4 layers of file The nesting order of folder carries out fully intermeshing, available 4*3*2*1 kind level package structure has 24 kinds of different levels Encapsulating structure, i.e., in one embodiment, preset a variety of level package structures may include 24 kinds of level package structures.Therefore, If total number of plies of multi-layer nesting file is n-layer, which may include n* (n-1) * (n- 2) * a kind of level package structure of * ....User can choose attachment according to itself specific service application scene according to " year The level packages structure such as the moon-company-type of service-service condition " or " days-type of service-service condition " carries out level It is exported after encapsulation storage, for example, according to the corresponding creation of " days-company-type of service-service condition " this level package structure The multi-layer file, and then rear compression is led in the last layer file of the multi-layer file by specific accommodating parts Out.
In one embodiment, specifically, described to obtain a kind of level package knot from preset a variety of level package structures The step of structure, specifically includes following steps A and step B:
Step A: judge whether to receive the selection instruction of user's input.
Step B: if receiving the selection instruction of user's input, execution is described to be obtained from preset a variety of level package structures The step of taking a kind of level package structure.
Specifically, user can use selection instruction that it is inputted to select derived from attachment specifically need according to which A kind of level package structure carries out level package, and then selected by can obtaining user according to the selection instruction that user is inputted Level package structure.Therefore, user can select attachment according to the concrete application scene of own service according to " company-year The different level package structure such as the moon-service condition " or " days-company-service condition " carries out level package, wherein the layer Class encapsulation structure is different, and program code corresponding with the level package structure is different, but it carries out level package to attachment Derived principle is identical afterwards.
In other examples, a kind of acquired level package structure is to discuss determining level with user in advance to seal Assembling structure is selected from optional preset a variety of level package structures according to the specific service application scene of user in advance A kind of level package structure of the business demand meeting user is simultaneously set in advance, for example, if derived attached required for user Part and the concrete application scene of the business are fixed and invariable, then, it, can will be with business concrete application field after being decided through consultation with user Level package structure corresponding to scape is set in advance, for example, according to user demand, selection is with " days-company-service class A kind of this level package structure of type " establishes the multi-layer file of attachment, and a kind of acquired level package structure is shifted to an earlier date It is set as a kind of " days-company-type of service " this level package structure, can satisfy the customized demand of user, be set in advance Level package structure can also greatly improve derived efficiency after attachment level package, improve the experience effect of user.
S120, level package object is obtained according to acquired level package structure, the level package object includes more It is a to be screened attachment and multiple Hierarchical Files folder.
Specifically, the level package object of the acquisition according to required for acquired level package structure determination, wherein described Level package object include it is multiple be screened attachment and multiple Hierarchical Files folder, for example, if acquired level package structure For " days-company-service condition ", then just need to obtain it is relevant to the level package structure it is multiple be screened attachment and Multiple Hierarchical File folders, for example, first obtaining the multiple attachmentes for meeting first layer days file requirement, then in multiple attachment On the basis of search meet the attachment that second layer Company File folder requires again, and then searched again in these attachmentes and meet this third layer What service condition file required is screened attachment, is screened required for the specific level package structure determination of attachment according to these The multiple Hierarchical Files folder obtained.
S130, by call integrated mode by acquired level package object according to acquired level package structure into Row combination.
Specifically, attachment and multiple layers can be screened for multiple by integrated mode (Composite Pattern) All objects such as grade file regard identical object as to be combined into multiple Hierarchical File folders and multiple trees for being screened attachment Shape structure.The integrated mode is that the multiple objects of combination form tree structure to indicate the level with " entirety-part " relationship Structure.Integrated mode uses with uniformity, group to single object (i.e. leaf objects) and compound object (i.e. container object) Syntype is properly termed as " entirety-part " (Part-Whole) mode again, it is a kind of object structure pattern formula.It is described tree-like Structure includes multiple containers object (object comprising subobject) and multiple leaf objects (object not comprising subobject), is passed through Integrated mode regard multiple Hierarchical Files folder as container object, may include specific file in multiple Hierarchical File folder Can continue comprising sub-folder, using multiple attachmentes that are screened as leaf objects, multiple be screened in attachment cannot be again Include subfile or sub-folder.
S140, by call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion create it is more Hierarchical File folder, and by multiple the last layeres for being screened attachment and being stored in corresponding created multi-layer file respectively In file.
Specifically, by calling Iterator Design Pattern will be according to the level package in tree structure gone out combined by integrated mode Structure carries out step-by-step recursion and creates multi-layer file, by calling the iteration recursive call creation side in Iterator Design Pattern Method judges that the object that each is combined is container object or leaf objects, is file or file, and step-by-step recursion Create the multi-layer file, wherein the Iterator Design Pattern is for providing in a kind of one aggregate objects of method sequential access Various elements, and do not expose the internal representation of the object.For example, if combined level package structure is that " days-are public Department-management position " then creates first days file in days file first, next creates first days file First Company File folder under folder, then first operation analysis report file under first Company File folder is created, Finally store while being able to satisfy first days file, first Company File folder and first operation analysis report text All specific attachmentes being screened out of part folder, successively recurrence is until multi-layer file creation is completed.Wherein, real one It applies in example, step-by-step recursion creation should in network attached storage (Network Attached Storage, NAS) disk of server-side It multi-layer file and multi-layer file is pressurizeed at compressed package, and by compressed package exports to client.
If S150, the export instruction for receiving user's input, after the multi-layer file created is pressurizeed into compressed package Export.
In one embodiment, specifically, if the export instruction for receiving user's input, by the multi-layer created text The pressurization of part folder at the step of export after compressed package specifically includes the following steps: storage had by calling skin mode the multiple The multi-layer file for being screened attachment pressurizes into compressed package and exports the compressed package, wherein the skin mode is used for The pressurization of multi-layer file is encapsulated at this process that this process and the compressed package of compressed package export to client At a unified interface for outside access.
Wherein, in one embodiment, described the multiple to be screened the more of attachment by calling skin mode to have storage Hierarchical File folder pressurization specifically includes following steps C and step D at after the step of compressed package:
Step C: by calling skin mode, the set interface for user setting title is provided.
Step D: the title that user submits in the set interface is received, and this is referred to as the multi-layer file The title of compressed package.
Specifically, by calling skin mode that can be packaged all cumbersome processes, it can will store State it is multiple be screened attachment multi-layer files pressurization at compressed package process, by process derived from compressed package, provide for Family is arranged the process of the set interface of title and receives the title to be packaged into the process of the title as the compressed package One unified interface for outside access, wherein the skin mode is used to the cumbersome process of some complexity be packaged into one A unified access interface, this unified access interface make external user be easier to access or use.
In the above-described embodiments, this programme by using integrated mode, Iterator Design Pattern, skin mode isotype in conjunction with and At composite mode to realize the level package of attachment and by purpose derived from the attachment after level package, wherein utilize Multiple Hierarchical Files are pressed from both sides and multiple are screened all objects such as attachment to regard identical object as more to be combined by integrated mode A Hierarchical File folder and multiple tree structures for being screened attachment;It can be according to the tree-like knot being combined into using Iterator Design Pattern Structure carries out step-by-step recursion and creates multi-layer file, specifically, by calling the iteration recursive call in Iterator Design Pattern Creation method judges that the object that each is combined is file or file, and to create the multi-layer file straight for step-by-step recursion To the creation for completing the multi-layer file;All cumbersome processes can be packaged using skin mode, it can will Multi-layer file pressurization at the pressure process of compressed package and the export process of export compressed package be packaged into one it is unified For the interface of outside access.By implement the embodiment of the present invention can effectively overcome in the prior art export batch have it is multiple Multiple search key is needed when the attachment of theme with whole operation process caused by searching attachment, down operation being performed a plurality of times The problem of cumbersome trouble, and solve simultaneously by keyword retrieval search attachment be often difficult to quick and precisely find it is relevant attached The problem of part.The embodiment of the present invention passes through the multiple attachmentes and multiple Hierarchical Files folder of being screened that will acquire according to acquired Level package structure is combined, and acquired level package structure is determined by its business concrete application scene, and according to group The level package structure of conjunction establishes multi-layer file, and then multiple attachmentes that are screened are stored in the corresponding multilayer respectively In the last layer file in grade file, storage there is the multi-layer file pressurization for being screened attachment latter at compressed package Key export, and then the purpose that the attachment for being exported this is mapped with its concrete application scene may be implemented, by derived pressure After contracting packet decompression is opened, the storage position for the attachment being exported is located in corresponding level package structure, and storage position is equipped with chapter It can follow, and can fully demonstrate and be exported the service application scene of accessory association, this method greatly reduces cost of labor, improves User experience, and the reusability of function is higher, suitable for various using attachment as the service application scene of carrier.
Referring to Fig. 2, a kind of sub-process schematic diagram of its attachment deriving method provided for first embodiment of the invention, such as Shown in Fig. 2, level package object, the level package are obtained according to acquired level package structure in the step S120 Object include the steps that it is multiple be screened attachment and multiple Hierarchical Files folder specifically include following steps S121-S125.
S121, according to acquired level package structure determination multiple groups screening conditions.
Specifically, the level package structure is determined by the service application scene of user, the multiple groups screening conditions by Acquired level package structure is determined, due to needing according to acquired in there are multiple different level package structures Level package structure determination required for multiple groups screening conditions, so that user screens, for example, if acquired level is sealed Assembling structure is " days-company-type of service ", then three groups of days, company, type of service screening conditions is provided, if acquired Level package structure is " days-company-service condition ", then provides three groups of days, company, service condition screening conditions.
S122, the screening instruction for receiving user's input, the screening instruction is user's selector bar from multiple groups screening conditions The instruction of part.
Specifically, the screening instruction is the instruction of user's alternative condition from multiple groups screening conditions, i.e. user can root It is selected according to multiple groups screening conditions of the self-demand to offer, wherein the multiple groups screening conditions of offer are answered by the business of user Determined with scene, for example, if in the operation system of user there are different days, different company, different service types and The attachment of different business state, if user according to own service application scenarios, has selected with " days-company-type of service-industry A kind of business state " this level package structure establishes multi-layer file, then according to a kind of this level package structure, can by when Between the condition that can be screened for as one group of range, the condition and different business class that Business Name can be screened for as another group Type, different states are as other two groups of conditions that can be screened for, and then user can be according to self-demand from this four groups of screenings Selection meets the condition of self-demand in condition, and the attachment for meeting self-demand is screened, and does not screen herein to multiple groups The group and group number of condition do concrete restriction.The screening instruction is done certainly by user according to own service concrete application scene Fixed, in one embodiment, user can choose the industry of in May, -2018 in January, 2018, property insurers and life insurance companies It is not completed in business operation analysis report and completed;In another embodiment, user can choose in January, 2017- It is not completed in the financial statement in December, financing corporation and scientific & technical corporation and completed.
S123, it is instructed according to default level contingency table and the screening, filters ineligible attachment, obtain multiple Attachment is screened with the screening instructions match.
Specifically, it receives and determines multiple and institute after the screening that user inputs instructs by searching for the default level contingency table State the attachment of screening instructions match being screened, wherein the default level contingency table is the specific layer of attachment corresponding thereto The association table of class encapsulation structure, the default level contingency table storage have the file name of all attachmentes, each attachment institute right Answer year month information, affiliated company's information, affiliated type of service and business state information.It therefore, can be according to the screening Instruction and default level contingency table, filter out the attachment for being unsatisfactory for user demand, obtain multiple meeting being sieved for user demand Attachment is selected, concrete restriction is not done to the application scenarios of attachment herein, for example, can " file name " in multiple groups screening conditions Screening frame in choose required multiple attachmentes, required multiple companies can also be chosen in the screening frame of " specialized company " Attachment, after receiving screening from the user instruction, the lookup default level contingency table, which can be obtained, multiple is screened attachment.
S124, it determines according to acquired level package structure and the default level contingency table and is each screened attachment Level package structure.
Specifically, in one embodiment, a kind of acquired level package structure is " days-company-type of service ", if The screening conditions such as user input selection " 01 month in May, -2018 in 2018 ", " producing danger/property insurance ", " operation analysis report ", into And after 5 attachmentes such as filter out attachment A, accessories B, attachment C, attachment D and attachment E, according to acquired " days-company-industry This level package structure of service type " and the default level contingency table determine the level package structure of each attachment, for example, It is " in February, 2018 " by the year month information that the default level contingency table can find attachment A, affiliated company is " producing danger " Company, affiliated type of service are " operation analysis report ", and the year month information of accessories B is " in May, 2018 ", affiliated company is the " longevity Danger " company, affiliated type of service are " operation analysis report ", therefore, according to acquired days-company-type of service " this Level package structure can determine that the level package structure of attachment A is " in February, 2018-production danger-operation analysis report ", attachment The level package structure of B is " in May, 2018-life insurance-operation analysis report ", similarly can by the default level contingency table It is " 03 month 2018-produce danger-operation analysis report ", the level package of attachment D to find the level package structure of determining attachment C Structure is " 01 month 2018-produce danger-operation analysis report ", and the level package structure of attachment E is " in February, 2018-life insurance-warp Seek analysis report ", therefore, determined according to a kind of acquired level package structure and the default level contingency table described more A level package structure for being screened attachment.
S125, multiple Hierarchical File folders are obtained according to the level package structure for being each screened attachment.
Specifically, according to described in the embodiment in step S124, if the multiple attachmentes for being screened out are attachment A to attached Part E totally 5 attachmentes obtain multiple Hierarchical Files folders according to each level package structure for being screened attachment, then multiple layer Grade file includes " 201801/201802/201803/201805 " totally 4 files, " produce danger/life insurance " totally 5 files, Wherein, comprising " producing danger " file and " life insurance " file in February, 2018, and finally " operation analysis report " totally 5 File.
In the above-described embodiments, this programme can be with by the default level contingency table of setting multiple groups screening conditions and attachment The attachment that is screened of the batch of the condition of satisfaction is quick and precisely found, the attachment that is screened for meeting condition batch, Jin Ergen are obtained Each level package structure for being screened attachment has been determined according to acquired level package structure and default level contingency table, into And multiple Hierarchical Files can be obtained according to the level package structure for being each screened attachment and pressed from both sides.
Referring to Fig. 3, a kind of another sub-process signal of its attachment deriving method provided for first embodiment of the invention Figure, as shown in figure 3, in the step S140 by call Iterator Design Pattern by according to it is combined at level package structure into Row step-by-step recursion creates multi-layer file, and multiple attachmentes that are screened are stored in corresponding created multi-layer respectively Step in the last layer file of file specifically includes following steps S141-S143.
S141, by call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion create it is more Hierarchical File folder.
S142, according to it is combined at level package structure determination each described be screened attachment in the multi-layer created Target storage path in file.
Specifically, according to it is combined at level package structure determination each described be screened the corresponding target storage of attachment Path, for example, in one embodiment, a kind of acquired level package structure is " days-company-type of service ", according to institute " days-company-type of service " this level package structure obtained obtains level package object, the level package object packet Include it is multiple be screened attachment and multiple Hierarchical Files folder, for example, according to described in the embodiment in step S124, according to multiple groups Screening conditions, which are searched, obtains attachment A, accessories B, attachment C, attachment D and attachment E totally 5 attachmentes, passes through a kind of level of acquisition It encapsulating structure and searches the default level contingency table and can determine attachment A to the attachment E target of totally 5 attachmentes corresponding to it Path is stored, for example, can find the year month information of attachment A by the default level contingency table is " in February, 2018 ", institute Category company is " producing danger " company, and affiliated type of service is " operation analysis report ", and the year month information of accessories B is " 2018 05 The moon ", affiliated company are " producing danger " company, and affiliated type of service is " operation analysis report ", therefore, according to a kind of acquired layer Class encapsulation structure can determine that the level package structure of attachment A is " in February, 2018-production danger-operation analysis report ", i.e. attachment A needs to be stored in " operation analysis report " file in " producing danger " file in " in February, 2018 " file, similarly, Accessories B needs are stored in " operation analysis report " file in " life insurance " file in " in May, 2018 " file, And so on, it can determine that attachment C needs to be stored in " the operation point in " producing danger " file in " 03 month 2018 " file Analysis report " is in file, " managing point in " producing danger " file that attachment D needs to be stored in " 01 month 2018 " file In analysis report " file, attachment E needs to be stored in " managing and dividing in " life insurance " file in " in February, 2018 " file In analysis report " file, therefore, institute is determined according to a kind of acquired level package structure and the default level contingency table Stating multiple level package structures for being screened attachment is " 01 month to 2018 in May, 2018-property insurers-performance analysis report Accuse ", and according to the multiple level package structure for being screened attachment, it is created using the level package method step-by-step recursion more Hierarchical File folder.After successively the multi-layer file is completed in step-by-step recursion creation, the first layer of the multi-layer file is year Month file, which stores after opening " 01 month 2018 ", " in February, 2018 ", " 03 month 2018 ", " 2018 Year 04 month " and 5 sub-folders such as " 2018 05 ", it is public for the second layer after being opened in any of the above-described specific month subfile Take charge of file, that is, possible storage has " producing danger " or " life insurance " sub-folder after opening any of the above-described specific month sub-folder, It is third layer type of service file after being opened in above-mentioned second layer Company File folder, that is, opens " producing in wherein some month Storing after the sub-folder of danger " has " operation analysis report " sub-folder, the then conduct of third layer " operation analysis report " sub-folder Store the last layer file of the attachment specifically depended on.
S143, each original storage path for being screened attachment is determined from default attachment summary sheet.
Specifically, the original storage path can determine that the default attachment summarizes in the default attachment summary sheet Table includes the document information of all attachmentes, wherein the document information include the file sizes of all attachmentes, file name and File stores path, and file storage path is the storage path before attachment does not export, the i.e. original storage path of attachment.
S144, each attachment that is screened is taken out from its original storage path and is stored in corresponding target storage road In diameter.
Specifically, the target storage path is each corresponding multi-layer of level package structure for being screened attachment The last layer file in file, such as, however, it is determined that the level package structure of attachment A is " in February, 2018-production danger-warp Seek analysis report ", then attachment A should be stored in " the operation point in " producing danger " file in " in February, 2018 " file In analysis report " file.
In the above-described embodiments, this programme creates multi-layer file by calling Iterator Design Pattern step-by-step recursion and will be more A attachment that is screened is stored in respectively in the last layer file of the multi-layer file created accordingly.
Referring to Fig. 4, a kind of flow diagram of its attachment deriving method provided for second embodiment of the invention.This is attached Part deriving method is applied to various using attachment as in the service application scene of carrier.As shown in figure 4, this method may include step S210-S270.Wherein step S210-S250 is similar with the step S110-S150 in above-described embodiment, and details are not described herein.Under Face be described in detail in the present embodiment increase step S260 and step S270.
S260, pass through regulative strategy mode, any level package obtained from preset a variety of level package structures Structure calls Same Way interface.
Specifically, by strategy pattern, multiple different level package structures can call Same Way interface.Its In, the strategy pattern is a kind of behavior pattern, for providing multiple alternative algorithm policies for a specific project, visitor It family end can be according to the different any specific algorithm policies of application demand Selection and call in its operation.The original of the strategy pattern Reason is to separate algorithm policy and object, makes algorithm independently of using its user.Specifically, will in a class often change or The extracting section that may change in the future comes out, and then includes the example of this object in class as a Same Way interface, The example of class can call the behavior for realizing this interface class at runtime in this way, that is, prepare one group of algorithm, and will be each Algorithm packaging gets up, and is allowed to interchangeable.Therefore, policing algorithm is that the different of identical behavior are realized.
S270, temporary file and temporary folder are deleted by calling skin mode.
Specifically, in one embodiment, it during using server-side Nas disk creation multi-layer file, can take It is engaged in generating temporary files and the temporary folders such as specific temp directory in end Nas disk, the specific temp directory is for creating Multi-layer nesting file and compressed document file (file or specific file may be included in this document folder), when this is more It after export is completed in Hierarchical File folder creation, needs to delete the temporary file and temporary folder that generate in Nas disk, to reduce The storage pressure of server-side, improves the speed of service of server-side, in addition, using skin mode, it can be literary by the multi-layer While part folder pressurization after compressed package at exporting, the temporary file in Nas disk will be stored in and temporary folder is deleted.
In the above-described embodiments, this programme is by using strategy pattern, integrated mode, Iterator Design Pattern, skin mode etc. The composite mode that mode is combined into realize the level package of attachment and by purpose derived from the attachment after level package, Wherein, by strategy pattern, multiple different level package structures can call identical method.The embodiment of the present invention is logical Crossing increase strategy pattern can make multiple different level package structures that can call Same Way interface, and by that will delete It is realized except temporary file and temporary folder this process are encapsulated in skin mode, the storage of server-side can be effectively reduced Pressure improves the speed of service of server-side, and the reusability of the program code of this method is stronger, and scalability is preferable, can be significantly Reduce development cost, improve the development efficiency of developer, also can effectively improve user experience, and the reusability of function compared with Height, suitable for various using attachment as the service application scene of carrier.
Referring to Fig. 5, a kind of schematic block diagram of its attachment guiding device 300 provided for first embodiment of the invention. As shown in figure 5, the attachment guiding device 300 corresponds to attachment deriving method shown in FIG. 1.The attachment guiding device 300 includes For executing the unit of above-mentioned attachment deriving method, which can be configured in desktop computer, plate electricity In the terminals such as brain, laptop computer.Specifically, referring to Fig. 5, the attachment guiding device 300 includes first acquisition unit 301, the Two acquiring units 302, the first assembled unit 303, the first creating unit 304 and the first lead-out unit 305.
The first acquisition unit 301 is for obtaining a kind of level package knot from preset a variety of level package structures Structure, the level package structure are multi-layer file nested structure.
Specifically, which corresponds respectively to the multiple business application scenarios of user, i.e. root The level package structure is determined according to the service application scene of user.In one embodiment, the first acquisition unit 301 is for sentencing If the disconnected selection instruction for whether receiving user's input and the selection instruction for receiving user's input, described from pre- for executing If a variety of level package structures in the step of obtaining a kind of level package structure.Wherein, user can use what it was inputted Selection instruction to select derived from attachment specifically need to carry out level package, Jin Erke according to any level package structure The selected level package structure of user is obtained with the selection instruction inputted according to user.
The second acquisition unit 302 is used to obtain level package object according to acquired level package structure, described Level package object include it is multiple be screened attachment and multiple Hierarchical Files folder.
First assembled unit 303 is used for by calling integrated mode by acquired level package object according to being obtained The level package structure taken is combined.
Specifically, attachment and multiple layers can be screened for multiple by integrated mode (Composite Pattern) All objects such as grade file regard identical object as to be combined into multiple Hierarchical File folders and multiple trees for being screened attachment Shape structure.
First creating unit 304 be used for by call Iterator Design Pattern by according to it is combined at level package structure It carries out step-by-step recursion and creates multi-layer file, and multiple attachmentes that are screened are stored in corresponding created multilayer respectively In the last layer file of grade file.
It specifically, can be according to the level package knot in tree structure gone out combined by integrated mode by Iterator Design Pattern Structure step-by-step recursion creates multi-layer file, by calling the iteration recursive call creation method in Iterator Design Pattern to judge Each object being combined is container object or leaf objects, is file or file, and step-by-step recursion creation should Multi-layer file, wherein the Iterator Design Pattern is used to provide various in a kind of one aggregate objects of method sequential access Element, and the internal representation of the object is not exposed.Wherein, in one embodiment, in the network attached storage of server-side Step-by-step recursion creates the multi-layer file and by multi-layer file in (NetworkAttached Storage, NAS) disk Compressed package is pressurizeed into, and compressed package is exported into client
If first lead-out unit 305 is used to receive the export instruction of user's input, by the multi-layer created text Part folder pressurization after compressed package at exporting.
Specifically, in one embodiment, first lead-out unit 305 is used for by calling skin mode that will store It states multiple multi-layer files for being screened attachment to pressurize into compressed package and export the compressed package, wherein the appearance mould Formula, which is used to pressurize multi-layer file, exports to this mistake of client at this process and the compressed package of compressed package Journey is packaged into the unified interface for outside access.In another embodiment, first lead-out unit 305 is also used to lead to Calling skin mode is crossed, provide for the set interface of user setting title and is submitted in the set interface for receiving user Title, and by this be referred to as the multi-layer file compressed package title.
Referring to Fig. 6, a kind of second acquisition unit of its attachment guiding device 300 provided for first embodiment of the invention 302 schematic block diagram, the second acquisition unit 302 include the first determination unit 3021, the screening of receiving unit 3022, first Unit 3023, the second determination unit 3024 and file acquiring unit 3025.
First determination unit 3021 is used for according to acquired level package structure determination multiple groups screening conditions.
Specifically, the level package structure is determined by the service application scene of user, the multiple groups screening conditions by Acquired level package structure is determined, due to needing according to acquired in there are multiple different level package structures Level package structure determination required for multiple groups screening conditions, so that user screens.
The receiving unit 3022 is used to receive the screening instruction of user's input, and the screening instruction is that user sieves from multiple groups Select the instruction of alternative condition in condition.
Specifically, the screening instruction is the instruction of user's alternative condition from multiple groups screening conditions, i.e. user can root It is selected according to multiple groups screening conditions of the self-demand to offer, wherein the multiple groups screening conditions of offer are answered by the business of user It is determined with scene.
First screening unit 3023 is used to not met according to default level contingency table and screening instruction, filtering The attachment of condition, obtain the multiple and described screening instructions match is screened attachment.
Specifically, it receives and determines multiple and institute after the screening that user inputs instructs by searching for the default level contingency table State the attachment of screening instructions match being screened, wherein the default level contingency table is the specific layer of attachment corresponding thereto The association table of class encapsulation structure, the default level contingency table storage have the file name of all attachmentes, each attachment institute right Answer year month information, affiliated company's information, affiliated type of service and business state information.
Second determination unit 3024 is used to be associated with according to acquired level package structure and the default level Table determines the level package structure for being each screened attachment.
The file acquiring unit 3025 is used to obtain multiple layers according to the level package structure for being each screened attachment Grade file.
Referring to Fig. 7, a kind of the first creating unit of its attachment guiding device 300 provided for first embodiment of the invention 304 schematic block diagram, first creating unit 304 include third determination unit 3041, first create subelement 3042, really Order member 3043 and access unit 3044.
The third determination unit 3041 be used for by call Iterator Design Pattern by according to it is combined at level package knot Structure carries out step-by-step recursion and creates multi-layer file.
The first creation subelement 3042 be used for according to it is combined at level package structure determination each described sieved Select target storage path of the attachment in the multi-layer file created.
The determination unit 3043 is used to be screened the original of attachment described in determination each from default attachment summary sheet and deposit Put path.
Specifically, the original storage path can determine that the default attachment summarizes in the default attachment summary sheet Table includes the document information of all attachmentes, wherein the document information include the file sizes of all attachmentes, file name and File stores path, and file storage path is the storage path before attachment does not export, the i.e. original storage path of attachment.
The access unit 3044 is used to described be screened attachment by each and take out and be stored in from its original storage path In corresponding target storage path.
Specifically, the target storage path is each corresponding multi-layer of level package structure for being screened attachment The last layer file in file.
It should be noted that it is apparent to those skilled in the art that, above-mentioned 300 He of attachment guiding device The specific implementation process and effect of each unit, can be with reference to the corresponding description in preceding method embodiment, for the side of description Just and succinctly, details are not described herein.
Referring to Fig. 8, a kind of schematic block diagram of its attachment guiding device 400 provided for second embodiment of the invention. As shown in figure 8, a kind of attachment guiding device 400 that second embodiment of the invention provides is to increase on the basis of the above embodiments Call unit 406 and unit 407 is deleted, i.e., described device 400 includes third acquiring unit 401, the 4th acquiring unit 402, the second assembled unit 403, the second creating unit 404, the second lead-out unit 405, call unit 406 and deletion unit 407.Wherein, the third acquiring unit 401, the 4th acquiring unit 402, the second assembled unit 403, the second creating unit 404 with And second lead-out unit 405 and the first acquisition unit 301 in above-described embodiment, second acquisition unit 302, the first assembled unit 303, the first creating unit 304 and the first lead-out unit 305 are similar, due to its application process and corresponding function and above-mentioned reality Unit corresponding to applying in example is similar, and details are not described herein.
The call unit 406 is used to obtain from preset a variety of level package structures by regulative strategy mode Any level package structure can call Same Way interface.
Specifically, by strategy pattern, multiple different level package structures can call Same Way interface.Its In, the strategy pattern is a kind of behavior pattern, for providing multiple alternative algorithm policies for a specific project, visitor It family end can be according to the different any specific algorithm policies of application demand Selection and call in its operation.The original of the strategy pattern Reason is to separate algorithm policy and object, makes algorithm independently of using its user.Specifically, will in a class often change or The extracting section that may change in the future comes out, and then includes the reality of this object in class as an identical method interface Example, the example of such class can call the behavior for realizing this interface class at runtime, that is, prepare one group of algorithm, and will be every A algorithm packaging gets up, and is allowed to interchangeable.Therefore, policing algorithm is that the different of identical behavior are realized.
The deletion unit 407 is used for by calling skin mode to delete temporary file and temporary folder.
Specifically, it during using server-side Nas disk creation multi-layer file, can be produced in server-side Nas disk Temporary files and the temporary folders such as raw specific temp directory, the specific temp directory is for creating multi-layer nesting file Folder and compressed document file (may include file or specific file in this document folder), create when by the multi-layer file After completing export, need to delete the temporary file and temporary folder that generate in Nas disk.
It should be noted that it is apparent to those skilled in the art that, above-mentioned apparatus 400 and each unit Specific implementation process and effect can refer to the corresponding description in preceding method embodiment, for convenience of description and succinctly, Details are not described herein.
Above-mentioned apparatus can be implemented as a kind of form of computer program, which can be as shown in Figure 9 It is run in computer equipment.
Referring to Fig. 9, it is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.The computer is set Standby 600 can be terminal, be also possible to server, wherein terminal can be smart phone, tablet computer, laptop, platform The electronic equipments such as formula computer and personal digital assistant.Server can be independent server, be also possible to multiple server groups At server cluster.
Refering to Fig. 9, which includes processor 602, memory and the net connected by system bus 601 Network interface 605, wherein memory may include non-volatile memory medium 603 and built-in storage 604.
The non-volatile memory medium 603 can storage program area 6031 and computer program 6032.The computer program 6032 include program instruction, which is performed, and processor 602 may make to execute a kind of attachment deriving method.
The processor 602 is for providing calculating and control ability, to support the operation of entire computer equipment 600.
The built-in storage 604 provides environment for the operation of the computer program 6032 in non-volatile memory medium 603, should When computer program 6032 is executed by processor 602, processor 602 may make to execute a kind of attachment deriving method.
The network interface 605 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 9 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 600 thereon, specific computer equipment 600 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.
Wherein, the processor 602 is for running computer program 6032 stored in memory, to realize following step It is rapid:
In one embodiment, processor 602 is implemented as follows step when realizing the attachment deriving method: from pre- If a variety of level package structures in obtain a kind of level package structure, the level package structure is that multi-layer file is nested Structure;Level package object is obtained according to acquired level package structure, the level package object includes multiple is screened Attachment and multiple Hierarchical Files folder;By calling integrated mode by acquired level package object according to acquired level Encapsulating structure is combined;By call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion wound Multi-layer file is built, and multiple attachmentes that are screened are stored in the last of corresponding created multi-layer file respectively In one layer of file;And if receive user input export instruction, by the multi-layer file created pressurize at compression It is exported after packet.
In one embodiment, processor 602 is realizing the level package structure acquisition level package according to acquired in Object, the level package object include the steps that multiple when being screened attachment and multiple Hierarchical Files and pressing from both sides, and specific implementation is such as Lower step: according to acquired level package structure determination multiple groups screening conditions;Receive the screening instruction of user's input, the sieve Choosing instruction is the instruction of user's alternative condition from multiple groups screening conditions;Referred to according to default level contingency table and the screening It enables, filters ineligible attachment, obtain the multiple and described screening instructions match is screened attachment;According to acquired layer Class encapsulation structure and the default level contingency table determine the level package structure for being each screened attachment;And according to each The level package structure for being screened attachment obtains multiple Hierarchical File folders.
In one embodiment, processor 602 realize it is described by call Iterator Design Pattern by according to it is combined at layer Class encapsulation structure carries out step-by-step recursion and creates multi-layer file, and multiple attachmentes that are screened are stored in corresponding institute respectively When step in the last layer file of the multi-layer file of creation, it is implemented as follows step: by calling iterator Mode by according to it is combined at level package structure carry out step-by-step recursion create multi-layer file;According to it is combined at layer Target storage path of the attachment in the multi-layer file created is screened described in class encapsulation structure determination is each;From default Each original storage path for being screened attachment is determined in attachment summary sheet;And by it is each it is described be screened attachment from its It takes out and is stored in corresponding target storage path in original storage path.
In one embodiment, processor 602 described obtains a kind of layer from preset a variety of level package structures realizing Before the step of class encapsulation structure, it is implemented as follows step: judging whether to receive the selection instruction of user's input;And if The selection instruction of user's input is received, execution is described to obtain a kind of level package knot from preset a variety of level package structures The step of structure.
In one embodiment, processor 602 described obtains a kind of layer from preset a variety of level package structures realizing After the step of class encapsulation structure, the level package structure is multi-layer file nested structure, following step is specifically also realized Rapid: by regulative strategy mode, any level package structure obtained from preset a variety of level package structures can be adjusted With Same Way interface.
In one embodiment, if processor 602 is realizing the export instruction for receiving user's input, by what is created When the pressurization of multi-layer file is at the step exported after compressed package, it is implemented as follows step: by calling skin mode that will deposit It is placed with the multiple multi-layer file for being screened attachment to pressurize into compressed package and export the compressed package, wherein described Skin mode, which is used to pressurize multi-layer file, exports to client at this process and the compressed package of compressed package This process is packaged into the unified interface for outside access.
In one embodiment, processor 602 is specifically also realized after realizing described the step of exporting the compressed package Following steps: by calling skin mode to delete temporary file and temporary folder.
It should be appreciated that in embodiments of the present invention, processor 602 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or The processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey Sequence can be stored in a storage medium, which is storage medium.The program instruction by the computer system at least One processor executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of computer readable storage mediums.The computer-readable recording medium storage has meter Calculation machine program, wherein computer program includes program instruction.The program instruction executes processor when being executed by processor as above The attachment deriving method.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of attachment deriving method characterized by comprising
A kind of level package structure is obtained from preset a variety of level package structures, the level package structure is multi-layer text Part clamps nested structure;
Obtain level package object according to acquired level package structure, the level package object include it is multiple be screened it is attached Part and multiple Hierarchical Files folder;
By calling integrated mode to be combined acquired level package object according to acquired level package structure;
By call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion create multi-layer file Folder, and by multiple the last layer files for being screened attachment and being stored in corresponding created multi-layer file respectively It is interior;And
If the export instruction of user's input is received, by the multi-layer file created pressurization at exporting after compressed package.
2. attachment deriving method according to claim 1, which is characterized in that the level package structure according to acquired in Obtain level package object, the level package object include the steps that it is multiple be screened attachment and multiple Hierarchical Files folder, Include:
According to acquired level package structure determination multiple groups screening conditions;
The screening instruction of user's input is received, the screening instruction is the instruction of user's alternative condition from multiple groups screening conditions;
It is instructed according to default level contingency table and the screening, filters ineligible attachment, obtain the multiple and sieve That selects instructions match is screened attachment;
The level envelope for being each screened attachment is determined according to acquired level package structure and the default level contingency table Assembling structure;And
Multiple Hierarchical File folders are obtained according to each level package structure for being screened attachment.
3. attachment deriving method according to claim 1, which is characterized in that described by calling Iterator Design Pattern will be according to It is combined at level package structure carry out step-by-step recursion and create multi-layer file, and be screened attachment by multiple and store respectively To the step in the last layer file of corresponding created multi-layer file, comprising:
By call Iterator Design Pattern by according to it is combined at level package structure carry out step-by-step recursion create multi-layer file Folder;
According to it is combined at level package structure determination each described be screened attachment in the multi-layer file created Target storage path;
Each original storage path for being screened attachment is determined from default attachment summary sheet;And
Each attachment that is screened is taken out from its original storage path and is stored in the corresponding target storage path.
4. attachment deriving method according to claim 1, which is characterized in that described from preset a variety of level package structures In before the step of obtaining a kind of level package structure, further includes:
Judge whether to receive the selection instruction that user inputs;And
If receiving the selection instruction of user's input, execution is described to obtain a kind of level from preset a variety of level package structures The step of encapsulating structure.
5. attachment deriving method according to claim 1, which is characterized in that described from preset a variety of level package structures In after the step of obtaining a kind of level package structure, further includes: by regulative strategy mode, from preset a variety of level packages Any level package structure obtained in structure calls Same Way interface.
6. attachment deriving method according to claim 1, which is characterized in that the multi-layer file that will be created adds The step of exporting, is pressed into after compressed package, comprising:
To be stored by calling skin mode has the multiple multi-layer file pressurization for being screened attachment into compressed package and incites somebody to action Compressed package export, wherein the skin mode be used for the pressurization of multi-layer file into this process of compressed package and This process that the compressed package exports to client is packaged into the unified interface for outside access.
7. attachment deriving method according to claim 6, which is characterized in that it is described by the compressed package export the step of it Afterwards, further includes: by calling skin mode to delete temporary file and temporary folder.
8. a kind of attachment guiding device, which is characterized in that including for executing as the described in any item attachmentes of claim 1-7 are led The unit of method out.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory It is stored with computer program, the processor is realized as described in any one of claim 1-7 when executing the computer program Attachment deriving method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program can be realized when being executed by a processor such as attachment export side of any of claims 1-7 Method.
CN201810965415.0A 2018-08-23 2018-08-23 Accessory export method, accessory export device, computer equipment and computer readable storage medium Active CN109240996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810965415.0A CN109240996B (en) 2018-08-23 2018-08-23 Accessory export method, accessory export device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810965415.0A CN109240996B (en) 2018-08-23 2018-08-23 Accessory export method, accessory export device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109240996A true CN109240996A (en) 2019-01-18
CN109240996B CN109240996B (en) 2024-02-27

Family

ID=65069271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810965415.0A Active CN109240996B (en) 2018-08-23 2018-08-23 Accessory export method, accessory export device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109240996B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204523A (en) * 2021-05-14 2021-08-03 深圳中智永浩机器人有限公司 Chassis multi-floor map management method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1688981A (en) * 2002-08-09 2005-10-26 网络装置公司 Storage virtualization by layering virtual disk objects on a file system
US20110119634A1 (en) * 2009-11-16 2011-05-19 Apple Inc. Global view for digital assets
CN102207981A (en) * 2011-07-13 2011-10-05 华为软件技术有限公司 Method and system for managing file
CN103873279A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Server management method and server management device
CN104133889A (en) * 2014-07-30 2014-11-05 国云科技股份有限公司 Database virtualization microkernel data source registration and encapsulation method
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device
CN108139794A (en) * 2015-09-27 2018-06-08 索拉巴·A·普拉卡什 Browser is can customize for computer file system and Email

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1688981A (en) * 2002-08-09 2005-10-26 网络装置公司 Storage virtualization by layering virtual disk objects on a file system
US20110119634A1 (en) * 2009-11-16 2011-05-19 Apple Inc. Global view for digital assets
CN102207981A (en) * 2011-07-13 2011-10-05 华为软件技术有限公司 Method and system for managing file
CN103873279A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Server management method and server management device
CN104133889A (en) * 2014-07-30 2014-11-05 国云科技股份有限公司 Database virtualization microkernel data source registration and encapsulation method
CN108139794A (en) * 2015-09-27 2018-06-08 索拉巴·A·普拉卡什 Browser is can customize for computer file system and Email
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204523A (en) * 2021-05-14 2021-08-03 深圳中智永浩机器人有限公司 Chassis multi-floor map management method and device, computer equipment and storage medium
CN113204523B (en) * 2021-05-14 2024-04-16 深圳中智永浩机器人有限公司 Chassis multi-floor map management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109240996B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN107770154B (en) Block chain reliable data storage method, terminal and system based on cloud storage
US9128724B2 (en) Configuring assembly of a system using supplied architectural artifacts
CN107728874A (en) The method, apparatus and equipment of user prompt operation are provided
CN110297840A (en) Data processing method, device, equipment and the storage medium of rule-based engine
CN106294743A (en) The recommendation method and device of application function
CN110365536A (en) A kind of the fault cues method and relevant apparatus of internet of things equipment
CN110275861A (en) Date storage method and device, storage medium, electronic device
CN108470004A (en) Test script generation method, test method, device, equipment and storage medium
US11237941B2 (en) System and method for application transformation to cloud based on semi-automated workflow
CN110502239A (en) A kind of method for developing and producing and device of onboard system SDK
CN108364242A (en) The copyright for preserving intermediate file really weighs method and device
CN109040191A (en) Document down loading method, device, computer equipment and storage medium
CN109240996A (en) Attachment deriving method, device, computer equipment and computer readable storage medium
CN109634951A (en) Big data acquisition method, device, computer equipment and storage medium
CN106648622A (en) Topic switching method of intelligent device and device
CN106331000B (en) A kind of method and device of determining service plan
CN103150400B (en) A kind of data screening method based on MapReduce frameworks
CN108363727A (en) A kind of date storage method and device based on ZFS file system
CN104572303A (en) Application resource management and transferring device and method and application resource management system
CN111651498A (en) Efficient retrieval method and device for block chain data
CN113342359B (en) Intelligent generation method, device and equipment for container mirror image file and storage medium
CN112486481B (en) Multi-module layered architecture implementation method and device, electronic equipment and medium
CN108052284A (en) A kind of distributed data storage method and device
CN113031972A (en) Method for decoupling flink stream calculation dependent file and mirror image in cloud native scene
CN113297058A (en) Case generation method, test method, device and server

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