Image file storage method and system

By querying the template batches corresponding to the business order number of the image file in the insurance field and establishing a reference relationship, the storage duplication and space waste caused by the consistency of the image data of multiple business order numbers is solved, and the effect of saving storage space and improving storage efficiency is achieved.

CN119691205APending Publication Date: 2025-03-25PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411621016.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the insurance field, when the image data of multiple business order numbers is completely consistent, multiple copies need to be stored, resulting in the problems of duplication of storage and waste of space.

Method used

By querying the template batch corresponding to the business order number based on the file information of the image file to be stored, and establishing a reference relationship between the business order number and the template batch, the image file to be stored exists in the file of the template batch, thereby avoiding repeated storage.

Benefits of technology

This enables no need to store image files repeatedly, reduces the amount of files stored, saves storage space, and improves storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691205A_ABST
    Figure CN119691205A_ABST
Patent Text Reader

Abstract

The invention discloses an image file storage method and system, and belongs to the technical field of file storage. The image file storage method comprises the steps of querying a template batch corresponding to a business order number of a to-be-stored image file based on file information of the to-be-stored image file; and establishing a reference relationship between the business order number of the to-be-stored image file and the template batch, the to-be-stored image file being stored in the file of the template batch. According to the embodiment of the invention, under the condition that the to-be-stored image file is stored in other batches, the reference relationship can be established, the corresponding file can be inquired through the reference relationship, repeated storage is not needed, the file storage amount is reduced, and the storage space is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of file storage, and specifically relates to a method and system for storing image files. Background Art

[0002] In the insurance field, image data is stored independently for each business number. If the image data of multiple business numbers are exactly the same, multiple copies need to be stored, and the same image is stored for each business number, which will cause duplication of storage and waste of storage space. Summary of the invention

[0003] The embodiment of the present application provides a method and system for storing image files, which can solve the problem in the related art that multiple copies of image files with the same order information but different business order numbers need to be stored, resulting in a waste of storage space.

[0004] In a first aspect, an embodiment of the present application provides a method for storing an image file, comprising: Based on the file information of the image file to be stored, query the template batch corresponding to the business order number of the image file to be stored; A reference relationship between the business order number of the image file to be stored and the template batch is established, wherein the image file to be stored exists in the files of the template batch.

[0005] In a second aspect, an embodiment of the present application provides a storage system for image files, including: A query module, used for querying the template batch corresponding to the business order number of the image file to be stored based on the file information of the image file to be stored; An establishing module is used to establish a reference relationship between the business order number of the image file to be stored and the template batch, wherein the image file to be stored exists in the file of the template batch.

[0006] In a third aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0007] In the embodiment of the present application, firstly, based on the file information of the image file to be stored, the template batch corresponding to the business order number of the image file to be stored is queried, and then a reference relationship between the business order number of the image file to be stored and the template batch is established, wherein the image file to be stored exists in the file of the template batch. In the embodiment of the present application, when the image file to be stored is stored in other batches, a reference relationship can be established, and the corresponding file can be queried through the reference relationship without repeated storage, thereby reducing the storage amount of the file and saving storage space. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a flow chart of a method for storing an image file provided by an embodiment of the present application; Figure 2 is a fully cited schematic diagram provided by one embodiment of the present application; Figure 3 It is a schematic diagram of a part of the reference provided by an embodiment of the present application; Figure 4 It is a structural block diagram of a storage system for image files provided by an embodiment of the present application. DETAILED DESCRIPTION

[0009] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0010] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0011] In conjunction with the accompanying drawings, a method and system for storing image files provided by the embodiment of the present application are described in detail through specific embodiments and their application scenarios.

[0012] like Figure 1 As shown, the embodiment of the present application also provides a method for storing image files, such as Figure 1 As shown, the storage method of the image file may include: the contents shown in S101 to S102.

[0013] In S101, based on the file information of the image file to be stored, the template batch corresponding to the business order number of the image file to be stored is queried.

[0014] Among them, the image file can be described in multiple dimensions, that is, the file information of the image file can contain information of multiple dimensions, and the multiple dimensions can include business type, business number, directory type, organization code, and time interval for division. Business type can be divided according to underwriting, claims, related persons, vehicle information, etc.; business number, encoded according to the business division definition; directory type can be defined according to the type required by the business, such as insurance information, claims information, documents and other directories, providing directories on files; subdirectories can be associated under the directory, or files can be associated. Business type and directory type can have a special configuration file code table to support sub-attribute extension. Files can be stored in the storage system.

[0015] A template batch refers to a batch in which there are image files to be stored, that is, the image files to be stored have been stored in the order number corresponding to the template batch.

[0016] In S102, a reference relationship between the business order number of the image file to be stored and the template batch is established, wherein the image file to be stored exists in the files of the template batch.

[0017] That is, when the template batch corresponding to the business order number of the image file to be stored is queried, a reference relationship can be established between the business order number of the image file to be stored and the template batch, so that the business order number of the image file to be stored does not need to repeatedly store the image file to be stored, and the file in the template batch with the reference relationship can be directly referenced when needed.

[0018] The reference granularity for establishing the reference relationship may be referenced by batch. By establishing the reference by batch, all the data of the template batch can be referenced without repeated storage.

[0019] In the embodiment of the present application, firstly, based on the file information of the image file to be stored, the template batch corresponding to the business order number of the image file to be stored is queried, and then a reference relationship between the business order number of the image file to be stored and the template batch is established, wherein the image file to be stored exists in the file of the template batch. In the embodiment of the present application, when the image file to be stored is stored in other batches, a reference relationship can be established, and the corresponding file can be queried through the reference relationship without repeated storage, thereby reducing the storage amount of the file and saving storage space.

[0020] In a possible implementation of the present application, after establishing a reference relationship between a target batch of image files to be stored and a template batch, the image file storage method may further include: generating a target batch based on a business order number of the image files to be stored; storing and marking the target batch, wherein the mark is used to identify the template batch referenced by the target batch.

[0021] That is to say, after establishing the reference relationship, a batch can be generated based on the business order of the image file to be stored, stored in the database, and labeled with the referenced template batch, that is, it can be indicated that the file directory and file information of the batch are consistent with the referenced template batch, so that it is easy to intuitively know that the batch references other batches when querying.

[0022] In a possible implementation of the present application, the reference relationship may include a complete reference and a partial reference.

[0023] Correspondingly, when the reference relationship is a complete reference, the target batch references the file directory and files in the template batch; when the reference relationship is a partial reference, the target batch references the file directory and files in the template batch, creates a new directory, and can upload files to the new directory.

[0024] In this embodiment, it can be divided into full reference and partial reference. Full reference refers to the reference of one or more different template batches, and such batches cannot add files independently; partial reference means that after citing one or more template batches, you can also add directories independently and upload files in the new directory.

[0025] like Figure 2 The figure shows a complete reference diagram, in which insurance application 2 generates batch 2, which completely references insurance application number 1, that is, the files in batch 1. In other words, the files in batch 2 are exactly the same as those in batch 1, that is, both include file 1 and file 2. In order to avoid duplicate storage and reduce the storage volume of files, the files can be stored only in the file directory corresponding to batch 1, and do not need to be stored in batch 2. When needed, they can be directly read in batch 1 through the reference relationship between batch 2 and batch 1, which greatly saves storage space.

[0026] like Figure 3 The figure shows a partial reference diagram, in which insurance policy 2 generates batch 2 and partially references insurance policy number 1, that is, not only the files in batch 1 are referenced, but also file 3 corresponding to batch 2 can be added, which reduces the storage volume of files while increasing storage flexibility.

[0027] In a possible implementation of the present application, based on the file information of the image file to be stored, querying the template batch corresponding to the business order number of the image file to be stored can include: matching similar business objects through the file information of the image file to be stored, the file information includes business type, business code, directory type, organization code, time interval; combining historical data, adjusting the query parameters, and determining the template batch corresponding to the business order number of the image file to be stored.

[0028] It should be noted that each business object has its own corresponding file information description, that is, which directories, files, which directories the files are associated with, the storage path of the files, etc. All files under the business object are associated with the same batch, starting from version 1. If they are uploaded multiple times, the version will increase. Files between each batch can be stored independently and will not affect each other when physically deleted.

[0029] In this embodiment, query matching is performed through the file information of the image file to be stored, that is, through multiple dimensions such as business type, time interval, organization, directory type, etc., to match similar business objects. Specifically, the business information, file information, and business similarity of each object can be analyzed, such as the same user, the same type, the same date, etc., and combined with historical data, the matching process can be continuously optimized. The query parameters can also be adjusted during the query to enable the required batch to be queried more quickly.

[0030] It is worth noting that the referenced batch cannot reference other batches again, that is, nested references are not supported.

[0031] In a possible implementation of the present application, the image file storage method may also include: when no template batch corresponding to the business order number of the image file to be stored is found, uploading the image file to be stored to generate the first batch; storing the first batch, the image file to be stored, and the directory, and recording the storage path, wherein the directory is the directory of all files of the first batch.

[0032] That is to say, when the file is stored for the first time, a batch can be generated according to the business order number, and all files can be stored under the batch, that is, the batch, image files to be stored, directories, etc. are all stored, and the storage path information is recorded for subsequent query or reference by other batches.

[0033] In a possible implementation of the present application, the storage method of the image file also includes: when a query for a business order number to be queried is received, obtaining the mark of the batch corresponding to the business order number to be queried; when the mark is a complete reference, obtaining the template batch file directory and files from the template batch corresponding to the business order number to be queried, and returning the template batch file directory and files; when the mark is a partial reference, obtaining the template batch file directory and files from the template batch corresponding to the business order number to be queried, and obtaining the directory and files from the batch corresponding to the business order number to be queried, and returning the template batch file directory and files, as well as the directory and files obtained from the batch corresponding to the business order number to be queried.

[0034] That is to say, if the reference tag is a complete reference, the business order number to be queried and the files under the corresponding batch are obtained from the source business order number and the corresponding batch; when the reference tag is a partial reference, in addition to obtaining the batch files of the source business order number, it is also necessary to obtain the directory and files unique to the order number to be queried, and the two are merged together and returned as the query result.

[0035] In a specific embodiment of the present application, the process of storing insurance business images based on reference relationships is as follows: Suppose there is an insurance policy number T1, whose business type is non-auto insurance, and the directory it uploads contains the agreement certificate. The insurance policy uploads an agreement certificate file. After uploading, a batch P1 is generated with version number 1. The relationship between the insurance material directory and the agreement certificate is recorded, and the agreement certificate is stored in the cloud storage, and its storage path is also recorded; when T1 is queried, the corresponding batch can be queried according to the business policy number T1, and the actual storage address of the file can be obtained according to the storage path; then there is an insurance policy number T2, assuming that the file it wants to upload is the same as the batch P1 of T1, according to the template batch search, T1 is searched out, and T2 establishes a reference relationship with T1. At this time, T1 is used as a template batch, and T2 is generated A new batch P2 is created and a full reference label is added, and the referenced batch is batch P1 of T1; for the case where the label is a partial reference, assuming that a reference relationship is established between the new batch P2 of T2 and the batch P1 of T1, when establishing a reference relationship between the new batch P2 of T2 and the batch P1 of T1, batch P2 of T2 can continue to add directories and continue to add file 3 under the new directory, that is, in addition to containing those of T1, the directory files of T2 can also have their own independent directories and files; when T2 is queried, it can be found that it references the batch P1 corresponding to T1, thereby obtaining the protocol certification file associated with P1, or in addition to the files contained in T1, the independent files owned by T2 can also be queried.

[0036] It should be noted that the image file storage method provided in the embodiment of the present application can be executed by the image file storage system, or a control module in the image file storage system for executing the image file storage method. In the embodiment of the present application, the image file storage system provided in the embodiment of the present application is described by taking the image file storage system executing the image file storage method as an example.

[0037] like Figure 4 As shown, the embodiment of the present application further provides a storage system for image files. The storage system for image files may include: a query module 401 and a creation module 402.

[0038] Among them, the query module 401 is used to query the template batch corresponding to the business order number of the image file to be stored based on the file information of the image file to be stored; the establishment module 402 is used to establish a reference relationship between the business order number of the image file to be stored and the template batch, wherein the image file to be stored exists in the file of the template batch.

[0039] In the embodiment of the present application, the query module 401 first queries the template batch corresponding to the business order number of the image file to be stored based on the file information of the image file to be stored, and then the establishment module 402 establishes a reference relationship between the business order number of the image file to be stored and the template batch, wherein the image file to be stored exists in the file of the template batch. In the embodiment of the present application, when the image file to be stored is stored in other batches, a reference relationship can be established, and the corresponding file can be queried through the reference relationship without repeated storage, thereby reducing the storage amount of the file and saving storage space.

[0040] In a possible implementation manner of the present application, the image file storage system may further include: a generation module and a marking module.

[0041] Among them, the generation module is used to generate the target batch based on the business order number of the image file to be stored; the marking module is used to store and mark the target batch, and the mark is used to identify the template batch referenced by the target batch.

[0042] In a possible implementation of the present application, the reference relationship includes a complete reference and a partial reference; when the reference relationship is a complete reference, the target batch references the file directory and files in the template batch; when the reference relationship is a partial reference, the target batch references the file directory and files in the template batch, and creates a new directory, and files can be uploaded to the new directory.

[0043] In a possible implementation of the present application, the query module 401 is used to match similar business objects through the file information of the image file to be stored, where the file information includes business type, business code, directory type, organization code, and time interval; combined with historical data, the query parameters are adjusted to determine the template batch corresponding to the business order number of the image file to be stored.

[0044] In a possible implementation manner of the present application, the image file storage system may further include: a second generation module and a storage module.

[0045] Among them, the second generation module is used to upload the image files to be stored and generate the first batch when the template batch corresponding to the business order number of the image files to be stored is not queried; the storage module is used to store the first batch, the image files to be stored, and the directory, and record the storage path, wherein the directory is the directory of all files of the first batch.

[0046] In a possible implementation manner of the present application, the image file storage system may further include: a first acquisition module, a second acquisition module and a third acquisition module.

[0047] Among them, the first acquisition module is used to obtain the mark of the batch corresponding to the business order number to be queried when a query is received; the second acquisition module is used to obtain the template batch file directory and files from the template batch corresponding to the business order number to be queried when the mark is a complete reference, and return the template batch file directory and files; the third acquisition module is used to obtain the template batch file directory and files from the template batch corresponding to the business order number to be queried when the mark is a partial reference, and obtain the directory and files from the batch corresponding to the business order number to be queried, and return the template batch file directory and files, as well as the directory and files obtained from the batch corresponding to the business order number to be queried.

[0048] The storage system of the image file in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0049] The storage system of the image file in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0050] The image file storage system provided in the embodiment of the present application can achieve Figure 1-3 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.

[0051] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the image file storage method embodiment provided in any of the above embodiments is implemented. And the same technical effect can be achieved, and to avoid repetition, it will not be repeated here.

[0052] The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0053] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0055] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for storing an image file, characterized in that: include: Based on the file information of the image file to be stored, query the template batch corresponding to the business order number of the image file to be stored; A reference relationship between the business order number of the image file to be stored and the template batch is established, wherein the image file to be stored exists in the files of the template batch.

2. The method for storing image files according to claim 1, characterized in that: After establishing the reference relationship between the target batch of image files to be stored and the template batch, the method further includes: Generate a target batch based on the business order number of the image file to be stored; The target batch is stored and marked, and the mark is used to identify the template batch referenced by the target batch.

3. The method for storing image files according to claim 2, characterized in that: The reference relationship includes full reference and partial reference; In the case where the reference relationship is a complete reference, the target batch references the file directories and files in the template batch; In the case where the reference relationship is a partial reference, the target batch references the file directory and files in the template batch, creates a new directory, and can upload files to the new directory.

4. The method for storing image files according to claim 1, characterized in that: The querying of the template batch corresponding to the business order number of the image file to be stored based on the file information of the image file to be stored includes: Match similar business objects through the file information of the image file to be stored, wherein the file information includes business type, business code, directory type, organization code, and time interval; In combination with historical data, query parameters are adjusted to determine the template batch corresponding to the business order number of the image file to be stored.

5. The method for storing image files according to claim 1, characterized in that: The method further comprises: If no template batch corresponding to the business order number of the image file to be stored is found, the image file to be stored is uploaded to generate the first batch; The first batch, the image files to be stored, and the directory are stored, and the storage path is recorded, wherein the directory is the directory of all files of the first batch.

6. The method for storing image files according to claim 1, characterized in that: The method further comprises: When receiving the business order number to be queried, obtaining the batch mark corresponding to the business order number to be queried; In the case where the mark is a complete reference, obtaining a template batch file directory and files from the template batch corresponding to the business order number to be queried, and returning the template batch file directory and files; In the case where the mark is a partial reference, the template batch file directory and files are obtained from the template batch corresponding to the business order number to be queried, and the directory and files are obtained from the batch corresponding to the business order number to be queried, and the template batch file directory and files, as well as the directory and files obtained from the batch corresponding to the business order number to be queried are returned together.

7. A storage system for image files, characterized in that: include: A query module, used for querying the template batch corresponding to the business order number of the image file to be stored based on the file information of the image file to be stored; An establishing module is used to establish a reference relationship between the business order number of the image file to be stored and the template batch, wherein the image file to be stored exists in the file of the template batch.

8. The system according to claim 7, characterized in that The system further comprises: A generating module, used for generating a target batch based on the business order number of the image file to be stored; The marking module is used to store and mark the target batch, and the mark is used to identify the template batch referenced by the target batch.

9. The image file storage system according to claim 8, characterized in that: The query module is used to: Match similar business objects through the file information of the image file to be stored, wherein the file information includes business type, business code, directory type, organization code, and time interval; In combination with historical data, query parameters are adjusted to determine the template batch corresponding to the business order number of the image file to be stored.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the image file storage method according to any one of claims 1 to 6 are implemented.