CN110262796B - Data processing method and device based on java and electronic equipment - Google Patents

Data processing method and device based on java and electronic equipment Download PDF

Info

Publication number
CN110262796B
CN110262796B CN201910567945.4A CN201910567945A CN110262796B CN 110262796 B CN110262796 B CN 110262796B CN 201910567945 A CN201910567945 A CN 201910567945A CN 110262796 B CN110262796 B CN 110262796B
Authority
CN
China
Prior art keywords
data
information
java
client
template
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
CN201910567945.4A
Other languages
Chinese (zh)
Other versions
CN110262796A (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.)
Guangzhou Lizhi Network Technology Co ltd
Original Assignee
Guangzhou Lizhi Network 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 Guangzhou Lizhi Network Technology Co ltd filed Critical Guangzhou Lizhi Network Technology Co ltd
Priority to CN201910567945.4A priority Critical patent/CN110262796B/en
Publication of CN110262796A publication Critical patent/CN110262796A/en
Application granted granted Critical
Publication of CN110262796B publication Critical patent/CN110262796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a java-based data processing method and device and electronic equipment, and relates to the field of data processing. Receiving a request instruction sent by a client according to a preset template, wherein the request instruction comprises a plurality of parameters, configuring a target template according to the plurality of parameters and the preset template, sending a data request to a provider according to the target template, receiving data information fed back by the provider according to the target template, performing standardization processing on the data information, and sending the processed data information to the client. The java-based data processing method, the java-based data processing device and the electronic equipment have the advantages that data processing is faster, data is more standard, and experience is higher when a user uses the java-based data processing device.

Description

Data processing method and device based on java and electronic equipment
Technical Field
The application relates to the field of data processing, in particular to a java-based data processing method and device and electronic equipment.
Background
At present, along with the improvement of the living standard of people, more and more people select tourism to carry out self-regulation, and in the journey, a car renting mode is also frequently adopted for traveling.
For a platform for online renting of cars provided for customers, it is necessary to connect different suppliers, since each supplier has a different data structure. Meanwhile, the system of the platform for renting vehicles on the internet is generally opened by PHP language, so that when different provider interfaces are docked, a data architecture needs to be independently developed according to each provider interface, and data processing is inconvenient.
Disclosure of Invention
The purpose of the application is to provide a java-based data processing method, so as to solve the problem that an online taxi platform in the prior art needs to independently develop a data architecture for each vendor.
Another objective of the present invention is to provide a java-based data processing device, so as to solve the problem that in the prior art, an online taxi platform needs to independently develop a data architecture for each vendor.
Another objective of the present invention is to provide an electronic device, so as to solve the problem that in the prior art, an online car renting platform needs to independently develop a data architecture for each vendor.
Another object of the present invention is to provide a computer readable storage medium to solve the problem that an online taxi platform in the prior art needs to independently develop a data architecture for each vendor.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a java-based data processing method, where the java-based data processing method is applied to a server, and the server is connected to a client and a provider in a communication manner, where the java-based data processing method includes:
receiving a request instruction sent by the client according to a preset template, wherein the request instruction comprises a plurality of parameters;
configuring a target template according to the multiple parameters and the preset template;
sending a data request to the provider side according to the target template;
receiving data information fed back by the provider side according to the target template;
and carrying out standardization processing on the data information, and sending the processed data information to the client.
The second side, the embodiment of the application provides a data processing device based on java, which is applied to a server, wherein the server is in communication connection with a client and a provider side, and the data processing device based on java comprises:
the information receiving unit is used for receiving a request instruction sent by the client according to a preset template, wherein the request instruction comprises a plurality of parameters;
the configuration unit is used for configuring a target template according to the multiple parameters and the preset template;
the information sending unit is used for sending a data request to the provider side according to the target template;
the information receiving unit is also used for receiving data information fed back by the provider side according to the target template;
an information processing unit for performing standardized processing on the data information;
the information sending unit is also used for sending the processed data information to the client.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
a memory for storing one or more programs;
a processor;
the above-described method is implemented when the one or more programs are executed by the processor.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method described above.
Compared with the prior art, the data processing method and device based on java, the electronic equipment and the computer readable storage medium are provided. Receiving a request instruction sent by a client according to a preset template, wherein the request instruction comprises a plurality of parameters, configuring a target template according to the plurality of parameters and the preset template, sending a data request to a provider according to the target template, receiving data information fed back by the provider according to the target template, performing standardization processing on the data information, and sending the processed data information to the client. In a first aspect, the present application provides a data processing method developed based on java, so that it can implement multithreading, and data processing is faster. In the second aspect, the user can configure the target template according to the preset target, so that the configurability of the data request is realized, the data interaction is faster, and the user experience is better. In the third aspect, since the data received by the server needs to be standardized, the data that can be sent to the client is more standard, and the experience is higher when the user uses the server.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting in scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a java-based data processing method provided in an embodiment of the present application.
Fig. 2 is a flowchart of a sub-step of S106 provided in an embodiment of the present application.
Fig. 3 is a block diagram of a java-based data processing apparatus according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a submodule of an information processing unit according to an embodiment of the present application.
Fig. 5 is a block schematic diagram of an electronic device according to an embodiment of the present application.
In the figure: 100-java-based data processing means; 110-an information receiving unit; 120-configuration unit; 130-an information transmitting unit; 140-an information processing unit; 141-an arrangement module; 142-a configuration module; 150-an information storage unit; 200-an electronic device; 210-a processor; 220-memory; 230-bus.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that, the terms "upper," "lower," "inner," "outer," and the like indicate an orientation or a positional relationship based on the orientation or the positional relationship shown in the drawings, or an orientation or a positional relationship conventionally put in use of the product of the application, merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present application.
In the description of the present application, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
First embodiment
Referring to fig. 1, fig. 1 is a diagram illustrating a java-based data processing method applied to a server, where the server is in communication connection with a client and a provider.
It should be noted that, for online taxi service, a PHP language building system is generally adopted at present, however, because of the single-process property of the PHP language, the online taxi service platform needs to independently develop data processing modes according to different provider ends, and the flow is relatively complex. The Java language is adopted to build the data processing system, and Java is used for micro-server development based on Spring Cloud. Because java language has the effect of multi-thread concurrent processing, for on-line taxi service, data interaction with multiple suppliers can be performed simultaneously, and data processing is faster.
Referring to fig. 1 again, the java-based data processing method provided in the present embodiment specifically includes the following steps:
s101, receiving a request instruction sent by the client according to a preset template, wherein the request instruction comprises a plurality of parameters.
In the existing online taxi platform, the online taxi platform needs to interact with multi-platform data, namely, needs to collect data from different vendor platforms. In addition, because the data formats of all suppliers are different, when an interface or a request mode is changed, the corresponding processing architecture needs to be independently developed so as to meet the data requirements of different suppliers.
Meanwhile, due to the single-threaded nature of the PHP language, concurrent processing using a queue service is required, and there is a bottleneck in processing large concurrent data. Further, since separate development is required for different vendor interfaces, a generalized configuration is not made, resulting in troublesome data processing.
In view of this, the data processing method provided in the present application is set up using java language. Meanwhile, the preset module is arranged in the server, wherein the preset template is a template comprising all parameters which can be requested by the user, for example, the template can comprise a user renting city, a vehicle type, a price and the like. When used to interact with the server using the client, the server can send the preset template to the client, where the client includes, but is not limited to, a terminal product such as a computer, a mobile phone, etc. used by the user.
After the client receives the preset template, the client can select the required parameters, such as selecting a car renting city, car renting time and the like, and send a request instruction after determining the parameters to the server.
As an implementation manner of this embodiment, the data format of the server is dynamically configured by replacing the template data by Freemaker, where FreeMarker is a template engine, that is, a generic tool based on the template and the data to be changed, and used to generate output text (HTML web page, email, configuration file, source code, etc.). Therefore, the configuration of the access template can be carried out according to the requirements of the user, the dynamic configuration effect is realized, and the data interaction can be realized more quickly.
S102, receiving a configuration instruction sent by the flow management server.
In this embodiment, the server is further communicatively connected to a flow management server, where the flow management server is equipped with a Flowable flow management tool, so as to implement a configurable request with a parameter.
Because the server needs to interact with the data of the plurality of provider ends, the application adopts the flow process management tool to perform unified management, thereby achieving the effect of processing the data of different provider ends by multiple threads and improving the data processing speed.
S103, configuring a target template according to the multiple parameters and the preset template.
When the server receives the multiple parameters selected by the client, the multiple parameters and the preset template are configured into a target template.
The target template is a template used for accessing the provider side by the server, on one hand, the target template carries the requirement information of the user, so that the requirement of the user is matched better, and on the other hand, the target template is generated by the same template provided by different users, so that the unification of the request data format is realized, and the data processing is facilitated.
As an implementation mode of the method, the target template is assembled through the OkHttp and a preset template, so that a request message is configured, and a request is sent to a provider side.
S104, sending a data request to the provider end according to the target template.
After the target template is configured, the server may send a data request to the provider side, where it may be appreciated that the server may send the data request to all provider segments.
S105, receiving the data information fed back by the provider side according to the target template.
After the target template is sent to the provider side, the provider side feeds back corresponding data information to the server according to the target template.
For example, if the target template sent to the provider side includes a city and time of renting, the data fed back by the provider side includes data information such as vehicle types, vehicle parameters, etc. that can be rented in the city and time.
And S106, carrying out standardization processing on the data information.
The data information fed back by the provider side is sent to the server in an XML message format, so that the data sent to the client side can be more concise in order to unify the data, and standardized processing is needed for the data.
In this embodiment, the normalization process is to use SAX mode to perform multi-thread concurrency parsing and conversion to a normalized result in JSON format.
Specifically, referring to fig. 2, S106 includes:
s1061, arranging the data information according to a preset priority; wherein the data information comprises a plurality of items of data, and each item of data corresponds to a priority;
in this embodiment, in order to make it more convenient for the user to watch the data, each item of data is provided with a priority, for example, a rented city is a first priority, and a rented time is a second priority; of course, it may be set that the rental city and the rental city are set to the second priority, which is not limited in this application.
After receiving the data information fed back by the provider, the server ranks the data according to the priority of each item of data in the data information.
S1062, the data with the same priority are placed in the same hierarchy, so that the data are configured into a data table, and the data table is sent to the client.
In order to make the experience of the user higher and the effect of watching the data better, in this embodiment, the server will place the same priority in the same hierarchy, and will finally configure the data as a data table, and then send the data table to the client, so that the user sees the data more hierarchically. And through the unified processing of the server to the data, no matter what provider end the user sees the data sent by, the format of the data is not greatly different, and the experience is better.
Meanwhile, it should be noted that, in this embodiment, the data with different priorities belongs to the included relationship, for example, the second level data is included in the first level data, and the user can only see the second level data after clicking on the first level data. For example, city information is first-level data, taxi time is second-level data, when a client receives the data information, the user can see the first-level data, namely, how many cities are, and when a fixed city is selected, the user can see the second-level data, namely, the time information of the rentable vehicle.
Meanwhile, in the prior art, the data returned by the provider end cannot be identified when the data is missing or newly added, and in the application, the server can accurately judge whether the data of the provider end is missing or newly added due to the processing mode of the priority according to the data. And when the data is missing, alarm information is displayed, and workers can grasp the acquired data condition.
For example, when city information at the provider end is missing, the first-level data is missing when the standardization of the data is performed, and at this time, the server displays alarm information to remind staff to process.
And S107, storing the data information into mysql.
mysql is a relational database management system, and when the server receives data sent by the provider and the client, the data information is stored in mysql.
Note that S106 and S107 are not sequential.
S108, caching the processed data information into redis.
In this embodiment, in order to achieve faster response to the demands of the client, after the data information is arranged according to the preset priority, the server will also cache the data that needs to be sent currently in redis.
By caching the data information into the redis, when the data access with the same behavior as the previous client exists in the access of the subsequent client, the server directly calls the same data from the cached data and sends the same data to the client. For example, when the a-client accesses the rentable situation of the city a between No. 7 and No. 10 at the current time, the server will send the data information obtained from the provider end to the a-client, and will also cache the data information in redis. If the b client also accesses the rentable situation of the A city between No. 7 and No. 10 in the latter half hour, the server can directly push the related data information cached in redis to the b client without calling the data, and the data interaction speed can be faster.
Meanwhile, it should be noted that, because the capacity of the fiddis cache is smaller, the data therein is in a state of being updated in real time.
And S109, the processed data information is sent to the client.
Second embodiment
Referring to fig. 3, a functional unit diagram of the java based data processing apparatus 100 shown in fig. 1 according to a preferred embodiment of the present invention is shown. It should be noted that, the basic principle and the technical effects of the java-based data processing apparatus 100 provided in this embodiment are the same as those of the foregoing embodiments, and for brevity, reference may be made to the corresponding contents of the foregoing embodiments for the description of the embodiments of the present invention. The java based data processing apparatus 100 includes:
the information receiving unit 110 is configured to receive a request instruction sent by the client according to a preset template, where the request instruction includes a plurality of parameters.
It is understood that S101 may be performed by the information receiving unit 110.
The information receiving unit 110 is further configured to receive a configuration instruction sent by the flow management server.
It is understood that S102 may be performed by the information receiving unit 110.
The configuration unit 120 is configured to configure a target template according to the multiple parameters and the preset template.
It is understood that S103 may be performed by the configuration unit 120.
And the information sending unit 130 is configured to send a data request to the provider according to the target template.
It is understood that S104 may be performed by the information transmitting unit 130.
The information receiving unit 110 is further configured to receive data information fed back by the provider side according to the target template.
It is understood that S105 may be performed by the information receiving unit 110.
And an information processing unit 140 for performing normalization processing on the data information.
It is understood that S106 may be performed by the information processing unit 140.
Referring to fig. 4, the information processing unit 140 includes:
a ranking module 141, configured to rank the data information according to a preset priority; wherein the data information comprises a plurality of items of data, and each item of data corresponds to a priority.
It is understood that S1061 may be performed by the arrangement module 141.
The configuration module 142 is configured to place data with the same priority level in the same hierarchy, configure the data into a data table, and send the data table to the client.
It is understood that S1062 may be performed by the configuration module 142.
And an information storage unit 150 for storing the data information in mysql.
It is understood that S107 may be performed by the information storage unit 150.
The information storage unit is also used for caching the processed data information into redis.
It is understood that S108 may be performed by the information storage unit 150.
The information sending unit 130 is further configured to send the processed data information to the client.
It is understood that S109 may be performed by the information transmission unit 130.
Third embodiment
Referring to fig. 5, fig. 5 is a block diagram illustrating an electronic device 200 according to an embodiment of the invention. The electronic device 200 includes a processor 210, a memory 220, and a bus 230, the processor 210 and the memory 220 being connected by the bus 230.
The memory 220 is used for storing a program, and the java-based data processing apparatus 100 includes at least one software functional module that may be stored in the memory 220 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the electronic device 200, and the processor 210 executes the program after receiving an execution instruction to implement the java-based data processing method disclosed in the above embodiments of the present invention.
The Memory 220 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 210 may be an integrated circuit chip with signal processing capabilities. The processor 210 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
It is to be understood that the configuration shown in fig. 5 is merely illustrative, and that electronic device 200 may also include more or fewer components than those shown in fig. 5, or have a different configuration than that shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The electronic device 200 may be a general purpose computer or a special purpose computer, both of which may be used to implement the java based data processing method of the embodiments of the present invention. Although only one computer is shown in the embodiments of the present invention, for convenience, the functionality described herein may be implemented in a distributed fashion across multiple similar platforms to balance processing loads.
Fourth embodiment
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the java-based data processing method disclosed in the above embodiment.
In summary, compared to the prior art, the data processing method, device, electronic device and computer readable storage medium based on java provided in the embodiments of the present application. Receiving a request instruction sent by a client according to a preset template, wherein the request instruction comprises a plurality of parameters, configuring a target template according to the plurality of parameters and the preset template, sending a data request to a provider according to the target template, receiving data information fed back by the provider according to the target template, performing standardization processing on the data information, and sending the processed data information to the client. In a first aspect, the present application provides a data processing method developed based on java, so that it can implement multithreading, and data processing is faster. In the second aspect, the user can configure the target template according to the preset target, so that the configurability of the data request is realized, the data interaction is faster, and the user experience is better. In the third aspect, since the data received by the server needs to be standardized, the data that can be sent to the client is more standard, and the experience is higher when the user uses the server.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. The data processing method based on java is characterized by being applied to an online taxi system, the data processing method based on java is applied to a server, the server is in communication connection with a client and a provider, the server is also in communication connection with a flow management server, the provider comprises a plurality of families, and the data processing method based on java comprises the following steps:
receiving a request instruction sent by the client according to a preset template, wherein the request instruction comprises a plurality of parameters; the preset template is a template comprising all parameters which can be requested by a user, after the client receives the preset template, the client can select the required parameters and send a request instruction after the parameters are determined to the service;
receiving a configuration instruction sent by the flow management server, wherein the flow management server is provided with a flow management tool, so that a configurable request with parameters is realized;
configuring a target template according to the multiple parameters and the preset template; the target template is used for accessing a provider end by a server, wherein the server assembles a plurality of parameters and a preset template through an OkHttp, so as to configure a request message and send a request to the provider end;
sending a data request to the provider side according to the target template;
receiving data information fed back by the provider side according to the target template;
carrying out standardization processing on the data information and sending the processed data information to the client;
the step of performing standardization processing on the data information and sending the processed data information to the client comprises the following steps:
the data information is arranged according to preset priority; wherein the data information comprises a plurality of items of data, and each item of data corresponds to a priority;
placing data with the same priority level in the same hierarchy to configure the data into a data table, and sending the data table to the client.
2. The java based data processing method as claimed in claim 1, wherein after the step of receiving the data information fed back by the provider side according to the target template, the step of java based data processing method further comprises:
storing the data information into mysql;
before the step of sending the processed data information to the client, the java-based data processing method further includes:
and caching the processed data information into redis.
3. A java-based data processing apparatus for executing the java-based data processing method according to claim 1 or 2, the java-based data processing apparatus being applied to a server, the server being communicatively connected to a client and a provider, wherein the java-based data processing apparatus comprises:
the information receiving unit is used for receiving a request instruction sent by the client according to a preset template, wherein the request instruction comprises a plurality of parameters;
the configuration unit is used for configuring a target template according to the multiple parameters and the preset template;
the information sending unit is used for sending a data request to the provider side according to the target template;
the information receiving unit is also used for receiving data information fed back by the provider side according to the target template;
an information processing unit for performing standardized processing on the data information;
the information sending unit is also used for sending the processed data information to the client;
the information processing unit includes:
the arrangement module is used for arranging the data information according to a preset priority; wherein the data information comprises a plurality of items of data, and each item of data corresponds to a priority;
and the configuration module is used for placing the data with the same priority level in the same hierarchy so as to configure the data into a data table and sending the data table to the client.
4. A java based data processing apparatus according to claim 3, further comprising:
an information storage unit for storing the data information into mysql;
the information storage unit is also used for caching the processed data information into redis.
5. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the method of claim 1 or 2 is implemented when the one or more programs are executed by the processor.
6. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to claim 1 or 2.
CN201910567945.4A 2019-06-27 2019-06-27 Data processing method and device based on java and electronic equipment Active CN110262796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910567945.4A CN110262796B (en) 2019-06-27 2019-06-27 Data processing method and device based on java and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910567945.4A CN110262796B (en) 2019-06-27 2019-06-27 Data processing method and device based on java and electronic equipment

Publications (2)

Publication Number Publication Date
CN110262796A CN110262796A (en) 2019-09-20
CN110262796B true CN110262796B (en) 2023-06-30

Family

ID=67922347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910567945.4A Active CN110262796B (en) 2019-06-27 2019-06-27 Data processing method and device based on java and electronic equipment

Country Status (1)

Country Link
CN (1) CN110262796B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465469B (en) * 2020-12-11 2024-04-16 深圳市华宇讯科技有限公司 Information processing method and device for realizing group construction activity creation
CN112465473B (en) * 2020-12-11 2024-04-16 深圳市华宇讯科技有限公司 Information processing method and device for building block activities
CN114745296B (en) * 2020-12-23 2023-08-15 北京首信科技股份有限公司 Data reporting method and device
CN116991466B (en) * 2023-07-27 2024-04-16 深圳市慧聚数字软件运营有限公司 E-commerce-based client software configuration method, device and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2091211A1 (en) * 2008-02-15 2009-08-19 Siemens Aktiengesellschaft Method for generic conversion between server data and client data
CN105760477A (en) * 2016-02-15 2016-07-13 中国建设银行股份有限公司 Data query method and system for multiple data sources and associated equipment therefore
CN106649638A (en) * 2016-12-08 2017-05-10 贵州数据宝网络科技有限公司 Big data acquisition method
CN108334465A (en) * 2018-02-06 2018-07-27 深圳壹账通智能科技有限公司 Configuration method, device, equipment and the computer readable storage medium of communication interface
EP3382624A1 (en) * 2017-03-28 2018-10-03 WhatsApp, Inc. Techniques for templated messages
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109783518A (en) * 2018-12-11 2019-05-21 深圳市优必选科技有限公司 A kind of information query method, inquiry unit, storage medium and terminal device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7328219B2 (en) * 2003-03-03 2008-02-05 Raytheon Company System and method for processing electronic data from multiple data sources
US20090157426A1 (en) * 2007-12-12 2009-06-18 Mckesson Financial Holdings Limited Methods, apparatuses & computer program products for facilitating efficient distribution of data within a system
EP2657893A1 (en) * 2012-04-26 2013-10-30 Amadeus S.A.S. System and method of categorizing and ranking travel option search results
CN104580097A (en) * 2013-10-22 2015-04-29 腾讯科技(深圳)有限公司 Data processing method, device and system
US10521554B2 (en) * 2015-10-16 2019-12-31 Siemens Healthcare Gmbh Harmonization of cross-vendor data
CN105718540B (en) * 2016-01-18 2020-06-05 北京京东尚科信息技术有限公司 Data loading method and device
CN108268559A (en) * 2017-01-04 2018-07-10 阿里巴巴集团控股有限公司 Information providing method and device based on ticketing service search
CN107944039B (en) * 2017-12-07 2020-07-28 携程旅游网络技术(上海)有限公司 Method and system for calling air ticket data, storage medium and electronic equipment
CN109617646B (en) * 2018-10-22 2022-10-25 中国平安财产保险股份有限公司 Message conversion method and device, computer equipment and computer readable storage medium
CN109522357A (en) * 2018-11-28 2019-03-26 北京锐安科技有限公司 A kind of data processing method, device, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2091211A1 (en) * 2008-02-15 2009-08-19 Siemens Aktiengesellschaft Method for generic conversion between server data and client data
CN105760477A (en) * 2016-02-15 2016-07-13 中国建设银行股份有限公司 Data query method and system for multiple data sources and associated equipment therefore
CN106649638A (en) * 2016-12-08 2017-05-10 贵州数据宝网络科技有限公司 Big data acquisition method
EP3382624A1 (en) * 2017-03-28 2018-10-03 WhatsApp, Inc. Techniques for templated messages
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN108334465A (en) * 2018-02-06 2018-07-27 深圳壹账通智能科技有限公司 Configuration method, device, equipment and the computer readable storage medium of communication interface
CN109783518A (en) * 2018-12-11 2019-05-21 深圳市优必选科技有限公司 A kind of information query method, inquiry unit, storage medium and terminal device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于XML实现异构数据源的联合使用;高明;陈昕;李炜;宋瀚涛;;计算机科学(03);全文 *
基于门户技术的EAI实现方法研究;武云庆;杨丹;;计算机工程与设计(06);全文 *

Also Published As

Publication number Publication date
CN110262796A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110262796B (en) Data processing method and device based on java and electronic equipment
CN111290763B (en) Event stream processing cluster manager
CN109299348B (en) Data query method and device, electronic equipment and storage medium
US8560636B2 (en) Methods and systems for providing a virtual network process context for network participant processes in a networked business process
CN107798108B (en) Asynchronous task query method and device
US8539514B2 (en) Workflow integration and portal systems and methods
CN111047419B (en) Vehicle type standardization method and related device
US20120054335A1 (en) Methods and systems for managing quality of services for network participants in a networked business process
CN111913818A (en) Method for determining dependency relationship between services and related device
CN107968805B (en) Event notification method and server
CN113377626B (en) Visual unified alarm method, device, equipment and medium based on service tree
US9240965B2 (en) Methods and systems for business interaction monitoring for networked business process
US10380600B2 (en) Program identifier response to unstructured input
CN109901889A (en) The full link monitoring method of supporting business system O&M based on J2EE platform
CN111582815A (en) Engineering management method and device for nuclear power station, terminal equipment and storage medium
CN113094674A (en) Page display method and device, electronic equipment and storage medium
CN108702300A (en) Polymerization notice service based on cloud
US10754745B2 (en) Subscription methods and systems for component information of a system
CN116828035A (en) Data integration system based on cloud computing
US8825630B2 (en) Method and system for generic enterprise search adapter queries
CN110875832A (en) Abnormal service monitoring method, device and system and computer readable storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN113988964A (en) Air ticket monitoring method, system, electronic equipment and storage medium
CN112465605A (en) Part generation method, device, equipment and storage medium
CN116450465B (en) Data processing method, device, equipment and 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