CN116258597A - Document processing method, device, computer equipment and storage medium - Google Patents

Document processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116258597A
CN116258597A CN202310248106.2A CN202310248106A CN116258597A CN 116258597 A CN116258597 A CN 116258597A CN 202310248106 A CN202310248106 A CN 202310248106A CN 116258597 A CN116258597 A CN 116258597A
Authority
CN
China
Prior art keywords
target
document
bill
upstream
field
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
CN202310248106.2A
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202310248106.2A priority Critical patent/CN116258597A/en
Publication of CN116258597A publication Critical patent/CN116258597A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a document processing method, a document processing device, computer equipment and a storage medium. The method comprises the following steps: determining an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill; determining target expansion parameters from an expansion area associated with an upstream document; the expansion area is set according to the expansion requirement of the target document to be generated; pushing down the upstream bill to obtain fixed parameters; and generating the target bill based on the fixed parameters and the target expansion parameters. The method can improve the convenience of bill processing.

Description

Document processing method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a document processing method, apparatus, computer device, and storage medium.
Background
With the development of computer technology, bill processing technology appears, and downstream bills related to business of the upstream bill can be quickly generated by adopting the bill processing technology according to the content data of the upstream bill. For example, the sales order is pushed down to generate a material sending notification bill, the purchase warehouse entry bill is pushed down to generate a purchase invoice, and the like.
In the conventional bill processing method, content data of an upstream bill is mapped to obtain a downstream bill. However, to meet the requirement of adding new document fields to the downstream document, corresponding fields need to be manually added to the upstream document, which is very inconvenient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a document processing method, apparatus, computer device, computer-readable storage medium, and computer program product that improve convenience.
In a first aspect, the present application provides a document processing method. The method comprises the following steps:
determining an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill;
determining target expansion parameters from an expansion area associated with an upstream document; the expansion area is set according to the expansion requirement of the target document to be generated;
pushing down the upstream bill to obtain fixed parameters;
and generating the target bill based on the fixed parameters and the target expansion parameters.
In one embodiment, the upstream document comprises a document body; the bill body comprises a push-down item; the push-down item is a receipt content item for pushing down data; before determining the target expansion parameter from the expansion area associated with the upstream document, the method further comprises:
And determining an expansion area related to the upstream bill through the identification of the bill body and the identification of the push-down item, and obtaining the expansion area related to the upstream bill.
In one embodiment, the upstream document corresponds to at least one downstream document; the expansion area associated with the upstream bill comprises at least one expansion parameter corresponding to the downstream bill respectively;
determining a target expansion parameter from an expansion area associated with an upstream document, comprising:
determining structural description data of a target bill; the structured description data is data for describing the structure of the target document;
and determining target expansion parameters matched with the structural description data from expansion parameters respectively corresponding to at least one downstream bill.
In one embodiment, determining the target expansion parameters matched with the structural description data from the expansion parameters respectively corresponding to the at least one downstream document includes:
determining a target extension field matched with a bill field in the structural description data from extension fields in the extension parameters;
a target extension parameter is determined that includes a target extension field and a corresponding target extension field value.
In one embodiment, generating the target document based on the fixed parameters and the target extension parameters includes:
Determining the bill field type of the bill field matched with the target extension field;
converting the type of the target extension field value into the document field type to obtain a field value after type conversion;
and carrying out document field filling processing based on the field value in the fixed parameter and the field value after the type conversion to obtain the target document.
In one embodiment, generating the target document based on the fixed parameters and the target extension parameters includes:
constructing a target bill structure according to the structural description data;
and carrying out document field filling processing on the target document structure according to the target expansion parameters and the fixed parameters so as to generate the target document.
In one embodiment, determining an upstream document to be pushed down to generate a target document includes:
acquiring a push-down interface call request aiming at a bill push-down interface;
and determining an upstream bill to be subjected to the push-down processing according to the parameters carried by the push-down interface call request.
In a second aspect, the present application further provides a document processing apparatus. The device comprises:
the determining module is used for determining an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill;
the matching module is used for determining target expansion parameters from an expansion area associated with the upstream bill; the expansion area is set according to the expansion requirement of the target document to be generated;
The generation module is used for pushing down the upstream bill to obtain fixed parameters; and generating the target bill based on the fixed parameters and the target expansion parameters.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps in the method described above.
In a fifth aspect, the present application also provides a computer program product. Computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
The bill processing method, the bill processing device, the computer equipment, the storage medium and the computer program product determine an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill, and the expansion area is set according to the expansion requirement of the target bill, so that target expansion parameters required by generating the target bill are determined from the expansion area associated with the upstream bill, and the downstream bill is pushed down to obtain fixed parameters; and then, generating a target bill based on the fixed parameters and the target expansion parameters, and pushing down the upstream bill to generate the target bill with expansion requirements through the expansion parameters in the expansion area, wherein the upstream bill does not need to have the target expansion parameters, namely, pushing down the upstream bill to generate the target bill can be realized without changing the upstream bill, so that the bill processing convenience is improved.
Drawings
FIG. 1 is an application environment diagram of a document processing method in one embodiment;
FIG. 2 is a flow diagram of a document processing method in one embodiment;
FIG. 3 is a simplified flow diagram of a document processing method in one embodiment;
FIG. 4 is a block diagram of a document processing device in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The bill processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
The server 104 may determine an upstream document to be pushed down to generate a target document; the target bill is a downstream bill to be generated corresponding to the upstream bill; determining target expansion parameters from an expansion area associated with an upstream document; the expansion area is set according to the expansion requirement of the target document to be generated; pushing down the upstream bill to obtain fixed parameters; and generating the target bill based on the fixed parameters and the target expansion parameters. It will be appreciated that the server 104 may send the generated target document to the terminal 102. The terminal 102 may present the target document.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a document processing method is provided, and the method is applied to a computer device for illustration. It will be appreciated that the computer device may comprise at least one of a terminal or a server, and that the method may be applied to the terminal or the server alone or to a system comprising the terminal and the server. In this embodiment, the method includes the steps of:
s202, determining an upstream bill to be pushed down to generate a target bill.
The target bill is a downstream bill to be generated corresponding to the upstream bill. Pushing down refers to pushing down another Zhang Xin business-associated downstream document based on the content of the upstream document. It will be appreciated that the target document is a downstream document that is business-associated with an upstream document. For example, a sales order pushes a shipping notice.
Illustratively, the association between the target document and the upstream document to be generated by the push down is performed by a document conversion rule. The computer device may determine an upstream document to be processed for pushing down based on a push-down interface call request of the document push-down interface. The computer equipment can determine the target document to be generated corresponding to the upstream document through the document conversion rule set under the upstream document.
In one embodiment, the target document may be a procedure report document. The upstream document may be a process planning document.
S204, determining target expansion parameters from expansion areas associated with the upstream bill.
The expansion area is set according to the expansion requirement of the target document to be generated. The expansion requirement refers to the requirement of newly adding a document field in the target document. The newly added bill field of the target bill meets the expansion requirement of the target bill. The target extension parameter is used to indicate a field value under the newly added document field.
It should be noted that the expansion area may be set according to the expansion requirement of at least one downstream document corresponding to the upstream document. The extension parameters in the extension area are matched with the newly added document fields of at least one downstream document. The extension parameters in the extension area do not necessarily match exactly with the newly added document fields of the target document. It can be understood that, in the case of pushing down an upstream document to generate any downstream document, the expansion parameters matched with the any downstream document can be determined from the expansion area so as to adapt to the expansion requirement of the any downstream document.
The expansion area may be set according to the expansion requirement of the target document, for example, in an expansion area format. The extended area format is used to indicate a format in which extension parameters are written to the extended area. It will be appreciated that the extension area may include target extension parameters that match the newly added document field of the target document. The computer device may determine an expansion area associated with the upstream document from which to determine a target expansion parameter that matches a document field of the target document.
In one embodiment, the extension parameters may include a plurality of extension fields. The extension field may include an extension field identification and a corresponding extension field value. The extension field is represented in the extension area as an extension field identification and an extension field value having a mapping relationship. For example, each extension field may be provided in the extension area in the form of a key-value pair, the extension field identifying a "key", the extension field value being the "value" to which the "key" is mapped. The extended field format may be a data set comprising a plurality of extended fields, e.g., the extended field format is sst_customers: { extended field identification 1: extended field value 1, extended field identification 2: extended field value 2. The extension field identification is used to identify the extension field.
S206, pushing down the upstream bill to obtain fixed parameters; and generating the target bill based on the fixed parameters and the target expansion parameters.
The fixed parameter is used for indicating a field value under a primary document field of the target document. The original document field of the target document is a document field of the target document and is not a newly added document field.
For example, the computer device may perform a push down process on the upstream document to obtain the fixed parameters. The fixed parameters are matched with the original document fields of the target document. The computer device may perform field filling processing of the target document based on the target extension parameter and the fixed parameter, and generate the target document. It will be appreciated that the document field of the target document includes a newly added document field and a native document field.
In one embodiment, the computer device may perform document field mapping processing on the upstream document according to the document conversion rule to obtain the fixed parameter. The computer equipment can also perform document field mapping processing on the upstream document through the document conversion plug-in unit so as to obtain fixed parameters.
In one embodiment, the computer device may determine the fixed parameters through a document conversion plug-in. It will be appreciated that the document conversion plug-in includes logic written to implement field assignments for the target document, such as which document fields of the target document need to be assigned what values. The bill conversion plug-in does not necessarily depend on the bill content of the upstream bill, but the manner of meeting the expansion requirement of the downstream bill by writing the bill conversion plug-in is quite inconvenient.
In the bill processing method, an upstream bill to be pushed down to generate a target bill is determined; the target bill is a downstream bill to be generated corresponding to the upstream bill, and the expansion area is set according to the expansion requirement of the target bill, so that target expansion parameters required by generating the target bill are determined from the expansion area associated with the upstream bill, and the downstream bill is pushed down to obtain fixed parameters; and then, generating a target bill based on the fixed parameters and the target expansion parameters, and pushing down the upstream bill to generate the target bill with expansion requirements through the expansion parameters in the expansion area, wherein the upstream bill does not need to have the target expansion parameters, namely, pushing down the upstream bill to generate the target bill can be realized without changing the upstream bill, so that the bill processing convenience is improved.
In one embodiment, the upstream document includes a document body; the bill body comprises a push-down item; the push-down item is a receipt content item for pushing down data; before determining the target expansion parameter from the expansion area associated with the upstream document, the method further comprises: and determining an expansion area related to the upstream bill through the identification of the bill body and the identification of the push-down item, and obtaining the expansion area related to the upstream bill.
The expanded region may be associated with the upstream document by, for example, an identification of the document body and an identification of the push-down item. The computer equipment can map the push-down field in the push-down item in the bill body to obtain fixed parameters, determine the expansion area associated with the identification of the bill body and the identification of the push-down item, and obtain the expansion area associated with the upstream bill.
In one embodiment, the expanded region may be mapped to an upstream document by the identity of the document body and the identity of the push-down item.
In one embodiment, the computer device may perform document field mapping processing on the push-down item, and map the field value of the push-down field in the push-down item to the field value of the native document field of the target document, to obtain the fixed parameter.
In one embodiment, the computer device may assign a field value in the fixed parameter to a native document field of the target document, and assign a field value in the target extension parameter to a newly added document field of the target document, to obtain the target document generated by pushing down.
In one embodiment, the computer device may obtain a native document field by determining a document field characterized by a field identifier in the fixed parameter, and assigning a corresponding field value in the fixed parameter to the native document field. The computer equipment can obtain a new bill field by determining the bill field characterized by the extension field identification in the target extension parameter, and assign the corresponding extension field value in the target extension parameter to the new bill field.
In one embodiment, the push-down item may be at least one of a sub-document body in the document body or a document body entry.
In the embodiment, the extension area associated with the upstream bill is obtained by determining that the identification of the bill body and the identification of the push-down item are associated with the extension area of the upstream bill, and the target bill with the extension requirement can be generated by pushing down through the extension parameters in the extension area, so that the content of the upstream bill is not required to be modified, and the convenience is improved.
In one embodiment, the upstream document corresponds to at least one downstream document; the expansion area associated with the upstream bill comprises at least one expansion parameter corresponding to the downstream bill respectively; determining a target expansion parameter from an expansion area associated with an upstream document, comprising: determining structural description data of a target bill; the structured description data is data for describing the structure of the target document; and determining target expansion parameters matched with the structural description data from expansion parameters respectively corresponding to at least one downstream bill.
Illustratively, an upstream document may be pushed down to generate a variety of downstream documents. The expansion area can comprise expansion parameters corresponding to various downstream documents respectively. It can be appreciated that the expansion area includes expansion parameters corresponding to the target document. The computer device may parse document fields in the structured descriptive data of the target document. The computer equipment can determine target expansion parameters from expansion parameters respectively corresponding to at least one downstream bill by matching the analyzed bill fields with the expansion parameters.
In one embodiment, the target extension parameter includes a target extension field. And the analyzed bill field has a bill field characterized by the target extension field identification. The computer device may compare the parsed identification of the document field with the field identification in the expansion parameters, and determine a target expansion field from the expansion parameters corresponding to at least one downstream document, respectively, to obtain a target expansion parameter including the target expansion field. It can be appreciated that the document field consistent with the target extension field identification exists in the parsed document field.
In one embodiment, the structured descriptive data may be a carrier of document fields, recording various document fields and document field types present in the target document. It will be appreciated that which document fields and corresponding document field types the target document has are known only by parsing the structured descriptive data.
In one embodiment, the computer device may obtain structured description data of the target document, then obtain all document fields by parsing the structured description data, and then circularly match each determined target extension field with each parsed document field.
In one embodiment, the structured description data may be, but is not limited to, document metadata. The computer device may determine a target expansion parameter matching the document metadata from expansion parameters corresponding to at least one downstream document.
In one embodiment, the structured description data may be class definition data. The class definition data may include attribute information of the document object, which is used to describe the structure of the target document.
In the embodiment, structural description data of a target bill is determined; and determining target expansion parameters matched with the structural description data from expansion parameters respectively corresponding to at least one downstream bill, and then performing push-down processing through the target expansion parameters to generate the target bill with expansion requirements, so that the upstream bill is not required to be modified, and code plug-ins for realizing independent assignment of newly added bill fields in the target bill are not required to be written, thereby improving convenience.
In one embodiment, determining target extension parameters matching the structured description data from the extension parameters corresponding to the at least one downstream document, respectively, comprises: determining a target extension field matched with a bill field in the structural description data from extension fields in the extension parameters; a target extension parameter is determined that includes a target extension field and a corresponding target extension field value.
Illustratively, the computer device may parse the structured description data to obtain individual document fields in the structured description data. The computer equipment can match each extension field in the extension parameters with each analyzed document field to obtain a field matching result of each extension field. In the event that the field match result characterizes the presence of a document field matching the extension field, the computer device may determine that the extension field is the target extension field. The computer device may determine a target extension parameter that includes the target extension field and a corresponding target extension field value.
In one embodiment, the computer device may parse the structured description data to obtain individual document field identifications. The computer device may compare each extension field identifier in the extension parameter with each document field identifier to obtain a field matching result corresponding to each extension field identifier. It will be appreciated that in the event that there is a document field identity that is consistent with the extension field identity, the computer device may determine the extension field identity as a target extension field identity and determine a target extension parameter that includes the target extension field identity and a corresponding target extension field value.
In one embodiment, in the event that the target extension field matches the document field, the corresponding target extension field identification is consistent with the document field identification.
In one embodiment, the extension parameters may include document entry data. The document entry data is used for indicating the entry of the target document where the document field matched with the extension field is located. The computer device may match the extension field with each document field under the entry indicated by the document entry data, to obtain a field matching structure of the extension field. It can be appreciated that the target document has multiple entries, and by setting document entry data in the expansion area, computing resources can be saved.
In the embodiment, a target extension field matched with a bill field in the structural description data is determined from extension fields in extension parameters; the target extension parameters comprising the target extension fields and the corresponding target extension field values are determined, the target document with the extension requirements is generated by pushing down the target extension parameters, the upstream document is not required to be modified, and code plug-ins for realizing independent assignment of newly added document fields in the target document are not required to be written, so that convenience is improved.
In one embodiment, generating the target document based on the fixed parameters and the target extension parameters includes: determining the bill field type of the bill field matched with the target extension field; converting the type of the target extension field value into the document field type to obtain a field value after type conversion; and carrying out document field filling processing based on the field value in the fixed parameter and the field value after the type conversion to obtain the target document.
For example, the computer device may assign a field value of the fixed parameter to the target document native document field after the push down process on the upstream document. The computer device may determine the individual document fields and the document field type for each document field by parsing the structured description data. The computer device may determine a document field type of the document field that matches the target extension field. The computer device may convert the type of the target extension field value to a document field type, resulting in a field value with a converted type. The computer device may assign the field value after the type conversion to a new field of the target document that matches the target extension field. After the assignment of the original document field of the target document and the newly added document field of the target document is completed, the computer equipment can generate the target document. It will be appreciated that the field value after the type conversion may be used as the field value of the document field that matches the target extension field.
It should be noted that the field values in the fixed parameters are mapped by at least one of the code plug-in or the document conversion rule. The field value of the fixed parameter accords with the type of the original document field of the target document, and the type conversion is not needed.
In one embodiment, the document field type is used to indicate the type of value under the document field. The document field type may include at least one of a string type or a value type, etc.
In one embodiment, the document field type may include at least one of a character type, a string type, an integer type, a real type, or the like.
In the embodiment, determining a bill field type of a bill field matched with a target extension field; converting the type of the target extension field value into the document field type to obtain a field value after type conversion; and carrying out document field filling processing based on the field value after the type conversion to obtain the target document, and modifying the upstream document itself or compiling code plug-ins for realizing independent assignment of the newly added document field in the target document is not needed, thereby improving convenience.
In one embodiment, performing a pushing down process of an upstream document based on a target expansion parameter, generating a target document includes: constructing a target bill structure according to the structural description data; and carrying out document field filling processing on the target document structure according to the target expansion parameters so as to generate the target document.
Illustratively, the computer device may build the target document structure by parsing the data structure of the target document described by the structured description data. The computer device may perform document field population processing on the target document structure according to the target extension field value in the target extension parameter to generate the target document.
In one embodiment, the target document structure includes a document field therein. The computer device may assign a corresponding target extension field value to a document field in the target document structure that matches the target extension field.
In one embodiment, in the event that the type of the target extension field value does not match the document field type of the matched document field, the computer device may determine a type-converted field value and assign the type-converted field value to the document field in the target document structure that matches the target extension field.
In one embodiment, the computer device may determine a field match result for each extension field, and determine that the extension field is a target extension field if the field match result characterizes the presence of a document field that matches the extension field. The computer device may perform assignment processing on document fields in the target document structure that match the target extension field according to the target extension field value to generate the target document.
In one embodiment, the fixed parameters include a plurality of fixed fields. The computer device may perform a field population process on the target document structure based on the fixed field value of the fixed field. It will be appreciated that the computer device may obtain the target document after the fixed field value and the target extension field value in the fixed parameter are assigned to the document field in the target document structure.
In one embodiment, the fixed parameters may include a fixed field and a corresponding fixed field value. The computer device may determine a document field characterized by a fixed field identification from the target document structure and assign a fixed field value of the response to the document field to effect a field population process.
In this embodiment, a target document structure is constructed according to the structural description data; and carrying out document field filling processing on the target document structure according to the target expansion parameters to generate the target document, and modifying the upstream document itself or compiling code plug-ins for realizing independent assignment of newly added document fields in the target document is not needed, so that convenience is improved.
In one embodiment, determining an upstream document to be pushed down to generate a target document includes: acquiring a push-down interface call request aiming at a bill push-down interface; and determining an upstream bill to be subjected to the push-down processing according to the parameters carried by the push-down interface call request.
For example, the computer device may obtain a push-down interface call request for a document push-down interface. The computer device may parse the parameters carried in the push-down interface call request to obtain push-down parameters. The pushing-down parameter is used for indicating an upstream bill to be pushed down and bill content for pushing down and generating a target bill in the upstream bill.
In one embodiment, the document push down interface may be a (WebAPI, world Wide Web Application Programming Interface) global wide area network application programming interface.
In one embodiment, the push down parameters may include, but are not limited to, identification of upstream documents and identification of push down items. The push down parameters may also include an identification of the upstream document and an identification of the document body.
In one embodiment, the computer device may determine an extension area associated with an upstream document based on an identification of the document body. It will be appreciated that the extended area may be associated with an upstream document by the identity of the document body. And when the expansion area is set, the document body identifier corresponding to the expansion area can be configured.
In the embodiment, a push-down interface calling request aiming at a bill push-down interface is acquired; and determining the upstream bill to be subjected to the pushing processing according to the parameters carried by the pushing interface calling request, and subsequently realizing the pushing generation of the target bill through the expansion parameters in the expansion area associated with the upstream bill without modifying the upstream bill or writing a code plug-in for realizing the independent assignment of the newly added bill field in the target bill, thereby improving the convenience.
In one embodiment, a simplified flow diagram of a document processing method is provided as shown in FIG. 3. The computer device may obtain a push-down interface call request for a document push-down interface. The computer device may parse the parameters carried by the push-down interface call request to obtain push-down parameters. The computer device may determine a push-down item indicated by the push-down parameter. The computer equipment can realize the pushing-down processing of the upstream bill by carrying out mapping processing on the fields in the pushing-down items, so as to obtain fixed parameters. The computer device may assign a native document field value in the fixed parameter to a document field in the target document structure.
The computer device may parse the extension parameters in the extension area. The computer device may obtain document metadata for the target document. The computer device may cycle to match each extension field in the extension parameter with a document field in the document metadata to obtain a field matching result for each extension field. In the case that the field matching result characterizes that the matching is successful, that is, the document metadata contains the document field matched with the extension field, the computer device may parse the document field type of the document field matched with the extension field, and determine that the extension field is the target extension field. The computer device may convert the type of the target extension field value to a document field type, obtain a field value after the type conversion, and assign the field value after the type conversion to a document field matching the target extension field to generate the target document. The computer device may save the target document.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a bill processing device for realizing the bill processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the document processing device or devices provided below may refer to the limitation of the document processing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 4, there is provided a document processing apparatus 400 comprising: a determination module 402, a matching module 404, and a generation module 406, wherein:
a determining module 402, configured to determine an upstream document to be pushed down to generate a target document; the target bill is a downstream bill to be generated corresponding to the upstream bill.
A matching module 404, configured to determine a target expansion parameter from an expansion area associated with an upstream document; the expansion area is set according to the expansion requirement of the target document to be generated.
The generating module 406 is configured to perform a pushing-down process on the upstream document to obtain a fixed parameter; and generating the target bill based on the fixed parameters and the target expansion parameters.
In one embodiment, the upstream document comprises a document body; the bill body comprises a push-down item; the push-down item is a receipt content item for pushing down data; the matching module 404 is configured to determine an extension area associated with the upstream document by associating the identification of the document body and the identification of the push-down item with the extension area of the upstream document.
In one embodiment, the upstream document corresponds to at least one downstream document; the expansion area associated with the upstream bill comprises at least one expansion parameter corresponding to the downstream bill respectively; a matching module 404 for determining structured description data of the target document; the structured description data is data for describing the structure of the target document; and determining target expansion parameters matched with the structural description data from expansion parameters respectively corresponding to at least one downstream bill.
In one embodiment, the matching module 404 is configured to determine, from the extension fields in the extension parameters, a target extension field that matches the document field in the structural description data; a target extension parameter is determined that includes a target extension field and a corresponding target extension field value.
In one embodiment, the generating module 406 is configured to determine a document field type of the document field that matches the target extension field; converting the type of the target extension field value into the document field type to obtain a field value after type conversion; and carrying out document field filling processing based on the field value in the fixed parameter and the field value after the type conversion to obtain the target document.
In one embodiment, the generating module 406 is configured to construct a target document structure according to the structural description data; and carrying out document field filling processing on the target document structure according to the target expansion parameters and the fixed parameters so as to generate the target document.
In one embodiment, the determining module 402 is configured to obtain a push-down interface call request for a document push-down interface; and determining an upstream bill to be subjected to the push-down processing according to the parameters carried by the push-down interface call request.
The modules in the document processing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store upstream documents. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a document processing method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a document processing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 5 or 6 are merely block diagrams of portions of structures related to the aspects of the present application and are not intended to limit the computer devices to which the aspects of the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A document processing method, the method comprising:
determining an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill;
determining a target expansion parameter from an expansion area associated with the upstream document; the expansion area is set according to the expansion requirement of the target document to be generated;
Pushing down the upstream bill to obtain fixed parameters;
and generating the target bill based on the fixed parameters and the target expansion parameters.
2. The method of claim 1, wherein the upstream document comprises a document body; the bill body comprises a push-down item; the push-down item is a receipt content item for pushing down data; before determining the target expansion parameter from the expansion area associated with the upstream bill, the method further comprises:
and determining an expansion area which is related to the upstream bill through the identification of the bill body and the identification of the push-down item, and obtaining the expansion area which is related to the upstream bill.
3. The method of claim 1, wherein the upstream document corresponds to at least one downstream document; the expansion area associated with the upstream bill comprises expansion parameters corresponding to the at least one downstream bill respectively;
the determining the target expansion parameter from the expansion area associated with the upstream bill comprises the following steps:
determining structured description data of the target document; the structured description data is data for describing a structure of a target document;
And determining target expansion parameters matched with the structural description data from expansion parameters respectively corresponding to the at least one downstream bill.
4. A method according to claim 3, wherein said determining target extension parameters matching the structured document from the extension parameters corresponding to the at least one downstream document respectively comprises:
determining a target extension field matched with a bill field in the structural description data from extension fields in the extension parameters;
a target extension parameter is determined that includes the target extension field and a corresponding target extension field value.
5. The method of claim 4, wherein the generating the target document based on the fixed parameters and the target extension parameters comprises:
determining the bill field type of the bill field matched with the target extension field;
converting the type of the target extension field value into the document field type to obtain a field value after type conversion;
and carrying out document field filling processing based on the field value in the fixed parameter and the field value after the type conversion to obtain the target document.
6. The method of claim 3, wherein the generating the target document based on the fixed parameters and the target extension parameters comprises:
constructing a target bill structure according to the structural description data;
and carrying out document field filling processing on the target document structure according to the target expansion parameters and the fixed parameters so as to generate a target document.
7. The method of any of claims 1 to 6, wherein determining an upstream document to be pushed down to generate a target document comprises:
acquiring a push-down interface call request aiming at a bill push-down interface;
and determining an upstream bill to be subjected to the pushing-down processing according to the parameters carried by the pushing-down interface calling request.
8. A document processing apparatus, the apparatus comprising:
the determining module is used for determining an upstream bill to be pushed down to generate a target bill; the target bill is a downstream bill to be generated corresponding to the upstream bill;
the matching module is used for determining target expansion parameters from an expansion area associated with the upstream bill; the expansion area is set according to the expansion requirement of the target document to be generated;
The generation module is used for pushing down the upstream bill to obtain fixed parameters; and generating the target bill based on the fixed parameters and the target expansion parameters.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310248106.2A 2023-03-08 2023-03-08 Document processing method, device, computer equipment and storage medium Pending CN116258597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310248106.2A CN116258597A (en) 2023-03-08 2023-03-08 Document processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310248106.2A CN116258597A (en) 2023-03-08 2023-03-08 Document processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116258597A true CN116258597A (en) 2023-06-13

Family

ID=86684229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310248106.2A Pending CN116258597A (en) 2023-03-08 2023-03-08 Document processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116258597A (en)

Similar Documents

Publication Publication Date Title
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN114490656A (en) Data query method, device, equipment and storage medium
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
CN117390011A (en) Report data processing method, device, computer equipment and storage medium
CN116738954A (en) Report export method, report template configuration device and computer equipment
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
US9230022B1 (en) Customizable result sets for application program interfaces
CN116258597A (en) Document processing method, device, computer equipment and storage medium
CN118153903A (en) Construction method and device for resource paid allocation service interconnection platform and computer equipment
CN114547066A (en) Nuclear power business data standardization method and device and computer equipment
CN118245699A (en) Page acquisition method, device, equipment, storage medium and computer program product
CN117435198A (en) Page generation method and device
CN117669528A (en) Document generation method, device, computer equipment and storage medium
CN117112089A (en) Payment service processing method, device, equipment, storage medium and product
CN118228313A (en) Platform page display method and device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium
CN116974715A (en) Positioning method, device, computer equipment and storage medium for calling information
CN116166667A (en) Document field information carrying method, device, equipment and storage medium
CN118312178A (en) Form page generation method and device, computer equipment and readable storage medium
CN116881116A (en) Interface test method, apparatus, computer device, storage medium, and program product
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN117197288A (en) Electronic signature using method, device and computer equipment
CN117389859A (en) Method, device, computer equipment and storage medium for determining influence range
CN118155383A (en) Early warning processing method, early warning processing device, computer equipment and storage medium
CN117555521A (en) Business requirement development method, device, computer equipment and storage medium

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