CN109788031A - Business datum acquisition methods, device, computer equipment and storage medium - Google Patents
Business datum acquisition methods, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109788031A CN109788031A CN201811543631.2A CN201811543631A CN109788031A CN 109788031 A CN109788031 A CN 109788031A CN 201811543631 A CN201811543631 A CN 201811543631A CN 109788031 A CN109788031 A CN 109788031A
- Authority
- CN
- China
- Prior art keywords
- required parameter
- data
- data acquisition
- business datum
- allocation list
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
This application involves a kind of business datum acquisition methods, device, computer equipment and storage medium based on field of communication technology, receives the data acquisition request that terminal is sent, and the data acquisition request carries required parameter and service identification;Allocation list corresponding with the service identification is searched according to the required parameter;Service interface is called according to the data acquisition request;Search whether the required parameter corresponds to multiple dimensions in the allocation list using the service interface;When the required parameter corresponds to multiple dimensions, the corresponding scene information of the required parameter is collected;The scene dimension in the corresponding scene information of the required parameter is searched in the allocation list;The business datum is fed back to the terminal by the business datum that the required parameter under the scene dimension is obtained using the allocation list.The quantity of service interface can be reduced using this method, to reduce service system maintenance cost.
Description
Technical field
This application involves fields of communication technology, more particularly to a kind of business datum acquisition methods, device, computer equipment
And storage medium.
Background technique
With the development of communication technology, in order to meet growing and diversified business demand, Internet application is got over
Come more.It is past in order to meet the different demands of different crowd when the Internet application server provides service to a large amount of user
Toward needing to provide a variety of service modes, the also difference of business datum involved in different service modes.In conventional manner, it is
Meet the different demands of different user, to develop by the Internet application server can provide the service of a variety of service modes
Interface, every kind of service interface are serviced just for a kind of service mode, cause service system very huge, system maintenance also needs
Spend more man power and materials.Therefore, how to reduce the quantity of service interface, thus reduce service system maintenance cost at
For the current technical issues that need to address.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, the quantity of service interface can be reduced by providing one kind, to reduce
Business datum acquisition methods, device, computer equipment and the storage medium of service system maintenance cost.
A kind of business datum acquisition methods, which comprises
The data acquisition request that terminal is sent is received, the data acquisition request carries required parameter and service identification;
Allocation list corresponding with the service identification is searched according to the required parameter;
Service interface is called according to the data acquisition request;
Search whether the required parameter corresponds to multiple dimensions in the allocation list using the service interface;
When the required parameter corresponds to multiple dimensions, the corresponding scene information of the required parameter is collected;
The scene dimension in the corresponding scene information of the required parameter is searched in the allocation list;
The business datum that the required parameter under the scene dimension is obtained using the allocation list, by the business datum
Feed back to the multiple terminal.
It is described in one of the embodiments, to obtain the required parameter under the scene dimension using the allocation list
Business datum includes:
The corresponding data origin information of the required parameter under the scene dimension is searched in the allocation list;
The business datum of the required parameter is obtained according to the data origin information.
The business datum that the required parameter is obtained according to the data origin information in one of the embodiments,
Include:
The corresponding data acquisition type of the required parameter is determined according to data origin information;
According to the default mapping relations of the data acquisition type and data acquiring mode, the data acquisition type is determined
The data acquiring mode mapped out;
The business datum of the required parameter is obtained according to the data acquiring mode.
In one of the embodiments, the method also includes:
Data source in the corresponding all data origin informations of the required parameter is divided into numerous types of data;
It is defined according to the data acquisition type, obtains multiple data acquiring modes.
In one of the embodiments, the method also includes:
The required parameter of the multiple dimensions of correspondence is labeled as various dimensions parameter;
When carrying the various dimensions parameter in the data acquisition request that the received terminal is sent, the multidimensional is obtained
Spend the corresponding scene information of parameter.
A kind of business information test device, described device include:
Communication module, for receiving the data acquisition request of terminal transmission, the data acquisition request carries required parameter
And service identification;
Allocation list searching module, for searching allocation list corresponding with the service identification according to the required parameter;
Interface calling module, for calling service interface according to the data acquisition request;
Whether dimension searching module is right for searching the required parameter in the allocation list using the service interface
Answer multiple dimensions;
Information collection module, for collecting the corresponding scene of the required parameter when the corresponding multiple dimensions of the request
Information;
The dimension searching module is also used to search the corresponding scene information of the required parameter in the allocation list
In scene dimension;
Data acquisition module, for obtaining the business number of the required parameter under the scene dimension using the allocation list
According to;
The communication module is also used to the business datum feeding back to the terminal.
The data acquisition module is also used to search the scene dimension in the allocation list in one of the embodiments,
The corresponding data origin information of the required parameter under degree;The business of the required parameter is obtained according to the data origin information
Data.
The data acquisition module is also used to determine the request according to data origin information in one of the embodiments,
The corresponding data acquisition type of parameter;According to the default mapping relations of the data acquisition type and data acquiring mode, determine
The data acquiring mode that the data acquisition Type mapping goes out;The required parameter is obtained according to the data acquiring mode
Business datum.
A kind of computer equipment, including memory and processor, the memory are stored with and can run on a processor
Computer program, the processor realize the step in above-mentioned each embodiment of the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step in above-mentioned each embodiment of the method is realized when row.
Above-mentioned business datum acquisition methods, device, computer equipment and storage medium, when utilization service interface is in allocation list
In when finding required parameter and corresponding to multiple dimensions, collect the corresponding scene information of required parameter.By being asked in allocation list lookup
The scene dimension in the corresponding scene information of parameter is sought, the business datum of required parameter under scene dimension is obtained.Realize a clothes
The data acquisition service being engaged under interface offer different scenes, reduces the quantity of service interface, to reduce service system maintenance
Cost.
Detailed description of the invention
Fig. 1 is the applied environment figure of business datum acquisition methods in one embodiment;
Fig. 2 is the flow diagram of business datum acquisition methods in one embodiment;
Fig. 3 is the process for obtaining the business datum of the corresponding required parameter of scene dimension in one embodiment by allocation list
Schematic diagram;
Fig. 4 is the structural block diagram of business datum acquisition device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Business datum acquisition methods provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually
End 102 is communicated by network with server 104.Wherein, server 104 receives the data acquisition request that terminal 102 is sent,
The data acquisition request carries required parameter and service identification.Server 104 is searched and service identification pair according to required parameter
The allocation list answered.Server 104 calls service interface according to data acquisition request.Server 104 is being configured using service interface
Whether search request parameter corresponds to multiple dimensions in table.When required parameter corresponds to multiple dimensions, server 104 collects request ginseng
The corresponding scene information of number.Scene dimension of the server 104 in the corresponding scene information of allocation list search request parameter.Service
Device 104 obtains the business datum of scene dimension corresponding requests parameter by allocation list, and business datum is fed back to terminal 102.Its
In, terminal 102 can have it is multiple, terminal 102 can be, but not limited to be various personal computers, laptop, smart phone,
Tablet computer and portable wearable device, server 104 can use the either multiple server compositions of independent server
Server cluster is realized.
In one embodiment, as shown in Fig. 2, providing a kind of business datum acquisition methods, it is applied to Fig. 1 in this way
In server for be illustrated, comprising the following steps:
Step 202, the data acquisition request that terminal is sent is received, data acquisition request carries required parameter and business mark
Know.
Server receiving terminal send data acquisition request, data acquisition request be by terminal according to business operation from
Dynamic generation.Data acquisition request can be business handling request, data check request, video playing is requested etc..
For example, terminal automatically generates ticket purchasing request according to booking operation, the ticket purchasing request that server receiving terminal is sent should
Remaining ticket number parameter and business handling mark are carried in ticket purchasing request.
For another example, terminal automatically generates declaration form inquiry request, the guarantor that server receiving terminal is sent according to declaration form inquiry operation
Single inquiry request carries number of policy parameter in the declaration form inquiry request and data checks mark.
Service identification can also be carried in data acquisition request, for distinguishing multiple service products.Server can obtain more
Business datum in the data acquisition request of a service product, the business datum in the data acquisition request of each service product are
Different.For example, the available agreement payment of server, platform payment, bill payment, bill payment, credit payment, paying out
Business datum in the data acquisition request of multiple payment products, agreement payment, platform payment, bill payment, bill payment, letter
It is different with the business datum in the data acquisition requests for multiple payment products such as paying, paying out.
Step 204, allocation list corresponding with service identification is searched according to required parameter.
Server carries required parameter and business mark in the data acquisition request for receiving terminal transmission, data acquisition request
After knowledge, allocation list corresponding with service identification can be searched according to required parameter.Wherein, service identification is produced for distinguishing multiple business
Product, server can generate allocation list according to each service product is corresponding.Server is looked into multiple allocation lists according to required parameter
Look for allocation list corresponding with service identification.
After the data acquisition request that server receiving terminal is sent, data acquisition request is parsed, obtains request ginseng
Several and service identification, the required parameter carried in server based on data acquisition request are searched and are carried in data acquisition request
The corresponding allocation list of service identification.
Step 206, service interface is called according to data acquisition request.
Server, can be according to data acquisition request tune after searching allocation list corresponding with service identification according to required parameter
Use service interface.The data acquisition request that server receiving terminal uploads is different, correspondingly, the service interface called is also different.
A kind of business datum of the data acquisition request of the available service product of service interface under different scenes, can also obtain
Take business datum of the data acquisition request of multiple service products under different scenes.For example, subscribed services interface is available
Agreement pays business datum of the payment request of product in signing stage and the stage of terminating an agreement, and also available agreement pays product
In the business datum in signing stage and the stage of terminating an agreement, platform pays product in the business number in signing stage and the stage of terminating an agreement
According to.
Step 208, using service interface, whether search request parameter corresponds to multiple dimensions in allocation list.
Step 210, when required parameter corresponds to multiple dimensions, the corresponding scene information of required parameter is collected.
Server is searched in allocation list using service interface and is asked after calling service interface according to data acquisition request
Ask whether parameter corresponds to multiple dimensions.It wherein, include request parameters field name, the corresponding dimension of request parameters field in allocation list
The data origin information of information and the corresponding required parameter of each dimension.Request parameters field name includes name, quantity, day
Phase etc..The field name of the corresponding required parameter of different data acquisition requests can be identical, be also possible to different.Dimension
Information includes the corresponding dimension of required parameter.Data origin information include under different dimensions the corresponding data of each required parameter come
Source.
Specifically, position of the server selection required parameter in allocation list, according to the location lookup required parameter of positioning
Whether multiple dimensions are corresponded to.When required parameter corresponds to multiple dimensions, server collects the corresponding scene information of required parameter.?
Scape information includes the channel scene of trigger request, stage scene locating for request etc..
Step 212, the scene dimension in the corresponding scene information of allocation list search request parameter.
Server, can be in the corresponding scene of allocation list search request parameter after collecting the corresponding scene information of required parameter
Scene dimension in information.Wherein, scene information includes the channel scene of trigger request, stage scene locating for request etc..Touching
The channel scene of hair request includes dimension under dimension and line on line.The number of dimensions of the stage scene locating to request does not limit
It is fixed.Stage scene may include first stage dimension, second stage dimension and phase III dimension three phases dimension, the first rank
Duan Weidu can be the reservation stage, and second stage dimension can be the application stage, and phase III dimension can be the stage of terminating an agreement.?
Scape dimension is one or more dimensions in the corresponding dimension of required parameter.
Specifically, when the scene information that server is collected includes the stage locating for the channel scene and request of trigger request
When two kinds of scenes of scene, then according to the channel scene of trigger request under the corresponding channel scene of allocation list search request parameter
Scene dimension, the scene dimension can be dimension on line, be also possible to dimension under line.Server is according to the request locating stage
Scene dimension under the corresponding stage scene of scape search request parameter in allocation list, does not limit the number of dimensions of stage scene
Fixed, which can be first stage dimension, be also possible to second stage dimension, can also be phase III dimension.This
When, required parameter corresponds to multiple scene dimensions.
When the scene information that server is collected only includes the channel scene of trigger request, server is according to trigger request
Scene dimension of the channel scene under the corresponding channel scene of allocation list search request parameter, which can be ties up on line
Degree, is also possible to dimension under line.At this point, required parameter only corresponds to a scene dimension.
When the scene information that server is collected only includes the locating stage scene of request, server is according to locating for request
Scene dimension under the corresponding stage scene of stage scene search request parameter in allocation list, to the number of dimensions of stage scene
Without limitation, which can be first stage dimension, be also possible to second stage dimension, can also be that the phase III ties up
Degree.At this point, required parameter only corresponds to a scene dimension.
Step 214, the business datum that required parameter under scene dimension is obtained by allocation list, feeds back to end for business datum
End.
Server can be obtained after the scene dimension in the corresponding scene information of allocation list search request parameter by allocation list
Business datum is fed back to terminal by the business datum for taking required parameter under scene dimension.Wherein, required parameter can correspond to dimension
In multiple scene dimensions, for example, scene dimension include the first dimension and the second dimension.First dimension can be dimension on line,
Second dimension can be first stage dimension.Specifically, server searches the number of required parameter under scene dimension in allocation list
According to source-information.According to the business datum of data origin information acquisition request parameter.Business datum is fed back to terminal by server.
For example, terminal automatically generates ticket purchasing request according to booking operation, the ticket purchasing request that server receiving terminal is sent should
Remaining ticket number parameter and business handling mark are carried in ticket purchasing request.Server according to ticket purchasing request towards search and business handling
Identify corresponding business handling allocation list.Server calls service interface according to ticket purchasing request, is done using service interface in business
Search whether remaining ticket number parameter corresponds to multiple dimensions in reason allocation list.It is tieed up under dimension on line, line when remaining ticket number parameter corresponds to
When degree, first stage dimension, second stage dimension and phase III dimension, the corresponding channel scene of remaining ticket number parameter is collected
And stage scene, remaining ticket number parameter, which is found, in allocation list corresponds under line in channel scene in dimension and stage scene
First stage dimension.Server by utilizing allocation list obtains line lower first stage dimension and is left the remaining ticket data of ticket number parameter,
Remaining ticket data is fed back into terminal.
It is appreciated that server, which obtains dimension corresponding requests by allocation list, joins when a required parameter corresponding dimension
Business datum is fed back to terminal by several business datums.Specifically, server searches required parameter under the dimension in allocation list
Data origin information business datum is fed back to by terminal according to the business datum of data origin information acquisition request parameter.
Further, server can by terminal by business datum and Page Template file generated page file, according to
Page file shows the business datum in the page.Business datum can also be generated voice broadcast text by terminal by server
Part, and broadcast the voice broadcast file.
In the present embodiment, multiple dimensions are corresponded to when server by utilizing service interface finds required parameter in allocation list
When, collect the corresponding scene information of required parameter.Server passes through in the corresponding scene information of allocation list search request parameter
Scene dimension, obtain scene dimension under required parameter business datum.It enables the server to neatly to obtain and data acquisition
The business datum that request scene matches is realized that a service interface provides the data acquisition service under different scenes, is reduced
The quantity of service interface, to reduce service system maintenance cost.
In one embodiment, this method further include: the industry of the corresponding required parameter of scene dimension is obtained by allocation list
The step of data of being engaged in.As shown in figure 3, the step specifically includes:
Step 302, the corresponding data origin information of required parameter under scene dimension is searched in allocation list.
Specifically, when required parameter corresponds to the first dimension and the second dimension in dimension, server is searched in allocation list
The corresponding data origin information of required parameter under first dimension searches the corresponding number of required parameter under the second dimension in allocation list
According to source-information.When required parameter only corresponds to a scene dimension in multiple dimensions, server is searched in allocation list should
The data origin information of required parameter under dimension.The data origin information of other dimensions is stored in allocation list.
Step 304, according to the business datum of data origin information acquisition request parameter.
Server is searched in allocation list under scene dimension after the corresponding data origin information of required parameter, can be according to data
The business datum of source-information acquisition request parameter.Server can acquisition request be joined from database according to data origin information
Several business datums.For example, the remaining ticket information of dimension on line is stored in the first position of database by server.Remaining ticket monitoring system
Ticket information remaining on the line of real-time update can be stored in real time in the first position of database by system.On first position, that is, line under dimension
The corresponding data origin information of remaining ticket number parameter, server obtain remaining ticket data according to first position from database.Service
Device can also according to data origin information from interface call address calling interface come receive service interface feedback business datum.
In the present embodiment, server in allocation list by searching the corresponding data source of required parameter under scene dimension
Information, according to the business datum of data origin information acquisition request parameter.When needing to expand the dimension of parameter, it is only necessary to match
The dimensional information for adding expansion in table is set, and records the data source of parameter under the dimension, does not need to change existing business number
According to improving the expansion capability of business datum.
In one embodiment, include according to the business datum of data origin information acquisition request parameter: according to data come
Source information determines the corresponding data acquisition type of required parameter;According to the default mapping of data acquisition type and data acquiring mode
Relationship determines the data acquiring mode that data acquisition Type mapping goes out;According to the business of data acquiring mode acquisition request parameter
Data.
Wherein, data origin information includes the storage location of data and the acquisition channel of data.When data origin information is
When the storage location of data, the storage location of server based on data determines the corresponding data acquisition type of required parameter.Logarithm
Without limitation according to acquisition type.It can be local data and obtain type, be also possible to cloud data acquisition type.The storage of data
Position is different, correspondingly, data acquiring mode is also different.
When data origin information is the acquisition channel of business datum, server is determined according to the acquisition channel of business datum
The corresponding data acquisition type of required parameter.Without limitation to data acquisition type.It can be interface class, for example, business datum
Interface IP address.It is also possible to model class, for example, the model letter type information of business datum.
In one embodiment, this method further include: by the data in the corresponding data origin information of all required parameters
Source is divided into numerous types of data;It is defined according to data acquisition type, obtains multiple data acquiring modes.Server can
The corresponding data source of all required parameters is subjected to data type division, by every kind of data acquisition type definition data recipient
Formula.It is the by cloud data acquisition type definition for example, native data types are defined as the first data acquiring mode by server
Two data acquiring modes, are defined as third data acquiring mode for interface class, and model class is defined as the 4th data acquiring mode.
Wherein, data acquiring mode includes that data acquisition realizes logic.
In the present embodiment, server makes according to the business datum of presetting data acquiring mode acquisition request parameter
The data origin information obtained in allocation list can be various forms of information, and the storage mode of data is more flexible.It is new when increasing
When the data origin information of form, it is only necessary to define data acquiring mode corresponding with the data origin information, which is obtained
Mode data acquisition type corresponding with data origin information is taken to be associated.It realizes more flexible ground storing data and obtains number
According to.
In one embodiment, this method further include: the required parameter of the multiple dimensions of correspondence is labeled as various dimensions parameter;
When receiving carrying various dimensions parameter in the data acquisition request that terminal is sent, the corresponding scene information of various dimensions parameter is obtained.
In the present embodiment, whether server by utilizing service interface search request parameter in allocation list corresponds to multiple dimensions
The required parameter is labeled as various dimensions parameter when required parameter corresponds to multiple dimensions by degree, carries various dimensions ginseng when receiving
When several data acquisition requests, the corresponding scene information of various dimensions parameter can be directly acquired.
In the present embodiment, the required parameter of the multiple dimensions of correspondence is labeled as various dimensions parameter by server, can taken
In data acquisition request with multiple various dimensions required parameters, it is corresponding that each various dimensions parameter is accurately searched from allocation list
Scene dimension realizes the business datum for obtaining multiple various dimensions parameters.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 4, providing a kind of business datum acquisition device, comprising: communication module 402,
Allocation list searching module 404, interface calling module 406, dimension searching module 408, information collection module 410 and data acquisition mould
Block 412, in which:
Communication module 402, for receive terminal transmission data acquisition request, data acquisition request carry required parameter with
And service identification.
Allocation list searching module 404, for searching allocation list corresponding with service identification according to required parameter.
Interface calling module 406, for calling service interface according to data acquisition request.
Dimension searching module 408, for whether corresponding to multiple dimensions using service interface search request parameter in allocation list
Degree.
Information collection module 410, for when required parameter corresponds to multiple dimensions, collecting the corresponding scene letter of required parameter
Breath.
Dimension searching module 408 is also used to the scene dimension in the corresponding scene information of allocation list search request parameter.
Data acquisition module 412, for obtaining the business datum of required parameter under scene dimension using allocation list.
Communication module 402 is also used to business datum feeding back to terminal.
In one embodiment, data acquisition module 412 is also used to search required parameter under scene dimension in allocation list
Corresponding data origin information;According to the business datum of data origin information acquisition request parameter.
In one embodiment, data acquisition module 412 is also used to determine that required parameter is corresponding according to data origin information
Data acquisition type;According to the default mapping relations of data acquisition type and data acquiring mode, data acquisition type is determined
The data acquiring mode mapped out;According to the business datum of data acquiring mode acquisition request parameter.
In one embodiment, which further includes source division module, and the source division module by all for requesting
Data source in the corresponding data origin information of parameter is divided into numerous types of data;Determined according to data acquisition type
Justice obtains multiple data acquiring modes.
In one embodiment, information collection module is also used to correspond to the required parameter of multiple dimensions labeled as various dimensions
Parameter;When receiving carrying various dimensions parameter in the data acquisition request that terminal is sent, the corresponding scene of various dimensions parameter is obtained
Information.
Specific about business datum acquisition device limits the limit that may refer to above for business datum acquisition methods
Fixed, details are not described herein.Modules in above-mentioned business datum acquisition device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used for storage service data information.The network interface of the computer equipment is used to pass through with external terminal
Network connection communication.To realize a kind of business datum acquisition methods when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of when executing computer program receives the data acquisition request that terminal is sent, number
Required parameter and service identification are carried according to acquisition request;Allocation list corresponding with service identification is searched according to required parameter;Root
Service interface is called according to data acquisition request;Using service interface in the allocation list search request parameter whether correspond to it is multiple
Dimension;When required parameter corresponds to multiple dimensions, the corresponding scene information of required parameter is collected;In allocation list search request parameter
Scene dimension in corresponding scene information;The business datum that required parameter under scene dimension is obtained using allocation list, by business
Data feedback is to terminal.
In one embodiment, it is also performed the steps of when processor executes computer program and searches field in allocation list
The corresponding data origin information of required parameter under scape dimension;According to the business datum of data origin information acquisition request parameter.
In one embodiment, it also performs the steps of when processor executes computer program according to data origin information
Determine the corresponding data acquisition type of required parameter;According to the default mapping relations of data acquisition type and data acquiring mode,
Determine the data acquiring mode that data acquisition Type mapping goes out;According to the business datum of data acquiring mode acquisition request parameter.
In one embodiment, it also performs the steps of when processor executes computer program by all required parameters pair
The data source in data origin information answered is divided into numerous types of data;It is defined, is obtained according to data acquisition type
Multiple data acquiring modes.
In one embodiment, it also performs the steps of when processor executes computer program by the multiple dimensions of correspondence
Required parameter is labeled as various dimensions parameter;When receiving carrying various dimensions parameter in the data acquisition request that terminal is sent, obtain
The corresponding scene information of various dimensions parameter.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
The step in the method for the various embodiments described above is realized when machine program is executed by processor: being received the data acquisition that terminal is sent and is asked
It asks, data acquisition request carries required parameter and service identification;Configuration corresponding with service identification is searched according to required parameter
Table;Service interface is called according to data acquisition request;Using service interface, whether search request parameter is right in the allocation list
Answer multiple dimensions;When required parameter corresponds to multiple dimensions, the corresponding scene information of required parameter is collected;It is asked in allocation list lookup
Seek the scene dimension in the corresponding scene information of parameter;The business datum of required parameter under scene dimension is obtained using allocation list,
Business datum is fed back into terminal.
In one embodiment, it is also performed the steps of when processor executes computer program and searches field in allocation list
The corresponding data origin information of required parameter under scape dimension;According to the business datum of data origin information acquisition request parameter.
In one embodiment, it also performs the steps of when processor executes computer program according to data origin information
Determine the corresponding data acquisition type of required parameter;According to the default mapping relations of data acquisition type and data acquiring mode,
Determine the data acquiring mode that data acquisition Type mapping goes out;According to the business datum of data acquiring mode acquisition request parameter.
In one embodiment, it also performs the steps of when processor executes computer program by all required parameters pair
The data source in data origin information answered is divided into numerous types of data;It is defined, is obtained according to data acquisition type
Multiple data acquiring modes.
In one embodiment, it also performs the steps of when processor executes computer program by the multiple dimensions of correspondence
Required parameter is labeled as various dimensions parameter;When receiving carrying various dimensions parameter in the data acquisition request that terminal is sent, obtain
The corresponding scene information of various dimensions parameter.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of business datum acquisition methods, which comprises
The data acquisition request that terminal is sent is received, the data acquisition request carries required parameter and service identification;
Allocation list corresponding with the service identification is searched according to the required parameter;
Service interface is called according to the data acquisition request;
Search whether the required parameter corresponds to multiple dimensions in the allocation list using the service interface;
When the required parameter corresponds to multiple dimensions, the corresponding scene information of the required parameter is collected;
The scene dimension in the corresponding scene information of the required parameter is searched in the allocation list;
The business datum that the required parameter under the scene dimension is obtained using the allocation list, the business datum is fed back
To the terminal.
2. the method according to claim 1, wherein described obtained under the scene dimension using the allocation list
The business datum of the required parameter includes:
The corresponding data origin information of the required parameter under the scene dimension is searched in the allocation list;
The business datum of the required parameter is obtained according to the data origin information.
3. according to the method described in claim 2, it is characterized in that, described obtain the request according to the data origin information
The business datum of parameter includes:
The corresponding data acquisition type of the required parameter is determined according to data origin information;
According to the default mapping relations of the data acquisition type and data acquiring mode, the data acquisition Type mapping is determined
The data acquiring mode out;
The business datum of the required parameter is obtained according to the data acquiring mode.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Data source in the corresponding data origin information of all required parameters is divided into numerous types of data;
It is defined according to the data acquisition type, obtains multiple data acquiring modes.
5. the method according to claim 1, wherein the method also includes:
The required parameter of the multiple dimensions of correspondence is labeled as various dimensions parameter;
When carrying the various dimensions parameter in the data acquisition request for receiving the terminal transmission, the various dimensions parameter is obtained
Corresponding scene information.
6. a kind of business datum acquisition device, which is characterized in that described device includes:
Communication module, for receiving the data acquisition request of terminal transmission, the data acquisition request carry required parameter and
Service identification;
Allocation list searching module, for searching allocation list corresponding with the service identification according to the required parameter;
Interface calling module, for calling service interface according to the data acquisition request;
Dimension searching module, for searched in the allocation list using the service interface required parameter whether correspond to it is more
A dimension;
Information collection module, for collecting the corresponding scene of the required parameter when the required parameter corresponds to multiple dimensions
Information;
The dimension searching module is also used to search in the corresponding scene information of the required parameter in the allocation list
Scene dimension;
Data acquisition module, for obtaining the business datum of the required parameter under the scene dimension using the allocation list;
The communication module is also used to the business datum feeding back to the terminal.
7. device according to claim 6, which is characterized in that the data acquisition module is also used in the allocation list
Search the corresponding data origin information of the required parameter under the scene dimension;According to data origin information acquisition
The business datum of required parameter.
8. device according to claim 6, which is characterized in that the data acquisition module is also used to be believed according to data source
Breath determines the corresponding data acquisition type of the required parameter;According to the default of the data acquisition type and data acquiring mode
Mapping relations determine the data acquiring mode that the data acquisition Type mapping goes out;It is obtained according to the data acquiring mode
Take the business datum of the required parameter.
9. a kind of computer equipment, including memory and processor, the memory are stored with the meter that can be run on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 5 institute when executing the computer program
The step of stating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claims 1 to 5 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811543631.2A CN109788031B (en) | 2018-12-17 | 2018-12-17 | Service data acquisition method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811543631.2A CN109788031B (en) | 2018-12-17 | 2018-12-17 | Service data acquisition method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109788031A true CN109788031A (en) | 2019-05-21 |
CN109788031B CN109788031B (en) | 2022-10-11 |
Family
ID=66497396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811543631.2A Active CN109788031B (en) | 2018-12-17 | 2018-12-17 | Service data acquisition method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109788031B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457563A (en) * | 2019-07-12 | 2019-11-15 | 平安普惠企业管理有限公司 | Acquiring product parameters method and Related product |
CN110825796A (en) * | 2019-10-09 | 2020-02-21 | 上海易点时空网络有限公司 | Data acquisition method, device and system |
CN111090457A (en) * | 2019-12-17 | 2020-05-01 | 广州品唯软件有限公司 | Interface analysis method, terminal device and computer-readable storage medium |
CN111352816A (en) * | 2020-02-27 | 2020-06-30 | 中国工商银行股份有限公司 | Tracking detection method and system based on distributed link |
CN111949910A (en) * | 2020-07-20 | 2020-11-17 | 北京思特奇信息技术股份有限公司 | Method and system for dynamically displaying acceptance information according to service |
CN112182363A (en) * | 2020-09-05 | 2021-01-05 | 南方电网数字电网研究院有限公司 | Intelligent inspection method, device, equipment and storage medium based on micro-service framework |
CN112465461A (en) * | 2020-12-04 | 2021-03-09 | 金蝶云科技有限公司 | Business object information changing method, system, computer device and storage medium |
CN113271307A (en) * | 2021-05-18 | 2021-08-17 | 中国工商银行股份有限公司 | Data assembling method, device, computer system and storage medium |
CN113467775A (en) * | 2020-03-31 | 2021-10-01 | 北京沃东天骏信息技术有限公司 | Method and device for generating page |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197876A (en) * | 2006-12-06 | 2008-06-11 | 中兴通讯股份有限公司 | Method and system for multi-dimensional analysis of message service data |
CN107016025A (en) * | 2016-11-17 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of method for building up and device of non-relational database index |
WO2018086462A1 (en) * | 2016-11-10 | 2018-05-17 | 阿里巴巴集团控股有限公司 | Method and device for generating loading, push, and interaction information of service data |
CN108446341A (en) * | 2018-03-02 | 2018-08-24 | 平安普惠企业管理有限公司 | Service condition querying method, device, computer equipment and storage medium |
CN108876133A (en) * | 2018-06-07 | 2018-11-23 | 中国平安人寿保险股份有限公司 | Risk assessment processing method, device, server and medium based on business information |
-
2018
- 2018-12-17 CN CN201811543631.2A patent/CN109788031B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197876A (en) * | 2006-12-06 | 2008-06-11 | 中兴通讯股份有限公司 | Method and system for multi-dimensional analysis of message service data |
WO2018086462A1 (en) * | 2016-11-10 | 2018-05-17 | 阿里巴巴集团控股有限公司 | Method and device for generating loading, push, and interaction information of service data |
CN107016025A (en) * | 2016-11-17 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of method for building up and device of non-relational database index |
CN108446341A (en) * | 2018-03-02 | 2018-08-24 | 平安普惠企业管理有限公司 | Service condition querying method, device, computer equipment and storage medium |
CN108876133A (en) * | 2018-06-07 | 2018-11-23 | 中国平安人寿保险股份有限公司 | Risk assessment processing method, device, server and medium based on business information |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457563A (en) * | 2019-07-12 | 2019-11-15 | 平安普惠企业管理有限公司 | Acquiring product parameters method and Related product |
CN110825796A (en) * | 2019-10-09 | 2020-02-21 | 上海易点时空网络有限公司 | Data acquisition method, device and system |
CN111090457A (en) * | 2019-12-17 | 2020-05-01 | 广州品唯软件有限公司 | Interface analysis method, terminal device and computer-readable storage medium |
CN111352816A (en) * | 2020-02-27 | 2020-06-30 | 中国工商银行股份有限公司 | Tracking detection method and system based on distributed link |
CN113467775A (en) * | 2020-03-31 | 2021-10-01 | 北京沃东天骏信息技术有限公司 | Method and device for generating page |
CN111949910A (en) * | 2020-07-20 | 2020-11-17 | 北京思特奇信息技术股份有限公司 | Method and system for dynamically displaying acceptance information according to service |
CN112182363A (en) * | 2020-09-05 | 2021-01-05 | 南方电网数字电网研究院有限公司 | Intelligent inspection method, device, equipment and storage medium based on micro-service framework |
CN112182363B (en) * | 2020-09-05 | 2024-02-02 | 南方电网数字电网研究院有限公司 | Intelligent auditing method, device, equipment and storage medium based on micro-service framework |
CN112465461A (en) * | 2020-12-04 | 2021-03-09 | 金蝶云科技有限公司 | Business object information changing method, system, computer device and storage medium |
CN113271307A (en) * | 2021-05-18 | 2021-08-17 | 中国工商银行股份有限公司 | Data assembling method, device, computer system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109788031B (en) | 2022-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109788031A (en) | Business datum acquisition methods, device, computer equipment and storage medium | |
CN108874926A (en) | Mass data inquiry method, device, computer equipment and storage medium | |
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN109325729B (en) | Method and server for generating electronic contract | |
CN108573371B (en) | Data approval method, device, computer equipment and storage medium | |
CN109492021A (en) | Enterprise's portrait information query method, device, computer equipment and storage medium | |
CN109408508A (en) | The storage and querying method of monitoring data, device and computer equipment | |
CN109359939A (en) | Business datum method of calibration, device, computer equipment and storage medium | |
CN109447609A (en) | Method of payment, device, computer equipment and storage medium | |
CN109408746A (en) | Portrait information query method, device, computer equipment and storage medium | |
CN109460527A (en) | Product data configuration method, device, computer equipment and storage medium | |
CN109816563A (en) | Electronic contract template circulation method, apparatus, computer equipment and storage medium | |
CN109816331A (en) | Audit task processing method, device, computer equipment and storage medium | |
CN110659938A (en) | Method and device for determining promotion channel, computer equipment and storage medium | |
CN109062925A (en) | Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence | |
CN110490594A (en) | Business data processing method, device, computer equipment and storage medium | |
CN109903034B (en) | Rule matching method and device, computer readable storage medium and computer equipment | |
CN109361628A (en) | Message assemble method, device, computer equipment and storage medium | |
CN110471585A (en) | Function of application icon methods of exhibiting, device and computer equipment | |
CN108334625A (en) | Processing method, device, computer equipment and the storage medium of user information | |
CN108921680A (en) | Financial data accreditation method, apparatus, computer equipment and storage medium | |
CN109492856A (en) | Service request processing method, device, computer equipment and storage medium | |
CN109785024A (en) | Invoice data processing method, device, computer equipment and storage medium | |
CN110362478A (en) | Application upgrade test method, device, computer equipment and storage medium | |
CN112396480B (en) | Order business data processing method, system, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |