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

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

Info

Publication number
CN111460298A
CN111460298A CN202010246226.5A CN202010246226A CN111460298A CN 111460298 A CN111460298 A CN 111460298A CN 202010246226 A CN202010246226 A CN 202010246226A CN 111460298 A CN111460298 A CN 111460298A
Authority
CN
China
Prior art keywords
strategy
service
identifier
policy
service data
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.)
Pending
Application number
CN202010246226.5A
Other languages
Chinese (zh)
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.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa 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 Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202010246226.5A priority Critical patent/CN111460298A/en
Publication of CN111460298A publication Critical patent/CN111460298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

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

Abstract

The application relates to a business data processing method, a business data processing device, a computer device and a storage medium. The method comprises the following steps: receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification. The corresponding strategy conditions are inquired according to the service requirements instead of customizing the corresponding strategy conditions according to the service requirements, each service can inquire the corresponding strategy conditions from the strategy library, and the coupling between the strategy conditions and the service data is reduced, namely the constructed strategy conditions can be multiplexed by a plurality of service data.

Description

Service data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing service data, a computer device, and a storage medium.
Background
With the application contents becoming richer and more intelligent, the user can feel that different users can display different content interfaces, namely intelligent content recommendation. At present, the content forms and the content classifications are more and more, each classified content corresponds to one set of policy background management system, each set of content background management system manages the corresponding policy logic conditions, repeated operation exists for content operation along with the lapse of time, and a great deal of energy is needed to manage the content policy corresponding to each content.
Disclosure of Invention
In order to solve the technical problem, the application provides a service data processing method, a service data processing device, a computer device and a storage medium.
In a first aspect, the present application provides a method for processing service data, including:
receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
acquiring service attribute information according to the terminal identifier and/or the service identifier;
inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition;
acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data;
and sending the service data according to the terminal identification.
In a second aspect, the present application provides a service data processing apparatus, including:
the request receiving module is used for receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
the attribute information acquisition module is used for acquiring the service attribute information according to the terminal identifier and/or the service identifier;
the strategy query module is used for querying the strategy conditions matched with the service attribute information of the service identification in the strategy library to obtain first target strategy conditions;
the data acquisition module is used for acquiring the business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data;
and the data sending module is used for sending the service data according to the terminal identifier.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
acquiring service attribute information according to the terminal identifier and/or the service identifier;
inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition;
acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data;
and sending the service data according to the terminal identification.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
acquiring service attribute information according to the terminal identifier and/or the service identifier;
inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition;
acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data;
and sending the service data according to the terminal identification.
The method for processing the service data comprises the following steps: receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification. The corresponding strategy conditions are inquired according to the service requirements instead of customizing the corresponding strategy conditions according to the service requirements, each service can inquire the corresponding strategy conditions from the strategy library, and the coupling between the strategy conditions and the service data is reduced, namely the constructed strategy conditions can be reused for a plurality of service data, and the strategy for pushing the service data is convenient to manage.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a method for processing service data in one embodiment;
FIG. 2 is a flow chart illustrating a method for processing service data according to an embodiment;
FIG. 3 is a timing diagram of a method for processing service data in one embodiment;
FIG. 4 is a block diagram of a business data processing apparatus in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is an application environment diagram of a service data processing method in an embodiment. Referring to fig. 1, the service data processing method is applied to a service data processing system. The service data processing system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. The server 120 receives a service data acquisition request sent by the terminal 110, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification.
The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. When the server 120 is an independent server, the server 120 stores a policy repository and service data and an association relationship between the service data and policy conditions. If the server 120 is a server cluster, the policy repository, the service data and the association relationship may be distributed among a plurality of servers, such as a part of the servers for storing the policy repository and a part of the servers for storing the service data and the association relationship.
As shown in fig. 2, in one embodiment, a method for processing service data is provided. The embodiment is mainly illustrated by applying the method to the server 120 in fig. 1. Referring to fig. 2, the service data processing method specifically includes the following steps:
step S201, receiving a service data acquisition request sent by a terminal.
In this embodiment, the service data acquisition request carries the terminal identifier and the service identifier.
Specifically, the server corresponds to a plurality of terminals. The service data acquisition request refers to a computer instruction sent by each terminal for requesting to acquire service data. The terminal sends the service request to the server which stores the service data. The service identifier is used for indicating the requested service, and the service identifier is associated with service data.
Step S202, obtaining the service attribute information according to the terminal identification and/or the service identification.
Specifically, the service attribute information is preconfigured attribute information, and the attribute information includes, but is not limited to, device attribute information of the device, service attribute information of the service data, and user information. Attribute information for describing service data, and the like. The device attribute refers to attribute information of the terminal, such as a model of the device, a size of a presentation interface, a production time, and the like. The attribute information of the service data includes a presentation style of the service data, presentation area information, and the like. The user information includes user personal data, historical behavior data, and the like. The user personal data is information for describing the user itself, such as age, sex, occupation, and native place, and the like. The historical behavior data includes time information and frequency of use of the respective traffic data, and the like. The service attribute information may be self-defined attribute information, or may be obtained by performing statistical analysis on device information of a plurality of devices and user information of a plurality of users. And acquiring equipment information of the terminal according to the terminal identifier, and acquiring attribute information of the service data according to the service identifier.
Step S203, querying a policy base for a policy condition matching the service attribute information of the service identifier to obtain a first target policy condition.
In particular, the policy repository is used to store policy conditions. The strategy base stores strategy conditions constructed according to the requirements of each service, wherein the strategy conditions are independent from service data, each strategy condition can be used by one or more services, and one service can also use one or more strategy conditions. The strategy conditions comprise strategy marks, attribute values corresponding to the attribute marks and operators. When multiple attribute identifications are corresponded, one policy condition comprises each attribute identification, attribute values corresponding to each attribute identification, operators corresponding to each attribute identification and operators among the attribute identifications. When only one attribute identifier is contained, the policy condition comprises the attribute identifier, the attribute value corresponding to the attribute identifier and the operator corresponding to the attribute. Where operators include, but are not limited to, "greater than," "less than," "equal to," "not greater than," and "not less than," and the like.
The policy condition is a condition for screening device information of the terminal and/or service attribute information of the service data.
In a specific embodiment, the attribute is a set of keys (rediskeys) in a redis database, such as:
if redisKey
return yes
End。
And screening out the strategy conditions matched with the equipment information and/or the service attribute information through the constraint conditions to obtain target strategy conditions. The method comprises the steps of inquiring strategy conditions which have the same attribute identification and are matched with attribute values through attribute identifications and attribute values of all attributes in service attribute information to obtain a first target strategy condition, if a preset attribute corresponding to a service system identification comprises dimension information and the dimension is 30, searching the strategy condition of which the attribute identification is the dimension and the dimension is 30 from a strategy library, and taking the strategy condition as the first target strategy condition.
Step S204, acquiring the business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data.
And step S205, sending the service data according to the terminal identification.
Specifically, the association relationship between the service data and the policy conditions is a preset relationship, that is, after the service is created, the policy conditions related to the service data are queried in the policy conditions, and then the association relationship between the policy conditions is also found according to the created service data. The business data includes but is not limited to common data such as pictures, words, documents, and the like. The service data can be customized and downloaded from other web pages. And inquiring the service data corresponding to the first target strategy condition according to the pre-established strategy condition and service data association relation, acquiring the service data, and sending the changed service data to the terminal, namely sending the service data according to the identifier of the terminal.
The service data processing method comprises the following steps: receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification. The corresponding strategy conditions are inquired according to the service requirements instead of customizing the corresponding strategy conditions according to the service requirements, each service can inquire the corresponding strategy conditions from the strategy library, the coupling between the strategy conditions and the service data is reduced, and the constructed strategy conditions can be multiplexed by a plurality of service data.
In an embodiment, the service data processing method further includes: acquiring service data, wherein the service data comprises service attribute information; inquiring matched strategy conditions from a strategy library according to the service attribute information of the service data to obtain second target strategy conditions; and establishing an incidence relation between the second target strategy condition and the service data.
Specifically, the service attribute information of the service data may include attribute information of the service data itself, and may further include device information, user information, and the like of a user side of the service data. Such as the size of the device, the version, the age of the user, the gender of the user, and the usage rights of the user, etc. Determining policy conditions according to the attribute information of the device, the size of the device, the user use authority, the viewing time, the touch behavior and the like, namely querying the policy conditions with the same attribute information from a policy library according to the service attribute information of the service data to obtain second target policy conditions, and acquiring the service data corresponding to the second target policy conditions according to the incidence relation between the policy conditions and the service data. Wherein the second target policy may be one or more. And when the number of the strategy conditions is multiple, inquiring whether each corresponding strategy condition in the service data is matched with a second target strategy condition according to the incidence relation between the strategy conditions and the service data, and when each strategy condition is matched, sending the service data to the terminal. And after the corresponding service data is created, binding the service data with the strategy conditions.
In an embodiment, the service data processing method further includes: receiving a strategy condition adding request, wherein the strategy adding request carries a first strategy identifier, an attribute identifier corresponding to the first strategy identifier, a corresponding attribute value and an operator; generating a first expression corresponding to each first strategy identification, wherein the first strategy identifications and the corresponding first expressions form a first strategy condition, and the first expressions comprise attribute identifications, attribute values and operators corresponding to the first strategy identifications; the first policy condition is added to the policy repository.
Specifically, the policy condition adding request is a request for adding a policy condition, and the request may include one or more policy identifiers (first policy identifiers), attribute identifiers corresponding to the respective first policy identifiers, attribute values corresponding to the attribute identifiers, and operators. And generating an expression according to a defined expression generation method to obtain an expression corresponding to the first strategy identifier, namely the first expression, wherein the first expression and the first strategy identifier form a first strategy condition, and storing the first strategy condition to a strategy library. When multiple policy identifications are included, expressions and batch save policy conditions may be generated in batches. Wherein the first expression is represented using a lua script file.
In an embodiment, the service data processing method further includes: and storing the first strategy identification, the attribute identification corresponding to the first strategy identification, the corresponding attribute value and the operator to a strategy database according to a preset format.
Specifically, the preset format includes, but is not limited to, XM L (extensible markup language), Json (Json object Notation), and the like, where XM L is used to mark an electronic file to make it have a structural markup language Json is a lightweight data exchange format, and after receiving a policy addition request, data in the policy addition request is saved, that is, a first policy identifier, an attribute identifier corresponding to the first policy identifier, a corresponding attribute value, and an operator are saved to a policy database, where when the policy addition request is saved to the database, the data can be saved in the format of XM L, Json, and the like.
In an embodiment, the service data processing method further includes: receiving a strategy updating request, wherein the strategy updating request carries a second strategy identifier and an updating parameter of the second strategy identifier, and the updating parameter comprises an attribute identifier, an attribute value corresponding to the attribute identifier and an operator corresponding to the attribute identifier; generating a second expression corresponding to the second strategy identifier according to the second strategy identifier and the update parameter of the second strategy identifier, wherein the second strategy identifier and the second expression form a second strategy condition; and replacing the strategy conditions with the same strategy identification in the strategy library by using the second strategy conditions.
In particular, the policy update request is used to update at least one of an attribute identification, an attribute value, or an operator parameter in the policy. The updating parameters comprise attribute identification needing to be updated, attribute values corresponding to the attribute identification needing to be updated, operators corresponding to the attribute identification needing to be updated and the like. The policy updating request comprises a deletion request of the attribute identifier, an addition request of the attribute identifier, an updating request of the corresponding parameter of the attribute identifier and the like. The deletion request of the attribute identifier refers to deletion of the definition of the attribute, for example, if the attribute included in the second policy identifier includes an age, if the policy update request is a request for deleting the age, the definition of the age is deleted. The addition request of the attribute identifier is used for adding a definition of the attribute, for example, the attribute included in the second policy identifier has an age, and if the policy update request is an addition request, that is, an addition request of a device size, a definition about the device size is added. A request to update property values and/or operators, i.e. change the property value corresponding to the property identification, the operator of the property identification pair, the operator between the property identifications, etc.
In a specific embodiment, referring to fig. 3, fig. 3 is a timing diagram of a service data processing method. The figure includes a policy server 301, a service server 302 and a terminal 303, wherein the service server 302 is connected with the policy server 301 and the terminal 303 respectively. The method for processing the service data comprises the following specific steps:
the policy server receives a policy generation request 401. The strategy generation request carries a strategy identification and a parameter corresponding to the strategy identification. Wherein the parameters comprise attribute identification (field name) of the policy identification pair, attribute value (field value) corresponding to the attribute identification, operator between operator and attribute identification corresponding to the attribute identification, and the like.
402, the policy server stores the policy identifier and the parameter corresponding to the policy identifier. The Json format is adopted to comprise strategy identification and corresponding parameters.
The policy server generates an expression, i.e. lua script code, 403. And generating expressions according to the field names, the field values and the operators corresponding to the strategy identifications to obtain strategy conditions, wherein one strategy condition can comprise one or more expressions. Expressions are formed by operators, typically forming an assignment statement with expressions, each attribute identifying the expression that forms a corresponding if branch. If the television screen is larger than 30 inches, the expression is 'size > 30', namely if size >30then returns a matching result end. If more conditions need to be judged, the method can be realized by adding the if branch.
The policy server stores the policy conditions 404. And adopting a reload interface to execute refreshing during updating. The created policy conditions may be made immediately effective by the reload interface refresh. The terminal realizes the synchronization of the strategy conditions through the openness load function in the effective process, namely, the created strategy conditions are synchronized into the strategy library, and the openness load function is adopted to realize the synchronization, so that a user can not feel. Policy conditions can be modified, added, and deleted, etc. at any time in the policy server.
In the specific embodiment, a json format string of a policy conditional expression stored in a policy database is acquired; and generating a lua file name through the json string, wherein the format of the lua file name is strategy789. the lua file name, and 789 is policy identification. The lua file content expresses the detailed logic to be executed by the policy; and synchronizing the generated lua file to the lower part of the openness module directory folder, taking the lua file as a plugin to be loaded and executed by openness, initializing, and calling a reload interface to take effect. When the service server calls the policy server to transmit the policy identifier to obtain the matching result, the openness loads the currently corresponding lua file, for example, the policy interface is "http:// www.xxx.com/getters? The interface pid 234 "is used to obtain a policy matching result, pid is the policy 234 (policy identifier), openness goes to the module directory as needed to find the corresponding strategy234.lua for execution, and the result of matching is calculated by all the expression bits required to be matched by the current policy strategy234. And sorting and aggregating returned results into a json string according to the priority (the priority is configured by the user for each strategy in the strategy background, and the priority is matched preferentially if the number is larger) and returning the json string to the service server, and if the json string is not matched successfully, returning an empty identifier to indicate that any strategy expression result is not matched. When the strategy id is transmitted, a plurality of strategy ids can be transmitted at one time, and the corresponding strategy files are loaded in sequence.
405, the service server sends a policy acquisition request for service data. And after receiving the service data, the service server generates a strategy acquisition request according to the service data.
The policy server queries the policy conditions in the policy repository based on the received policy acquisition request 406.
And 407, the policy server sends the queried policy conditions.
And 408, the business server establishes an association relation between the strategy conditions and the business data according to the strategy conditions returned by the strategy server. Namely, the incidence relation between the strategy identification and the service data is established.
409, the terminal sends a service data acquisition request to the service server.
And 410, the service server inquires attribute information according to the service data acquisition request and generates a strategy acquisition request according to the attribute information.
411, sending a policy acquisition request to the policy server.
The policy server queries the policy repository for policy conditions based on the policy acquisition request 412. An identification of the policy condition is obtained.
In this specific embodiment, the attribute value is obtained, that is, the attribute value is obtained through a conditional attribute of an expression, and a source of the attribute value may be a custom, or may be from an http interface, or may be mysql, redis, elastic search, or the like. And substituting the attribute values into the conditional expression for operation to obtain a result, namely obtaining the strategy identification.
413, the policy server sends the queried policy conditions, i.e. returns an identification of the policy conditions.
And 414, the service server inquires the service data according to the inquired strategy conditions.
415, the service server sends the service data to the terminal.
And 416, the terminal displays the service data.
According to the business data processing method, all the terminals can take effect by dynamically managing the strategy conditions of the business data, namely updating the strategy once, namely operating the strategy conditions on the strategy background to create the strategy conditions once, operating the strategy conditions on a plurality of business content backgrounds can be realized, the strategies are managed together in a centralized manner, the strategy and content scheme are managed separately, and the operation efficiency is greatly improved.
Fig. 2 is a flowchart illustrating a service data processing method according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a service data processing apparatus 200, including:
the request receiving module 201 is configured to receive a service data acquisition request sent by a terminal, where the service data acquisition request carries a terminal identifier and a service identifier.
And the attribute information obtaining module 202 is configured to obtain the service attribute information according to the terminal identifier and/or the service identifier.
The policy query module 203 is configured to query a policy base for a policy condition matched with the service attribute information of the service identifier, so as to obtain a first target policy condition.
The data obtaining module 204 is configured to obtain, according to the association relationship between the policy condition and the service data, service data corresponding to the first target policy condition.
And a data sending module 205, configured to send the service data according to the terminal identifier.
In an embodiment, the service data processing apparatus 200 further includes:
a service data obtaining module 206, configured to obtain service data, where the service data includes service attribute information.
The policy query module 203 is further configured to query the matching policy conditions from the policy repository according to the service attribute information, so as to obtain second target policy conditions.
And the association module 207 is configured to establish an association relationship between the second target policy condition and the service data.
In an embodiment, the service data processing apparatus 200 further includes:
the request receiving module 201 is further configured to receive a policy condition adding request, where the policy adding request carries a first policy identifier, and an attribute identifier, a corresponding attribute value, and an operator corresponding to the first policy identifier.
And the strategy generation module is used for generating first expressions corresponding to the first strategy identifications, the first strategy identifications and the corresponding first expressions form first strategy conditions, and the first expressions comprise attribute identifications, attribute values and operators corresponding to the first strategy identifications.
And the strategy adding module is used for adding the first strategy condition to the strategy library.
In an embodiment, the service data processing apparatus 200 further includes:
and the data storage module is used for storing the first strategy identification, the attribute identification corresponding to the first strategy identification, the corresponding attribute value and the operator to the strategy database according to a preset format.
In an embodiment, the service data processing apparatus 200 further includes:
the request receiving module 201 receives a policy update request, where the policy update request carries a second policy identifier and an update parameter of the second policy identifier, and the update parameter includes an attribute identifier, an attribute value corresponding to the attribute identifier, and an operator corresponding to the attribute identifier.
And the strategy generation module is further used for generating a second expression corresponding to the second strategy identifier according to the second strategy identifier and the update parameter of the second strategy identifier, and the second strategy identifier and the second expression form a second strategy condition.
And the strategy replacement module is used for replacing the strategy conditions with the same strategy identification in the strategy library by adopting the second strategy conditions.
FIG. 5 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may be the terminal 110 (or the server 120) in fig. 1. As shown in fig. 5, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected via a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the service data processing method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform the business data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the service data processing apparatus provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 5. The memory of the computer device may store various program modules constituting the service data processing apparatus, such as the request receiving module 201, the attribute information obtaining module 202, the policy querying module 203, the data obtaining module 204, and the data sending module 205 shown in fig. 4. The computer program constituted by the respective program modules causes the processor to execute the steps in the business data processing method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 5 may execute, by using the request receiving module 201 in the service data processing apparatus shown in fig. 4, a service data acquisition request sent by a receiving terminal, where the service data acquisition request carries a terminal identifier and a service identifier. The computer device may execute, through the attribute information obtaining module 202, obtaining the service attribute information according to the terminal identifier and/or the service identifier. The computer device may execute, by the policy query module 203, a policy condition queried in the policy repository and matched with the service attribute information of the service identifier, to obtain a first target policy condition. The computer device may execute, by the data obtaining module 204, obtaining the service data corresponding to the first target policy condition according to the association relationship between the policy condition and the service data. The computer device may perform the transmission of the service data according to the terminal identification through the data transmission module 205.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring service data, wherein the service data comprises service attribute information; inquiring matched strategy conditions from a strategy library according to the service attribute information of the service data to obtain second target strategy conditions; and establishing an incidence relation between the second target strategy condition and the service data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a strategy condition adding request, wherein the strategy adding request carries a first strategy identifier, an attribute identifier corresponding to the first strategy identifier, a corresponding attribute value and an operator; generating a first expression corresponding to each first strategy identification, wherein the first strategy identification and the corresponding first expression form a first strategy condition, and the first expression comprises an attribute identification, an attribute value and an operator corresponding to the first strategy identification; the first policy condition is added to the policy repository.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and storing the first strategy identification, the attribute identification corresponding to the first strategy identification, the corresponding attribute value and the operator to a strategy database according to a preset format.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a strategy updating request, wherein the strategy updating request carries a second strategy identifier and an updating parameter of the second strategy identifier, and the updating parameter comprises an attribute identifier, an attribute value corresponding to the attribute identifier and an operator corresponding to the attribute identifier; generating a second expression corresponding to the second strategy identifier according to the second strategy identifier and the update parameter of the second strategy identifier, wherein the second strategy identifier and the second expression form a second strategy condition; and replacing the strategy conditions with the same strategy identification in the strategy base by adopting the second strategy conditions.
In one embodiment, the preset format is a json formula, the first expression is represented by a lua script file, and the update request is a load request.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier; acquiring service attribute information according to the terminal identifier and/or the service identifier; inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition; acquiring business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data; and sending the service data according to the terminal identification.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring service data, wherein the service data comprises service attribute information; inquiring matched strategy conditions from a strategy library according to the service attribute information of the service data to obtain second target strategy conditions; and establishing an incidence relation between the second target strategy condition and the service data.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a strategy condition adding request, wherein the strategy adding request carries a first strategy identifier, an attribute identifier corresponding to the first strategy identifier, a corresponding attribute value and an operator; generating a first expression corresponding to each first strategy identification, wherein the first strategy identification and the corresponding first expression form a first strategy condition, and the first expression comprises an attribute identification, an attribute value and an operator corresponding to the first strategy identification; the first policy condition is added to the policy repository.
In one embodiment, the computer program when executed by the processor further performs the steps of: and storing the first strategy identification, the attribute identification corresponding to the first strategy identification, the corresponding attribute value and the operator to a strategy database according to a preset format.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a strategy updating request, wherein the strategy updating request carries a second strategy identifier and an updating parameter of the second strategy identifier, and the updating parameter comprises an attribute identifier, an attribute value corresponding to the attribute identifier and an operator corresponding to the attribute identifier; generating a second expression corresponding to the second policy identifier according to the second policy identifier and the update parameter of the second policy identifier, wherein the second policy identifier and the second expression form a second policy condition; and replacing the policy conditions with the same policy identification in the policy base by the second policy condition.
In one embodiment, the preset format is a json formula, the first expression is represented by a lua script file, and the update request is a load request.
It will be understood by those of ordinary skill in the art that all or a portion of the flow of the methods of the embodiments described above may be implemented by a computer program that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
It is noted that, herein, relational terms such as "first" and "second," and the like, may be 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. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely exemplary of the invention, which can be understood and carried into effect by those skilled in the art. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for processing service data, the method further comprising:
receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
acquiring service attribute information according to the terminal identification and/or the service identification;
inquiring a strategy condition matched with the service attribute information of the service identifier in a strategy library to obtain a first target strategy condition;
acquiring service data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the service data;
and sending the service data according to the terminal identification.
2. The method of claim 1, further comprising:
acquiring the service data, wherein the service data comprises service attribute information;
inquiring matched strategy conditions from the strategy library according to the service attribute information of the service data to obtain second target strategy conditions;
and establishing an incidence relation between the second target strategy condition and the service data.
3. The method of claim 1, further comprising:
receiving a strategy condition adding request, wherein the strategy adding request carries a first strategy identifier, and an attribute identifier, a corresponding attribute value and an operator which correspond to the first strategy identifier;
generating a first expression corresponding to each first policy identifier, where the first policy identifier and the corresponding first expression form the first policy condition, and the first expression includes an attribute identifier, an attribute value, and an operator corresponding to the first policy identifier;
adding the first policy condition to the policy repository.
4. The method of claim 3, further comprising:
and storing the first strategy identification, the attribute identification corresponding to the first strategy identification, the corresponding attribute value and the operator to a strategy database according to a preset format.
5. The method of claim 4, further comprising:
receiving a policy updating request, wherein the policy updating request carries a second policy identifier, and the updating parameters of the second policy identifier comprise an attribute identifier, an attribute value corresponding to the attribute identifier and an operator corresponding to the attribute identifier;
generating a second expression corresponding to the second policy identifier according to the second policy identifier and the update parameter of the second policy identifier, wherein the second policy identifier and the second expression form a second policy condition;
and replacing the policy conditions with the same policy identification in the policy base by the second policy conditions.
6. The method of claim 5, wherein the predetermined format is json, the first expression is represented by a lua script file, and the update request is a reload request.
7. A service data processing apparatus, characterized in that the apparatus comprises:
the request receiving module is used for receiving a service data acquisition request sent by a terminal, wherein the service data acquisition request carries a terminal identifier and a service identifier;
the attribute information acquisition module is used for acquiring the service attribute information according to the terminal identifier and/or the service identifier;
the strategy inquiry module is used for inquiring strategy conditions matched with the service attribute information of the service identification in a strategy library to obtain first target strategy conditions;
the data acquisition module is used for acquiring the business data corresponding to the first target strategy condition according to the incidence relation between the strategy condition and the business data;
and the data sending module is used for sending the service data according to the terminal identification.
8. The apparatus of claim 7, further comprising:
a service data obtaining module, configured to obtain the service data, where the service data includes service attribute information;
the strategy inquiry module is also used for inquiring matched strategy conditions from the strategy library according to the service attribute information to obtain second target strategy conditions;
and the association module is used for establishing the association relationship between the second target strategy condition and the service data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010246226.5A 2020-03-31 2020-03-31 Service data processing method and device, computer equipment and storage medium Pending CN111460298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246226.5A CN111460298A (en) 2020-03-31 2020-03-31 Service data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246226.5A CN111460298A (en) 2020-03-31 2020-03-31 Service data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111460298A true CN111460298A (en) 2020-07-28

Family

ID=71682439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246226.5A Pending CN111460298A (en) 2020-03-31 2020-03-31 Service data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111460298A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881139A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Data acquisition method, system, equipment and readable storage medium
CN112084403A (en) * 2020-08-26 2020-12-15 深圳市华曦达科技股份有限公司 Data query method and device, computer equipment and storage medium
CN112232818A (en) * 2020-10-15 2021-01-15 金蝶软件(中国)有限公司 Data reconciliation method and device, computer equipment and storage medium
CN112333246A (en) * 2020-10-26 2021-02-05 深圳市酷开网络科技有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN112667248A (en) * 2020-12-08 2021-04-16 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating server deployment parameters
CN113032745A (en) * 2021-03-19 2021-06-25 上海依图网络科技有限公司 Authority management apparatus, authority management method and medium
CN113076348A (en) * 2021-04-13 2021-07-06 上海优扬新媒信息技术有限公司 Policy information management method, device, server and storage medium
CN113313482A (en) * 2021-05-27 2021-08-27 北京京东振世信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113590180A (en) * 2021-08-03 2021-11-02 北京奇艺世纪科技有限公司 Detection strategy generation method and device
CN113760987A (en) * 2021-02-04 2021-12-07 北京沃东天骏信息技术有限公司 Data processing method and data processing platform
CN114157710A (en) * 2021-12-02 2022-03-08 中国电信股份有限公司 Communication strategy configuration method, device, storage medium and equipment
CN114415916A (en) * 2022-01-05 2022-04-29 阿里云计算有限公司 Data processing method, device, equipment and storage medium
CN114650538A (en) * 2020-12-21 2022-06-21 北京首信科技股份有限公司 Method and device for authorizing actions
CN114791915A (en) * 2022-06-22 2022-07-26 深圳高灯计算机科技有限公司 Data aggregation method and device, computer equipment and storage medium
CN114945043A (en) * 2022-05-26 2022-08-26 中国平安财产保险股份有限公司 Service data recording method, device, equipment and storage medium
CN115499382A (en) * 2022-08-12 2022-12-20 重庆长安汽车股份有限公司 Traffic scheduling method, device, equipment and medium based on Internet of vehicles
CN115858885A (en) * 2023-02-28 2023-03-28 美云智数科技有限公司 Account set data query method and device, computer equipment and storage medium
CN116016091A (en) * 2021-10-20 2023-04-25 中国移动通信有限公司研究院 Message processing method, device and system
CN112667248B (en) * 2020-12-08 2024-09-24 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating server deployment parameters

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598989A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Data query method and device
CN106897280A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 Data query method and device
CN107918548A (en) * 2017-07-25 2018-04-17 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that business function is realized
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN109033139A (en) * 2018-06-06 2018-12-18 中国平安人寿保险股份有限公司 Client information inquiry method, device, computer equipment and storage medium
CN109189799A (en) * 2018-08-14 2019-01-11 中国平安人寿保险股份有限公司 Business datum querying method, device, computer equipment and storage medium
CN109784703A (en) * 2019-01-02 2019-05-21 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium
CN109816503A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Financial details data creation method, device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598989A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Data query method and device
CN106897280A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 Data query method and device
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN107918548A (en) * 2017-07-25 2018-04-17 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that business function is realized
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN109033139A (en) * 2018-06-06 2018-12-18 中国平安人寿保险股份有限公司 Client information inquiry method, device, computer equipment and storage medium
CN109189799A (en) * 2018-08-14 2019-01-11 中国平安人寿保险股份有限公司 Business datum querying method, device, computer equipment and storage medium
CN109784703A (en) * 2019-01-02 2019-05-21 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium
CN109816503A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Financial details data creation method, device, computer equipment and storage medium

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881139A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Data acquisition method, system, equipment and readable storage medium
CN111881139B (en) * 2020-07-29 2022-07-08 北京浪潮数据技术有限公司 Data acquisition method, system, equipment and readable storage medium
CN112084403A (en) * 2020-08-26 2020-12-15 深圳市华曦达科技股份有限公司 Data query method and device, computer equipment and storage medium
CN112232818A (en) * 2020-10-15 2021-01-15 金蝶软件(中国)有限公司 Data reconciliation method and device, computer equipment and storage medium
CN112333246A (en) * 2020-10-26 2021-02-05 深圳市酷开网络科技有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN112333246B (en) * 2020-10-26 2023-05-05 深圳市酷开网络科技股份有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN112667248A (en) * 2020-12-08 2021-04-16 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating server deployment parameters
CN112667248B (en) * 2020-12-08 2024-09-24 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating server deployment parameters
CN114650538A (en) * 2020-12-21 2022-06-21 北京首信科技股份有限公司 Method and device for authorizing actions
CN113760987A (en) * 2021-02-04 2021-12-07 北京沃东天骏信息技术有限公司 Data processing method and data processing platform
CN113032745A (en) * 2021-03-19 2021-06-25 上海依图网络科技有限公司 Authority management apparatus, authority management method and medium
CN113076348A (en) * 2021-04-13 2021-07-06 上海优扬新媒信息技术有限公司 Policy information management method, device, server and storage medium
CN113076348B (en) * 2021-04-13 2022-12-13 度小满科技(北京)有限公司 Policy information management method, device, server and storage medium
CN113313482A (en) * 2021-05-27 2021-08-27 北京京东振世信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113590180A (en) * 2021-08-03 2021-11-02 北京奇艺世纪科技有限公司 Detection strategy generation method and device
CN113590180B (en) * 2021-08-03 2023-07-28 北京奇艺世纪科技有限公司 Detection strategy generation method and device
CN116016091A (en) * 2021-10-20 2023-04-25 中国移动通信有限公司研究院 Message processing method, device and system
CN114157710A (en) * 2021-12-02 2022-03-08 中国电信股份有限公司 Communication strategy configuration method, device, storage medium and equipment
CN114415916A (en) * 2022-01-05 2022-04-29 阿里云计算有限公司 Data processing method, device, equipment and storage medium
CN114945043B (en) * 2022-05-26 2023-11-28 中国平安财产保险股份有限公司 Service data recording method, device, equipment and storage medium
CN114945043A (en) * 2022-05-26 2022-08-26 中国平安财产保险股份有限公司 Service data recording method, device, equipment and storage medium
CN114791915A (en) * 2022-06-22 2022-07-26 深圳高灯计算机科技有限公司 Data aggregation method and device, computer equipment and storage medium
CN115499382A (en) * 2022-08-12 2022-12-20 重庆长安汽车股份有限公司 Traffic scheduling method, device, equipment and medium based on Internet of vehicles
CN115499382B (en) * 2022-08-12 2023-08-15 深蓝汽车科技有限公司 Traffic scheduling method, device, equipment and medium based on Internet of vehicles
CN115858885A (en) * 2023-02-28 2023-03-28 美云智数科技有限公司 Account set data query method and device, computer equipment and storage medium
CN115858885B (en) * 2023-02-28 2023-06-30 美云智数科技有限公司 Account book data query method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111460298A (en) Service data processing method and device, computer equipment and storage medium
US8312451B2 (en) Computing system for providing software components on demand to a mobile device
US8751926B2 (en) Intelligent rendering on a mobile computing device
US20150317148A1 (en) Apparatus for software product' upgrade and downgrade of electric equipment from web
CN109597853B (en) Business scene element serial number generation method, device, medium and computer equipment
US20080229307A1 (en) Workflow management system
CN107203395A (en) Resource graded method, device and computer-readable recording medium and electronic equipment
US20140258234A1 (en) Synchronization of cms data to mobile device storage
KR101283019B1 (en) Method of generating saas appication and server performing the same
US20140365523A1 (en) Push subscriptions
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
US9594812B2 (en) Interfaces for accessing and managing enhanced connection data for shared resources
CN114546563B (en) Multi-tenant page access control method and system
US20050022120A1 (en) Electronic apparatus and Web page generating method
CN112131230B (en) Application software as a service (SaaS) realization method, device, equipment and storage medium
JP2011186768A (en) File management system, information processor, and information processing method
CN111666074B (en) Web application customization method, related device and system
CN114997111B (en) Service processing method, device, computer equipment and storage medium
CN111143416A (en) Data cache-based query method, terminal and storage medium
CN108196921B (en) Document development method and device, computer equipment and storage medium
CN107977277B (en) Method and device for integrating third-party system in ERP system and computer equipment
CN115118612A (en) Resource quota management method and device, computer equipment and storage medium
CN114528510A (en) Webpage data processing method and device, electronic equipment and medium
CN113283742A (en) Task allocation method and device
CN116483841B (en) Form data management method and device based on compact framework

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
CB02 Change of applicant information

Address after: 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Kukai Network Technology Co.,Ltd.

Address before: 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: Shenzhen Coocaa Network Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728

RJ01 Rejection of invention patent application after publication