CN112965740B - Asset information export method and device - Google Patents

Asset information export method and device Download PDF

Info

Publication number
CN112965740B
CN112965740B CN202110179070.8A CN202110179070A CN112965740B CN 112965740 B CN112965740 B CN 112965740B CN 202110179070 A CN202110179070 A CN 202110179070A CN 112965740 B CN112965740 B CN 112965740B
Authority
CN
China
Prior art keywords
export
information
file
configuration
configuration file
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
CN202110179070.8A
Other languages
Chinese (zh)
Other versions
CN112965740A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110179070.8A priority Critical patent/CN112965740B/en
Publication of CN112965740A publication Critical patent/CN112965740A/en
Application granted granted Critical
Publication of CN112965740B publication Critical patent/CN112965740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for exporting asset information, which can be used in the financial field or other technical fields. The method comprises the following steps: receiving an asset information export request sent by a client terminal; obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; inquiring to obtain information corresponding to each derived field according to the asset type, the inquiry information, each derived field and the corresponding inquiry analysis information; obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field; and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file. The device is used for executing the method. The method and the device for exporting the asset information improve the efficiency of exporting the asset information.

Description

Asset information export method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for exporting asset information.
Background
With the development of computer technology, application programs are more and more frequently developed and updated. More and more objects are managed in the application program, the export requirement is more and more flexible and diversified, and the asset export requirement adjustment changes more and more frequently.
In the prior art, an application program independently develops a export function according to specific requirements, the lead-out period of the export function is long, the change of the requirements cannot be responded quickly, the export function needs to be redeveloped every time the requirements are adjusted, and then the version is reissued. In addition, the availability and stability of the derived functions developed by different developers are large, and the code maintenance cost is high.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for exporting asset information, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a method for exporting asset information, including:
receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier;
obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset;
according to the asset type, the query information and each derived field included in the first configuration file and the query analysis information corresponding to each derived field included in the second configuration file, obtaining information corresponding to each derived field in a query manner;
obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field;
and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
In another aspect, the present invention provides an apparatus for deriving asset information, comprising:
a first receiving unit, configured to receive an asset information export request sent by a client terminal, where the asset information export request includes an asset type and a menu identifier;
the obtaining unit is used for obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset;
the query unit is used for obtaining information corresponding to each export field in a query mode according to the asset type, the query information and each export field included in the first configuration file and the query analysis information corresponding to each export field included in the second configuration file;
the parsing unit is used for obtaining corresponding parsing rules from the second configuration file according to each derived field, and parsing information corresponding to each derived field according to the parsing rules corresponding to each derived field to obtain output data corresponding to each derived field;
and the writing unit is used for writing the output data corresponding to each export field into the export file according to the export file configuration information in the second configuration file.
In yet another aspect, the present invention provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for deriving asset information described in any of the embodiments above when the program is executed.
In yet another aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for deriving asset information described in any of the above embodiments.
According to the method and the device for exporting the asset information, which are provided by the embodiment of the invention, the asset information export request sent by the client terminal can be received, the first configuration file and the second configuration file are obtained according to the asset type and the menu identification, the asset information export fields are obtained according to the asset type and the query information contained in the first configuration file, and the query analysis information corresponding to each export field is contained in each second configuration file, so that the information corresponding to each export field is obtained according to each export field, the analysis rule corresponding to each export field is obtained according to each export field, the output data corresponding to each export field is obtained according to the analysis rule corresponding to each export field, the output data corresponding to each export field is written into the export file according to the export file configuration information in the second configuration file, the export of the asset information is realized through the first configuration file and the second configuration file, the export function is not required to be developed for different projects, and the efficiency of the asset information export is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a flowchart of a method for deriving asset information according to an embodiment of the present invention.
Fig. 2 is a flow chart of a method for deriving asset information according to another embodiment of the present invention.
Fig. 3 is a flowchart of a method for deriving asset information according to another embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an apparatus for deriving asset information according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an apparatus for deriving asset information according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an apparatus for deriving asset information according to still another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an apparatus for deriving asset information according to still another embodiment of the present invention.
Fig. 8 is a schematic physical structure of an electronic device according to an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be arbitrarily combined with each other.
In order to facilitate understanding of the technical solutions provided in the present application, the following description will first explain relevant content of the technical solutions of the present application. According to the method for exporting the asset information, disclosed by the embodiment of the invention, the export function is not required to be independently developed for different projects, corresponding configuration files and data analysis rules are set for different requirement changes, so that the export of the asset information can be realized, the requirement-export change can be flexibly adapted, and the response speed of the requirement-export-adapted change can be effectively improved. Asset information is derived through the configuration file and the data analysis rule, development of a derivation function is not required to be repeated, and workload of development and testing can be reduced. In addition, the code maintenance and upgrading can be facilitated.
Fig. 1 is a flowchart of a method for deriving asset information according to an embodiment of the present invention, where, as shown in fig. 1, the method for deriving asset information according to the embodiment of the present invention includes:
s101, receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier;
specifically, a user may send an asset information derivation request including an asset type and a menu identification to a server through a client terminal. The server receives the asset information derivation request. The asset information may include information such as a data table, a field, a value corresponding to the field, etc., and is set according to actual needs, which is not limited by the embodiment of the present invention. The asset type is preset and set according to actual needs, and the embodiment of the invention is not limited. The menu identifier corresponds to an asset type, one asset type can correspond to a plurality of menu identifiers, the menu identifiers are set according to actual needs, and the embodiment of the invention is not limited. The client terminal includes, but is not limited to, a desktop computer, a notebook computer, a smart phone, a tablet computer, and the like. The execution subject of the method for exporting asset information provided by the embodiment of the invention comprises, but is not limited to, a server.
For example, the client terminal provides an asset type selection menu for the user to select, the user selects the asset type a desired to be derived from the asset selection menu, and then provides a data entity list menu for the user to select, where the data entity list menu may include a plurality of data entity names, and the data entity names are in one-to-one correspondence with the menu identifications. The user selects the data entity B that wants to be exported and then selects the determine virtual key to confirm that the data export is to be performed. After detecting the operation of the user for selecting and confirming, the client terminal sends an asset information export request carrying the menu identification corresponding to the asset type A and the data entity B to the server. The data entity is set according to actual needs, and the embodiment of the invention is not limited.
S102, obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset;
specifically, after obtaining the asset type and the menu identification, the server may obtain a first profile and a second profile according to the asset type and the menu identification query. The first configuration file and the second configuration file are preset. The first configuration file includes information such as asset type, menu identification, default query information for asset type, various export fields, etc. The second configuration file comprises information such as asset type, menu identification, configuration information of the export file, analysis rules of each export field and the like.
S103, inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included in the first configuration file and the inquiry analysis information corresponding to each export field included in the second configuration file;
specifically, the first profile may include asset types, query information, and various export fields. The query information may include information such as query patterns, e.g., fuzzy matches, exact matches, etc., and query sources, e.g., table queries, database queries, path queries, etc. The second configuration file includes query analysis information corresponding to each derived field, where the query analysis information may include information such as a table name, a database name, a query path, and the like. The server can assemble the query conditions according to the asset type, the query information, each field and the query information corresponding to each field, and query the information corresponding to each derived field according to the query conditions. The query information and the query analysis information are set according to actual needs, and the embodiment of the invention is not limited.
For example, the server obtains the asset type a from the first configuration file a, the query mode is exact match, the query source is table query, the derived field is C, and obtains the table 005 of the asset type a corresponding to the derived field C from the second configuration file b. The server assembles the query conditions of the asset type A, the exact match, the export field C, the table query, the table 005 of the asset type A, and the server queries the information corresponding to the export field C from the table 005 of the asset type A.
S104, obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field;
specifically, the second configuration file further includes an parsing rule corresponding to each derived field, where the parsing rule is preset and may include parsing through a data dictionary, parsing through a data table, and so on, and the server may parse information corresponding to each derived field according to the parsing rule of each derived field, to obtain output data corresponding to each derived field. The analysis rule is preset and set according to actual needs, and the embodiment of the invention is not limited.
For example, the parsing rule corresponding to the export field C is parsed by the data dictionary X, and the server translates the output data corresponding to the export field C from the data dictionary X according to the information corresponding to the export field C.
S105, according to the export file configuration information in the second configuration file, output data corresponding to each export field is written into the export file.
Specifically, after obtaining the output data corresponding to each export field, the server may write the output data corresponding to each export field into an export file according to export file configuration information in the second configuration file. The configuration information of the export file is preset and may include information such as a header, a form name, a sequence of the form, whether the export field needs to be output, etc., which is set according to actual needs, and the embodiment of the present invention is not limited. The format of the export file may be an excel format, and is set according to actual needs, which is not limited in the embodiment of the present invention. It will be appreciated that the server, after obtaining the export file, may send the export file to the client terminal for viewing by the user.
According to the method for exporting the asset information, which is provided by the embodiment of the invention, an asset information export request sent by a client terminal can be received, a first configuration file and a second configuration file are obtained according to an asset type and a menu identification, the first configuration file comprises the asset type, the query information and the query analysis information corresponding to each export field, the query information corresponding to each export field is obtained according to the query analysis information corresponding to each export field, the corresponding analysis rule is obtained from the second configuration file according to each export field, the information corresponding to each export field is analyzed according to the analysis rule corresponding to each export field, the output data corresponding to each export field is obtained, the output data corresponding to each export field is written into the export file according to the export file configuration information in the second configuration file, the export of the asset information is realized through the first configuration file and the second configuration file, the export function is not required to be developed for different projects, and the efficiency of the export of the asset information is improved.
Fig. 2 is a flowchart of a method for deriving asset information according to another embodiment of the present invention, where, as shown in fig. 2, the method for deriving asset information according to the embodiment of the present invention further includes:
s201, receiving a configuration change request sent by the client terminal, wherein the configuration change request comprises an asset type, a menu identifier and configuration change information;
specifically, the user may change the information included in the first configuration file at the client terminal, where the client terminal may receive the change of the first configuration file by the user, take the change of the first configuration file by the user as configuration change information, and then send a configuration change request to the server, where the configuration change request carries the asset type, the menu identifier and the configuration change information corresponding to the changed first configuration file. The server receives the configuration change request. Wherein the configuration change information may include a export field, query information, etc.
S202, obtaining a corresponding first configuration file according to the asset type and the menu identifier, and generating a configuration modification file corresponding to the first configuration file according to the configuration change information.
Specifically, after receiving the configuration change request, the server queries to obtain a corresponding first configuration file according to the asset type and the menu identifier included in the configuration change request, and then modifies the first configuration file according to the configuration change information to generate a configuration modification file corresponding to the first configuration file. Subsequently, when the user exports the asset information, the configuration modification file corresponding to the first configuration file can be used for exporting the asset information instead of the original first configuration file.
For example, the user modifies the first configuration file a at the client terminal, adding a new export field, which may be selected by the user from a list of export fields displayed by the client terminal. The client terminal takes the added export field as configuration change information, carries the asset type and menu identification corresponding to the first configuration file a together in a configuration change request and sends the configuration change request to the server. After receiving the configuration change request, the server queries the first configuration file a according to the asset type and the menu identifier carried in the configuration change request, and then adds the added export field into the first configuration file a to obtain a configuration modification file of the first configuration file a.
Fig. 3 is a flowchart of a method for deriving asset information according to another embodiment of the present invention, as shown in fig. 3, further, based on the foregoing embodiments, the method for deriving asset information according to the embodiment of the present invention further includes:
s301, receiving a derived file naming request sent by the client terminal, wherein the derived file naming request comprises the name of the derived file;
specifically, the user may send an export file naming request to the server through the client terminal to name the export file, where the export file naming request includes the name of the export file. The server receives the export file naming request.
For example, the user triggers naming of the exported file at the client terminal, then inputs the name of the exported file, and confirms the naming operation. The client terminal carries the name of the exported file input by the user in the exported file naming request and sends the exported file name to the server.
S302, naming the export file according to the name of the export file.
Specifically, the server obtains the name of the export file after receiving the export file naming request, and names the export file according to the name of the export file when the export file is saved after writing the output data corresponding to each export field into the export file.
On the basis of the above embodiments, the method for deriving asset information provided by the embodiment of the present invention further includes:
encrypting the exported file.
Specifically, when the server stores or transmits the export file, the export file may be encrypted, so as to avoid information leakage of the export file, thereby improving information security.
Fig. 4 is a schematic structural diagram of an apparatus for deriving asset information according to an embodiment of the present invention, and as shown in fig. 4, the apparatus for deriving asset information according to an embodiment of the present invention includes a first receiving unit 401, an obtaining unit 402, a querying unit 403, an parsing unit 404, and a writing unit 405, where:
the first receiving unit 401 is configured to receive an asset information export request sent by a client terminal, where the asset information export request includes an asset type and a menu identifier; the obtaining unit 402 is configured to obtain a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset; the query unit 403 is configured to query to obtain information corresponding to each export field according to the asset type, query information and each export field included in the first configuration file, and the second configuration file includes query analysis information corresponding to each export field; the parsing unit 404 is configured to obtain a corresponding parsing rule from the second configuration file according to each derived field, parse information corresponding to each derived field according to the parsing rule corresponding to each derived field, and obtain output data corresponding to each derived field; the writing unit 405 is configured to write output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
Specifically, the user may transmit an asset information derivation request including an asset type and a menu identification to the first receiving unit 401 through the client terminal. The first receiving unit 401 receives the asset information derivation request. The asset information may include information such as a data table, a field, a value corresponding to the field, etc., and is set according to actual needs, which is not limited by the embodiment of the present invention. The asset type is preset and set according to actual needs, and the embodiment of the invention is not limited. The menu identifier corresponds to an asset type, one asset type can correspond to a plurality of menu identifiers, the menu identifiers are set according to actual needs, and the embodiment of the invention is not limited. The client terminal includes, but is not limited to, a desktop computer, a notebook computer, a smart phone, a tablet computer, and the like.
After obtaining the asset type and the menu identification, the obtaining unit 402 may obtain a first profile and a second profile according to the asset type and the menu identification query. The first configuration file and the second configuration file are preset. The first configuration file includes information such as asset type, menu identification, default query information for asset type, various export fields, etc. The second configuration file comprises information such as asset type, menu identification, configuration information of the export file, analysis rules of each export field and the like.
The first profile may include asset types, query information, and various export fields. The query information may include information such as query patterns, e.g., fuzzy matches, exact matches, etc., and query sources, e.g., table queries, database queries, path queries, etc. The second configuration file includes query analysis information corresponding to each derived field, where the query analysis information may include information such as a table name, a database name, a query path, and the like. The query unit 403 may assemble a query condition according to the asset type, the query information, each field, and the query information corresponding to each field, and query information corresponding to each derived field according to the query condition. The query information and the query analysis information are set according to actual needs, and the embodiment of the invention is not limited.
The second configuration file further includes an parsing rule corresponding to each derived field, where the parsing rule is preset, and may include parsing through a data dictionary, parsing through a data table, and so on, and the parsing unit 404 may parse information corresponding to each derived field according to the parsing rule of each derived field, to obtain output data corresponding to each derived field. The analysis rule is preset and set according to actual needs, and the embodiment of the invention is not limited.
After obtaining the output data corresponding to each export field, the writing unit 405 may write the output data corresponding to each export field into the export file according to the export file configuration information in the second configuration file. The configuration information of the export file is preset and may include information such as a header, a form name, a sequence of the form, whether the export field needs to be output, etc., which is set according to actual needs, and the embodiment of the present invention is not limited. The format of the export file may be an excel format, and is set according to actual needs, which is not limited in the embodiment of the present invention.
The device for exporting the asset information provided by the embodiment of the invention can receive the asset information export request sent by the client terminal, obtain the first configuration file and the second configuration file according to the asset type and the menu identification, obtain the information corresponding to each export field according to the asset type, the query information and the query analysis information corresponding to each export field included in the first configuration file and the second configuration file, obtain the corresponding information of each export field according to the query analysis rule obtained from the second configuration file according to each export field, analyze the information corresponding to each export field according to the analysis rule corresponding to each export field, obtain the output data corresponding to each export field, write the output data corresponding to each export field into the export file according to the export file configuration information in the second configuration file, realize the export of the asset information through the first configuration file and the second configuration file, and improve the efficiency of the export of the asset information without developing export functions for different projects.
Fig. 5 is a schematic structural diagram of an apparatus for deriving asset information according to another embodiment of the present invention, as shown in fig. 5, further, based on the foregoing embodiments, the apparatus for deriving asset information according to the embodiment of the present invention further includes a second receiving unit 406 and a generating unit 407, where:
the second receiving unit 406 is configured to receive a configuration change request sent by the client terminal, where the configuration change request includes an asset type, a menu identifier, and configuration change information; the generating unit 407 is configured to obtain a corresponding first configuration file according to the asset type and the menu identifier, and generate a configuration modification file corresponding to the first configuration file according to the configuration modification information.
Specifically, the user may change the information included in the first configuration file at the client terminal, where the client terminal may receive the change of the first configuration file by the user, take the change of the first configuration file by the user as configuration change information, and then send a configuration change request to the second receiving unit 406, where the configuration change request carries the asset type, the menu identifier and the configuration change information corresponding to the changed first configuration file. The second receiving unit 406 receives the configuration change request. Wherein the configuration change information may include a export field, query information, etc.
Fig. 6 is a schematic structural diagram of an apparatus for deriving asset information according to another embodiment of the present invention, as shown in fig. 6, further, based on the foregoing embodiments, the apparatus for deriving asset information according to the embodiment of the present invention further includes a third receiving unit 408 and a naming unit 409, where:
the third receiving unit 408 is configured to receive an export file naming request sent by the client terminal, where the export file naming request includes a name of the export file; the naming unit 409 is used for naming the export file according to its name.
Specifically, the user may send an export file naming request to the third receiving unit 408 through the client terminal to name the export file, the export file naming request including the name of the export file. The third receiving unit 408 receives the export file naming request.
After receiving the export file naming request, the naming unit 409 obtains the name of the export file, and after writing the output data corresponding to each export field into the export file, names the export file according to the name of the export file when the export file is saved.
Fig. 7 is a schematic structural diagram of an apparatus for deriving asset information according to still another embodiment of the present invention, as shown in fig. 7, further, on the basis of the foregoing embodiments, the apparatus for deriving asset information according to the embodiment of the present invention further includes an encryption unit 410, where:
the encryption unit 410 is configured to encrypt the export file.
Specifically, when the export file is stored or transmitted, the encryption unit 410 may encrypt the export file, so as to avoid information leakage of the export file, thereby improving information security.
The embodiment of the server provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the method embodiments.
It should be noted that, the method and the device for deriving asset information provided by the embodiment of the invention can be used in the financial field, and also can be used in any technical field except the financial field.
Fig. 8 is a schematic physical structure of an electronic device according to an embodiment of the present invention, as shown in fig. 8, the electronic device may include: a processor 801, a communication interface (Communications Interface) 802, a memory 803, and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform the following method: receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier; obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset; according to the asset type, the query information and each derived field included in the first configuration file and the query analysis information corresponding to each derived field included in the second configuration file, obtaining information corresponding to each derived field in a query manner; obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field; and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
Further, the logic instructions in the memory 803 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier; obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset; according to the asset type, the query information and each derived field included in the first configuration file and the query analysis information corresponding to each derived field included in the second configuration file, obtaining information corresponding to each derived field in a query manner; obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field; and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
The present embodiment provides a computer-readable storage medium storing a computer program that causes the computer to execute the methods provided by the above-described method embodiments, for example, including: receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier; obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset; according to the asset type, the query information and each derived field included in the first configuration file and the query analysis information corresponding to each derived field included in the second configuration file, obtaining information corresponding to each derived field in a query manner; obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field; and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description of the present specification, reference to the terms "one embodiment," "one particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A method of deriving asset information, comprising:
receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identifier;
obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset;
according to the asset type, the query information and each derived field included in the first configuration file and the query analysis information corresponding to each derived field included in the second configuration file, obtaining information corresponding to each derived field in a query manner;
obtaining corresponding analysis rules from the second configuration file according to each derived field, and analyzing information corresponding to each derived field according to the analysis rules corresponding to each derived field to obtain output data corresponding to each derived field;
and writing output data corresponding to each export field into an export file according to export file configuration information in the second configuration file.
2. The method as recited in claim 1, further comprising:
receiving a configuration change request sent by the client terminal, wherein the configuration change request comprises an asset type, a menu identifier and configuration change information;
and obtaining a corresponding first configuration file according to the asset type and the menu identifier, and generating a configuration modification file corresponding to the first configuration file according to the configuration change information.
3. The method as recited in claim 1, further comprising:
receiving an export file naming request sent by the client terminal, wherein the export file naming request comprises the name of the export file;
and naming the export file according to the name of the export file.
4. A method according to any one of claims 1 to 3, further comprising:
encrypting the exported file.
5. An apparatus for deriving asset information, comprising:
a first receiving unit, configured to receive an asset information export request sent by a client terminal, where the asset information export request includes an asset type and a menu identifier;
the obtaining unit is used for obtaining a first configuration file and a second configuration file according to the asset type and the menu identifier; wherein the first configuration file and the second configuration file are preset;
the query unit is used for obtaining information corresponding to each export field in a query mode according to the asset type, the query information and each export field included in the first configuration file and the query analysis information corresponding to each export field included in the second configuration file;
the parsing unit is used for obtaining corresponding parsing rules from the second configuration file according to each derived field, and parsing information corresponding to each derived field according to the parsing rules corresponding to each derived field to obtain output data corresponding to each derived field;
and the writing unit is used for writing the output data corresponding to each export field into the export file according to the export file configuration information in the second configuration file.
6. The apparatus as recited in claim 5, further comprising:
a second receiving unit, configured to receive a configuration change request sent by the client terminal, where the configuration change request includes an asset type, a menu identifier, and configuration change information;
and the generating unit is used for obtaining a corresponding first configuration file according to the asset type and the menu identifier, and generating a configuration modification file corresponding to the first configuration file according to the configuration change information.
7. The apparatus as recited in claim 5, further comprising:
a third receiving unit, configured to receive a derived file naming request sent by the client terminal, where the derived file naming request includes a name of the derived file;
and the naming unit is used for naming the export file according to the name of the export file.
8. The apparatus according to any one of claims 5 to 7, further comprising:
and the encryption unit is used for encrypting the exported file.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 4 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 according to any one of claims 1 to 4.
CN202110179070.8A 2021-02-08 2021-02-08 Asset information export method and device Active CN112965740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179070.8A CN112965740B (en) 2021-02-08 2021-02-08 Asset information export method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179070.8A CN112965740B (en) 2021-02-08 2021-02-08 Asset information export method and device

Publications (2)

Publication Number Publication Date
CN112965740A CN112965740A (en) 2021-06-15
CN112965740B true CN112965740B (en) 2024-02-09

Family

ID=76284561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110179070.8A Active CN112965740B (en) 2021-02-08 2021-02-08 Asset information export method and device

Country Status (1)

Country Link
CN (1) CN112965740B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492138A (en) * 2018-10-22 2019-03-19 中国银行股份有限公司 A kind of data query processing method and system
CN110795387A (en) * 2019-09-26 2020-02-14 广州市玄武无线科技股份有限公司 Data import method, data export device and data processing system
CN111339041A (en) * 2020-03-10 2020-06-26 中国建设银行股份有限公司 File parsing and warehousing and file generating method and device
CN111400387A (en) * 2020-03-18 2020-07-10 浩云科技股份有限公司 Conversion method and device for import and export data, terminal equipment and storage medium
CN112037074A (en) * 2020-09-11 2020-12-04 中国银行股份有限公司 Visualization-based data file analysis method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492138A (en) * 2018-10-22 2019-03-19 中国银行股份有限公司 A kind of data query processing method and system
CN110795387A (en) * 2019-09-26 2020-02-14 广州市玄武无线科技股份有限公司 Data import method, data export device and data processing system
CN111339041A (en) * 2020-03-10 2020-06-26 中国建设银行股份有限公司 File parsing and warehousing and file generating method and device
CN111400387A (en) * 2020-03-18 2020-07-10 浩云科技股份有限公司 Conversion method and device for import and export data, terminal equipment and storage medium
CN112037074A (en) * 2020-09-11 2020-12-04 中国银行股份有限公司 Visualization-based data file analysis method and device

Also Published As

Publication number Publication date
CN112965740A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN111241559A (en) Training model protection method, device, system, equipment and computer storage medium
CN111680477A (en) Method and device for exporting spreadsheet file, computer equipment and storage medium
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN107844488B (en) Data query method and device
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN110334103B (en) Recommendation service updating method, providing device, access device and recommendation system
CN114390044B (en) File uploading method, system, equipment and storage medium
CN111984259A (en) Interface creating method, device, equipment and storage medium
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
CN106528066B (en) Business process operation method and device
CN112363997B (en) Data version management method, device and storage medium
CN113626863A (en) Data processing method and device
CN112965740B (en) Asset information export method and device
CN108667647B (en) Method and device for setting device parameters and server
CN109040089B (en) Network policy auditing method, equipment and computer readable storage medium
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN115589316A (en) Data encryption transmission method and device, electronic equipment and storage medium
CN113364821B (en) Function service access method, equipment and storage medium
CN113495723A (en) Method and device for calling functional component and storage medium
CN113536767A (en) Data processing method, device, equipment, medium and computer program product
CN113326506B (en) Applet monitoring method and device
CN109933573B (en) Database service updating method, device and system
CN116560641A (en) Automatic interface generation method, device, equipment and storage medium
CN116931997A (en) Parameter processing method and device

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