[go: up one dir, main page]

CN113434582B - Service data processing method and device, computer equipment and storage medium - Google Patents

Service data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113434582B
CN113434582B CN202110708159.9A CN202110708159A CN113434582B CN 113434582 B CN113434582 B CN 113434582B CN 202110708159 A CN202110708159 A CN 202110708159A CN 113434582 B CN113434582 B CN 113434582B
Authority
CN
China
Prior art keywords
service data
information
file
target
preset
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
CN202110708159.9A
Other languages
Chinese (zh)
Other versions
CN113434582A (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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110708159.9A priority Critical patent/CN113434582B/en
Publication of CN113434582A publication Critical patent/CN113434582A/en
Application granted granted Critical
Publication of CN113434582B publication Critical patent/CN113434582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

When the processing function of the business data information is detected to have the file assembly annotation, the target file information is automatically returned and added to the business data information based on the dynamic agent strategy, so that the complex operations of iterative traversal, relation binding, file information packaging and the like are avoided, and the efficiency of processing the business data information is improved. A method, a device, a computer device and a storage medium for processing service data are provided, the method comprises: acquiring service data information based on a preset processing function; if the processing function has a preset file assembly annotation, determining target file information corresponding to the business data information based on a dynamic proxy strategy; and adding the target file information into the service data information to obtain target service data, and displaying the target service data on a preset front end page. In addition, the application also relates to a block chain technology, and the target service data can be stored in the block chain.

Description

Business data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for processing service data, a computer device, and a storage medium.
Background
In most service data processing systems, when service data information is returned to a front-end page, file information corresponding to the service data information needs to be returned at the same time. In the prior art, the service data information is usually stored in a service data table, and the file information is stored in a file information table; when the service data information is returned, the corresponding file information needs to be searched from the file information table in a traversal manner according to the preset corresponding relationship between the service data information and the file information, and the file information is added to the service data information. However, when there are multiple pieces of service data or multiple pieces of file information to be processed, such a processing method needs to repeatedly perform tedious operations such as iterative traversal, relationship binding, and file information encapsulation, thereby reducing the efficiency of service data processing.
Therefore, how to improve the efficiency of processing the service data becomes an urgent problem to be solved.
Disclosure of Invention
When a processing function corresponding to business data information is detected to have a file assembly annotation, target file information is automatically returned and added to the business data information based on a dynamic proxy strategy, so that the complex operations of repeated iteration traversal, relation binding, file information packaging and the like are avoided, and the efficiency of business data information processing is improved.
In a first aspect, the present application provides a method for processing service data, where the method includes:
acquiring service data information based on a preset processing function;
if the processing function has a preset file assembly annotation, determining target file information corresponding to the business data information based on a dynamic proxy strategy;
and adding the target file information into the service data information to obtain target service data, and displaying the target service data on a preset front end page.
In a second aspect, the present application further provides a service data processing apparatus, where the apparatus includes:
the service data determining module is used for acquiring service data information based on a preset processing function;
the file information acquisition module is used for determining target file information corresponding to the business data information based on a dynamic proxy strategy if the processing function has a preset file assembly annotation;
and the file information adding module is used for adding the target file information into the service data information to obtain target service data, and displaying the target service data on a preset front end page.
In a third aspect, the present application further provides a computer device comprising a memory and a processor;
the memory for storing a computer program;
the processor is configured to execute the computer program and implement the service data processing method as described above when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is caused to implement the service data processing method as described above.
The application discloses a service data processing method, a device, computer equipment and a storage medium, wherein service data information can be acquired by executing a preset processing function; when the preset file assembly annotation exists in the processing function, the target file information corresponding to the business data information is determined based on the dynamic agent strategy, so that the target file information can be automatically returned, the complex operations of repeated iteration traversal, relation binding, file information packaging and the like are avoided, and the business data information processing efficiency is improved; target business data containing the target file information and the business data information can be obtained by adding the target file information to the business data information; the target business data is displayed on the preset front page, so that a user can conveniently and visually check the target business data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a service data processing method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of acquiring service data information according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of sub-steps of determining target document information provided by an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating displaying target service data according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a service data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a business data processing method, a business data processing device, computer equipment and a storage medium. The business data processing method can be applied to a server or a terminal, and can automatically return target file information and add the target file information to business data information based on a dynamic proxy strategy when detecting that a processing function corresponding to the business data information has file assembly annotation, so that the complex operations of repeated iteration traversal, relation binding, file information packaging and the like are avoided, and the business data information processing efficiency is improved.
The servers may be independent servers or server clusters. The terminal can be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer and the like.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As shown in fig. 1, the service data processing method includes steps S10 to S30.
And S10, acquiring service data information based on a preset processing function.
It should be noted that the service data processing method provided by the embodiment of the present application may be applied to a service processing system on a server or a terminal, a user may initiate a service query request through the service processing system, and the service processing system automatically queries and returns target service data according to the service query request.
Illustratively, when receiving a service processing request, a service processing system may first execute a preset processing function to obtain service data information to be processed; then, when determining that the processing function has a file assembly annotation, automatically inquiring and returning target file information corresponding to the business data information based on a dynamic proxy strategy; and finally, adding the target file information into the service data information to obtain target service data.
It can be understood that, when file information corresponding to service data information is queried, in the prior art, by executing a preset processing function, complex operations such as iterative traversal and, relation binding, file information packaging and the like are performed for multiple times, and finally, target service data is returned, so that the problem of low processing efficiency exists; and a large amount of codes need to be written in the corresponding processing function, so that the processing function is overlarge, and the processing speed is reduced. The business data processing method provided by the embodiment of the application returns business data information by executing the processing function; then when determining that the processing function has a file assembly annotation, determining target file information corresponding to the business data information based on a dynamic proxy strategy; and adding the target file information to the service data information to obtain target service data. Therefore, tedious operations such as iterative traversal, relation binding and file information packaging performed for multiple times through the processing function are avoided, and the efficiency of service data information processing is improved. In addition, in the embodiment of the application, the processing function only needs to contain a small amount of codes to return the service data information, so that the processing speed is increased.
In some embodiments, obtaining the service data information based on the preset processing function may include: and executing a processing function, and inquiring service data in a preset service data table to obtain service data information.
It should be noted that the processing function is a pre-compiled function, and is used for automatically querying the service data. Illustratively, the processing function may be public UserInfo getUserInfo () { }, which is used to automatically query the service data information of the user.
Illustratively, the preset service data table stores a plurality of service data. Such as a service identification number, a user name, and a user age.
By executing the processing function, the service data information to be processed can be obtained, and the processing function can return the service data information only by fewer codes, so that the processing speed is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating obtaining service data information according to an embodiment of the present application. As shown in fig. 2, when a service query request initiated by a user is detected, a processing function may be called and executed according to the service query request, and service data query is performed in a preset service data table to obtain service data information. The service query request may include fields such as a service identification number, a user name, and file information, and the user may query corresponding service data information and file information through the service identification number or the user name.
Illustratively, the service data information may be expressed as { "id":1, "name": small "," age ":17," fileModel ": null }; wherein, "id" represents a service identification code for identifying the type of service; "fileModel" indicates file information. It can be understood that, since the service data information is stored in the service data table, and the file information corresponding to the service data information is stored in the file information table, a field value corresponding to the file information in the service data information is null, and it is necessary to additionally query the file information and add the file information to the service data information.
In some embodiments, before acquiring the service data information based on the preset processing function, the method may further include: when an annotation adding operation on the processing function is detected, adding a file assembly annotation and a file attribute annotation to the processing function according to the annotation adding operation.
It should be noted that, a user may add a file assembly annotation and a file attribute annotation to the processing function according to actual needs; therefore, when the processing function returns the to-be-processed service data information, the target file information corresponding to the service data information is determined based on the dynamic proxy strategy, and the target file information is added to the service data information.
Illustratively, when a user annotation adding operation on a processing function is detected, a file assembly annotation and a file attribute annotation are added to the processing function according to the annotation adding operation. Wherein, the file assembly annotation can be @ FileAssembly annotation; the file attribute annotation may be the @ FilePropertySign annotation.
It should be noted that the file assembly annotation is used to indicate which processing functions need to query the target file information based on the dynamic proxy policy when returning the business data information. The file attribute annotation defines the file type and the business table name, and is used for inquiring the target file information.
By adding the file assembly annotation and the file attribute annotation to the processing function according to the annotation adding operation, after the processing function returns the business data information, the target file information can be returned by inquiring the file assembly annotation and the file attribute annotation in the processing function.
And S20, if the processing function has a preset file assembly annotation, determining target file information corresponding to the business data information based on a dynamic proxy strategy.
In the embodiment of the present application, after a preset processing function is executed and service data information is acquired, it is required to determine whether the processing function has a preset file assembly annotation.
For example, the annotation scan may be performed on the processing function by the APT tool to obtain the annotation in the processing function. Note that an APT Tool (Annotation Processing Tool) is a Tool for Processing annotations, and is used to scan and process the annotations at compile time.
In some embodiments, when it is determined that the processing function has the preset file assembly annotation, target file information corresponding to the business data information may be determined based on the dynamic proxy policy.
In other embodiments, when it is determined that the processing function does not have the preset file assembly annotation, the service data information is directly displayed on the front-end page, or a prompt message indicating that the query fails is returned.
It should be noted that the dynamic proxy policy may include AOP (Aspect organized Programming) technology. The AOP technique mainly aims at extracting a tangent plane in a service processing process, and aims at isolating each part of service logic in a certain step or stage in the processing process. Therefore, coupling among all parts of the business logic is reduced, reusability of the program is improved, and development efficiency is improved.
When the preset file assembly annotation exists in the processing function, the target file information corresponding to the business data information is determined based on the dynamic proxy strategy, the target file information is automatically returned, and the complex operations of iterative traversal, relation binding and the like performed through the processing function for multiple times are avoided, so that the business data information processing efficiency is improved.
Illustratively, the target file information corresponding to the service data information may be determined based on the AOP technology. In the embodiment of the present application, how to determine the target file information corresponding to the service data information will be described in detail. Referring to fig. 3, fig. 3 is a schematic flowchart of a sub-step of determining target file information according to an embodiment of the present application, and specifically includes the following steps S201 to S203.
S201, obtaining the file attribute annotation in the processing function, and determining a business data object corresponding to the business data information.
For example, the annotation scan may be performed on the processing function through the APT tool to obtain the file attribute annotation in the processing function. For example, the contents of the file attribute annotation may be as follows:
@ FilePropertySign (tablename = "t _ user", fileType = "user _ info"). Wherein, the table name represents the name of the service table; the fileType indicates the file type.
In some embodiments, determining the service data object corresponding to the service data information may include: and instantiating the service data information based on a preset reflection mechanism to obtain a service data object.
Illustratively, the predetermined reflection mechanism may be a Java reflection mechanism. It should be noted that the Java reflection mechanism is a function of dynamically acquiring information and dynamically calling an object. For example, in the running state, for any class, the Java reflection mechanism can acquire all the attributes and methods of the class; for any object, the Java reflection mechanism can invoke any of its methods and properties. Instantiation refers to the process of creating an object (object) of a class by class.
It can be understood that, in the embodiment of the present application, the service data information may be regarded as a class; the business data information can be instantiated to obtain the corresponding business data object. The specific instantiation process is not limited herein.
Illustratively, the service data object corresponding to the service data information includes a service identification code. It is understood that, since the service data information includes the service identification code, the instantiated service data object also includes the service identification code.
S202, analyzing the file attribute notes to obtain analysis information corresponding to the file attribute notes.
Illustratively, the file attribute annotation @ FilePropertySign may be parsed to obtain parsing information corresponding to the file attribute annotation @ FilePropertySign. The parsing refers to reading related information in the file attribute annotation.
Illustratively, the parsing information includes at least fields of a file type and a service table name.
S203, determining the target file information according to the analysis information and the service data object.
It should be noted that, in the embodiment of the present application, after the business data object corresponding to the business data information is determined and the parsing information corresponding to the file attribute annotation is obtained, the target file information may be determined according to the parsing information and the business data object.
In some embodiments, determining the target file information according to the parsing information and the service data object may include: according to the file type, the service table name and the service identification code, file information query is carried out on a preset file information table to obtain a corresponding file information query result; and determining target file information according to the file information query result.
For example, the preset file information table may include file information corresponding to different service types and different service table names. It can be understood that, because the same type of service may correspond to a plurality of service table names, a certain service table may be accurately determined according to the service type and the service table name at the same time; and determining the file information of a certain file in the service table according to the file type.
Illustratively, file information query can be performed on a preset file information table according to the file type, the service table name and the service identification code, so as to obtain a corresponding file information query result. The file information query result may include fields and field values such as a file name, a file type, and a file access address.
According to the file type, the service table name and the service identification code, a corresponding file information query result can be accurately obtained by querying in a preset file information table.
In some embodiments, determining the target document information according to the document information query result may include: acquiring an initial file object, and adding fields in a file information query result and field values of each field to the initial file object in a key value pair mode to acquire a target file object; and determining target file information according to the target file object.
Illustratively, an initial file object may be created in advance; and then, based on a reflection mechanism, adding the fields in the file information query result and the field value of each field to the initial file object in a key value pair mode to obtain a target file object.
For example, the target file object may be represented as { "fileModel": { "FileKey": "123hh 12765", "FileName": PC-1278.Jpg "," FileType ": jpg", "businessName": a "user photo", "businessType": user _ info "," fileUrl ": http:// anssbnh:. Sscs" }. Wherein, the file key value is represented by 'FileKey'; "FileName" represents a file name; "FileType" represents a file type; "businessName" represents the name of the service table; "businessType" represents a service type; "fileUrl" indicates file access address information.
For example, the target file object may be determined as the target file information.
And step S30, adding the target file information into the service data information to obtain target service data, and displaying the target service data on a preset front end page.
Referring to fig. 4, fig. 4 is a schematic flowchart for displaying target service data according to an embodiment of the present application. As shown in fig. 4, after obtaining the target file information, the target file information may be added to the service data information to obtain target service data; and then displaying the target service data on a preset front page. The preset front-end page may be a page in the service processing system. For example, the target business data is rendered into a front end page.
Illustratively, the target traffic data may include: { "id":1, "name": xiaoming "," age ":17," fileModel "[ {" FileKey ": 123hhh12765", "FileName": PC-1278.Jpg "," FileType ":". Jpg "," businesName ": user photo", "businessType": user _ info "," fileUrl ": http:// anssbnh:. Sscs:" }.
To further ensure the privacy and security of the target service data, the target service data may be stored in a node of a block chain.
By adding the target file information into the service data information, the target service data can be automatically obtained, the complex operation of packaging the file information for many times through a processing function is avoided, and the efficiency of processing the service data information is improved. The target business data is displayed on the preset front page, so that a user can conveniently and visually check the target business data.
In some embodiments, before the preset front end page displays the target service data, the method may further include: and inquiring the file according to the file access address information to obtain a corresponding target file.
It should be noted that, when the target service data is displayed on the front-end page, the target service data includes a file whose file name corresponds to the file name, and therefore the corresponding file needs to be loaded at the same time.
Illustratively, file query can be performed on a local disk or a local database according to the file access address information to obtain a corresponding target file.
Illustratively, file query may also be performed on the cloud server according to the file access address information, and the corresponding target file is downloaded.
Illustratively, file query can be performed at block link points according to the file access address information to obtain corresponding target files.
In some embodiments, when the preset front-end page displays the target service data, the method may further include: and loading the target file to a front page.
Illustratively, after the file is queried according to the file access address information to obtain the corresponding target file, the target file may be loaded to the front-end page.
For example, if the target file is a user photo, the user photo may be loaded to a front end page. For example, if the target file is a product picture, the product picture may be loaded to a front-end page.
By loading the target file according to the file access address information and displaying the target file on the front-end page, the corresponding target file can be displayed while the target service data is displayed, and a user can conveniently and visually check the target file.
The service data processing method provided by the embodiment can obtain the service data information to be processed by executing the processing function, and the processing function can return the service data information only by fewer codes, so that the processing speed is improved; by adding the file assembly annotation and the file attribute annotation to the processing function according to the annotation adding operation, after the processing function returns the business data information, the file assembly annotation and the file attribute annotation in the processing function are queried and the target file information is returned; when the preset file assembly annotation exists in the processing function, the target file information corresponding to the business data information is determined based on the dynamic proxy strategy, so that the target file information is automatically returned, and the complex operations of iterative traversal, relation binding and the like which are performed for multiple times through the processing function are avoided, so that the business data information processing efficiency is improved; according to the file type, the service table name and the service identification code, a corresponding file information query result can be accurately obtained by querying in a preset file information table; by adding the target file information into the service data information, the target service data can be automatically obtained, the complex operation of packaging the file information for multiple times through a processing function is avoided, and the efficiency of processing the service data information is improved; target service data are displayed on a preset front page, so that a user can conveniently and visually check the target service data; the target file is loaded according to the file access address information and displayed on the front page, so that the target business data can be displayed, the corresponding target file is displayed, and a user can visually check the target file conveniently.
Referring to fig. 5, fig. 5 is a schematic block diagram of a service data processing apparatus 1000 according to an embodiment of the present application, where the service data processing apparatus is configured to execute the service data processing method described above. Wherein, the service data processing device can be configured in a server or a terminal.
As shown in fig. 5, the service data processing apparatus 1000 includes: a service data determining module 1001, a file information obtaining module 1002 and a file information adding module 1003.
A service data determining module 1001, configured to obtain service data information based on a preset processing function.
The file information obtaining module 1002 is configured to determine, based on a dynamic proxy policy, target file information corresponding to the service data information if the processing function has a preset file assembly annotation.
A file information adding module 1003, configured to add the target file information to the service data information, obtain target service data, and display the target service data on a preset front-end page.
It should be noted that, for convenience and simplicity of description, it may be clearly understood by those skilled in the art that the specific working processes of the apparatus and each module described above may refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present disclosure.
Referring to fig. 6, the computer device includes a processor and a memory connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which, when executed by the processor, causes the processor to perform any of the business data processing methods.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
acquiring service data information based on a preset processing function; if the processing function has a preset file assembly annotation, determining target file information corresponding to the business data information based on a dynamic proxy strategy; and adding the target file information into the service data information to obtain target service data, and displaying the target service data on a preset front end page.
In one embodiment, when the processor determines the target file information corresponding to the service data information based on the dynamic proxy policy, the processor is configured to implement:
acquiring a file attribute annotation in the processing function, and determining a business data object corresponding to the business data information; analyzing the file attribute annotation to obtain analysis information corresponding to the file attribute annotation; and determining the target file information according to the analysis information and the service data object.
In one embodiment, when implementing determining the service data object corresponding to the service data information, the processor is configured to implement:
and instantiating the service data information based on a preset reflection mechanism to obtain the service data object.
In one embodiment, the parsing information includes a file type and a service table name, and the service data object includes a service identification code; when the processor determines the target file information according to the analysis information and the service data object, the processor is configured to implement:
according to the file type, the service table name and the service identification code, file information query is carried out on a preset file information table to obtain a corresponding file information query result; and determining the target file information according to the file information query result.
In one embodiment, when determining the target document information according to the document information query result, the processor is configured to:
acquiring an initial file object, and adding fields in the file information query result and field values of each field to the initial file object in a key value pair mode to acquire a target file object; and determining the target file information according to the target file object.
In one embodiment, when the processor implements obtaining the service data information based on a preset processing function, the processor is configured to implement:
and executing the processing function, and inquiring service data in a preset service data table to obtain the service data information.
In an embodiment, before implementing obtaining the service data information based on the preset processing function, the processor is further configured to implement:
and when the annotation adding operation on the processing function is detected, adding a file assembly annotation and a file attribute annotation to the processing function according to the annotation adding operation.
In one embodiment, the target file information includes file access address information; before the processor displays the target service data on a preset front-end page, the processor is further configured to:
and inquiring the file according to the file access address information to obtain a corresponding target file.
In one embodiment, when the processor is configured to display the target service data on a preset front-end page, the processor is further configured to:
and loading the target file to the front-end page.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the processor executes the program instructions to implement any service data processing method provided in the embodiment of the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD Card), a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for processing service data is characterized by comprising the following steps:
acquiring service data information based on a preset processing function, wherein the service data information is stored in a preset service data table;
if the processing function has a preset file assembly annotation, determining target file information corresponding to the business data information according to the processing function and the business data information based on a dynamic proxy strategy, wherein the target file information is stored in a preset file information table;
adding the target file information to the service data information to obtain target service data, and displaying the target service data on a preset front-end page;
the determining, based on the dynamic proxy policy, target file information corresponding to the service data information according to the processing function and the service data information includes: acquiring a file attribute annotation in the processing function, and determining a business data object corresponding to the business data information; analyzing the file attribute annotation to obtain analysis information corresponding to the file attribute annotation; and determining the target file information according to the analysis information and the service data object.
2. The method according to claim 1, wherein the determining the service data object corresponding to the service data information includes:
and instantiating the service data information based on a preset reflection mechanism to obtain the service data object.
3. The business data processing method of claim 1, wherein the parsing information comprises a file type and a business table name, and the business data object comprises a business identification code;
the determining the target file information according to the analysis information and the service data object includes:
according to the file type, the service table name and the service identification code, file information query is carried out on the file information table to obtain a corresponding file information query result;
and determining the target file information according to the file information query result.
4. The method according to claim 3, wherein the determining the target file information according to the file information query result comprises:
acquiring an initial file object, and adding fields in the file information query result and field values of each field into the initial file object in a key value pair form to obtain a target file object;
and determining the target file information according to the target file object.
5. The method according to claim 1, wherein the obtaining service data information based on the preset processing function includes:
executing the processing function, and inquiring service data in the service data table to obtain the service data information;
before acquiring the service data information based on the preset processing function, the method further includes:
and when the annotation adding operation on the processing function is detected, adding a file assembly annotation and a file attribute annotation to the processing function according to the annotation adding operation.
6. The service data processing method according to any one of claims 1 to 5, wherein the target file information includes file access address information;
before the preset front-end page displays the target service data, the method further comprises the following steps:
inquiring files according to the file access address information to obtain corresponding target files;
the target service data is displayed on a preset front-end page, and the method further comprises the following steps:
and loading the target file to the front-end page.
7. A service data processing apparatus, comprising:
the service data determining module is used for acquiring service data information based on a preset processing function, and the service data information is stored in a preset service data table;
the file information acquisition module is used for determining target file information corresponding to the business data information according to the processing function and the business data information based on a dynamic proxy strategy if the processing function has a preset file assembly annotation, and the target file information is stored in a preset file information table;
the file information adding module is used for adding the target file information into the service data information to obtain target service data and displaying the target service data on a preset front end page;
the file information acquisition module is also used for acquiring file attribute annotations in the processing function and determining a business data object corresponding to the business data information; analyzing the file attribute annotation to obtain analysis information corresponding to the file attribute annotation; and determining the target file information according to the analysis information and the service data object.
8. A computer device, wherein the computer device comprises a memory and a processor;
the memory for storing a computer program;
the processor is configured to execute the computer program and to implement the business data processing method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the business data processing method of any one of claims 1 to 6.
CN202110708159.9A 2021-06-24 2021-06-24 Service data processing method and device, computer equipment and storage medium Active CN113434582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110708159.9A CN113434582B (en) 2021-06-24 2021-06-24 Service data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110708159.9A CN113434582B (en) 2021-06-24 2021-06-24 Service data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113434582A CN113434582A (en) 2021-09-24
CN113434582B true CN113434582B (en) 2023-01-03

Family

ID=77754191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110708159.9A Active CN113434582B (en) 2021-06-24 2021-06-24 Service data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434582B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489830B (en) * 2021-12-23 2024-06-07 阿里巴巴(中国)有限公司 Configuration page operation method, processing method and computing device
CN116664299B (en) * 2023-05-24 2024-02-20 东方证券股份有限公司 Service data processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5454201B2 (en) * 2010-02-15 2014-03-26 富士通株式会社 Data store switching device, data store switching method, and data store switching program
US8726378B2 (en) * 2011-10-27 2014-05-13 Sap Ag Enforcing input validation through aspect oriented programming
CN103793432B (en) * 2012-11-01 2018-04-06 深圳中兴网信科技有限公司 A kind of data base read-write separation method and device
CN110765187A (en) * 2018-07-09 2020-02-07 北京京东尚科信息技术有限公司 A data source routing management method and device
CN111752720B (en) * 2020-06-27 2023-07-07 武汉众邦银行股份有限公司 Asynchronous request disguising synchronous request method
CN112035858B (en) * 2020-08-28 2023-06-20 建信金融科技有限责任公司 API access control method, device, equipment and medium
CN112395843B (en) * 2020-11-16 2024-04-09 杭州安恒信息技术股份有限公司 A business processing method, device, equipment and medium based on PHP code
CN112883296A (en) * 2021-01-21 2021-06-01 平安科技(深圳)有限公司 Visual page loading method, device and equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113434582A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN110162296B (en) Method and device for generating application programming interface document and terminal equipment
CN112148674A (en) Log data processing method and device, computer equipment and storage medium
CN111694613B (en) Decoupling method between application program modules, electronic device and storage medium
CN113434582B (en) Service data processing method and device, computer equipment and storage medium
CN111338716B (en) Data processing method and device based on rule engine and terminal equipment
CN109840120B (en) Decoupling micro-service release method, electronic device and computer readable storage medium
US20130166676A1 (en) Detection of custom parameters in a request url
CN113296854A (en) Data loading method and system, electronic equipment and storage medium
CN112965721A (en) Android-based project compiling method and device, computer equipment and storage medium
CN111562907A (en) Conversion method and system of user-defined interface data
CN114139161A (en) Method, device, electronic equipment and medium for batch vulnerability detection
CN118113963A (en) Dynamic page generation method and device, electronic equipment and storage medium
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN111488286A (en) Method and device for independently developing Android module
CN115080114B (en) Application program transplanting processing method, device and medium
CN113282541B (en) File calling method and device and electronic equipment
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium
CN111142735B (en) Software page creating method and device, terminal equipment and storage medium
CN111581207B (en) File generation method and device of Azkaban project and terminal equipment
CN115629818A (en) Drive configuration method, device, equipment and storage medium in block chain platform
CN113626222A (en) Message processing method and device, computer equipment and storage medium
CN112765676A (en) Intelligent contract execution method, intelligent contract execution device and node equipment
CN115964075B (en) Application export import method and device, computer equipment and storage medium
CN114237624B (en) Error handling method, device, equipment, medium and product based on Go language
CN112052034B (en) Computing interface construction method, device, computer equipment and readable 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