A document generation method, device, equipment and computer readable storage medium

Through the document generation method in the consolidated case trial system, the main case module and the sub-case module are used to generate documents, which solves the problems of low document generation efficiency and poor flexibility in the consolidated case trial, and realizes the rapid and accurate generation and flexible change of documents.

CN118673893BActive Publication Date: 2024-10-22ZHEJIANG HAIGUI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411170861.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-10-22
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

In the process of consolidating litigation cases, the existing technology is inefficient and requires manual production of multiple documents of the same type, which is difficult to flexibly change, resulting in low efficiency and high error rates.

Method used

Provide a document generation method. Through the main case module and sub-case module in the combined case trial system, the document editing type is determined based on the document name and case information, the corresponding document template is obtained, and the document is generated based on the template, which supports editable and non-editable Type of instrument generation that allows for flexible changes and processing during the generation process.

Benefits of technology

It improves the efficiency and flexibility of document generation, reduces manual errors, is suitable for combined case trial mode, and enables rapid and accurate generation and flexible changes of documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673893B_ABST
    Figure CN118673893B_ABST
Patent Text Reader

Abstract

The present application provides a document generation method, device, equipment and computer-readable storage medium, the method comprising obtaining a document generation request; the document generation request at least includes a document name and case information; determining the document editing type based on the document name and the correspondence between the preset document name and the document editing type, the document editing type including an editable type and an uneditable type; if it is an uneditable type, obtaining the document template type pre-configured by the main case module; if it is an editable type, obtaining the document template type pre-configured by each sub-case in the sub-case module; calling the corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module; generating the document of each sub-case based on the document template called from the main case module and the case information or generating the document of each sub-case based on the document template called from the sub-case module and the case information. The present application greatly improves the efficiency, accuracy and flexibility of document generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document production technology, and in particular to a document generation method, device, equipment and computer-readable storage medium. Background Art

[0002] In order to resolve the business contradiction that the number of litigation cases filed is small but the actual number of cases to be processed is huge, when conducting case trials, a batch of cases of the same type are often merged for filing or trial. The types of documents and document requirements involved in each trial stage are different from those of ordinary single case trials. For example, when making a court summons, whether to make one copy for each sub-case separately or to make one copy at a time, the staff needs to confirm one by one and make the documents manually. Manual data assembly and document production are required, which is time-consuming and labor-intensive. Not only is it inefficient, but it is also prone to errors. Once the production is completed, it is inconvenient to change the type of document.

[0003] Therefore, the present application provides a document generation method, device, equipment and computer-readable storage medium. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a document generation method, device, equipment and computer-readable storage medium to improve the efficiency and flexibility of document production.

[0005] In a first aspect, a document generation method is provided, which is applied to a case-joint trial system, wherein the case-joint trial system includes a main case module and a sub-case module, and the method includes:

[0006] Obtaining a document generation request; the document generation request at least includes the document name and case information;

[0007] Determine the document editing type based on the document name and the preset correspondence between the document name and the document editing type, where the document editing type includes an editable type and a non-editable type;

[0008] If it is a non-editable type, obtain the document template type pre-configured in the main case module;

[0009] If it is an editable type, then obtain the document template type pre-configured for each sub-case in the sub-case module;

[0010] Calling a corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module;

[0011] The documents for each sub-case are generated based on the document template and case information called from the main case module, or the documents for each sub-case are generated based on the document template and case information called from the sub-case module.

[0012] Optionally, the document template types pre-configured in the main case module include at least one of a warrant type and a single case type, or a combination of the two. Calling the corresponding document template based on the document template type and document name obtained from the main case module includes:

[0013] If the document template type obtained from the main case module is a warrant type, a warrant type document template corresponding to the document name is called based on the document name;

[0014] If the document template type obtained from the main case module is a single case type, multiple single case document templates corresponding to the document name are called based on the document name, and the number of single case document templates is the same as the number of sub-cases in the sub-case module;

[0015] If the document template types obtained from the main case module include two types: warrant-type and single-case-type, a warrant-type document template corresponding to the document name is called based on the document name.

[0016] Optionally, the documents for each sub-case generated based on the document template and case information called from the main case module include:

[0017] When the document template is a warrant-type document template, the case information of all sub-cases in the sub-case module is input into the warrant-type document template to generate a warrant-type document;

[0018] When the document template is a single-case document template, the case information of each sub-case is input into the respective single-case document templates to generate their respective single-case documents.

[0019] Optionally, the document template type pre-configured for each sub-case in the sub-case module is a single-case type, and calling the corresponding document template based on the document template type and document name obtained from the sub-case module includes:

[0020] Calling the single-case document template corresponding to each sub-case based on the single-case document template type and document name obtained from the sub-case module;

[0021] Correspondingly, the documents for each sub-case generated based on the document template and case information called from the sub-case module include:

[0022] The case information of each sub-case is added to the single-case document template of each sub-case to generate a single-case document for each sub-case.

[0023] Optionally, after generating the single-case document of the sub-case, the method further includes:

[0024] Get the document template type change request for some sub-cases of the sub-case module;

[0025] Determining the target case to be changed, the case information of the target case, and the type of document template to be changed based on the document template type change request, wherein the type of document template to be changed at least includes a writ type;

[0026] Calling a changed writ-style instrument template based on a changed writ-style instrument template type;

[0027] The case information of the changed target case is added to the changed writ-style document template to generate the changed writ-style document, and the single case-style document of the changed target case is deleted.

[0028] Optionally, after generating the modified writ-like instrument, the method further comprises:

[0029] Obtaining a change request for the target case;

[0030] re-determining the target case to be changed based on the change request of the target case;

[0031] Obtain case information and new writ-style document templates for re-targeted cases;

[0032] Adding the case information of the re-determined target case to a new writ-type document template to generate a new writ-type document;

[0033] The original changed warrant-style document is deleted, and corresponding processing is performed on the documents of the sub-cases whose document template types have been changed, and the corresponding processing includes: deleting the single-case documents of the sub-cases newly added to the warrant-style document and / or adding the single-case documents of the sub-cases kicked out of the original changed warrant-style document.

[0034] Optionally, after generating the documents for each sub-case, the method further includes:

[0035] Obtain the plaintiff information, plaintiff agent information and case number from the documents of each sub-case;

[0036] Conduct consistency checks on the plaintiff information, plaintiff agent information and case number in the documents of each sub-case.

[0037] In a second aspect, a document generation device is provided, which is applied to a combined case trial system. The combined case trial system includes a main case module and a sub-case module, including:

[0038] A first acquisition unit is used to acquire a document generation request; the document generation request at least includes a document name and case information;

[0039] A determination unit, used to determine a document editing type based on a document name and a preset correspondence between the document name and the document editing type, where the document editing type includes an editable type and a non-editable type;

[0040] A second acquisition unit is used to acquire the document template type pre-configured by the main case module if it is a non-editable type;

[0041] A third acquisition unit is used to acquire the document template type pre-configured for each sub-case in the sub-case module if it is an editable type;

[0042] A calling unit, used to call a corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module;

[0043] A generating unit is used to generate the documents of each sub-case based on the document template and case information called from the main case module or to generate the documents of each sub-case based on the document template and case information called from the sub-case module.

[0044] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0045] Memory, used to store computer programs;

[0046] A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

[0047] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

[0048] The document generation method, apparatus, device and computer-readable storage medium provided by the embodiments of the present invention first determine the document editing type through a document generation request, and determine whether to determine the document template type in the main case module or in the sub-case module according to the document editing type. The document template type is determined from the main case module to generate the corresponding document, which is more convenient and faster. However, some documents in the trial stage are editable and need to be configured separately. Therefore, they are processed from the sub-case module, which can more conveniently set up the documents of each sub-case separately. By using different channels to generate documents according to different editing types, it is more flexible, and the document is automatically generated according to the document generation request, which is more efficient and more accurate.

[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A flow chart showing a method for generating a document provided by an embodiment of the present invention is shown;

[0052] Figure 2 A schematic diagram of a writ-style complaint provided by an embodiment of the present invention is shown;

[0053] Figure 3 A schematic diagram showing the structure of a document generation device provided by an embodiment of the present invention is shown;

[0054] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0056] Considering that the documents are currently produced manually, which is not only inefficient but also prone to errors, and once produced, it is inconvenient to change the type of the document, the flexibility is poor, and it is not suitable for the joint trial mode. Based on this, the embodiment of the present invention provides a document generation method and device, which are described below through embodiments.

[0057] The embodiment of the present invention provides a document generation method, which is applied to a case-joint trial system, and the case-joint trial system is built based on a server. The case-joint trial system at least includes a case acceptance and filing module, a case division module, a trial scheduling module, a trial opening module, a case closing module, and an archiving module. A case-joint module is provided in each module, and a main case module and a sub-case module are provided under the case-joint module. The main case module displays the main case information generated after the sub-cases are joined, and the sub-case module displays the information of each sub-case under each main case, such as the case number, the plaintiff, the plaintiff's agent, the number of cases, the cause of the case, the subject amount, the acceptance fee, the case status, and other information. And the case details of the main case module and the sub-case module, in which the document configuration and display can be performed.

[0058] It should be noted that the main case is a virtual case constructed to facilitate the batch collection, filing, and division of the sub-cases of the merged case, while the sub-cases are real cases.

[0059] The following is a detailed description of a document generation method provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0060] Step S101: Obtain a document generation request; the document generation request includes at least a document name and case information.

[0061] In an embodiment of the present application, at each stage of each case, the system server automatically obtains a document generation request of the corresponding type according to the type of the stage, and then automatically completes the document production. It can also obtain a document generation request based on manual triggering, and then automatically completes the document production.

[0062] Specifically, for example, during the case acceptance and filing stage, upon detecting the combined trial operation of multiple received cases, the system automatically obtains a request to generate a case acceptance form and a combined trial notice.

[0063] For example, during the court trial scheduling stage, after the scheduling is completed, the system server automatically obtains a document generation request for the court summons. If the court summons fails to be delivered, it needs to be rescheduled. After detecting that the rescheduling is completed, the document generation request for the court summons is obtained again.

[0064] For example, during the trial stage, manually trigger a request to obtain court transcripts, collegial panel transcripts, judgments, and other documents.

[0065] For example, at the case closing stage, after all sub-cases are closed, a request for obtaining case closing and judgment document generation is manually triggered.

[0066] In one example, the case information includes at least plaintiff information, defendant information, plaintiff's agent information, case evidence, cause of action, etc.

[0067] Step S102: Determine the document editing type based on the document name and the preset correspondence between the document name and the document editing type. The document editing type includes an editable type and a non-editable type.

[0068] In the embodiment of the present application, generally editable documents include transcripts, rulings, and judgments, and non-editable documents include notices, subpoenas, and filing documents.

[0069] In one example, the document names include at least "Case Filing Approval Form", "Notice of Combined Trial", "Indictment", "Court Summons", "Court Trial Minutes", "Collegial Panel Minutes", "Civil Mediation Document", "Judgment", "Withdrawal Order", etc.

[0070] In a specific example, the correspondence between the preset document names and the document editing types is that "Case Filing Approval Form", "Notice of Combined Trial", and "Court Summons" are non-editable types; "Indictment", "Court Trial Minutes", "Collegial Panel Minutes", "Civil Mediation Document", "Judgment", "Withdrawal Order", etc. are editable types.

[0071] Step S103: If it is a non-editable type, obtain the document template type pre-configured by the main case module.

[0072] In the embodiment of the present application, if it is a document of a non-editable type, it has a universal feature, and all sub-case information, such as the plaintiff, is the same, so there is no need to judge the document template type of each sub-case and then generate the corresponding document. It only needs to be judged once in the main case module to generate the documents of each sub-case, which greatly improves the efficiency of document generation in the case-joint mode. Generally speaking, the document template type pre-configured by the main case module is a warrant type, and a warrant-type document only needs to be generated in one copy, which is hung in the case details page of the main case, and each sub-case can be called and previewed by the sub-case ID number. Of course, in another feasible way, in order to increase the flexibility of the staff, the document template type of the main case module can also be configured as a single-case document, or the warrant type and the single-case type can be configured at the same time as needed. If it is a single-case type, the documents of each sub-case are hung in the case details page of each sub-case. If the warrant type and the single-case type are configured at the same time, it is preferred to generate a warrant-type document.

[0073] Among them, the warrant-type document concentrates the information of the defendants of all sub-cases in one document, while the single-case document generates a separate document for the defendant of each sub-case.

[0074] Step S104: If it is an editable type, obtain the document template type pre-configured for each sub-case in the sub-case module.

[0075] In the embodiment of the present application, if the document editing type is an editable type, it means that the document of this type is unique, so the document template type of each sub-case is determined one by one by obtaining the document template type pre-configured for each sub-case in the sub-case module. Generally speaking, the document template type pre-configured for each sub-case in the sub-case module is a single case type. Of course, the document template type can be changed to a warrant type later as needed.

[0076] Step S105: Call the corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module.

[0077] In this step, the document template is modeled in the product configuration page, which includes the product name. When the plaintiff client applies for each case, he will select the corresponding product name, such as "micro-loan". In this product configuration page, not only the corresponding document template is configured according to the product name, but also the case elements are configured accordingly. Therefore, when calling the document template, the corresponding product configuration model is called according to the product name corresponding to the case, and the document template corresponding to the corresponding file name is obtained in the product configuration model.

[0078] In the embodiment of the present application, calling the corresponding document template based on the document template type and document name obtained from the main case template includes:

[0079] If the document template type obtained from the main case module is a warrant type, a warrant-type document template corresponding to the document name is called based on the document name.

[0080] If the document template type obtained from the main case module is a single case type, multiple single case document templates corresponding to the document name are called based on the document name, and the number of single case document templates is the same as the number of sub-cases in the sub-case module.

[0081] In a specific example, if the main case A contains 10 sub-cases, 10 single-case document templates need to be obtained.

[0082] If the document template types obtained from the main case module include two types: warrant-type and single-case-type, a warrant-type document template corresponding to the document name is called based on the document name.

[0083] If both types of document templates are configured at the same time, the warrant-type document template is preferred because the warrant-type document is more convenient than the single-case document.

[0084] In the embodiment of the present application, the document template type pre-configured for each sub-case in the sub-case module is a single-case type by default. Calling the corresponding document template based on the document template type and document name obtained from the sub-case module includes:

[0085] The single-case document template corresponding to each sub-case is called based on the single-case document template type and document name obtained from the sub-case module.

[0086] For example, for court transcripts, it is necessary to call the single-case document template for each sub-case.

[0087] Of course, in another embodiment, the document template type of each sub-case in the sub-case module can be set to both warrant-type and single-case-type according to needs. For example, among 10 sub-cases, the first 5 sub-cases are configured with warrant-type document templates, and the last 5 are configured with single-case document templates.

[0088] Of course, even if the document template is pre-configured, it can be modified as needed later to increase rigidity and flexibility.

[0089] Step S106: Generate the documents for each sub-case based on the document template and case information called from the main case module or generate the documents for each sub-case based on the document template and case information called from the sub-case module.

[0090] In the embodiment of the present application, the documents for each sub-case generated based on the document template and case information called from the main case module include:

[0091] When the document template is a warrant-style document template, the case information of all sub-cases in the sub-case module is input into the warrant-style document template to generate a warrant-style document.

[0092] In an example, if there are two court sessions, there may be two warrant-style documents under the main case, or even more. The naming rule for multiple warrant-style transcripts is: Court transcript_Writ-style (1, 2, ...). Click "Edit Writ-style transcript" to enter the writ-style document editing page of the main case. The list of writ-style transcript names is displayed on the left, and switching of multiple writ-style documents is supported. Move the mouse to the name of the writ-style document to display the sub-case numbers corresponding to the writ-style document.

[0093] Among them, the warrant-style document is posted under the details page of the main case. The warrant-style document is not available in the details page of the sub-case, but the sub-case can be called and previewed through the sub-case ID number.

[0094] By generating a warrant-style document for all sub-cases and concentrating all sub-case information in one warrant-style document, not only can the document generation time be shortened and the document generation efficiency be improved, but also management is facilitated.

[0095] When the document template is a single-case document template, the case information of each sub-case is input into the respective single-case document templates to generate their respective single-case documents.

[0096] Optionally, after generating the single-case document of the sub-case, the method further includes:

[0097] Get the document template type change request for some sub-cases of the sub-case module;

[0098] Determining the target case to be changed, the case information of the target case, and the type of document template to be changed based on the document template type change request, wherein the type of document template to be changed at least includes a writ type;

[0099] Calling a changed writ-style instrument template based on a changed writ-style instrument template type;

[0100] The case information of the changed target case is added to the changed writ-style document template to generate the changed writ-style document, and the single case-style document of the changed target case is deleted.

[0101] In an example, there are 10 sub-cases in total, and 10 single-case documents have been generated. The first 8 sub-cases can be selected to trigger the generation of a warrant-type document. The remaining 2 sub-cases are still single-case documents, and the warrant-type documents generated by the previous 10 sub-cases are deleted.

[0102] This method increases the flexibility of document production and makes it more convenient for staff with different needs to use.

[0103] In yet another embodiment, generating the document for each sub-case based on the document template called from the sub-case module and the case information includes:

[0104] The case information of each sub-case is added to the single-case document template of each sub-case to generate a single-case document for each sub-case.

[0105] Similarly, the single-case document of each sub-case generated based on the single-case document template called by the sub-case module can also change the document template type to generate a warrant-type document based on manual triggering. For specific examples, refer to the example of changing the document template type of the main case module, which will not be repeated here.

[0106] If the document template type has been changed and a new modified writ-style document has been generated, but due to carelessness or negligence, the sub-case selection in the generated writ-style document is incorrect. For example, among 10 sub-cases, the first 6 sub-cases were originally to be generated as writ-style documents, but one was accidentally checked and the first 7 sub-cases were generated as writ-style documents, or one was checked less and only the first 5 sub-cases were generated as writ-style documents, etc.

[0107] To facilitate the modification, after generating the modified writ-style instrument, the method further includes:

[0108] Obtaining a change request for the target case;

[0109] re-determining the target case to be changed based on the change request of the target case;

[0110] Obtain case information and new writ-style document templates for re-targeted cases;

[0111] Adding the case information of the re-determined target case to a new writ-type document template to generate a new writ-type document;

[0112] The original changed warrant-style document is deleted, and corresponding processing is performed on the documents of the sub-cases whose document template types have been changed, and the corresponding processing includes: deleting the single-case documents of the sub-cases newly added to the warrant-style document and / or adding the single-case documents of the sub-cases kicked out of the original changed warrant-style document.

[0113] In a specific example, for example, there are 10 sub-cases under a main case. Originally, the first 6 sub-cases were to be generated as warrant-style documents, but one sub-case was accidentally checked and warrant-style documents were generated for the first 7 sub-cases. In this case, the original warrant-style document is deleted, and a new warrant-style document is generated based on the case information of the first 6 sub-cases, and the seventh sub-case is generated as a single-case document, and the documents of the remaining 3 sub-cases remain unchanged. For another example, if one sub-case is not checked and only the first 5 sub-cases are generated as warrant-style documents, the original warrant-style document containing only 5 sub-cases is deleted, and a new warrant-style document is generated. At the same time, the single-case document of the sixth sub-case is deleted, and the documents of the remaining 4 sub-cases remain unchanged.

[0114] For another example, if you originally wanted to select sub-case 1, sub-case 2, and sub-case 3 to generate a warrant-style document, but accidentally generated sub-case 1, sub-case 2, and sub-case 4 as warrant-style documents, and sub-case 3 as a single-case document, then delete the original warrant-style document and generate a new correct warrant-style document, delete the single-case document of sub-case 3, and add the warrant-style document of sub-case 4.

[0115] Through this embodiment, various error situations can be automatically adjusted and modified, which not only improves the accuracy of document generation in the joint trial mode, but also improves the flexibility of document generation in the joint trial mode.

[0116] In the embodiment of the present application, adding the case information of each sub-case to the warrant document template or the single case document template to generate the documents of each sub-case can be achieved by a preset text generation algorithm. A natural language processing technology that can automatically generate court documents that comply with legal norms and formats based on the input case information and judgment results. This algorithm can greatly improve the work efficiency of the court, reduce human errors and deviations, and also ensure the objectivity and fairness of the documents.

[0117] The implementation of the document generation algorithm requires the combination of multiple technologies, including natural language processing, machine learning, knowledge graphs, etc. Specifically, it needs to complete the following steps:

[0118] The first step is case information extraction: extract key information from case materials, such as parties involved, cause of action, evidence, judgment results, etc.

[0119] The second step is legal knowledge representation: representing legal knowledge and rules in a computer-understandable form, such as ontology, semantic network, etc.

[0120] The third step is document template matching: select appropriate document templates, such as judgments, rulings, mediation documents, etc. based on case information and judgment results.

[0121] Step 4: Generate document content: Automatically generate document content based on document template and case information, including header, facts, reasons, judgment results, etc.

[0122] Step 5: Document formatting: Format the generated document content, including typesetting, font, font size, spacing, etc., to make it comply with legal norms and standards.

[0123] In a specific example, the following is a detailed description of the generation of a writ-style indictment:

[0124] The first step is to obtain the litigation request, facts and reasons of the main case, and determine the defendant information, debt information, etc. of each sub-case related to it;

[0125] The second step is to call the writ-style civil complaint template, the defendant information schedule template, and the defendant's debt template;

[0126] The third step is to add the litigation request, facts and reasons of the main case to the writ-style civil complaint template to generate a writ-style civil complaint, such as Figure 2 As shown; add the defendant information of each sub-case to the defendant information appendix template to generate the defendant information appendix; add the debt information to the defendant debt appendix template to generate the defendant debt appendix.

[0127] Due to the comparison and combined trial mode, each sub-case is related to each other, for example, the plaintiff is the same, the case number is continuous, the plaintiff's agent of each sub-case is the same, the case agreed service type is the same, etc. Therefore, in order to verify the accuracy of the documents generated for each sub-case. After generating the documents for each sub-case, the method also includes:

[0128] Obtain the plaintiff information, plaintiff agent information and case number from the documents of each sub-case;

[0129] Conduct consistency checks on the plaintiff information, plaintiff agent information and case number in the documents of each sub-case.

[0130] In the embodiment of the present application, the consistency check is performed, i.e., determining whether the plaintiff information and plaintiff agent information in the documents of each sub-case are the same, and whether the case number is continuous. If all of the conditions are met, the consistency check passes, and the documents of each sub-case are saved. If the check fails, the documents are regenerated.

[0131] This embodiment can verify the accuracy of the generated document, thereby further improving the accuracy of document generation.

[0132] Based on the same inventive concept, a document generation device is provided, which is applied to a combined case trial system. The combined case trial system includes a main case module and a sub-case module, such as Figure 3 As shown, including:

[0133] The first acquisition unit 301 is used to acquire a document generation request; the document generation request at least includes a document name and case information;

[0134] A determination unit 302, configured to determine a document editing type based on the document name and a preset correspondence between the document name and the document editing type, wherein the document editing type includes an editable type and a non-editable type;

[0135] The second acquisition unit 303 is used to acquire the document template type pre-configured by the main case module if it is a non-editable type;

[0136] The third acquisition unit 304 is used to acquire the document template type pre-configured for each sub-case in the sub-case module if it is an editable type;

[0137] A calling unit 305, configured to call a corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module;

[0138] The generating unit 306 is used to generate the documents of each sub-case based on the document template and case information called from the main case module or to generate the documents of each sub-case based on the document template and case information called from the sub-case module.

[0139] Optionally, the document template types pre-configured by the main case module include at least one of a warrant type and a single case type, or a combination of the two, and the calling unit is specifically used to:

[0140] If the document template type obtained from the main case module is a warrant type, a warrant type document template corresponding to the document name is called based on the document name;

[0141] If the document template type obtained from the main case module is a single case type, multiple single case document templates corresponding to the document name are called based on the document name, and the number of single case document templates is the same as the number of sub-cases in the sub-case module;

[0142] If the document template types obtained from the main case module include two types: warrant-type and single-case-type, a warrant-type document template corresponding to the document name is called based on the document name.

[0143] Optionally, the generating unit is specifically used for:

[0144] When the document template is a warrant-type document template, the case information of all sub-cases in the sub-case module is input into the warrant-type document template to generate a warrant-type document;

[0145] When the document template is a single-case document template, the case information of each sub-case is input into the respective single-case document templates to generate their respective single-case documents.

[0146] Optionally, the document template type pre-configured for each sub-case in the sub-case module is a single-case type, and the calling unit is specifically used to:

[0147] Calling the single-case document template corresponding to each sub-case based on the single-case document template type and document name obtained from the sub-case module;

[0148] Correspondingly, the generation unit is specifically used for:

[0149] The case information of each sub-case is added to the single-case document template of each sub-case to generate a single-case document for each sub-case.

[0150] Optionally, after generating the single-case document of the sub-case, the device further includes:

[0151] A fourth acquisition unit, used for acquiring document template type change requests of some sub-cases of the sub-case module;

[0152] A document template type determination unit, configured to determine a target case to be changed, case information of the target case, and a document template type to be changed based on a document template type change request, wherein the document template type to be changed includes at least a warrant type;

[0153] A modified writ-style document template calling unit, used to call a modified writ-style document template based on a modified writ-style document template type;

[0154] The modified warrant-style document generation unit is used to add the case information of the modified target case to the modified warrant-style document template, generate the modified warrant-style document, and delete the single case document of the modified target case.

[0155] Optionally, after generating the modified writ-like document, the device further comprises:

[0156] A fifth acquisition unit, used for acquiring a change request of the target case;

[0157] a redetermining unit, configured to redetermine a target case to be changed based on a change request of the target case;

[0158] a sixth acquisition unit, used to acquire case information of the re-determined target case and a new warrant document template;

[0159] A new warrant-type document generating unit, used for adding the case information of the re-determined target case to a new warrant-type document template to generate a new warrant-type document;

[0160] The adding and deleting unit is used to delete the original changed warrant-style document and perform corresponding processing on the documents of the sub-cases whose document template types have been changed. The corresponding processing includes: deleting the single-case documents of the sub-cases newly added to the warrant-style document and / or adding the single-case documents of the sub-cases kicked out of the original changed warrant-style document.

[0161] Optionally, after generating the documents of each sub-case, the device further includes:

[0162] The seventh acquisition unit is used to acquire the plaintiff information, the plaintiff's agent information and the case number from the documents of each sub-case;

[0163] The verification unit is used to perform consistency verification on the plaintiff information, plaintiff agent information and case number in the documents of each sub-case.

[0164] Based on the same technical concept, an embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a processor 401 , a communication interface 402 , a memory 403 and a communication bus 404 , wherein the processor 401 , the communication interface 402 , and the memory 403 communicate with each other via the communication bus 404 .

[0165] Memory 403, used for storing computer programs;

[0166] The processor 401 is used to implement the steps of the document generation method when executing the program stored in the memory 403.

[0167] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0168] The communication interface is used for communication between the above electronic device and other devices.

[0169] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0170] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0171] The computer program product for the document generation method provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0172] The document generation device provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0173] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0175] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0176] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0177] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0178] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A document generation method, characterized in that: Applied to a case-joint trial system, the case-joint trial system includes a main case module and a sub-case module, and the method includes: Obtaining a document generation request; the document generation request at least includes a document name and case information; Determining a document editing type based on the document name and a preset correspondence between the document name and the document editing type, wherein the document editing type includes an editable type and a non-editable type; If it is a non-editable type, then obtain the document template type pre-configured by the main case module; If it is an editable type, then obtain the document template type pre-configured for each sub-case in the sub-case module; Calling a corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module; The document for each sub-case is generated based on the document template called from the main case module and the case information, or the document for each sub-case is generated based on the document template called from the sub-case module and the case information.

2. The method according to claim 1, characterized in that The document template types pre-configured in the main case module include at least one of a warrant type and a single case type or a combination of the two. Calling the corresponding document template based on the document template type and document name obtained from the main case module includes: If the document template type obtained from the main case module is a warrant type, then based on the document name, a warrant type document template corresponding to the document name is called; If the document template type obtained from the main case module is a single case type, then based on the document name, multiple single case type document templates corresponding to the document name are called, and the number of the single case type document templates is the same as the number of sub-cases in the sub-case module; If the document template types obtained from the main case module include two types: warrant-type and single-case-type, a warrant-type document template corresponding to the document name is called based on the document name.

3. The method according to claim 2, characterized in that The document for each sub-case generated based on the document template called from the main case module and the case information includes: When the document template is a warrant-type document template, the case information of all sub-cases in the sub-case module is input into the warrant-type document template to generate a warrant-type document; When the document template is a single-case document template, the case information of each sub-case is input into the respective single-case document templates to generate respective single-case documents.

4. The method according to claim 1, characterized in that: The document template type pre-configured for each sub-case in the sub-case module is a single-case type. Calling the corresponding document template based on the document template type and document name obtained from the sub-case module includes: Calling the single-case document template corresponding to each sub-case based on the single-case document template type and document name obtained from the sub-case module; Correspondingly, the documents for each sub-case generated based on the document template called from the sub-case module and the case information include: The case information of each sub-case is added to the single-case document template of each sub-case to generate a single-case document for each sub-case.

5. The method according to claim 3 or 4, characterized in that: After generating the single-case document of the sub-case, the method further includes: Obtain a document template type change request for some sub-cases of the sub-case module; Determining a target case to be changed, case information of the target case, and a document template type to be changed based on the document template type change request, wherein the document template type to be changed includes at least a warrant type; Calling a changed writ-style instrument template based on a changed writ-style instrument template type; The case information of the changed target case is added to the changed writ-style document template to generate a changed writ-style document, and the single-case document of the changed target case is deleted.

6. The method according to claim 5, characterized in that After generating the modified writ-like instrument, the method further includes: Obtaining a change request for the target case; re-determining the target case to be changed based on the change request of the target case; Obtain case information and new writ-style document templates for re-targeted cases; Adding the case information of the re-determined target case to a new writ-style document template to generate a new writ-style document; The original changed warrant-style document is deleted, and corresponding processing is performed on the documents of the sub-cases whose document template types have been changed, and the corresponding processing includes: deleting the single-case documents of the sub-cases newly added to the warrant-style document and / or adding the single-case documents of the sub-cases kicked out of the original changed warrant-style document.

7. The method according to claim 1, characterized in that After generating the documents for each sub-case, the method further includes: Obtain the plaintiff information, plaintiff agent information and case number from the documents of each sub-case; The plaintiff information, plaintiff agent information and case number in the documents of each sub-case are checked for consistency.

8. A document generation device, characterized in that: Applied to a combined case trial system, the combined case trial system includes a main case module and a sub-case module, including: A first acquisition unit is used to acquire a document generation request; the document generation request at least includes a document name and case information; a determining unit, configured to determine a document editing type based on the document name and a preset correspondence between the document name and the document editing type, wherein the document editing type includes an editable type and a non-editable type; A second acquisition unit, for acquiring the document template type pre-configured by the main case module if the document is of a non-editable type; A third acquisition unit, for acquiring the document template type pre-configured for each sub-case in the sub-case module if the document template type is editable; A calling unit, configured to call a corresponding document template based on the document template type and document name obtained from the main case module or the sub-case module; A generating unit is used to generate the documents of each sub-case based on the document template called from the main case module and the case information, or to generate the documents of each sub-case based on the document template called from the sub-case module and the case information.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Electronic document template generation method and related equipment

    CN113919312A

  • Document generation method and device based on RPA and AI and electronic equipment

    CN114580359A

  • Document template generation method, system and device and medium

    CN116502618A

  • Intelligent office integrated platform for checking anti-electricity fraud and stopping freezing return

    CN118536934A

  • Intelligent auxiliary judgment method and apparatus, and computer device and storage medium

    WO2021031383A1