CN112965740A - Method and device for exporting asset information - Google Patents

Method and device for exporting asset information Download PDF

Info

Publication number
CN112965740A
CN112965740A CN202110179070.8A CN202110179070A CN112965740A CN 112965740 A CN112965740 A CN 112965740A CN 202110179070 A CN202110179070 A CN 202110179070A CN 112965740 A CN112965740 A CN 112965740A
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.)
Granted
Application number
CN202110179070.8A
Other languages
Chinese (zh)
Other versions
CN112965740B (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

Images

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 an asset information exporting method and device, 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; acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; 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; acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field; and writing the output data corresponding to each export field into an export file according to the 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

Method and device for exporting asset information
Technical Field
The invention relates to the technical field of computers, in particular to an asset information exporting method and device.
Background
With the development of computer technology, the development and update of application programs are more and more frequent. More and more objects are managed in the application program, the exporting requirements are more and more flexible and various, and the adjusting and changing of the asset exporting requirements are more and more frequent.
In the prior art, the export function is developed by an application program 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 re-developed for adjusting the requirements each time, and then the version is released. In addition, the export function developed by different developers has large difference in usability and stability, and the code maintenance cost is high.
Disclosure of Invention
For solving the problems in the prior art, embodiments of the present invention provide a method and an apparatus 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 identification;
acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset;
inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file;
acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field;
and writing the output data corresponding to each export field into an export file according to the export file configuration information in the second configuration file.
In another aspect, the present invention provides an apparatus for deriving asset information, including:
the system comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving an asset information exporting request sent by a client terminal, and the asset information exporting request comprises an asset type and a menu identification;
the obtaining unit is used for obtaining a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset;
the query unit is used for querying and obtaining information corresponding to each export field according to the asset type, the query information and each export field included by the first configuration file and the query analysis information corresponding to each export field included by the second configuration file;
the analysis unit is used for acquiring a corresponding analysis rule from the second configuration file according to each export field, analyzing information corresponding to each export field according to the analysis rule corresponding to each export field, and acquiring output data corresponding to each export 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 in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for deriving asset information according to any of the above embodiments.
In yet another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for deriving asset information according to any one of the above embodiments.
The method and the device for exporting asset information provided by the embodiment of the invention can receive an asset information export request sent by a client terminal, obtain a first configuration file and a second configuration file according to an asset type and a menu identifier, obtain information corresponding to each export field by querying according to the asset type, query information and query analysis information corresponding to each export field included in the first configuration file and the second configuration file, obtain information corresponding to each export field by querying, obtain corresponding analysis rules from the second configuration file according to each export field, analyze the information corresponding to each export field according to the analysis rules corresponding to each export field, obtain 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, and realize the export of the asset information through the first configuration file and the second configuration file, and the export function does not need to be developed for different projects, so that the asset information export efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating an asset information export method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an asset information export method according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating an asset information export method 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 asset information derivation apparatus according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an asset information derivation apparatus according to yet another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an asset information derivation apparatus according to still another embodiment of the present invention.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. According to the method for exporting the asset information, which is provided by the embodiment of the invention, the export function does not need to be developed independently for different projects, and the corresponding configuration file and the data analysis rule are set aiming at the change of different requirements, so that the export of the asset information can be realized, the change of the export requirement can be flexibly adapted, and the response speed of adapting to the change of the requirement can be effectively improved. Asset information is exported through the configuration file and the data analysis rule, development of export functions is not required to be repeatedly carried out, and workload of development and testing can be reduced. In addition, the code maintenance and upgrading can be facilitated.
Fig. 1 is a schematic flowchart of a method for deriving asset information according to an embodiment of the present invention, and as shown in fig. 1, the method for deriving asset information according to an 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 identification;
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 may receive the asset information derivation request. The asset information may include information such as a data table, a field, and a value corresponding to the field, and is set according to actual needs, which is not limited in the embodiments of the present invention. The asset type is preset and is set according to actual needs, and the embodiment of the invention is not limited. The menu identification corresponds to an asset type, one asset type may correspond to a plurality of menu identifications, and the menu identifications are set according to actual needs. 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 the asset information provided by the embodiment of the invention includes 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 an 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, 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 identifiers. The user selects the data entity B that wants to be exported and then selects the decision virtual key to confirm the data export. After detecting the operation of selection confirmation of the user, 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, acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset;
specifically, after obtaining the asset type and the menu identifier, the server may obtain a first configuration file and a second configuration file according to the asset type and the menu identifier. Wherein the first and second profiles are preset. The first configuration file comprises information such as asset types, menu identifications, default query information of the asset types, various export fields and the like. The second configuration file comprises information such as asset types, menu identifications, configuration information of export files, analysis rules of various export fields 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 by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file;
in particular, the first profile may include asset types, query information, and various export fields. The query information may include information such as a query manner, e.g., fuzzy matching, exact matching, etc., and a query source, e.g., table query, database query, path query, etc. The second configuration file includes query resolution information corresponding to each export field, and the query resolution information may include information such as a table name, a database name, and a query path. The server can assemble the query condition 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 condition. 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 matching, the query source is table query, the export field is C, and the query resolution information corresponding to the export field C is obtained from the second configuration file b as the table 005 of the asset type a. The server assembles a table 005 with query conditions of asset type A, accurate matching, derived field C, table query and asset type A, and the server queries information corresponding to the derived field C from the table 005 of asset type A.
S104, acquiring a corresponding analysis rule from the second configuration file according to each export field, analyzing information corresponding to each export field according to the analysis rule corresponding to each export field, and acquiring output data corresponding to each export field;
specifically, the second configuration file further includes an analysis rule corresponding to each export field, where the analysis rule is preset and may include analysis through a data dictionary, analysis through a data table, and the like, and the server may analyze information corresponding to each export field according to the analysis rule of each export field to obtain output data corresponding to each export field. The analysis rule is preset and is set according to actual needs, and the embodiment of the invention is not limited.
For example, the parsing rule corresponding to the derived field C is parsing through the data dictionary X, and the server translates the output data corresponding to the derived field C from the data dictionary X according to the information corresponding to the derived field C.
And S105, 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.
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 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 export fields need to be output, and the like, and is set according to actual needs. The format of the export file may be an excel format, and the export file is set according to actual needs, which is not limited in the embodiment of the present invention. It will be appreciated that after obtaining an export file, the server may send the export file to the client terminal for viewing by a user.
The method for exporting asset information provided by the embodiment of the invention can receive an asset information export request sent by a client terminal, obtain a first configuration file and a second configuration file according to an asset type and a menu identifier, obtain information corresponding to each export field by querying according to the asset type, query information and query parsing information corresponding to each export field included by the first configuration file and the second configuration file, obtain output data corresponding to each export field by querying according to the query parsing information corresponding to each export field and parsing the information corresponding to each export field according to the parsing rule 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, and realize the export of the asset information through the first configuration file and the second configuration file, and the export function does not need to be developed for different projects, so that the asset information export efficiency is improved.
Fig. 2 is a schematic flowchart of a method for deriving asset information according to another embodiment of the present invention, and 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, a user may change information included in the first configuration file at the client terminal, and the client terminal may receive a change of the first configuration file by the user, use 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 an asset type, a 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 derived field, query information, and the like.
S202, obtaining a corresponding first configuration file according to the asset type and the menu identification, 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 and obtains 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 user can use the configuration modification file corresponding to the first configuration file to replace the original first configuration file to export the asset information.
For example, the user modifies the first profile a at the client terminal, adding a new export field, which may be selected by the user from a list of export fields displayed at the client terminal. And the client terminal takes the added export field as configuration change information, carries the configuration change information together with the asset type and the menu identification corresponding to the first configuration file a in a configuration change request and sends the configuration change request to the server. After receiving the configuration change request, the server queries a first configuration file a according to the asset type and the menu identification carried in the configuration change request, and then adds the added export field to the first configuration file a to obtain a configuration change file of the first configuration file a.
Fig. 3 is a schematic flowchart of a method for deriving asset information according to another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, the method for deriving asset information according to the embodiment of the present invention further includes:
s301, receiving a file exporting naming request sent by the client terminal, wherein the file exporting naming request comprises the name of the file to be exported;
specifically, a user may send an export file naming request to the server via a client terminal to name an export file, the export file naming request including a name of the export file. The server receives the export file naming request.
For example, the user triggers the naming of the exported file at the client terminal, then enters 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 naming request to the server.
S302, naming the export file according to the name of the export file.
Specifically, after receiving the export file naming request, the server 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 with the name of the export file when saving the export file.
On the basis of the foregoing embodiments, further, the method for exporting asset information according to the embodiments of the present invention further includes:
encrypting the export file.
Specifically, when the server stores or sends the export file, the export file can be encrypted, so that information leakage of the export file is avoided, and the information security is improved.
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, a parsing unit 404, and a writing unit 405, where:
the first receiving unit 401 is configured to receive an asset information derivation request sent by a client terminal, where the asset information derivation 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, the query information, and each export field included in the first configuration file, and the query parsing information corresponding to each export field included in the second configuration file; the parsing unit 404 is configured to obtain a corresponding parsing rule from the second configuration file according to each export field, and parse information corresponding to each export field according to the parsing rule corresponding to each export field to obtain output data corresponding to each export field; the writing unit 405 is configured to 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.
Specifically, the user may send 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, and a value corresponding to the field, and is set according to actual needs, which is not limited in the embodiments of the present invention. The asset type is preset and is set according to actual needs, and the embodiment of the invention is not limited. The menu identification corresponds to an asset type, one asset type may correspond to a plurality of menu identifications, and the menu identifications are set according to actual needs. 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, obtaining unit 402 may obtain a first profile and a second profile according to the asset type and the menu identification query. Wherein the first and second profiles are preset. The first configuration file comprises information such as asset types, menu identifications, default query information of the asset types, various export fields and the like. The second configuration file comprises information such as asset types, menu identifications, configuration information of export files, analysis rules of various export fields and the like.
The first profile may include asset types, query information, and various export fields. The query information may include information such as a query manner, e.g., fuzzy matching, exact matching, etc., and a query source, e.g., table query, database query, path query, etc. The second configuration file includes query resolution information corresponding to each export field, and the query resolution information may include information such as a table name, a database name, and a query path. 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 the 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 analysis rule corresponding to each export field, where the analysis rule is preset and may include analysis through a data dictionary, analysis through a data table, and the like, and the analysis unit 404 may analyze information corresponding to each export field according to the analysis rule of each export field to obtain output data corresponding to each export field. The analysis rule is preset and is set according to actual needs, and the embodiment of the invention is not limited.
After obtaining the output data corresponding to each export field, writing unit 405 may write the output data corresponding to each export field into an 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 export fields need to be output, and the like, and is set according to actual needs. The format of the export file may be an excel format, and the export file is set according to actual needs, which is not limited in the embodiment of the present invention.
The asset information export device provided by the embodiment of the invention can receive an asset information export request sent by a client terminal, obtain a first configuration file and a second configuration file according to an asset type and a menu identifier, obtain information corresponding to each export field by querying according to the asset type, query information and query analysis information corresponding to each export field included by the first configuration file and the query analysis information corresponding to each export field included by the second configuration file, obtain corresponding analysis rules from the second configuration file according to each export field, analyze the information corresponding to each export field according to the analysis rules corresponding to each export field, obtain 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, and realize the export of asset information through the first configuration file and the second configuration file, and the export function does not need to be developed for different projects, so that the asset information export efficiency is improved.
Fig. 5 is a schematic structural diagram of an apparatus for deriving asset information according to another embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further, the apparatus for deriving asset information according to an 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 change information.
Specifically, the user may change information included in the first configuration file at the client terminal, and the client terminal may receive the change of the first configuration file by the user, use 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 an asset type, a 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 derived field, query information, and the like.
Fig. 6 is a schematic structural diagram of an apparatus for deriving asset information according to yet another embodiment of the present invention, and as shown in fig. 6, on the basis of the foregoing embodiments, further, the apparatus for deriving asset information according to an 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 configured to name the export file according to the name of the export file.
In particular, the user may send an export file naming request to the third receiving unit 408 via 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 names the export file with the name of the export file when saving the export file after writing the output data corresponding to each export field into the export file.
Fig. 7 is a schematic structural diagram of an apparatus for deriving asset information according to still another embodiment of the present invention, and as shown in fig. 7, on the basis of the foregoing embodiments, further, the apparatus for deriving asset information according to an embodiment of the present invention further includes an encryption unit 410, where:
the encryption unit 410 is used to encrypt the export file.
Specifically, when the export file is stored or sent, the encryption unit 410 may encrypt the export file, so as to avoid information leakage of the export file, so as to improve information security.
The embodiment of the server provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the embodiment are not described herein again, and refer to the detailed description of the above method embodiments.
It should be noted that the method and apparatus for exporting asset information provided by the embodiment of the present invention may be used in the financial field, and may also be used in any technical field other than the financial field.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a communication bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication 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 identification; acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset; inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file; acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field; and writing the output data corresponding to each export field into an export file according to the export file configuration information in the second configuration file.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and 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, enable the computer to perform the method provided by the above-mentioned 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 identification; acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset; inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file; acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field; and writing the output data corresponding to each export field into an export file according to the export file configuration information in the second configuration file.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: receiving an asset information export request sent by a client terminal, wherein the asset information export request comprises an asset type and a menu identification; acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset; inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file; acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field; and writing the output data corresponding to each export field into an export file according to the export file configuration information in the second configuration file.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 herein, reference to the description of the terms "one embodiment," "a 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, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for 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 identification;
acquiring a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset;
inquiring to obtain information corresponding to each export field according to the asset type, the inquiry information and each export field included by the first configuration file and the inquiry analysis information corresponding to each export field included by the second configuration file;
acquiring a corresponding analysis rule from the second configuration file according to each export field, and analyzing information corresponding to each export field according to the analysis rule corresponding to each export field to acquire output data corresponding to each export field;
and writing the output data corresponding to each export field into an export file according to the export file configuration information in the second configuration file.
2. The method of 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 identification and configuration change information;
and acquiring a corresponding first configuration file according to the asset type and the menu identification, and generating a configuration modification file corresponding to the first configuration file according to the configuration modification information.
3. The method of 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;
naming the export file according to the name of the export file.
4. The method of any of claims 1 to 3, further comprising:
encrypting the export file.
5. An apparatus for deriving asset information, comprising:
the system comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving an asset information exporting request sent by a client terminal, and the asset information exporting request comprises an asset type and a menu identification;
the obtaining unit is used for obtaining a first configuration file and a second configuration file according to the asset type and the menu identification; wherein the first configuration file and the second configuration file are preset;
the query unit is used for querying and obtaining information corresponding to each export field according to the asset type, the query information and each export field included by the first configuration file and the query analysis information corresponding to each export field included by the second configuration file;
the analysis unit is used for acquiring a corresponding analysis rule from the second configuration file according to each export field, analyzing information corresponding to each export field according to the analysis rule corresponding to each export field, and acquiring output data corresponding to each export 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 of 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 acquiring a corresponding first configuration file according to the asset type and the menu identification and generating a configuration modification file corresponding to the first configuration file according to the configuration change information.
7. The apparatus of claim 5, further comprising:
a third receiving unit, 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;
and the naming unit is used for naming the export file according to the name of the export file.
8. The apparatus of any one of claims 5 to 7, further comprising:
and the encryption unit is used for encrypting the export 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 steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of 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 true CN112965740A (en) 2021-06-15
CN112965740B 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
CN112965740B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN111182025B (en) Message processing method, device, server and storage medium
US11171994B2 (en) Tag-based security policy creation in a distributed computing environment
CN115129716A (en) Data management method, equipment and storage medium for industrial big data
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN109753424B (en) AB test method and device
CN114390044B (en) File uploading method, system, equipment and storage medium
CN110334103B (en) Recommendation service updating method, providing device, access device and recommendation system
CN113177021B (en) Data export method and device for different data sources
CN112269915B (en) Service processing method, device, equipment 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
CN114448702B (en) Data encryption method and device based on privacy set intersection
CN112100987A (en) Transcoding method and device for multi-source data dictionary
CN113495723A (en) Method and device for calling functional component and storage medium
CN113010151A (en) Method, system, equipment and medium for traversing dynamic options in HII database
CN113536767A (en) Data processing method, device, equipment, medium and computer program product
CN112925803A (en) Data processing method and device of interface
US8229882B2 (en) System and method for business intelligence metadata exchange
CN112612797B (en) Multi-source same-table data loading method, device, equipment and medium
CN116931997A (en) Parameter processing method and device
CN116861455B (en) Event data processing method, system, electronic device and storage medium
CN109933573B (en) Database service updating method, device and system
CN111914519A (en) Target object generation method and device, electronic equipment and storage medium
CN113946457A (en) Information sharing control method and device, electronic equipment and storage medium

Legal Events

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