CN116932091B - Configuration file generation method and device during credential generation and storage medium - Google Patents

Configuration file generation method and device during credential generation and storage medium Download PDF

Info

Publication number
CN116932091B
CN116932091B CN202311193839.7A CN202311193839A CN116932091B CN 116932091 B CN116932091 B CN 116932091B CN 202311193839 A CN202311193839 A CN 202311193839A CN 116932091 B CN116932091 B CN 116932091B
Authority
CN
China
Prior art keywords
configuration
fields
field
tenant
generated
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.)
Active
Application number
CN202311193839.7A
Other languages
Chinese (zh)
Other versions
CN116932091A (en
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.)
CHANJET INFORMATION TECHNOLOGY CO LTD
Original Assignee
CHANJET INFORMATION TECHNOLOGY 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 CHANJET INFORMATION TECHNOLOGY CO LTD filed Critical CHANJET INFORMATION TECHNOLOGY CO LTD
Priority to CN202311193839.7A priority Critical patent/CN116932091B/en
Publication of CN116932091A publication Critical patent/CN116932091A/en
Application granted granted Critical
Publication of CN116932091B publication Critical patent/CN116932091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device and a storage medium for generating a configuration file during credential generation, and relates to the technical field of computer data processing, wherein the method comprises the following steps: the tenant is based on the personalized configuration of the customized tenant of basic configuration of credentials of the multi-tenant service cloud platform; generating a plurality of configuration groups according to fields of the certificate based on the basic configuration of the certificate; the method comprises the steps of constructing a credential generation condition according to fields and formats of credentials required to be generated by a tenant, selecting a control condition from a configuration group table based on the credential generation condition, determining at least one configuration group ID based on the control condition, detecting attribute values of fields of the generated credentials in personalized configuration of the tenant, determining whether to cover corresponding fields in the configuration group according to the attribute values, generating configuration files after fields of all credentials required to be generated are processed, and improving the generation flexibility and sharability of the configuration files.

Description

Configuration file generation method and device during credential generation and storage medium
Technical Field
The invention relates to the technical field of computer data processing, in particular to a method and a device for generating a configuration file during credential generation and a storage medium.
Background
As a public cloud industry and financial integration product for small and micro enterprises, the same code technology is required to be used so as to meet the user requirements of different scales, different industries, different accounting systems and different tax payment properties. Thus, flexible configuration capabilities are required in the process of generating financial documents from business documents. To increase the convenience of delivery, the system needs to provide a default configuration to meet the out-of-box requirements. However, because the requirements of each user are different, the same set of configurations cannot be used to meet the configuration requirements of different types of customers.
The prior scheme adopts a method that when a user tenant is opened, the system copies the prefabricated configuration into the user tenant, and the user can modify the configuration issued by the system after the initialization of the tenant is completed. However, since the system has only one set of configuration, it takes a lot of time to make configuration adjustments to complete the delivery when the user is delivered.
As the system is upgraded, the functional characteristics will also increase. In this case, the user's configuration may become outdated and not meet the requirements of the upgraded system. Traditional approaches require the delivery person to assist the user in adjusting the old configuration to achieve the function of continuing to generate credentials using the document. This can lead to reduced customer satisfaction and can also increase sustained delivery costs.
For multi-tenant users, or users who need to perform social management, configurations of different tenants need to be maintained. In general, they set the configuration of different tenants to be basically consistent, and each tenant can refine its own requirements according to the management requirements. However, when the original configuration needs to be adjusted, the current practice can only issue the configuration by the overlay mode. This will lead to each tenant having to reapply its own refinement configuration to the system, thus bringing a high management burden.
In the prior art, when a certificate is generated, field conflict is generally reported by mistake, and manual solution is carried out, so that the efficiency is low.
Disclosure of Invention
The present invention proposes the following technical solution to one or more of the above technical drawbacks of the prior art.
A method of profile generation at credential generation, the method comprising:
a user definition step, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines personalized configuration of the tenant based on the basic configuration of the credential of the multi-tenant service cloud platform;
a configuration group association step of generating a plurality of configuration groups according to fields of the certificate based on the basic configuration of the certificate, each configuration group having a unique configuration group ID, wherein each configuration group is used under different certificate generation conditions, and constructing a configuration group table for recording control conditions of the configuration groups under different certificate generation conditions, the control conditions including: configuring an attribute value of field coverage and a field ID of the coverage;
and a configuration file generation step, wherein the credential generation condition is constructed according to the fields and formats of credentials required to be generated by the tenant, one control condition is selected from the configuration group table based on the credential generation condition, at least one configuration group ID is determined based on the control condition, the attribute value of the fields of the generated credentials in the personalized configuration of the tenant is detected, whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields is determined, if so, the fields in the personalized configuration of the tenant are covered with the corresponding fields in the configuration group based on the covered field IDs, if not, the corresponding fields in the configuration group are not covered, and the configuration file is generated after all the fields of the credentials required to be generated are processed.
Still further, the method further comprises the operation of modifying the configuration file:
confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record. Still further, the method may further comprise the operation of deleting a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
Further, when the tenant generates the voucher, the business meaning of the document field is identified through the document model, and then the corresponding voucher is generated based on the configuration file.
Further, the bill model is a trained artificial neural network model.
Further, when the corresponding certificate is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the certificate; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched fields, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined fields;
further, the matching degree is determined in the following manner:
wherein,indicating the degree of matching->Representing the document field S and the i-th field of the two or more corresponding fields +.>The same number of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>The number of words which are different in->Representing the document field S and the i-th field of the two or more corresponding fields +.>All numbers of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>Cosine distance of>、/>Is constant.
The invention also provides a configuration file generating device during credential generation, which comprises:
a user definition unit, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines personalized configuration of the tenant based on the basic configuration of the credential of the multi-tenant service cloud platform;
a configuration group association unit for generating a plurality of configuration groups according to the fields of the certificate based on the basic configuration of the certificate, wherein each configuration group is provided with a unique configuration group ID, each configuration group is used under different certificate generation conditions, a configuration group table is constructed for recording the control conditions of the configuration groups under different certificate generation conditions, and the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage;
and a configuration file generating unit, configured to construct the credential generating conditions according to the fields and formats of the credentials required to be generated by the tenant, select a control condition from the configuration group table based on the credential generating conditions, determine at least one configuration group ID based on the control condition, detect attribute values of the fields of the generated credentials in the personalized configuration of the tenant, determine whether the attribute values of the fields of the generated credentials are consistent with the attribute values covered by the configuration fields, if so, cover the fields in the personalized configuration of the tenant with the corresponding fields in the configuration group based on the covered field IDs, and if not, not cover the corresponding fields in the configuration group, and generate the configuration file after all the fields of the credentials required to be generated are processed.
Still further, the apparatus further comprises an operation of modifying the configuration file:
confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record.
Still further, the apparatus may further comprise an operation of deleting a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
Further, when the tenant generates the voucher, the business meaning of the document field is identified through the document model, and then the corresponding voucher is generated based on the configuration file.
Further, when the corresponding certificate is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the certificate; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched fields, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined fields;
further, the matching degree is determined in the following manner:
wherein,indicating the degree of matching->Representing the document field S and the i-th field of the two or more corresponding fields +.>The same number of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>The number of words which are different in->Representing the document field S and the i-th field of the two or more corresponding fields +.>All numbers of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>Cosine distance of>、/>Is constant.
The invention also proposes a computer readable storage medium having stored thereon computer program code which, when executed by a computer, performs any of the methods described above.
The invention has the technical effects that: the invention discloses a configuration file generation method, a device and a storage medium during credential generation, wherein the method comprises the following steps: when a tenant builds a credential generation function on a multi-tenant service cloud platform, customizing personalized configuration of the tenant based on basic credential configuration of the multi-tenant service cloud platform; generating a plurality of configuration groups according to fields of the certificate based on the basic configuration of the certificate, wherein each configuration group is provided with a unique configuration group ID, each configuration group is used under different certificate generation conditions, and constructing a configuration group table for recording control conditions of the configuration groups under different certificate generation conditions, wherein the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage; constructing the credential generation condition according to the fields and formats of credentials required to be generated by the tenant, selecting a control condition from the configuration group table based on the credential generation condition, determining at least one configuration group ID based on the control condition, detecting the attribute value of the fields of the generated credentials in the personalized configuration of the tenant, determining whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields, if so, covering the fields in the personalized configuration of the tenant with the corresponding fields in the configuration group based on the covered field IDs, if not, not covering the corresponding fields in the configuration group, and generating the configuration file after the fields of all the credentials required to be generated are processed. In order to solve the defects in the background art, the method is firstly used for self-defining configuration, then a plurality of configuration groups are generated according to fields of the certificates based on the basic configuration of the certificates, each configuration group is provided with a unique configuration group ID, each configuration group is used under different certificate generation conditions, a configuration group table is constructed for recording control conditions of the configuration groups under different certificate generation conditions, and the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage; and constructing the credential generation condition according to the fields and formats of credentials required to be generated by the tenant, selecting a control condition from the configuration group table based on the credential generation condition, determining at least one configuration group ID based on the control condition, detecting the attribute value of the fields of the generated credentials in the personalized configuration of the tenant, determining whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields, if so, covering the fields in the personalized configuration of the tenant with the corresponding fields in the configuration group based on the covered field IDs, if not, not covering the corresponding fields in the configuration group, and generating the configuration file after the fields of all the credentials required to be generated are processed. Defining a base configuration of a platform based on the configuration, allowing a user to customize the base configuration, setting corresponding configuration groups according to industry characteristics and scale characteristics in order to meet different requirements of various industries and scales, forming three layers of configurations, wherein the uppermost layer is the configuration customized by the user, the middle layer is the configuration groups set according to the industry characteristics and the scale characteristics, the lower layer is the base configuration of the platform, various different configuration capacities can be provided for the generated configuration files through different-level differential coverage, so as to ensure that documents configured by the user meet specific service requirements, and due to the fact that a plurality of configuration groups are arranged, the generated configuration files are convenient to share. The invention designs a field processing mechanism when generating a corresponding certificate based on the configuration file, provides a field conflict resolution mechanism, namely if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one field in the more than two corresponding fields can be matched, the certificate is generated based on the matched field, if the matched field cannot be accurately matched with the more than two corresponding fields, the matching degree of the bill field and the more than two corresponding fields is calculated, a specific mode of calculating the matching degree is provided, and the field with the largest matching degree is selected as the matching field, so that the generated certificate is ensured to be accurate, and the invention is another invention.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings.
Fig. 1 is a flowchart of a profile generation method at the time of credential generation according to an embodiment of the present invention.
Fig. 2 is a block diagram of a profile generating apparatus at the time of credential generation according to an embodiment of the present invention.
Detailed Description
The present application is described in further detail below with reference to the 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 noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates a method of profile generation at credential generation of the present invention, the method comprising:
step S101 of user definition, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines personalized configuration of the tenant based on the basic configuration of the credential of the multi-tenant service cloud platform;
a configuration group association step S102, generating a plurality of configuration groups according to the fields of the credential based on the basic configuration of the credential, each configuration group having a unique configuration group ID, wherein each configuration group is used under different credential generation conditions, and constructing a configuration group table for recording control conditions of the configuration group under different credential generation conditions, the control conditions including: configuring an attribute value of field coverage and a field ID of the coverage;
and a configuration file generation step S103, wherein the credential generation condition is constructed according to the fields and formats of credentials required to be generated by the tenant, one control condition is selected from the configuration group table based on the credential generation condition, at least one configuration group ID is determined based on the control condition, the attribute value of the fields of the generated credentials in the personalized configuration of the tenant is detected, whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields is determined, if so, the fields in the personalized configuration of the tenant are covered by the corresponding fields in the configuration group based on the covered field IDs, if not, the corresponding fields in the configuration group are not covered, and the configuration file is generated after the fields of all the credentials required to be generated are processed.
In order to solve the defects in the background art, the method is firstly used for self-defining configuration, then a plurality of configuration groups are generated according to fields of the certificates based on the basic configuration of the certificates, each configuration group is provided with a unique configuration group ID, each configuration group is used under different certificate generation conditions, a configuration group table is constructed for recording control conditions of the configuration groups under different certificate generation conditions, and the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage; and constructing the credential generation condition according to the fields and formats of credentials required to be generated by the tenant, selecting a control condition from the configuration group table based on the credential generation condition, determining at least one configuration group ID based on the control condition, detecting the attribute value of the fields of the generated credentials in the personalized configuration of the tenant, determining whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields, if so, covering the fields in the personalized configuration of the tenant with the corresponding fields in the configuration group based on the covered field IDs, if not, not covering the corresponding fields in the configuration group, and generating the configuration file after the fields of all the credentials required to be generated are processed. The method is characterized in that a base configuration of a platform is defined based on configuration, a user is allowed to customize, corresponding configuration groups are set according to industry characteristics and scale characteristics in order to meet different requirements of various industries and scales, three layers of configuration are formed, wherein the uppermost layer is the configuration customized by the user, the middle layer is the configuration groups set according to the industry characteristics and the scale characteristics, the lower layer is the base configuration of the platform, various different configuration capacities can be provided for the generated configuration files through different levels of differential coverage, so that the documents configured by the user meet specific service requirements, and the generated configuration files are convenient to share due to the fact that a plurality of configuration groups are arranged.
In one embodiment, the method further comprises the operation of modifying the configuration file: confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record.
In one embodiment, the method further comprises the operation of deleting a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
The invention also provides a related method for modifying and deleting the configuration data in the configuration file, corresponding configuration data can be safely deleted and modified by the method, and the modified configuration file can be normally used because the configuration data of an upper layer is considered during modification and deletion, so that the technical problem that the configuration file in the prior art is difficult to upgrade is solved.
In one embodiment, when a tenant generates a credential, business meaning of a document field is identified by a document model, and then a corresponding credential is generated based on the configuration file. The bill model is an artificial neural network model after training. The method adopts the bill model to identify the meaning of the bill field, improves the identification accuracy of the bill field, and further generates more accurate bill vouchers.
In one embodiment, when the corresponding document is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the document; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched fields, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined fields;
in one embodiment, the matching degree is determined in the following manner:
wherein,indicating the degree of matching->Representing the document field S and the i-th field of the two or more corresponding fields +.>The same number of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>The number of words which are different in->Representing the document field S and the i-th field of the two or more corresponding fields +.>All numbers of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>Cosine distance of>、/>Is constant.
The invention designs a field processing mechanism when generating a corresponding certificate based on the configuration file, provides a field conflict resolution mechanism, namely if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one field in the more than two corresponding fields can be matched, the certificate is generated based on the matched field, if the matched field cannot be accurately matched with the more than two corresponding fields, the matching degree of the bill field and the more than two corresponding fields is calculated, a specific mode of calculating the matching degree is provided, and the field with the largest matching degree is selected as the matching field, so that the generated certificate is ensured to be accurate, and the invention is another invention.
Fig. 2 shows a profile generation apparatus at the time of credential generation of the present invention, the apparatus comprising:
a user definition unit 201, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines a personalized configuration of the tenant based on a credential basic configuration of the multi-tenant service cloud platform;
a configuration group association unit 202, configured to generate a plurality of configuration groups according to fields of a credential based on the basic configuration of the credential, each configuration group having a unique configuration group ID, wherein each configuration group is used under different credential generation conditions, and construct a configuration group table for recording control conditions of the configuration group under the different credential generation conditions, the control conditions including: configuring an attribute value of field coverage and a field ID of the coverage;
the configuration file generating unit 203 constructs the credential generating conditions according to the fields and formats of the credentials required to be generated by the tenant, selects a control condition from the configuration group table based on the credential generating conditions, determines at least one configuration group ID based on the control condition, detects the attribute value of the fields of the generated credentials in the personalized configuration of the tenant, determines whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields, if so, covers the fields in the personalized configuration of the tenant on the basis of the covered field IDs to the corresponding fields in the configuration group, if not, does not cover the corresponding fields in the configuration group, and generates the configuration file after the fields of all the credentials required to be generated are processed.
In order to solve the defects in the background art, the method is firstly used for self-defining configuration, then a plurality of configuration groups are generated according to fields of a certificate based on the basic configuration of the certificate, each configuration group has a unique configuration group ID, each configuration group is used under different certificate generation conditions, a configuration group table is constructed for recording control conditions of the configuration groups under different certificate generation conditions, and the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage; and constructing the credential generation condition according to the fields and formats of credentials required to be generated by the tenant, selecting a control condition from the configuration group table based on the credential generation condition, determining at least one configuration group ID based on the control condition, detecting the attribute value of the fields of the generated credentials in the personalized configuration of the tenant, determining whether the attribute value of the fields of the generated credentials is consistent with the attribute value covered by the configuration fields, if so, covering the fields in the personalized configuration of the tenant with the corresponding fields in the configuration group based on the covered field IDs, if not, not covering the corresponding fields in the configuration group, and generating the configuration file after the fields of all the credentials required to be generated are processed. The method is characterized in that a base configuration of a platform is defined based on configuration, a user is allowed to customize on the basis of the base configuration of the platform, corresponding configuration groups are set according to industry characteristics and scale characteristics in order to meet different requirements of various industries and scales, three layers of configurations are formed, wherein the uppermost layer is the configuration customized by the user, the middle layer is the configuration groups set according to the industry characteristics and the scale characteristics, the lower layer is the base configuration of the platform, various different configuration capabilities can be provided for generated configuration files through different-level delta coverage, so that the bill configured by the user meets specific service requirements of the user, and the generated configuration files are convenient to share due to the fact that a plurality of configuration groups are arranged.
In one embodiment, the apparatus further comprises an operation to modify the configuration file: confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record.
In one embodiment, the apparatus further comprises an operation to delete a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
The invention also provides a related method for modifying and deleting the configuration data in the configuration file, corresponding configuration data can be safely deleted and modified by the method, and the modified configuration file can be normally used because the configuration data of an upper layer is considered during modification and deletion, so that the technical problem that the configuration file in the prior art is difficult to upgrade is solved.
In one embodiment, when a tenant generates a credential, business meaning of a document field is identified by a document model, and then a corresponding credential is generated based on the configuration file. The bill model is an artificial neural network model after training. The method adopts the bill model to identify the meaning of the bill field, improves the identification accuracy of the bill field, and further generates more accurate bill vouchers.
In one embodiment, when the corresponding document is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the document; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched fields, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined fields;
in one embodiment, the matching degree is determined in the following manner:
wherein,indicating the degree of matching->Representing the document field S and the corresponding fields of the two or moreI-th field->The same number of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>The number of words which are different in->Representing the document field S and the i-th field of the two or more corresponding fields +.>All numbers of words>Representing the document field S and the i-th field of the two or more corresponding fields +.>Cosine distance of>、/>Is constant.
The invention designs a field processing mechanism when generating a corresponding certificate based on the configuration file, provides a field conflict resolution mechanism, namely if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one field in the more than two corresponding fields can be matched, the certificate is generated based on the matched field, if the matched field cannot be accurately matched with the more than two corresponding fields, the matching degree of the bill field and the more than two corresponding fields is calculated, a specific mode of calculating the matching degree is provided, and the field with the largest matching degree is selected as the matching field, so that the generated certificate is ensured to be accurate, and the invention is another invention.
In one embodiment of the invention a computer storage medium is provided, on which a computer program is stored, which computer storage medium may be a hard disk, DVD, CD, flash memory or the like, which computer program, when being executed by a processor, carries out the above-mentioned method.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the apparatus described in the embodiments or some parts of the embodiments of the present application.
Finally, what should be said is: the above embodiments are merely for illustrating the technical aspects of the present invention, and it should be understood by those skilled in the art that although the present invention has been described in detail with reference to the above embodiments: modifications and equivalents may be made thereto without departing from the spirit and scope of the invention, which is intended to be encompassed by the claims.

Claims (10)

1. A method for generating a configuration file when generating a credential, the method comprising:
a user definition step, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines personalized configuration of the tenant based on the basic configuration of the credential of the multi-tenant service cloud platform;
a configuration group association step of generating a plurality of configuration groups according to fields of the certificate based on the basic configuration of the certificate, each configuration group having a unique configuration group ID, wherein each configuration group is used under different certificate generation conditions, and constructing a configuration group table for recording control conditions of the configuration groups under different certificate generation conditions, the control conditions including: configuring an attribute value of field coverage and a field ID of the coverage;
a configuration file generating step, namely constructing a credential generating condition according to fields and formats of credentials required to be generated by the tenant, selecting a control condition from the configuration group table based on the credential generating condition, determining at least one configuration group ID based on the control condition, detecting whether the fields in the credentials required to be generated are in personalized configuration of the tenant, determining attribute values of the fields, determining whether the attribute values of the fields in the credentials required to be generated are consistent with attribute values covered by the configuration fields in the selected control condition, if so, covering the fields in the personalized configuration of the tenant on the basis of the field IDs covered in the selected control condition by the corresponding fields in the configuration group, if not, not covering the corresponding fields in the configuration group, and generating the configuration file based on the configuration group after all the fields of the credentials required to be generated are processed;
the method comprises the steps of forming three layers of configuration, wherein the uppermost layer is user-defined configuration, the middle layer is a configuration group set according to industry characteristics and scale characteristics, and the lower layer is the basic configuration of the platform.
2. The method of claim 1, further comprising the operation of modifying the configuration file:
confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record.
3. The method of claim 2, further comprising the operation of deleting a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
4. The method of claim 3, wherein, when the tenant generates the credential, business meaning of the document field is identified by the document model, and then a corresponding credential is generated based on the configuration file, wherein,
when the corresponding certificate is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the certificate; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched field, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined field.
5. The method of claim 4, wherein the document model is a trained artificial neural network model.
6. A profile generation apparatus at the time of credential generation, the apparatus comprising:
a user definition unit, when a tenant builds a credential generation function on a multi-tenant service cloud platform, the tenant defines personalized configuration of the tenant based on the basic configuration of the credential of the multi-tenant service cloud platform;
a configuration group association unit for generating a plurality of configuration groups according to the fields of the certificate based on the basic configuration of the certificate, wherein each configuration group is provided with a unique configuration group ID, each configuration group is used under different certificate generation conditions, a configuration group table is constructed for recording the control conditions of the configuration groups under different certificate generation conditions, and the control conditions comprise: configuring an attribute value of field coverage and a field ID of the coverage;
a configuration file generating unit, configured to construct the credential generating conditions according to the fields and formats of the credentials required to be generated by the tenant, select a control condition from the configuration group table based on the credential generating conditions, determine at least one configuration group ID based on the control condition, detect whether the fields in the credentials required to be generated are in personalized configuration of the tenant, determine attribute values of the fields, determine whether the attribute values of the fields in the credentials required to be generated are consistent with attribute values covered by the configuration fields in the selected control condition, if so, cover the fields in the personalized configuration of the tenant on the basis of the field IDs covered in the selected control condition, if not cover the corresponding fields in the configuration group, and generate the configuration file based on the configuration group after all the fields in the credentials required to be generated are processed;
the method comprises the steps of forming three layers of configuration, wherein the uppermost layer is user-defined configuration, the middle layer is a configuration group set according to industry characteristics and scale characteristics, and the lower layer is the basic configuration of the platform.
7. The apparatus of claim 6, wherein the apparatus further comprises an operation to modify the configuration file:
confirming the position level of the modified configuration in the configuration file based on the modified field, and marking the configuration data corresponding to the configuration data before modification as a soft deletion state; and constructing new configuration data to replace the original configuration data based on the position hierarchy, searching the upper-level configuration of the modified configuration from the configuration file based on the position hierarchy, and then updating the attribute values covered by the configuration fields of the upper-level configuration record.
8. The apparatus of claim 7, further comprising the operation of deleting a configuration of the configuration file: and confirming the position hierarchy of the configuration to be deleted in the configuration file, checking whether the upper hierarchy configuration using the configuration exists, if not, directly marking the configuration as a soft deletion state, and if so, returning alarm information.
9. The apparatus of claim 8, wherein when the tenant generates the credential, business meaning of the document field is identified by the document model, and then a corresponding credential is generated based on the configuration file, wherein,
when the corresponding certificate is generated based on the configuration file, if the corresponding field cannot be found in the configuration file according to the business meaning of the document field, the document field is generated in the last column of the certificate; if more than two corresponding fields are found in the configuration file according to the business meaning of the bill field, the bill field is used for carrying out accurate matching with the more than two corresponding fields, if one of the more than two corresponding fields can be matched, the certificate is generated based on the matched field, if none of the two corresponding fields can be accurately matched, the matching degree of the bill field and the more than two corresponding fields is calculated, one of the more than two corresponding fields is determined based on the matching degree, and then the certificate is generated based on the determined field.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the method according to any of claims 1-5.
CN202311193839.7A 2023-09-15 2023-09-15 Configuration file generation method and device during credential generation and storage medium Active CN116932091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311193839.7A CN116932091B (en) 2023-09-15 2023-09-15 Configuration file generation method and device during credential generation and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311193839.7A CN116932091B (en) 2023-09-15 2023-09-15 Configuration file generation method and device during credential generation and storage medium

Publications (2)

Publication Number Publication Date
CN116932091A CN116932091A (en) 2023-10-24
CN116932091B true CN116932091B (en) 2023-12-26

Family

ID=88394419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311193839.7A Active CN116932091B (en) 2023-09-15 2023-09-15 Configuration file generation method and device during credential generation and storage medium

Country Status (1)

Country Link
CN (1) CN116932091B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503163A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 Based on the global configuration multi-tenant dynamic data origin system that SaaS is applied
CN108833133A (en) * 2018-04-27 2018-11-16 广州西麦科技股份有限公司 Network configuration management method, apparatus and storage medium based on system for cloud computing
CN109408067A (en) * 2018-10-22 2019-03-01 浙江明度智控科技有限公司 A kind of data managing method and server based on monomer applications
CN111523298A (en) * 2020-04-21 2020-08-11 北京易点淘网络技术有限公司 Generation method and device of accounting voucher
WO2021017694A1 (en) * 2019-07-31 2021-02-04 苏宁云计算有限公司 Method and device for generating accounting document based on sap system
WO2021218328A1 (en) * 2020-04-28 2021-11-04 深圳壹账通智能科技有限公司 Multi-tenant access service implementation method, apparatus and device, and storage medium
CN114443171A (en) * 2022-01-29 2022-05-06 中国建设银行股份有限公司 Configurable service platform and configurable service implementation method
CN114742630A (en) * 2022-03-11 2022-07-12 北京元年科技股份有限公司 Method for processing business documents and corresponding system, equipment and medium
CN116707849A (en) * 2022-02-25 2023-09-05 华为云计算技术有限公司 Cloud service access authority setting method and cloud management platform for enclave instance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8869099B2 (en) * 2008-07-28 2014-10-21 Infosys Limited System and method of enabling multi-tenancy for software as a service application
US9323634B2 (en) * 2011-07-26 2016-04-26 Salesforce.Com, Inc. Generating a configuration file based upon an application registry

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503163A (en) * 2016-10-31 2017-03-15 用友网络科技股份有限公司 Based on the global configuration multi-tenant dynamic data origin system that SaaS is applied
CN108833133A (en) * 2018-04-27 2018-11-16 广州西麦科技股份有限公司 Network configuration management method, apparatus and storage medium based on system for cloud computing
CN109408067A (en) * 2018-10-22 2019-03-01 浙江明度智控科技有限公司 A kind of data managing method and server based on monomer applications
WO2021017694A1 (en) * 2019-07-31 2021-02-04 苏宁云计算有限公司 Method and device for generating accounting document based on sap system
CN111523298A (en) * 2020-04-21 2020-08-11 北京易点淘网络技术有限公司 Generation method and device of accounting voucher
WO2021218328A1 (en) * 2020-04-28 2021-11-04 深圳壹账通智能科技有限公司 Multi-tenant access service implementation method, apparatus and device, and storage medium
CN114443171A (en) * 2022-01-29 2022-05-06 中国建设银行股份有限公司 Configurable service platform and configurable service implementation method
CN116707849A (en) * 2022-02-25 2023-09-05 华为云计算技术有限公司 Cloud service access authority setting method and cloud management platform for enclave instance
CN114742630A (en) * 2022-03-11 2022-07-12 北京元年科技股份有限公司 Method for processing business documents and corresponding system, equipment and medium

Also Published As

Publication number Publication date
CN116932091A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US8718367B1 (en) Displaying automatically recognized text in proximity to a source image to assist comparibility
CN103927615B (en) Entity is associated with classification
CA3009685C (en) Automatic generation and population of digital interfaces based on adaptively processed image data
CN104765745B (en) Loading data in database are carried out with the method and system of logic checking
CN100413310C (en) Managing device and control method, print processing system, program and recording medium
US20210035089A1 (en) Tiered access to documents in a digital wallet
US20200202302A1 (en) Classifying and routing enterprise incident tickets
CN108959515A (en) Original data guard method, medium, device and calculating equipment
CN116128458B (en) Intelligent automatic auditing system for hospital expense card account reporting
CN108416684A (en) A kind of credibility appraisal procedure, device and the server of account main body
JP2022125220A (en) Image processing apparatus, image processing method, and program
CN116932091B (en) Configuration file generation method and device during credential generation and storage medium
CN111045660B (en) Method, device and storage medium for checking tax declaration data on network
JP2019144978A (en) Information processing device, information processing method, and program
CN110673997B (en) Disk failure prediction method and device
US11836816B1 (en) Systems and methods for verification of property records
US20100211530A1 (en) System and method for distributing earnings
US11748344B2 (en) Account merging and migration with reduced error rates
US11977964B1 (en) Systems and methods for using a machine learning model to document inconsistencies
US11790459B1 (en) Methods and apparatuses for AI-based ledger prediction
JP2021056659A (en) Information processing device, information processing method and information processing program
US20220261841A1 (en) Systems and methods for generating incentive offer data objects
KR102529027B1 (en) System for detecting abnormal prepaid financial transaction and method of operation of the same
US20240169424A1 (en) Credit determination system, credit determination method and program
US20240095702A1 (en) User Content Generation With Receipt-Embedded Encodings

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
GR01 Patent grant
GR01 Patent grant