CN116776852A - Document generation method, device, chip system and readable storage medium - Google Patents

Document generation method, device, chip system and readable storage medium Download PDF

Info

Publication number
CN116776852A
CN116776852A CN202310753631.XA CN202310753631A CN116776852A CN 116776852 A CN116776852 A CN 116776852A CN 202310753631 A CN202310753631 A CN 202310753631A CN 116776852 A CN116776852 A CN 116776852A
Authority
CN
China
Prior art keywords
component
data
document
client
document template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310753631.XA
Other languages
Chinese (zh)
Inventor
鲁保坤
王正帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310753631.XA priority Critical patent/CN116776852A/en
Publication of CN116776852A publication Critical patent/CN116776852A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application provides a document generation method, a document generation device, a chip system and a readable storage medium, wherein the method comprises the following steps: acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template; acquiring data required by a first document template based on the data source of each component and the data type of each component; filling data required by the first document template into the first document template based on the position of each component to obtain a first document; and sending the first document generated picture to a client used by the client. The method is beneficial to paperless office work, saves paper and improves the service processing speed.

Description

Document generation method, device, chip system and readable storage medium
Technical Field
The present application relates to the field of artificial intelligence, and in particular, to a document generating method, device, chip system, and readable storage medium.
Background
When a customer handles related business of a telephone card, such as changing a telephone card package, stopping and re-opening a card, opening a card and the like, the customer generally needs to go to a mobile business hall for handling, and a business person in the mobile business hall can provide corresponding paper documents, such as reports of electronic bills and the like, legal documents of responsible commitments and the like, a customer information acquisition table and the like according to the business handled by the customer, so that the corresponding business is handled.
By the implementation mode, more paper documents are required to be printed in the business handling process, paper waste can be caused, the cost is high, and the business processing efficiency can be reduced.
Disclosure of Invention
The application provides a document generation method, a document generation device, a chip system and a readable storage medium, which are beneficial to paperless office work, save paper and improve the service processing speed.
In a first aspect, a document generation method is provided, including: acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template; acquiring data required by a first document template based on the data source of each component and the data type of each component; filling data required by the first document template into the first document template based on the position of each component to obtain a first document; and sending the first document generated picture to a client used by the client.
According to the document generation method provided by the application, based on the position of each component in the plurality of components included in the first document template, the data source of each component and the data type of each component, the data is dynamically obtained, the first document is obtained, and the first document is generated into the picture, so that the paperless office is realized for a power-assisted enterprise, the paper is saved, and the power-assisted document flow is quickly twisted and handled.
With reference to the first aspect, in certain implementations of the first aspect, acquiring data required for the first document template based on the data source of each component and the data type of each component includes: if the data source of the first component in the plurality of components is the client input, a request message is sent to the client, and the request message is used for requesting the client to input data; data from a client is received.
According to the implementation mode, the server can acquire required data from the client used by the client and fill the required data into the document template, the client is not required to manually fill the data on the paper document, and business personnel are not required to input the data into the document according to the data filled by the client, so that the method is simple and convenient, and the method is beneficial to accelerating the quick torsion and handling of the document flow.
With reference to the first aspect, in certain implementations of the first aspect, acquiring data required for the first document template based on the data source of each component and the data type of each component includes: if the data source of the second component in the multiple components is internal acquisition, acquiring data from a database, wherein the database is used for storing the data of the clients who have transacted the service.
In this implementation, the server automatically obtains the required data from the inside of the server, which is beneficial to quickly obtaining the required data.
With reference to the first aspect, in certain implementations of the first aspect, acquiring data required for the first document template based on the data source of each component and the data type of each component includes: if the data source of the third component in the multiple components is a three-party application query, acquiring data through an interface of the three-party application.
The realization mode directly acquires the data through the interface of the three-party application, is simple and convenient, and is beneficial to improving the user experience.
With reference to the first aspect, in certain implementations of the first aspect, the first document template is generated on the interface in response to a drag operation.
According to the implementation mode, the first document template is generated on the interface in response to the dragging operation, the operation is simple, the manufacturing is rapid, and the template generation efficiency is improved.
With reference to the first aspect, in certain implementations of the first aspect, the first document template includes one or more of a reporting class template, a legal document class template, or a user data collection class template.
In a second aspect, there is provided a document generating apparatus including: the device comprises an acquisition module, a processing module and a receiving-transmitting module. Wherein, the acquisition module is used for: acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template; the processing module is used for: acquiring data required by a first document template based on the data source of each component and the data type of each component; filling data required by the first document template into the first document template based on the position of each component to obtain a first document; the transceiver module is used for: and sending the first document generated picture to a client used by the client.
With reference to the second aspect, in certain implementations of the second aspect, the transceiver module is further configured to: if the data source of the first component in the plurality of components is the client input, a request message is sent to the client, and the request message is used for requesting the client to input data; data from a client is received.
With reference to the second aspect, in certain implementations of the second aspect, the acquisition module is further configured to: if the data source of the second component in the multiple components is internal acquisition, acquiring data from a database, wherein the database is used for storing the data of the clients who have transacted the service.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: if the data source of the third component in the multiple components is a three-party application query, acquiring data through an interface of the three-party application.
With reference to the second aspect, in certain implementations of the second aspect, the first document template is generated on the interface in response to a drag operation.
With reference to the second aspect, in certain implementations of the second aspect, the first document template includes one or more of a reporting class template, a legal document class template, or a user data collection class template.
In a third aspect, a document generation device is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory to perform the method according to any one of the possible implementations of the first aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
The document generating apparatus in the above third aspect may be a chip, the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code, or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of the first aspect.
In a fifth aspect, there is provided a computer program product comprising: a computer program (which may also be referred to as code, or instructions) which, when executed, causes a computer to perform the method of any one of the possible implementations of the first aspect.
Drawings
FIG. 1 is a scene diagram of a business transaction;
FIG. 2 is a schematic diagram of a business transaction scenario in which embodiments of the present application are applicable;
FIG. 3 is a schematic flow chart of a document generation method provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a visual interface provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a report template according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a legal document template provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a user data collection class template according to an embodiment of the present application;
Fig. 8 is a schematic flow chart of a service processing method provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a document provided by an embodiment of the present application;
FIG. 10 is a schematic block diagram of a document generating apparatus provided by an embodiment of the present application;
fig. 11 is a schematic block diagram of another document generating apparatus provided in an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
When a customer handles related business of a telephone card, such as changing a telephone card package, stopping and re-opening a card, opening a card and the like, the customer generally needs to go to a mobile business hall for handling, and a business person in the mobile business hall can provide corresponding paper documents, such as reports of electronic bills and the like, legal documents of responsible commitments and the like, a customer information acquisition table and the like according to the business handled by the customer, so that the corresponding business is handled.
By way of example, fig. 1 shows a scenario diagram of a business transaction. As shown in fig. 1, a business is handled in a mobile business hall under the condition that a client goes offline, business staff in the mobile business hall control a printer to print a paper document to the client through a control desktop computer according to the business handled by the client, and the client confirms corresponding information based on the paper document and feeds back to the business staff to complete the business handling. The desktop computer comprises a display screen and a host.
In the implementation manner, if the transacted business is complicated, more paper documents need to be printed in the business transacting process, the paper waste is caused, the cost is high, and the business processing efficiency is reduced. In addition, this approach is not applicable to business on-line.
In view of this, embodiments of the present application provide a method, an apparatus, a chip system, and a readable storage medium for generating a document, where a document generated picture is fed back to a client used by a client, and the client can confirm on the client used, which is beneficial to paperless office, saves paper, and further improves a service processing speed. In addition, the method is also suitable for online business handling of clients.
Before describing the method provided by the embodiment of the present application, the following description is made.
First, the first, second and various numerical numbers in the embodiments shown below are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application.
Second, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In order to better understand the embodiments of the present application, first, a description will be given of a scenario to which the embodiments of the present application are applicable.
Fig. 2 shows a schematic diagram of a business transaction scenario to which an embodiment of the present application is applicable. As shown in fig. 2, a customer may transact business either online or offline.
If the clients transact business offline, the clients transact business in the mobile business hall. Business personnel in the mobile business hall can transact business for the client on the client side 2 according to the requirements of the client. The client 2 transmits a message of the customer handling the service to a server serving the mobile hall in response to the operation of the customer handling the service. The server receives the message and executes the method provided by the embodiment of the application, namely, the document corresponding to the service is sent to the client 1 used by the client in the form of pictures. The client can acknowledge the information on the client 1. The method can quickly generate the electronic picture corresponding to the document, is beneficial to paperless office work, saves paper, and quickly twists and handles the power-assisted document flow.
If the client transacts the service online, that is, on the client 1, the client 1 responds to the operation of transacting the service by the client, and can send a message of transacting the service by the client to a server serving the mobile business hall. The server receives the message and executes the method provided by the embodiment of the application, namely, the document corresponding to the service is sent to the client 1 used by the client in the form of pictures. The client can confirm the information on the client 1 to complete the business transaction. The clients do not need to transact business offline, and the method is simple and convenient.
Fig. 3 shows a schematic flow chart of a document generation method 300 according to an embodiment of the present application. The method 300 may be applied to the scenario shown in fig. 2 described above, but embodiments of the present application are not limited thereto. The method 300 may be performed by a server (or server), such as the server shown in fig. 2 described above. As shown in fig. 3, the method 300 may include the steps of:
s301, acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template.
The customer may transact business on-line or off-line. If the client transacts the service on line, the client used by the client can send a message for transacting the first service to the server, and the server receives the message for transacting the first service by the client and can acquire a first document template corresponding to the first service transacted by the client. If the client transacts the service on line, the client used by the service personnel can send a message for transacting the first service to the server, and the server receives the message for transacting the first service by the client and can acquire a first document template corresponding to the first service transacted by the client.
The first document template is a general document template required for handling the first business, that is, the first document template is required as long as the first business is handled. The server may store a plurality of services and a document template required for each of the plurality of services. When the server determines that the client transacts a first service of the plurality of services, a first document template required for the first service transacted by the client may be obtained. The first document template may be one template or a plurality of templates, which is not limited in the embodiment of the present application.
The first document template includes a location of each of the plurality of components, a data source of each of the plurality of components, and a data type of each of the plurality of components, and the plurality of components are configured to display data of the first document template, that is, content displayed by the plurality of components is what the first document template may include. The position of each component may be represented in two-dimensional coordinates. The data source of each component may be understood as the source of the data displayed by each component. Wherein the data source for each component may be one or more of customer input, internal acquisition, or a three-way application query. If the data source of the component is customer input, then the data representing the display of the component requires customer input. If the data source of the component is internally acquired, it means that the data displayed by the component needs to be acquired from the inside of the server, in other words, the data displayed by the component is data stored by the server. If the data source of the component is a three-party application query, the data representing the display of the component needs to be obtained by the server from the three-party application. The data type of each component may be an integer type, a floating point type, a character type, a boolean type, or the like.
Alternatively, the location of each component of the plurality of components, the data source of each component, and the data type of each component included in the first document template may be configured by a developer and stored in the server.
S302, acquiring data required by a first document template based on the data source of each component and the data type of each component.
The server may obtain the data of each component based on the data source of each component and the data type of each component, where the combination of the data of each component is the data required by the first document template.
S303, filling data required by the first document template into the first document template based on the position of each component to obtain the first document.
The server may populate the data for each component to its corresponding location, resulting in a first document.
S304, sending the first document generated picture to a client used by a client.
For example, the server may generate a picture from the first document based on Graphics2D drawing capabilities in Java picture processing technology.
According to the document generation method provided by the embodiment of the application, based on the position of each component in the plurality of components included in the first document template, the data source of each component and the data type of each component, the data is dynamically acquired, the first document is obtained, and the first document is generated into the picture, so that the paperless office is facilitated for a power-assisted enterprise, the paper is saved, and the power-assisted document flow is quickly twisted and handled.
There are a number of ways in which the data required for the first document template may be obtained.
In one possible implementation manner, S301 in the method 300, based on the data source of each component and the data type of each component, acquires the data required by the first document template, including: if the data source of the first component in the plurality of components is the client input, the server sends a request message to the client, and correspondingly, the client receives the request message, wherein the request message is used for requesting the client to input data; the client sends data to the server based on the request message, and correspondingly, the server receives the data.
If the data source of the first component in the plurality of components is the client input, the server may request the data from the client, which indicates that the data displayed by the first component requires the client input. The data displayed by the first component may be a customer signature, a customer statement, or customer address information, etc., and embodiments of the present application are not limited in this regard.
According to the implementation mode, the server can acquire required data from the client used by the client and fill the required data into the document template, the client is not required to manually fill the data on the paper document, and business personnel are not required to input the data into the document according to the data filled by the client, so that the method is simple and convenient, and the method is beneficial to accelerating the quick torsion and handling of the document flow.
In another possible implementation manner, S301 in the method 300, the acquiring data required by the first document template based on the data source of each component and the data type of each component includes: if the data source of the second component in the multiple components is internal acquisition, acquiring data from a database, wherein the database is used for storing the data of the clients who have transacted the service.
If the data source of the second component exists in the plurality of components and is acquired internally, the data displayed by the second component needs to be acquired internally from the server, in other words, the data displayed by the second component is data stored by the server, and the server can acquire the data from the database. It will be appreciated that the data of the server is typically stored in the form of a database from which the server can retrieve the required data. The data displayed by the second component may be information such as a mobile phone number of the client, a service handled by the client, and the embodiment of the present application is not limited thereto.
In this implementation, the server automatically obtains the required data from the inside of the server, which is beneficial to quickly obtaining the required data.
In yet another possible implementation manner, S301 in the above method 300, acquiring data required by the first document template based on the data source of each component and the data type of each component includes: if the data source of the third component in the multiple components is a three-party application query, acquiring data through an interface of the three-party application.
If the data source of the third component in the multiple components is a query of the three-party application, the data displayed by the third component is required to be acquired from the three-party application by the server, and the server can acquire the data through an interface of the three-party application.
Illustratively, when a client handles a card opening service, in order to ensure security, the identity confirmation information of a police department is required, and the server can acquire the identity confirmation information of the client through an interface of the police department.
The realization mode directly acquires the data through the interface of the three-party application, is simple and convenient, and is beneficial to improving the user experience.
As an alternative embodiment, the first document template in the method 300 described above is generated at the interface in response to a drag operation.
The first document template may be configured by a developer on the document generation system. The document generation system is used for generating document templates required by the business. The document generation system may include a visual interface including a plurality of selectable components that a developer may drag on the interface to configure the document template as desired. The interface included in the document generating system may be a world wide web (www) interface, but the embodiment of the application is not limited thereto.
Illustratively, FIG. 4 shows a schematic diagram of a visual interface. As shown in FIG. 4, the interface includes a plurality of draggable components including a form component, a presentation component, a layout component, a data visualization component, and a data source component. The form component may include an input box, a multiple selection box, a single selection box, and a drop down selection box, among others. The interface supports the developer dragging the component to the visualization area. In the interface shown in fig. 4, the visualization area includes a radio selection box, an input box, and an icon. The components of the visualization area are all freely movable and can be placed in proper positions according to the requirements. When a component is displayed in the visualization area, the document generation system may record the anchor coordinate axis, i.e., the location, of the component. If the component is used to display data, the developer can set the source of the data and the type of data. In response to a developer setting the source of the data and the type of the data, the document generation system may record the source of the data for the component and the type of the data for the component. The document generation system may store the anchor coordinate axis of the recorded component, the source of the data, and the type of the data in a database for subsequent invocation.
According to the implementation mode, the first document template is generated on the interface in response to the dragging operation, the operation is simple, the manufacturing is rapid, and the template generation efficiency is improved.
As an alternative embodiment, the first document template in the method 300 described above includes one or more of a reporting class template, a legal document class template, or a user data collection class template.
If the first document template is a template, the first document template may be a report template, a legal document template or a user data collection template. If the first document template is a plurality of templates, the first document template can be at least two of a report template, a legal document template or a user data acquisition template. In the embodiment of the application, the report template, the legal document template and the user data acquisition template are taken as examples for explanation, and the first document template can also comprise other templates, which is not limited by the embodiment of the application.
The report class template may include elements such as a logo, a company seal, a form title, a form style, and a form background. These elements may all be provided by components. When the server calls the report template, the elements and the data required by the table are acquired through the positions, the data sources and the data types of the components, and data filling is performed to obtain the report document.
Illustratively, FIG. 5 shows a schematic diagram of a reporting model. As shown in FIG. 5, the report class template includes a component for uploading enterprise identifications, a component for uploading stamps, a component for uploading two-dimensional codes, a component for displaying form titles, a component for displaying customer data, and a component for displaying forms. When the server calls the report template, the elements are acquired through the positions, the data sources and the data types of the components, and data filling is performed to obtain report documents.
The legal documents template may include one or more of an enterprise identifier, a text title, text content, client legal authorization verification information, a two-dimensional code, a document number, or a stamp. These elements may all be provided by components. When the server calls the legal document template, the elements are acquired through the positions, the data sources and the data types of the components, and the legal document is obtained. The enterprise identification can be stored in a server, and can be directly called when the template is configured. The text content may include legal text information and customer information. The client legal authorization verification information may include a client signature, a client identity authentication information header, or a fingerprint, among other biometric features. The two-dimensional code may carry a picture, document, video, application jump link, or applet jump link. The protocol code may also be referred to as a document number, which is not limited by the embodiments of the present application. The protocol number may be a unique identification of the single document. The seal can be a company, province, city, department or business seal.
Illustratively, FIG. 6 shows a schematic diagram of a legal document class template. As shown in FIG. 6, the report class template includes a component for uploading enterprise identifications, a component for uploading stamps, a component for uploading two-dimensional codes, a component for displaying protocol numbers, a component for displaying text titles, a component for displaying text content, and a component for displaying customer data. When the server calls the legal document template, the elements are acquired through the positions, the data sources and the data types of the components, and data filling is performed to obtain the legal document.
The user data collection class template may be used to collect information such as customer claims, customer signatures, or forms submitted by customers.
Illustratively, FIG. 7 shows a schematic diagram of a user data collection class template. As shown in FIG. 7, the user data collection class template is used to collect client signatures and client claims. The user data collection class template may include a component for displaying titles, a component for displaying customer information, a component for displaying business information transacted by a customer, a component for displaying customer claims, a component for displaying customer signatures. A component for validating the signature and a component for canceling the signature. When the server calls the user acquisition class template, the elements are acquired through the positions, the data sources and the data types of the components, and data filling is performed to obtain the user data acquisition class document.
The report template, the legal document template or the user data acquisition template can be stored in the database, and each component in the document template can correspond to a component number. The database may include the number of each component included in the document template, the location of each component included in the document template, the data source of each component, and the data type of each component.
Illustratively, 5 components may be included in the database, with the 5 components being component 1, component 2, component 3, component 4, and component 5, respectively. The location of component 1 may be (145,151), the number of component 1 may be "CUST_NAME", the NAME of component 1 may be "NAME", the data source of component 1 may be obtained internally, the internal obtaining may be denoted as "MSKHZLCX", the data type of component 1 may be "VARCHAR (60)", i.e. up to 60 characters may be stored. The location of component 2 may be (156,185), the component number may be "cert_code", the component 2 name may be "identification card", the data source of component 2 may be obtained internally, the internal obtaining may be denoted as "MSKHZLCX", the data type of component 2 may be "CHAR (18)", i.e. 18 characters. The location of the component 3 may be (170,216), the component 3 may be numbered "product_name", the component 3 may be named "package", the data source of the component 3 may be obtained internally, the internal obtaining may be denoted as "MSKHZLCX", the data type of the component 3 may be "VARCHAR (200)", i.e. up to 200 characters may be stored. The location of the component 4 may be (800,586), the component 4 may be numbered "date", the component 4 may be named "date", the source of the component 4 data may be obtained internally, the internal obtaining may be denoted "SYSTEM", and the component 4 data type may be "DATETIME". The location of the component 5 may be (800,621), the number of the component 5 may be "customerSignature", the name of the component 5 may be "signature", the data source of the component 5 may be USER input, the USER input may be denoted "USER", and the data type of the component 5 may be "VARCHAR (60)", i.e. up to 60 characters may be stored.
For a better understanding of embodiments of the present application, examples of post-document-generation applications will be described below.
Fig. 8 shows a schematic flow chart of a business processing method 800. The method 800 may be applied to the scenario illustrated in fig. 2 above. As shown in fig. 8, the server includes a document acquisition module, a service processing module, a document generation module, a database, a template management module, and a file storage module.
As shown in fig. 8, the method 800 may include the steps of:
s801, the client responds to the operation of business handling of the client, a request message of business handling is sent to a document acquisition module of the server, and correspondingly, the document acquisition module receives the request message of business handling.
The services handled by the customer may include the first service in the method 300 described above, but embodiments of the present application are not limited thereto. The client is a client used by a client.
S802, the document acquisition module determines a document number corresponding to the service based on the request message of handling the service.
The corresponding relation between the business and the document numbers is the same as the corresponding relation between the business and the document templates. The document acquisition module can determine the document number corresponding to the service based on the corresponding relation.
S803, the document acquisition module sends the document number to the service processing module, and correspondingly, the service processing module receives the document number.
The service processing module may also be referred to as a service system, which is not limited by the embodiment of the present application.
S804, the service processing module sends a request message for inquiring the document to the database based on the document number, and correspondingly, the database receives the request message for inquiring the document.
The database stores the location of each component, the data source of each component, and the data type that the document template includes. A request message to query the document is used to request such information.
It should be noted that, the information of the document template stored in the database is obtained from the template management module. The template management module can support a developer to configure the document template and can store the document template with the configured document template.
S805, the database sends the document template to the service processing module based on the request message of inquiring the document, and correspondingly, the service processing module receives the document template.
After the business processing module obtains the document template, the source of the required data can be determined. If the data source is user input, a message requesting to acquire data may be sent to the client, i.e., S806 is performed. If the data source is internal acquisition or three-party application query, acquiring the required data from an interface of the internal or three-party application.
S806, the service processing module sends a message for requesting to acquire data to the client, and correspondingly, the client receives the message for requesting to acquire data.
Illustratively, if the document template requires acquisition of the client's signature, the business process module sends a message to the client requesting acquisition of the client's signature.
S807, the client sends the data input by the client to the service processing module based on the information of the data acquisition request, and correspondingly, the service processing module receives the data input by the client.
Illustratively, the message requesting to obtain the data is used to request a client signature, and the client may send the client-entered signature to the service processing module in response to a user-entered signature operation.
S808, the business processing module sends data required by the document template to the document generating module based on the data input by the client, and correspondingly, the document generating module receives the data required by the document template.
The data required for the document template may include data entered by the customer, and may also include internally acquired data and data acquired from a three-way application interface.
S809, the document generation module can send a message for requesting to acquire the document template to the template management module, and the template management module can send the document template to the document generation module based on the message for requesting to acquire the document template, and correspondingly, the document generation module receives the document template.
And S810, combining the data required by the document template with the document template by the document generation module to obtain a document, and generating a picture from the document.
The document generation module can fill data required by the document template into the document template based on the position of each component in the document template to obtain a document, and can generate a picture based on the drawing capability of Java Graphics 2D.
Illustratively, FIG. 9 shows a schematic diagram of a document. As shown in fig. 9, the document template includes text content, i.e., content of the commitment document, i.e., personal name, id number, current package, client declaration, date of application, client signature, and other elements. The name, the ID card number, the current package and the application date of the user can be obtained from the inside, and the client declaration and the client signature can obtain the input of the client. The server can combine the acquired data with the document template to obtain a document, and can generate a picture from the document.
S811, the document generation module sends the picture to the document storage module, and correspondingly, the document storage module receives the picture and stores the picture.
The document storage module is used for storing pictures generated based on the document templates. The document storage module may be, for example, a picture storage operations support system (operation support systems, OSS). If the document storage module is a picture storage OSS, the document storage module can realize high-speed reading and writing of pictures, and can stably support the high-speed reading and writing of the pictures in a scene with larger service volume.
S812, the document storage module can send the picture to the service processing module, and correspondingly, the service processing module receives the picture.
The document storage module may be exemplified by a short message orThe form of the message sends the picture to the service processing module.
S813, the service processing module sends the picture to the client, and correspondingly, the client receives the picture.
For example, if the service processing module receives the picture in the form of a short message, the service processing module may send the picture to the client in the form of a short message.
According to the business processing method provided by the embodiment of the application, the client transacts business at the client, and the server can send the document in the form of pictures based on the business transacted by the client, so that paper is saved, and business processing efficiency is improved. In addition, the clients can transact the business on line without transacting offline, thereby saving the time cost of the clients and improving the user experience.
It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
The method of the embodiment of the present application is described in detail above with reference to fig. 1 to 9, and the apparatus of the embodiment of the present application will be described in detail below with reference to fig. 10 and 11.
Fig. 10 shows a schematic block diagram of a document generating apparatus 1000 according to an embodiment of the present application. As shown in fig. 10, the apparatus 1000 includes: an acquisition module 1010, a processing module 1020, and a transceiver module 1030.
The obtaining module 1010 is configured to: acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template; the processing module 1020 is configured to: acquiring data required by a first document template based on the data source of each component and the data type of each component; filling data required by the first document template into the first document template based on the position of each component to obtain a first document; the transceiver module 1030 is configured to: and sending the first document generated picture to a client used by the client.
It should be appreciated that the apparatus 1000 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it will be understood by those skilled in the art that the apparatus 1000 may be specifically a server in the foregoing embodiment, or the functions of the server in the foregoing embodiment may be integrated in the apparatus 1000, and the apparatus 1000 may be used to execute each flow and/or step corresponding to the server in the foregoing method embodiment, which is not described herein for avoiding repetition.
The apparatus 1000 has the function of implementing the corresponding steps executed by the server in the method 300; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the acquisition module may be a communication interface, such as a transceiver interface.
Fig. 11 shows a schematic block diagram of a document generating apparatus 1100 according to an embodiment of the present application. As shown in fig. 11, the apparatus 1100 includes: a processor 1110, a communication interface 1120, and a memory 11110. Wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is configured to store instructions, and the processor 1110 is configured to execute the instructions stored in the memory 1130 to control the communication interface to transmit signals and/or receive signals.
It should be understood that the apparatus 1100 may be used to perform the steps and/or flows corresponding to the server in the above-described method embodiments. The memory 1130 may optionally include read-only memory and random access memory, and provide instructions and data to the processor 1110. A portion of memory 1130 may also include non-volatile random access memory. For example, the memory 1130 may also store information of the type of device. The processor 1110 may be configured to execute instructions stored in the memory 1130 and, when the processor 1110 executes the instructions stored in the memory 1130, the processor 1110 is configured to perform the steps and/or processes of the method embodiments described above with respect to the server. The communication interface 1120 may include a transmitter that may be used to implement the steps and/or processes for performing the sending actions corresponding to the communication interface and a receiver that may be used to implement the steps and/or processes for performing the receiving actions corresponding to the communication interface.
It should be appreciated that in embodiments of the present application, the processor 1110 of the apparatus 1100 may be a central processing unit (central processing unit, CPU), and the processor 1110 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software elements in the processor for execution. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The present application provides a computer-readable storage medium storing a computer program for implementing the file generation method shown in various possible implementations in the above embodiments.
The present application provides a chip system for supporting the above-described file generation method shown in various possible implementations in the embodiments.
The present application provides a computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, is capable of performing the various possible file generation methods of the above embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A document generation method, comprising:
acquiring a first document template corresponding to a first service handled by a client, wherein the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template;
acquiring data required by the first document template based on the data source of each component and the data type of each component;
filling data required by the first document template into the first document template based on the position of each component to obtain a first document;
and sending the first document generated picture to a client used by the client.
2. The method of claim 1, wherein the obtaining the data required for the first document template based on the data source of each component and the data type of each component comprises:
if the data source of the first component in the plurality of components is the input of the client, sending a request message to the client, wherein the request message is used for requesting the client to input the data;
The data from the client is received.
3. The method of claim 1, wherein the obtaining the data required for the first document template based on the data source of each component and the data type of each component comprises:
and if the data source of the second component in the plurality of components is internal acquisition, acquiring the data from a database, wherein the database is used for storing the data of the clients who transact the service.
4. The method of claim 1, wherein the obtaining the data required for the first document template based on the data source of each component and the data type of each component comprises:
and if the data source of the third component in the multiple components is a three-party application query, acquiring the data through an interface of the three-party application.
5. The method of any one of claims 1 to 4, wherein the first document template is generated at an interface in response to a drag operation.
6. The method of any one of claims 1 to 4, wherein the first document template comprises one or more of a reporting class template, a legal document class template, or a user data collection class template.
7. A document generating apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first document template corresponding to a first service handled by a client, the first document template is a general document template required for handling the first service, the first document template comprises a position of each component in a plurality of components, a data source of each component and a data type of each component, and the plurality of components are used for displaying data of the first document template;
a processing module for: acquiring data required by the first document template based on the data source of each component and the data type of each component; filling data required by the first document template into the first document template based on the position of each component to obtain a first document;
and the receiving and transmitting module is used for transmitting the first document generated picture to the client used by the client.
8. A document generating apparatus, comprising: a processor coupled to a memory for storing a computer program which, when invoked by the processor, causes the apparatus to perform the method of any one of claims 1 to 6.
9. A chip system, comprising: a processor for calling and running a computer program from a memory, causing a device on which the chip system is installed to perform the method of any one of claims 1 to 6.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when run on a computer, causes the computer to perform the method of any of claims 1 to 6.
CN202310753631.XA 2023-06-25 2023-06-25 Document generation method, device, chip system and readable storage medium Pending CN116776852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310753631.XA CN116776852A (en) 2023-06-25 2023-06-25 Document generation method, device, chip system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310753631.XA CN116776852A (en) 2023-06-25 2023-06-25 Document generation method, device, chip system and readable storage medium

Publications (1)

Publication Number Publication Date
CN116776852A true CN116776852A (en) 2023-09-19

Family

ID=87992636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310753631.XA Pending CN116776852A (en) 2023-06-25 2023-06-25 Document generation method, device, chip system and readable storage medium

Country Status (1)

Country Link
CN (1) CN116776852A (en)

Similar Documents

Publication Publication Date Title
CN104378341B (en) Template acquisition methods, template provider method, Apparatus and system
CN104599165A (en) Network transaction method and associated equipment and systems thereof
US20140229348A1 (en) Electronic invoice management and printing
US9734522B2 (en) Mobile solution for purchase orders
US10007716B2 (en) System for decomposing clustering events from managed infrastructures coupled to a data extraction device
CN106384255B (en) Method and device for creating information code popularization information
US20150317635A1 (en) Electronic gesture-based signatures
TWM590271U (en) Business process system
CN110942567A (en) Self-service equipment data processing method, device and system
CN116776852A (en) Document generation method, device, chip system and readable storage medium
CN110751455B (en) Method and device for processing joint service
CN112260933B (en) Communication method, communication device, electronic equipment and medium
US8712885B2 (en) Method for assisting in the checking of transaction records, transaction device, server, mobile terminal, and corresponding computer programs
CN109803017B (en) File intercommunication method and device, computing equipment and computer readable storage medium
CN111865726A (en) Service message testing method, device, computer system and storage medium
CN111459475A (en) Interface calling method, interface docking configuration method, device, equipment and medium
CN106875238B (en) Invoice information generation method and device
CN111598527A (en) Insurance application method and device and electronic equipment
TWM594201U (en) Document recognition system
US11165733B2 (en) Information processing system to execute a particular workflow in response to receiving mail
CN111681745B (en) Data processing method and device
CN110738470A (en) Electronic bill processing method and device, storage medium and equipment
CN113783835B (en) Password sharing method, device, equipment and storage medium
CN108446926B (en) Data processing method and server
KR102200024B1 (en) Method and apparatus for providing smart print service

Legal Events

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