CN112906364A - Voucher generation method and device, electronic equipment and storage medium - Google Patents

Voucher generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112906364A
CN112906364A CN202110326675.5A CN202110326675A CN112906364A CN 112906364 A CN112906364 A CN 112906364A CN 202110326675 A CN202110326675 A CN 202110326675A CN 112906364 A CN112906364 A CN 112906364A
Authority
CN
China
Prior art keywords
content
voucher
text
service
text content
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
CN202110326675.5A
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 Construction Bank Corp
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202110326675.5A priority Critical patent/CN112906364A/en
Publication of CN112906364A publication Critical patent/CN112906364A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a certificate generation method and device, electronic equipment and a storage medium, and relates to the field of automatic program design. The method comprises the following steps: responding to the selection operation of a user, acquiring the service information of at least one service, and determining the voucher element information according to the service information; the service information comprises service types and service contents; generating voucher content to be analyzed according to the voucher element information and a preset label rule; and obtaining the document text content according to the document content to be analyzed and a preset content analysis method so as to generate the service document according to the document text content. By operating the technical scheme provided by the embodiment of the invention, the problems that the existing electronic certificate only sets a fixed certificate template for a single service, and once the service is changed or the combination is generated among the services, the whole certificate template needs to be adjusted, the flexibility and the efficiency of certificate generation are reduced, and the effect of improving the flexibility and the efficiency of certificate generation is realized.

Description

Voucher generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of automatic program design, in particular to a certificate generation method and device, electronic equipment and a storage medium.
Background
When business is handled in a bank and other scenes, traditional paper certificates such as paper copies, application books, receipt and the like are needed. Over time, paper vouchers can exhibit corresponding limitations, first, paper costs are prohibitive; secondly, the storage cost is high; third, subsequent searching is difficult and consumes a lot of manpower and time.
In the prior art, the paper voucher is reduced by introducing an electronic voucher technology, but the existing electronic voucher only sets a fixed voucher template for a single service, and once the service is changed or the combination of the services is generated, the whole voucher template needs to be adjusted, so that the flexibility and the efficiency of voucher generation are reduced.
Disclosure of Invention
The embodiment of the invention provides a certificate generation method, a certificate generation device, electronic equipment and a storage medium, and aims to improve the flexibility and efficiency of certificate generation.
In a first aspect, an embodiment of the present invention provides a credential generation method, where the method includes:
responding to the selection operation of a user, acquiring the service information of at least one service, and determining the credential element information according to the service information; the service information comprises service types and service contents;
generating voucher content to be analyzed according to the voucher element information and a preset label rule;
and obtaining voucher text content according to the voucher content to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text content.
In a second aspect, an embodiment of the present invention further provides a credential generating apparatus, where the apparatus includes:
the certificate element information determining module is used for responding to the selection operation of a user, acquiring the service information of at least one service and determining the certificate element information according to the service information; the service information comprises service types and service contents;
the to-be-analyzed voucher content generating module is used for generating the to-be-analyzed voucher content according to the voucher element information and a preset label rule;
and the voucher text content obtaining module is used for obtaining voucher text content according to the voucher content to be analyzed and a preset content analyzing method so as to generate the voucher of the business according to the voucher text content.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a credential generation method as described above.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the credential generation method described above.
The embodiment of the invention obtains the service information of at least one service by responding to the selection operation of a user, and determines the voucher element information according to the service information; the service information comprises service types and service contents; generating voucher content to be analyzed according to the voucher element information and a preset label rule; and obtaining voucher text content according to the voucher content to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text content. The problem that the existing electronic certificate only sets a fixed certificate template for a single service, and once the service is changed or the combination is generated among the services, the whole certificate template needs to be adjusted, so that the flexibility and the efficiency of certificate generation are reduced is solved, and the effect of improving the flexibility and the efficiency of certificate generation is realized.
Drawings
Fig. 1 is a flowchart of a credential generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a credential generation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a credential generating device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a credential generation method according to an embodiment of the present invention, where the present embodiment is applicable to a case of generating an electronic credential, and the method may be executed by a credential generation apparatus provided in an embodiment of the present invention, and the apparatus may be implemented by software and/or hardware. Referring to fig. 1, the credential generating method provided in this embodiment includes:
step 110, responding to the selection operation of the user, acquiring the service information of at least one service, and determining the voucher element information according to the service information; wherein, the service information comprises service types and service contents.
The user can select the service needing to generate the certificate through the modes of web pages, application programs, WeChat public numbers and the like. The method includes obtaining service information of at least one service selected by a user according to selection of the user and obtaining of user profiles, where obtaining of the user profiles may be directly extracted from a user profile database or may be actively input by the user, which is not limited in this embodiment.
The service category is a specific classification of the service, such as credit card payment, electronic bank appointment, and the like. The service content is the content related to the service, such as the user account number, the user name, and the like.
The voucher element information is information shown in the voucher, and may include an element name and element content, for example, name: in the element of mazimine, the name is the element name, and mazimine is the element content.
Determining the voucher element information according to the service information, which can be directly determining voucher elements and element contents corresponding to each service according to the service information. If the service type is greater than one, operations such as merging and deleting may be performed on the repeated element contents, which is not limited in this embodiment.
In this embodiment, optionally, determining the credential element information according to the service information includes:
if the service type is more than one, determining whether an association relationship exists between the services according to the service type;
and if so, determining the voucher element information according to the association relationship and the service content.
If the service type selected by the user is greater than one, it is determined whether a corresponding association relationship exists between the service types, for example, after the service a and the service B are combined, a new service C is formed, or after the service a and the service B are combined, a new service C is added, and the association relationship may be uniformly adjusted at a designated position, which is not limited in this embodiment.
If the certificate exists, determining corresponding certificate element information according to the association relation and the service content.
With continuous innovation of services, the service experience requirements of users are continuously improved, an original single-service mode is changed into a multi-service and combined-service mode, once a user selects multiple services, if an original fixed certificate template is adopted, multiple independent electronic certificates can be generated, association relations among the services can be ignored, or once a certain service is changed, the fixed certificate templates of the services which are associated with the service are required to be modified, so that the generation efficiency of the certificate is reduced. By determining the voucher element information according to the incidence relation between the businesses and the business content, the problems can be solved, and the flexibility and the efficiency of voucher generation are improved.
And 120, generating the voucher content to be analyzed according to the voucher element information and a preset label rule.
The preset tag rule is a tag rule which is pre-designated according to different credential element information and is used for determining the position of the credential element in the credential.
And generating the voucher content to be analyzed according to the voucher element information and a preset label rule, wherein the voucher content to be analyzed is voucher content language description, and acquiring the voucher content which can be checked by the user by analyzing the voucher content to be analyzed.
In this embodiment, optionally, generating the credential content to be analyzed according to the credential element information and the preset tag rule includes:
determining credential element label information according to the credential element information and the preset label rule; wherein the credential element tag information comprises: a credential element tag category and a credential element tag content.
And generating the voucher content to be analyzed according to the voucher element label information and the voucher element information.
The voucher element label information is used for identifying the position of the voucher element in the voucher so as to typeset the voucher content according to the label information during subsequent analysis.
The voucher element tag type is a usage classification of the tag, and the voucher element tag content is the actual content of the tag, such as a symbolic representation.
And generating the content of the voucher to be analyzed according to the voucher element label information and the voucher element information, wherein the voucher element information is a content part of the voucher content to be analyzed, and the voucher element label information is a format part of the voucher content to be analyzed.
And generating the voucher content to be analyzed through the voucher element label information and the voucher element information, so that the uniformity and the resolvability of the voucher content to be analyzed are improved. When the voucher changes, the voucher element label information or the voucher element information can be modified, so that all related contents are prevented from being modified, and the voucher generation efficiency is improved.
In this embodiment, optionally, the credential element tag category includes: at least one of a layout label, an element label, a style label, and a linefeed label.
Wherein the layout tag is used to determine the layout of the credential elements, e.g., which elements are in the same row and which elements are in the same column; the element tag is used to determine which content is an element; the style tab is used to determine the indented format of the element; the linefeed tag is used to specify the linefeed location of the element.
In this embodiment, optionally, the format of the voucher content to be analyzed is a domain specific language format.
In order to display each voucher element in the designated area of the voucher, each element needs to be described according to a uniform rule, and the content of the voucher to be analyzed is described by using a domain specific language format, so that the uniformity of content description is realized. And because the domain specific language grammar is a subset of the label grammar of the hypertext markup language, part of the label grammar in the label grammar of the hypertext markup language can be directly used, for example, the layout label content can be horizontal label < tr > </tr > or vertical label < td > </td >; the element tag content may be < span > </span >; the style label content may be style; the line feed label content can be < br >, so that the compatibility of subsequent content analysis is improved.
In this embodiment, optionally, after generating the credential content to be analyzed according to the credential element information and the preset tag rule, the method further includes:
and generating preview content in a hypertext markup language format according to the content of the voucher to be analyzed so as to adjust the content of the voucher to be analyzed according to the preview content.
Since the domain specific language grammar is a subset of the html tag grammar, the preview function in the html format can be used to browse the voucher content directly through the preview function before parsing the voucher content to be parsed. Due to the characteristics of the label grammar of the hypertext markup language, the previewed content is consistent with the content generated after analysis, so that the method can be used for previewing the voucher content in an internal system by related workers before generating the voucher, so that the voucher content to be analyzed can be corrected in time according to the previewed content, one-time writing and multi-terminal multiplexing are realized.
Step 130, obtaining a voucher text content according to the voucher content to be analyzed and a preset content analysis method, so as to generate the voucher of the service according to the voucher text content.
Obtaining the voucher text content according to the voucher content to be analyzed and the preset content analysis method, namely analyzing the voucher content to be analyzed by the preset content analysis method to obtain the voucher text content with the fixed format. The voucher text content can be integrally drawn in the designated area of the voucher template to obtain the voucher of the service, so that when the text content needs to be changed, the voucher text in the area is only configured to complete the configuration process, the situation that each single text needs to be configured originally is avoided, and the voucher configuration efficiency is improved.
In this embodiment, optionally, obtaining the document content of the voucher to be analyzed according to the analysis method of the content of the voucher to be analyzed and the preset content includes:
obtaining label content, a voucher element name and voucher element content according to the voucher content to be analyzed and a preset content analysis method;
and obtaining the voucher text content according to the label content, the voucher element name and the voucher element content.
The label content is obtained according to the voucher content to be analyzed and the preset content analysis method, and may be obtained through regular processing, and the label content may include one of layout label content, element label content, style label content and linefeed label content. Illustratively, acquiring the content contained by all < tr > </tr > tags in the content grammar of the voucher to be parsed, wherein a line wrapping character 'n' is added after each tr content because the tr tags represent a line; determining different contents encapsulated by td tags as different columns; replacing different span tags with different spacings between credential elements to distinguish the different credential elements; the br label is used for automatically retracting after line feed; when the tags fail to match, the illegal tags are deleted or replaced.
Obtaining the voucher element name and the voucher element content according to the voucher content to be analyzed and the preset content analyzing method, and obtaining the voucher text content according to the element name and the element content display format obtained through the label content, so that the accuracy of obtaining the voucher text content is improved.
In this embodiment, optionally, the generating the voucher of the service according to the voucher text content includes:
and generating the certificate of the business according to the certificate text content and the certificate system.
The voucher system can be used to synthesize the voucher text content with other fixed formats to generate the final voucher, such as adding a watermark, and performing special heading, which is not limited in this embodiment. Thereby improving the aesthetic and regularity of the document.
According to the technical scheme provided by the embodiment, the service information of at least one service is acquired by responding to the selection operation of a user, and the voucher element information is determined according to the service information; the service information comprises service types and service contents; generating voucher content to be analyzed according to the voucher element information and a preset label rule; the voucher text content is obtained according to the to-be-analyzed voucher content and the preset content analyzing method, the voucher of the business is generated according to the voucher text content, the problems that an existing electronic voucher only sets a fixed voucher template for a single business, once the business is changed or the combination of the businesses is generated, the whole voucher template needs to be adjusted, the flexibility and the efficiency of voucher generation are reduced, and the flexibility and the efficiency of voucher generation are improved are solved.
Example two
Fig. 2 is a flowchart of a voucher generating method according to a second embodiment of the present invention, and the technical solution of the present invention is supplementary explained for a process after obtaining voucher text content according to the to-be-analyzed voucher content and a preset content analyzing method. Compared with the scheme, the scheme is specifically optimized in that after obtaining the voucher text content according to the to-be-analyzed voucher content and a preset content analysis method, the method further comprises the following steps:
and determining the text format of the voucher text content according to the length of the voucher text content and the length of the area of the voucher text content. Specifically, the flowchart of the credential generation method is shown in fig. 2:
step 210, responding to the selection operation of the user, acquiring the service information of at least one service, and determining the credential element information according to the service information; wherein, the service information comprises service types and service contents.
And step 220, generating the voucher content to be analyzed according to the voucher element information and a preset label rule.
And 230, obtaining voucher text contents according to the voucher contents to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text contents.
Step 240, determining the text format of the voucher text content according to the length of the voucher text content and the length of the area where the voucher text content is located.
The length of the document text content may be the length of the document text content in a single line, and the region where the document text content is located is a canvas of the document text content in the document, which may be in the hypertext markup language, which is not limited in this embodiment. The length of the area is the length of the area where the voucher text content is located, and the text format of the voucher text content, such as whether to feed lines, how to feed lines and the like, is determined according to the length of the voucher text content and the length of the area where the voucher text content is located.
In this embodiment, optionally, determining the text format of the voucher text content according to the length of the voucher text content and the length of the area where the voucher text content is located includes:
judging whether a first content length of a single line of text content exists in the voucher text content is larger than the region length;
if yes, acquiring text information of the single line of text content; wherein the text information includes: a text name and text content;
and determining the text format of the voucher text content according to the text name and the text content.
And judging whether the first content length of the single-line text content is larger than the region length in the voucher text content or not, wherein the single-line text content is the single-line content in the voucher text content, and performing boundary check on the single-line text content to obtain the first content length of the single-line text content. The length of the region may be preset, but the embodiment is not limited thereto.
If the length of the first content is larger than the length of the area, acquiring text information exceeding a single line of text content; wherein the text information includes: textual name and textual content. Illustratively, the text name is a customer account number, and the text content is the specific content of the account.
From the textual name and the textual content, the textual format of the voucher textual content is determined, such as whether and how to wrap, etc.
In this embodiment, optionally, determining a text format of the credential text content according to the text name and the text content includes:
determining a splitting range of the single-line text content according to the text name;
splitting the single-line text content according to the splitting range to obtain split text content;
acquiring a second content length of the split text content, and adding the second content length according to the sequence of the split text content to obtain a third content length;
if the third content length is larger than the region length, determining target split text content according to the third content length;
and determining the text format of the voucher text content according to the target split text content.
And determining the splitting range of the single-line text content according to each text name, and splitting by taking the text name and the text content corresponding to the text name as a whole so as to avoid line break.
And splitting a single line of text content according to the splitting range to obtain split text contents consisting of text names and text contents corresponding to the text names, obtaining a second content length of each split text content, and adding the second content lengths according to the sequence of the split text contents originally in the single line of text contents to obtain a third content length. And comparing the obtained current third content length with the region length every time the second content length is added, and taking the split text content corresponding to the last second content length forming the third content length as the target split text content once the current third content length is greater than the region length.
And splitting the target split text content and the content after the target split text content from the certificate text content to serve as another line so as to determine the text format of the certificate text content, thereby improving the accuracy of splitting the certificate text content.
In this embodiment, optionally, the determining the text format of the credential text content according to the target split text content includes:
and adding a line feed character before the target split text content, and determining the text format of the voucher text content.
By adding the line feed character before the target split text content, the target split text content and the content after the target split text content are in a line independently to determine the text format of the voucher text content, so that the accuracy of the voucher text content splitting is improved.
According to the embodiment of the invention, the text format of the voucher text content is determined according to the length of the voucher text content and the area length of the area where the voucher text content is located, so that the problem that the text length in the voucher text content is not fixed, the content which is smaller than the area length of the area where the voucher text content is located can be normally displayed, but the content which is larger than the area length of the area where the voucher text content is located is likely to have line feed disorder, and the overall display of the voucher is influenced is solved, the effect of dynamically adjusting the text format of the voucher text content is realized, and the attractiveness of the voucher content display is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a credential generating device according to a third embodiment of the present invention. The device can be realized in a hardware and/or software mode, can execute the certificate generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 3, the apparatus includes:
the credential element information determining module 310 is configured to, in response to a selection operation of a user, obtain service information of at least one service, and determine credential element information according to the service information; the service information comprises service types and service contents;
the to-be-analyzed voucher content generating module 320 is configured to generate voucher content to be analyzed according to the voucher element information and a preset tag rule;
the voucher text content obtaining module 330 is configured to obtain voucher text content according to the content of the voucher to be analyzed and a preset content analysis method, so as to generate a voucher of the service according to the voucher text content.
The embodiment of the invention obtains the service information of at least one service by responding to the selection operation of a user, and determines the voucher element information according to the service information; the service information comprises service types and service contents; generating voucher content to be analyzed according to the voucher element information and a preset label rule; and obtaining voucher text content according to the voucher content to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text content. The problem that the existing electronic certificate only sets a fixed certificate template for a single service, and once the service is changed or the combination is generated among the services, the whole certificate template needs to be adjusted, so that the flexibility and the efficiency of certificate generation are reduced is solved, and the effect of improving the flexibility and the efficiency of certificate generation is realized.
On the basis of the above technical solutions, optionally, the credential element information determining module includes:
an association relation determining unit, configured to determine whether an association relation exists between the services according to the service type if the service type is greater than one;
and the voucher element information determining unit is used for determining the voucher element information according to the incidence relation and the service content if the incidence relation determining unit determines that the voucher element information exists.
On the basis of the above technical solutions, optionally, the module for generating the content of the voucher to be analyzed includes:
the certificate element label information determining unit is used for determining the certificate element label information according to the certificate element information and the preset label rule; wherein the credential element tag information comprises: a credential element tag category and a credential element tag content.
And the to-be-analyzed voucher content generating unit is used for generating the to-be-analyzed voucher content according to the voucher element label information and the voucher element information.
On the basis of the above technical solutions, optionally, the credential element tag category includes: at least one of a layout label, an element label, a style label, and a linefeed label.
On the basis of the above technical solutions, optionally, the voucher text content obtaining module includes:
a name content obtaining unit, configured to obtain, according to the credential content to be analyzed and a preset content analysis method, tag content, a credential element name, and credential element content;
and the voucher text content obtaining unit is used for obtaining voucher text content according to the label content, the voucher element name and the voucher element content.
On the basis of the above technical solutions, optionally, the apparatus further includes:
and the text format determining module is used for determining the text format of the voucher text content according to the length of the voucher text content and the area length of the area where the voucher text content is located after the voucher text content obtaining module obtains the voucher text content according to the voucher content to be analyzed and a preset content analyzing method.
On the basis of the above technical solutions, optionally, the text format determining module includes:
the length judgment submodule is used for judging whether the first content length of the single-line text content in the voucher text content is larger than the region length;
the text information acquisition sub-module is used for acquiring the text information of the single-line text content if the length judgment sub-module judges that the length judgment sub-module is positive; wherein the text information includes: a text name and text content;
and the text format determining submodule is used for determining the text format of the voucher text content according to the text name and the text content.
On the basis of the above technical solutions, optionally, the text format determining sub-module includes:
the splitting range determining unit is used for determining the splitting range of the single-line text content according to the text name;
a split text content obtaining unit, configured to split the single line of text content according to the split range to obtain split text content;
a content length obtaining unit, configured to obtain a second content length of the split text content, and add the second content length according to the sequence of the split text content to obtain a third content length;
the target split text content obtaining unit is used for determining the target split text content according to the third content length if the third content length is greater than the area length;
and the text format determining unit is used for determining the text format of the voucher text content according to the target split text content.
On the basis of the foregoing technical solutions, optionally, the text format determining unit includes:
and the text format determining subunit is used for adding a line feed character before the target split text content and determining the text format of the voucher text content.
On the basis of the above technical solutions, optionally, the format of the voucher content to be analyzed is a domain specific language format.
On the basis of the above technical solutions, optionally, the apparatus further includes:
and the preview content generating module is used for generating preview content in a hypertext markup language format according to the content of the voucher to be analyzed after the voucher to be analyzed content generating module is used for adjusting the content of the voucher to be analyzed according to the preview content.
On the basis of the above technical solutions, optionally, the voucher text content obtaining module includes:
and the voucher generation module is used for generating the voucher of the business according to the voucher text content and the voucher system.
Example four
Fig. 4 is a schematic structural diagram of an electronic apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the electronic apparatus includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of the processors 40 in the electronic device may be one or more, and one processor 40 is taken as an example in fig. 4; the processor 40, the memory 41, the input device 42 and the output device 43 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 41 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the credential generation method in the embodiment of the present invention. The processor 40 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 41, that is, implements the credential generation method described above.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a credential generation method, the method including:
responding to the selection operation of a user, acquiring the service information of at least one service, and determining the credential element information according to the service information; the service information comprises service types and service contents;
generating voucher content to be analyzed according to the voucher element information and a preset label rule;
and obtaining voucher text content according to the voucher content to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text content.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the credential generation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the credential generating apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A credential generation method, comprising:
responding to the selection operation of a user, acquiring the service information of at least one service, and determining the credential element information according to the service information; the service information comprises service types and service contents;
generating voucher content to be analyzed according to the voucher element information and a preset label rule;
and obtaining voucher text content according to the voucher content to be analyzed and a preset content analysis method, and generating the voucher of the service according to the voucher text content.
2. The method of claim 1, wherein determining credential element information based on the service information comprises:
if the service type is more than one, determining whether an association relationship exists between the services according to the service type;
and if so, determining the voucher element information according to the association relationship and the service content.
3. The method of claim 1, wherein generating the voucher content to be parsed according to the voucher element information and a preset tag rule comprises:
determining credential element label information according to the credential element information and the preset label rule; wherein the credential element tag information comprises: a credential element tag category and a credential element tag content.
And generating the voucher content to be analyzed according to the voucher element label information and the voucher element information.
4. The method of claim 3, wherein the credential element tag class comprises: at least one of a layout label, an element label, a style label, and a linefeed label.
5. The method according to claim 1, wherein obtaining the voucher text content according to the voucher content to be parsed and a preset content parsing method comprises:
obtaining label content, a voucher element name and voucher element content according to the voucher content to be analyzed and a preset content analysis method;
and obtaining the voucher text content according to the label content, the voucher element name and the voucher element content.
6. The method according to claim 1, after obtaining the voucher text content according to the voucher content to be parsed and a preset content parsing method, further comprising:
and determining the text format of the voucher text content according to the length of the voucher text content and the length of the area of the voucher text content.
7. The method of claim 6, wherein determining the text format of the voucher text content based on the length of the voucher text content and the area length of the area in which the voucher text content is located comprises:
judging whether a first content length of a single line of text content exists in the voucher text content is larger than the region length;
if yes, acquiring text information of the single line of text content; wherein the text information includes: a text name and text content;
and determining the text format of the voucher text content according to the text name and the text content.
8. The method of claim 7, wherein determining the textual format of the voucher textual content based on the textual name and the textual content comprises:
determining a splitting range of the single-line text content according to the text name;
splitting the single-line text content according to the splitting range to obtain split text content;
acquiring a second content length of the split text content, and adding the second content length according to the sequence of the split text content to obtain a third content length;
if the third content length is larger than the region length, determining target split text content according to the third content length;
and determining the text format of the voucher text content according to the target split text content.
9. The method of claim 8, wherein determining the text format of the voucher text content based on the target split text content comprises:
and adding a line feed character before the target split text content, and determining the text format of the voucher text content.
10. The method of claim 1, wherein the voucher content to be parsed is in a domain specific language format.
11. The method according to claim 10, after generating the voucher content to be parsed according to the voucher element information and the preset tag rule, further comprising:
and generating preview content in a hypertext markup language format according to the content of the voucher to be analyzed so as to adjust the content of the voucher to be analyzed according to the preview content.
12. The method of claim 1, wherein generating the voucher for the transaction based on the voucher text content comprises:
and generating the certificate of the business according to the certificate text content and the certificate system.
13. A credential generation apparatus, comprising:
the certificate element information determining module is used for responding to the selection operation of a user, acquiring the service information of at least one service and determining the certificate element information according to the service information; the service information comprises service types and service contents;
the to-be-analyzed voucher content generating module is used for generating the to-be-analyzed voucher content according to the voucher element information and a preset label rule;
and the voucher text content obtaining module is used for obtaining voucher text content according to the voucher content to be analyzed and a preset content analyzing method so as to generate the voucher of the business according to the voucher text content.
14. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a credential generation method as recited in any one of claims 1-12.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a credential generation method as defined in any one of claims 1-12.
CN202110326675.5A 2021-03-26 2021-03-26 Voucher generation method and device, electronic equipment and storage medium Pending CN112906364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110326675.5A CN112906364A (en) 2021-03-26 2021-03-26 Voucher generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110326675.5A CN112906364A (en) 2021-03-26 2021-03-26 Voucher generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112906364A true CN112906364A (en) 2021-06-04

Family

ID=76108842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110326675.5A Pending CN112906364A (en) 2021-03-26 2021-03-26 Voucher generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112906364A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117056899A (en) * 2023-10-11 2023-11-14 北京中科江南信息技术股份有限公司 Electronic certificate generation method and device
CN117114927A (en) * 2023-09-11 2023-11-24 青岛鑫晟汇科技有限公司 Electronic certificate circulation system based on machine learning technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117114927A (en) * 2023-09-11 2023-11-24 青岛鑫晟汇科技有限公司 Electronic certificate circulation system based on machine learning technology
CN117114927B (en) * 2023-09-11 2024-02-02 青岛鑫晟汇科技有限公司 Electronic certificate circulation system based on machine learning technology
CN117056899A (en) * 2023-10-11 2023-11-14 北京中科江南信息技术股份有限公司 Electronic certificate generation method and device

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
US20190251143A1 (en) Web page rendering method and related device
US8578265B2 (en) Methods and apparatus for generating a dynamic document
US7437365B2 (en) Method for redirecting the source of a data object displayed in an HTML document
US20070083810A1 (en) Web content adaptation process and system
US8977606B2 (en) Method and apparatus for generating extended page snippet of search result
US9223764B2 (en) Assistive technology for the visually impaired
US20020095443A1 (en) Method for automated generation of interactive enhanced electronic newspaper
US9710440B2 (en) Presenting fixed format documents in reflowed format
US20020129059A1 (en) XML auto map generator
US20060184639A1 (en) Web content adaption process and system
WO2015047920A1 (en) Title and body extraction from web page
CN112906364A (en) Voucher generation method and device, electronic equipment and storage medium
CN104462532B (en) The method and apparatus that Web page text is extracted
US20230162242A1 (en) Automatic generation of electronic advertising messages containing one or more automatically selected stock photography images
CN113627145A (en) Method, device, equipment and medium for generating file of parameterized configuration
US9286272B2 (en) Method for transformation of an extensible markup language vocabulary to a generic document structure format
CN114417226A (en) Page generation method, display method, device, electronic equipment and storage medium
CN109558123B (en) Method for converting webpage into electronic book, electronic equipment and storage medium
CN113360106A (en) Webpage printing method and device
CN110633081A (en) Page generation method and device
CN113836092A (en) File comparison method, device, equipment and storage medium based on RPA and AI
JP2023032063A (en) Information processing apparatus and program
CN106598933A (en) Method and device for proofreading typeset file based on web page
CN108228688B (en) Template generation method, system and server based on XBRL

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
TA01 Transfer of patent application right

Effective date of registration: 20220909

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, 99 Yincheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right