CN103186553B - The querying method of service product and system in a kind of value-added service - Google Patents

The querying method of service product and system in a kind of value-added service Download PDF

Info

Publication number
CN103186553B
CN103186553B CN201110447116.6A CN201110447116A CN103186553B CN 103186553 B CN103186553 B CN 103186553B CN 201110447116 A CN201110447116 A CN 201110447116A CN 103186553 B CN103186553 B CN 103186553B
Authority
CN
China
Prior art keywords
product
service product
section
service
user
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
CN201110447116.6A
Other languages
Chinese (zh)
Other versions
CN103186553A (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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201110447116.6A priority Critical patent/CN103186553B/en
Publication of CN103186553A publication Critical patent/CN103186553A/en
Application granted granted Critical
Publication of CN103186553B publication Critical patent/CN103186553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention discloses querying method and the system of service product in a kind of value-added service, described method comprises: step 1, data in reading database, set up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data; Step 2, when client is inquired about, receives the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product, returns Query Result to client.The present invention can solve often needs a secondary data all will conduct interviews to database, causes the problem that search efficiency is low.

Description

The querying method of service product and system in a kind of value-added service
Technical field
The present invention relates to the communications field, the method and system of particularly service product inquiry in a kind of value-added service.
Background technology
In prior art, Information Network integrates various network, as mobile network, data network and internet, in several ways for user provides value-added service.User obtains the list of the service product that can order by inquiry, or submits the service product for ordering to, and system determines whether to allow to order by inquiry.
Such as, information net for country integrates the resources such as mobile network, data network and internet, by IVR (interactive voice answering, InteractiveVoiceResponse) mode such as telephone voice service, SMS, WEB website, is supplied to peasant user by the Agricultural Information that government agricultural department, agri-scientific research institute, agriculture-related enterprise provide.Government agricultural department, agri-scientific research institute, agriculture-related enterprise can limit user and select.Peasant user inquires about, and obtains the list of the service product that can order, or, the service product for ordering being provided, whether allowing to order by retrieval checking.By value-added service, rural policy, Agricultural law regulation, market information and scientific and technical information are sent to peasant in time, for agricultural modernization management provides the aspect information such as agriculture political affairs, agriculture business, agrotechnical, agricultural trade, the market supply and demand, agricultural weather, disease and pest early warning.
Along with service product data volume is in continuous expansion, wherein user's quantity ordered is also in continuous increase.For user can order business product inquiry and in subscription procedure, carry out service product whether can be become by the checking of ordering important step in value-added service is provided.
In prior art, when inquiring about, inquiring about data used is single tables of data, lacks relational structure between each tables of data.Each data used in inquiry will carry out the inquiry of whole table in the correspondence table of database.Each application uses a set of operation flow of oneself to conduct interviews to database respectively, by the data stored in database, obtains Query Result.
In prior art, problem comprises: respectively apply the process disunity in database, cause the Query Result of different application to jack per line inconsistent; Use centralized database, and relate to multiple tables of data in inquiry, cause database pressure excessive; There is no the structure of relation between concrete effective reflection data, often need a secondary data all will conduct interviews to database, inefficiency; Each application realizes the functional block of oneself separately to same logical operation, when demand changes, needs multiple spot to upgrade replacement simultaneously, causes upgrade cost too high.
Summary of the invention
The method and system of service product inquiry in a kind of value-added service provided by the invention, often needs a secondary data all will conduct interviews to database to solve, causes the problem that search efficiency is low.
The invention discloses the querying method of service product in a kind of value-added service, described method comprises:
Step 1, data in reading database, set up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data;
Step 2, when client is inquired about, receives the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product, returns Query Result to client.
Wherein, the described data correlation structure of described storage comprises further:
Step 21, is stored on the buffer memory of multiple server by described data correlation structure;
Described step 2 comprises further:
Step 22, client sends inquiry request to the server that this client is corresponding;
Step 23, server receives inquiry request, and determine number section belonging to number provided in inquiry request, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product;
Step 24, Query Result is returned to described client by server.
Wherein, data in described reading database, the data correlation structure setting up relation between reflection section and service product according to described data comprises further:
Step 31, number section that in reading database, user's group comprises, sets up the corresponding relation between each's section and user's group;
Step 32, the service product that in reading database, user's group comprises, set up user's group and associating between service product, and in reading database, user organizes attribute, and determining that user organizes attribute is Red List or blacklist.
Wherein, described in the number of pressing section inquire about in described data correlation structure, determine that described number comprises further with the ordering authorization relation between service product:
Step 41, according to the corresponding relation between described section and user's group, user's group of the described number section correspondence of inquiry, according to described user's group and associating between service product, inquire about the service product that described user organizes association, dependency is the service product that the user of Red List organizes in the service product of association that the user being blacklist by attribute while of excluding organizes association, and surplus lines product is the service product that described number can be ordered.
Wherein, described step 31 comprises further:
Step 51, number section that in reading database, user's group comprises, determines the part comprised by same subscriber group in each described number section;
Step 52, in each's section, each described part becomes a new section, and described new section organizes correspondence with the user comprising this new section.
Wherein, the product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 61, according to the product composition information of product bag in the database read, sets up the mutex relation between service product, and add described mutex relation in data correlation structure;
Also comprise after receiving the number that client provides in described step 2:
Step 62, the service product that the number that inquiring about from database provides has been ordered;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 63, the number of pressing section is inquired about in described data correlation structure, relation between foundation section and service product, determines the service product that described number can be ordered;
Step 64, according to the mutex relation between service product, deletes the service product of the service product mutual exclusion of having ordered with described number in the described service product ordered.
Wherein, also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 71, in reading database, the overall situation forbids number section of order business product, described section is deleted from data correlation structure;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 72, if number section not inquiring belonging to described number in data correlation structure, then the service product ordered of described number is for empty; Or,
Described step 1 also comprises
Step 73, in reading database, the overall situation forbids the number of order business product, stores described number;
The described number section determined belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determines that described number also comprises with before the ordering authorization relation between service product:
Step 74, forbids the number provided described in inquiry in the number of order business product in the overall situation stored, if inquired, then the service product that described number can be ordered is sky; Otherwise perform the described number section determined belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine the operation of described number with the ordering authorization relation between service product.
Wherein, client provides the service product also providing described number request to order during number;
Number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product
Step 81, determine number section belonging to number provided, the number of pressing section is inquired about in described data correlation structure, determines the service product ordered of described number;
Step 82, judge service product that the request that provides orders whether in the service product ordered of described number, if so, then number request orders described service product authentication success, otherwise number request orders described service product authentification failure.
Wherein, the product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 91, according to the product composition information of product bag in the database read, sets up the mutex relation between service product, and add described mutex relation in data correlation structure;
The service product that described client also provides described number request to order;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 92, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of blacklist, judge whether the service product that described request is ordered organizes association with described user, if, then number request orders described service product authentification failure, otherwise, perform step 93;
Step 93, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of Red List, judge whether the service product that described request is ordered organizes association with described user, if, then perform step 94, otherwise number request orders described service product authentification failure;
Step 94, the product that repels each other of the service product ordered according to described mutex relation inquiry described request, whether the product that repels each other described in inquiry from database is the service product ordered of described number, if, then number request orders described service product authentification failure, otherwise number request orders described service product authentication success.
The invention also discloses the inquiry system of service product in a kind of value-added service, described system comprises: database, data correlation structure set up module, enquiry module,
Data correlation structure sets up module, for data in reading database, sets up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data;
Enquiry module is used for when client is inquired about, receive the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine that described number is with the ordering authorization relation between service product, returns Query Result to client.
The beneficial effect of the embodiment of the present invention is: by setting up the data correlation structure of relation between reflection section and service product, according to number, a number section is inquired about, and avoids the repeatedly access to database, improves search efficiency; By data correlation structure is published to multiple server, alleviate database pressure, improve search efficiency; By foundation section with user's group, and user's group associates with between service product, and forms data correlation structure by this association, for each application provides unified data correlation relation, ensures that each application is identical for the Query Result of jack per line; Unified operational processes is carried out to data relational structure, is convenient to upgrading.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for service product inquiry in value-added service of the present invention;
Fig. 2 is the schematic diagram of the embodiment of the method for service product inquiry in value-added service of the present invention;
Fig. 3 is the schematic diagram of the data correlation structure of the embodiment of the method for service product inquiry in value-added service of the present invention;
Fig. 4 is the process flow diagram of the embodiment of the method for service product inquiry in value-added service of the present invention;
Fig. 5 is the structural drawing of the system of service product inquiry in value-added service of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, it is the process flow diagram of the method for service product inquiry in value-added service provided by the invention.
Step S100, data in reading database, set up the data correlation structure of relation between reflection section and service product, store this data correlation structure according to data.
Data correlation structure is carry out according to incidence relation between data the structure that Organization of Data formed.
Wherein, in varied situations, the original data content that database provides is different, for concrete original data content, sets up corresponding data correlation structure.
Step S200, when client is inquired about, receives the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in data correlation structure, determines that the number provided is with the ordering authorization relation between service product, returns Query Result to client.
In one preferably embodiment, data correlation structure is published on multiple server.Each server provides service for the client of a group configuration.
Described storage described data correlation structure specifically comprises and described data correlation structure being stored on the buffer memory of multiple server.
Wherein, can by data in a specific installation reading database, set up the data correlation structure of relation between reflection section and service product according to data, data correlation structure is first stored in buffer memory medium, the data correlation structure in buffer memory medium is published on multiple server buffer; Or, by data in each server reading database, set up the data correlation structure of relation between reflection section and service product according to data, directly store the buffer memory of this data correlation structure to server.Described buffer memory is internal memory.
Described step S200 comprises client further and sends inquiry request to the server that this client is corresponding; Server receives inquiry request, and determine number section belonging to number provided in inquiry request, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product; Query Result is returned to described client by server.
In one preferably embodiment, the incidence relation organising data of the number of pressing section-user's group-service product, sets up data correlation structure.
Data in described reading database, the data correlation structure that data set up relation between reflection section and service product comprises further:
Step S110A, number section that in reading database, user's group comprises, sets up the corresponding relation between each's section and user's group, and in reading database, user organizes attribute, and determining that user organizes attribute is Red List or blacklist.
Further, number section that in reading database, user's group comprises, determines the part comprised by same subscriber group in each described number section; In each's section, each described part becomes a new section, and described new section organizes correspondence with the user comprising this new section.
Wherein, each's section respective user group table, this user organizes in table the user's group recorded with this number section correspondence, and the attribute of user's group is Red List or blacklist.
For example, in number section that two the user's groups read from database comprise, part consecutive number section is overlapped, as user organizes A correspondence section a, user organizes B correspondence section b, a number section a and number section b has crossing, then intersection extracted, this intersection ab is organized A and user by user and organizes B and comprise, and this part is that new section ab respective user group A and user organize B; Number section a except part a1 remaining after part ab be new section a1, and this new section respective user group A.Number section b except part b1 remaining after part ab be new section b1, and this new section respective user group B.
Step S120A, the service product that in reading database, user's group comprises, sets up user's group and associating between service product.
In Red List user group, service product is the product that can order, and in black list user's group, service product is the product that can not order.Each user's group has service product table, records the service product that this user organizes association in this service product table.
Further, described in the number of pressing section inquire about in described data correlation structure, determine that number comprises further with the ordering authorization relation between service product:
Step 210A, corresponding relation between foundation section and user's group, user's group of query ID section correspondence, according to described user's group and associating between service product, inquire about the service product that described user organizes association, dependency is the service product that the user of Red List organizes in the service product of association that the user being blacklist by attribute while of excluding organizes association, and surplus lines product is the service product that described number can be ordered.
Such as, service product in the Red List user group of first query ID section, composition set, deleted by the service product that the black list user of jack per line section in set organizes association, in set, surplus lines product is the service product that number can be ordered.
In one preferably embodiment, the product bag that described service product comprises single product and is made up of multiple single product.Wherein, single product and the product bag mutual exclusion comprising this product, comprise the product parlor mutual exclusion of identical single product, can not order simultaneously.Such as, product bag A comprises single product a and single product b, and product bag B comprises single product b and single product c.Product bag A respectively with single product a and single product b mutual exclusion, product bag B respectively with single product b and single product c, product bag A and product bag B because all comprise single product b, thus product bag A and product bag B also mutual exclusion.
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 110B, according to the product composition information of product bag in the database read, sets up the mutex relation between service product, in data correlation structure, adds described mutex relation.
For example, according to the product composition information of product bag in the database read, mutex relation table is set up, for the service product that each service product record repels each other with this service product.
Also comprise after receiving the number that client provides in described step S200:
Step S210B, the service product that the number that inquiring about from database provides has been ordered.
The described number of pressing section is inquired about in described data correlation structure, determines that described number specifically comprises with the ordering authorization relation between service product:
Step S220B, the number of pressing section is inquired about in described data correlation structure, relation between the number of pressing section and service product, determines the service product that described number can be ordered.
Step S230B, according to the mutex relation between service product, deletes the service product of the service product mutual exclusion of having ordered with described number in the service product ordered of number.
In an embodiment,
Step S230B specifically comprises:
Step S231B, inquires from the service product that can order the service product that the number that wherein comprises ordered.
Step S230B also comprises:
Step S232B, the service product ordered by number is deleted from the service product that can order.
Step S230B specifically also comprises:
Step S233B, deletes the service product of the service product mutual exclusion of having ordered with described number from the service product that can order.
Specifically, the correspondence of inquiring about the service product ordered in mutex relation table is repelled each other service product, is deleted by the service product that repels each other inquired from the service product ordered of number.
In one preferably embodiment, storage system blacklist in database, in system blacklist, number does not allow to order any service product, and what store in this blacklist is number or number section.
The situation of number section of order business product is forbidden for the record overall situation in blacklist.
Also comprise the overall situation in reading database after the described data correlation structure according to relation between described data foundation reflection section and service product and forbid number section of order business product, described section is deleted from data correlation structure.
If by the overall situation, the part of number section is forbidden that a number section for order business product comprises, then this part deleted from number section, remainder is new section, and the user of those news Duan Tongyuan section correspondence organizes correspondence.
The described number of pressing section is inquired about in described data correlation structure, if determine that described number comprises number section do not inquired in data correlation structure belonging to described number further with the ordering authorization relation between service product, then the service product ordered of described number is for empty.
The situation of the number of order business product is forbidden for the record overall situation in blacklist.
Described step S100 also comprises the overall situation in reading database and forbids the number of order business product, stores described number.
Number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determine that described number also comprises with before the ordering authorization relation between service product: forbid the number provided described in inquiry in the number of order business product in the overall situation stored, if inquired, the service product that then described number can be ordered is sky, otherwise, perform number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determines the operation of described number with the ordering authorization relation between service product.
In an embodiment preferably, described data correlation structure provides external interface.
The described number of pressing section is inquired about in described data correlation structure, determine that the service product ordered of described number comprises by RPC (remote procedure call protocol further, RemoteProcedureCallProtocol) protocol access external interface carries out number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determines the operation of the service product ordered of described number.
In an embodiment preferably, client provides the service product also providing described number request to order during number to carry out order business Product Validation.
Described determine the service product ordered of described number after also comprise: judge service product that the request that provides orders whether in the service product ordered of described number, if, then number request orders described service product authentication success, otherwise number request orders described service product authentification failure.
In one preferably embodiment, the product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product.
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product and form information according to the product of product bag in the database read, set up the mutex relation between service product, and add described mutex relation in data correlation structure.
The service product that described client also provides described number request to order.
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step S210C, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of blacklist, judge whether the service product that described request is ordered organizes association with described user, if, then number request orders described service product authentification failure, otherwise, perform step S220C.
Step S220C, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of Red List, judge whether the service product that described request is ordered organizes association with described user, if, then perform step S230C, otherwise number request orders described service product authentification failure.
Step S230C, the product that repels each other of the service product ordered according to described mutex relation inquiry described request, whether the product that repels each other described in inquiry from database is the service product ordered of described number, if, then number request orders described service product authentification failure, otherwise number request orders described service product authentication success.
See Fig. 2, it is the schematic diagram of the embodiment of the method for service product inquiry in value-added service of the present invention.
In the present embodiment, have multiple server, each server is one group of client service.Server uses external interface by data access layer reading database.
Data correlation structure is buffered on the buffer memory medium of server, and buffer memory medium is internal memory.Server provides the service of the service product of service product and the checking wish order of inquiring about and can order by the client that external interface is correspondence.When data occur to change, the side of maintenanceing passes through external interface refresh data, or in database, inquires about more new data by the server cycle, in the data correlation structure of buffer memory, carry out synchronized update.
Because multiple server provides service for client, achieve load balancing, and when customer volume increases sharply, by increasing number of servers, the corresponding relation of client with server is reconfigured, just can realize upgrading.
See Fig. 3, it is the schematic diagram of the data correlation structure of buffer memory in embodiment.Number section organizes association with user, and user's group associates with service product, the mutex relation simultaneously between storage service product.
See Fig. 4, it is the process flow diagram of the method for the embodiment of the present invention.
Step S401, number section that in reading database, user's group comprises, sets up the corresponding relation between each's section and user's group, the corresponding relation between buffer memory each section and user's group, organize attribute according to user in the database read, determining that user organizes attribute is Red List or blacklist.
Generate user group objects, meanwhile, read from database this user organize under number segment information, the each's section under organizing user generates an object.Determine the part comprised by same subscriber group in each described number section; In each's section, each described part becomes a new section, generates corresponding object.Described section object organizes correspondence with the user comprising this number section.Each's section respective user group table, this user organizes in table the user's group recorded with this number section correspondence, and each user's group has corresponding attribute, is Red List or blacklist.
In number section, number can order the service product that Red List user organizes association, and in number section, number cannot order the service product of blacklist association.Number section is made up of the multiple number of continuous print or a corresponding number.
Step S402, the service product that in reading database, user's group comprises, sets up user's group and associating between service product.
From database, read whole subscriber group information and service product and user organize corresponding relation, then travel through service product, generate service product object, traverse user group, generate user's group objects, and by user's group objects and service product object association.Correlation form is a corresponding service product table under each user's group objects.The service product that this user organizes association is recorded in this service product table.
Step S403, service product filter information in reading database, screens according to the service product of filter information to buffer memory, deletes underproof service product.
Filter information is the information for screening service product, such as validity verification, and charging policy is verified, is deleted by service product expired for the term of validity or is deleted by the service product not meeting charging policy.
Step S404, in reading database, the product composition information of product bag, sets up the mutex relation between service product, and this mutex relation of buffer memory.
Single product and the product bag mutual exclusion comprising this product, and comprise the product bag mutual exclusion of identical single product, can not order simultaneously.For the service product that each service product record repels each other with this service product.
Specifically, the service product data of full dose and product and product bag corresponding relation, then circulation service product data are read, according to product and product bag corresponding relation from database, generate the unique identification character string list combination of the product of product and its mutual exclusion, deposit with dictionary format.
Step S405, system blacklist in reading database, deletes system blacklist medium size section from data correlation structure, the number in caching system blacklist.
In system blacklist, the record overall situation forbids number section or the number of order business product.
If by the overall situation, the part of number section is forbidden that a number section for order business product comprises, then this part deleted from number section, remainder is new section, and the user of those news Duan Tongyuan section correspondence organizes correspondence.
For example, section d is overlapped for data correlation structure medium size section c homologous ray blacklist medium size, number section c respective user group C, then intersection cd is extracted, deleted from number section c by this intersection cd, remainder c1 is new section c1, and new section c1 organizes C correspondence with user.
Buffer memory is carried out for one number dictionary format in system blacklist.
Step S406, receives the number of the user that client provides, in the number of the system blacklist of buffer memory, inquires about the number provided, if inquired, then performs step S407; Otherwise, perform step S408.
Step S407, number request orders described service product authentification failure.
Step S408, determines number section belonging to number provided, inquires about in data correlation structure, if do not inquire number section belonging to described number in data correlation structure, then performs step S407, otherwise, perform step S409.
Step S409, the corresponding relation between foundation section and user's group, the attribute of the described number section correspondence of inquiry is user's group of blacklist, judge that the service product asking to order is whether in the service product table of black list user's group, if so, then performs step S407, otherwise, perform step S410.
Step S410, the corresponding relation between foundation section and user's group, the attribute of the described number section correspondence of inquiry is user's group of Red List, judge whether the service product that described request is ordered is organized in service product table Red List user, if so, then perform step S411, otherwise, perform step S407.
Step S411, the product that repels each other of the service product ordered according to described mutex relation inquiry request, from database, whether the inquiry product that repels each other is the service product ordered of number, if so, then performs step S407, otherwise, perform step S412.
Step S412, number request orders described service product authentication success.
Finally, result is returned to client.
The inquiry system of service product in a kind of value-added service disclosed by the invention, described system comprises: database 100, data correlation structure set up module 200, enquiry module 300,
Data correlation structure sets up module 200, for data in reading database 100, sets up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data.
Enquiry module 300 is for when client is inquired about, receive the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine that described number is with the ordering authorization relation between service product, returns Query Result to client.
Further, described enquiry module and data correlation structure are set up module and are positioned on server, and described system comprises multiple server,
Described data correlation structure sets up module when storing described data correlation structure specifically for being stored on the buffer memory of place server by described data correlation structure;
Described enquiry module is further used for the inquiry request receiving client transmission corresponding to place server, number section belonging to number provided in inquiry request is provided, the number of pressing section is inquired about in described data correlation structure, determine that described number is with the ordering authorization relation between service product, returns to described client by Query Result.
Further, described data correlation structure provides external interface,
Described enquiry module is inquired about in described data correlation structure in the number of pressing section, be further used for external interface between being visited by RPC agreement when determining the service product ordered of described number and carry out number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determines the operation of the service product ordered of described number.
Further, data correlation structure sets up module data in reading database, be further used for number section that user's group in reading database comprises when setting up the data correlation structure of relation between reflection section and service product according to described data, set up the corresponding relation between each's section and user's group; The service product that in reading database, user's group comprises, set up user's group and associating between service product, in reading database, user organizes attribute, and determining that user organizes attribute is Red List or blacklist.
Wherein, described enquiry module is inquired about in described data correlation structure in the number of pressing section, determine that described number is further used for according to the corresponding relation between described section and user's group with during ordering authorization relation between service product, user's group of the described number section correspondence of inquiry, according to described user's group and associating between service product, inquire about the service product that described user organizes association, dependency is the service product that the user of Red List organizes in the service product of association that the user being blacklist by attribute while of excluding organizes association, surplus lines product is the service product that described number can be ordered.
Further, data correlation structure sets up number section that module user's group in reading database comprises, be further used for number section that user's group in reading database comprises when setting up the corresponding relation between each's section and user's group, determine the part comprised by same subscriber group in each described number section; In each's section, each described part becomes a new section, and described new section organizes correspondence with the user comprising this new section.
Further, the product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
The product that described data correlation structure sets up product bag in the database that module reads for foundation after the data correlation structure setting up relation between reflection section and service product according to described data forms information, set up the mutex relation between service product, and add described mutex relation in data correlation structure;
Enquiry module also for inquiring about the service product that the number that provides has been ordered from database;
Enquiry module is inquired about in described data correlation structure in the number of pressing section, determine that described number is inquired about in described data correlation structure with being further used for the number of pressing section during ordering authorization relation between service product, relation between foundation section and service product, determines the service product that described number can be ordered; According to the mutex relation between service product, the service product of the service product mutual exclusion of having ordered with described number in the described service product ordered is deleted.
Further, data correlation structure set up module after the data correlation structure setting up relation between reflection section and service product according to described data also for reading database in overall number section of forbidding order business product, described section is deleted from data correlation structure;
Enquiry module is inquired about in described data correlation structure in the number of pressing section, if determine that described number is with number section being further used for during ordering authorization relation between service product not inquiring in data correlation structure belonging to described number, then the service product ordered of described number is for empty; Or,
Data correlation structure sets up module also forbids order business product number for the overall situation in reading database, stores described number;
Enquiry module is determining number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine that described number is with the number also for forbidding providing described in inquiry in the number of order business product in the overall situation of storage before the ordering authorization relation between service product, if inquired, then the service product that described number can be ordered is sky; Otherwise perform the described number section determined belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine the operation of described number with the ordering authorization relation between service product.
Further, client provides the service product also providing described number request to order during number;
Number section of described enquiry module belonging to the number determining to provide, the number of pressing section is inquired about in described data correlation structure, determine that described number is with number section belonging to the number being further used for during ordering authorization relation between service product determining to provide, the number of pressing section is inquired about in described data correlation structure, determines the service product ordered of described number; Judge service product that the request that provides orders whether in the service product ordered of described number, if so, then number request orders described service product authentication success, otherwise number request orders described service product authentification failure.
Further, the product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
The product that data correlation structure sets up product bag in the database that module also reads for foundation after the data correlation structure setting up relation between reflection section and service product according to described data forms information, set up the mutex relation between service product, and store described mutex relation;
The service product that described client also provides described number request to order;
Described enquiry module is inquired about in described data correlation structure in the number of pressing section, determine that described number is further used for according to the corresponding relation between described section and user's group with during ordering authorization relation between service product, the attribute of the described number section correspondence of inquiry is user's group of blacklist, judge whether the service product that described request is ordered organizes association with described user, if, then number request orders described service product authentification failure, otherwise, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of Red List, judge whether the service product that described request is ordered organizes association with described user, if not, then number request orders described service product authentification failure, if, then according to the product that repels each other of the service product of described mutex relation inquiry described request order, whether the product that repels each other described in inquiry from database is the service product ordered of described number, if, then number request orders described service product authentification failure, otherwise number request orders described service product authentication success.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (9)

1. the querying method of service product in value-added service, it is characterized in that, described method comprises:
Step 1, data in reading database, set up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data;
Step 2, when client is inquired about, receives the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product, returns Query Result to client;
Data in described reading database, the data correlation structure setting up relation between reflection section and service product according to described data comprises further:
Step 31, number section that in reading database, user's group comprises, sets up the corresponding relation between each's section and user's group;
Step 32, the service product that in reading database, user's group comprises, set up user's group and associating between service product, and in reading database, user organizes attribute, and determining that user organizes attribute is Red List or blacklist.
2. the querying method of service product in value-added service according to claim 1, it is characterized in that, the described data correlation structure of described storage comprises further:
Step 21, is stored on the buffer memory of multiple server by described data correlation structure;
Described step 2 comprises further:
Step 22, client sends inquiry request to the server that this client is corresponding;
Step 23, server receives inquiry request, and determine number section belonging to number provided in inquiry request, the number of pressing section is inquired about in described data correlation structure, determines that described number is with the ordering authorization relation between service product;
Step 24, Query Result is returned to described client by server.
3. the querying method of service product in value-added service according to claim 1, is characterized in that,
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 41, according to the corresponding relation between described section and user's group, user's group of the described number section correspondence of inquiry, according to described user's group and associating between service product, inquire about the service product that described user organizes association, dependency is the service product that the user of Red List organizes in the service product of association that the user being blacklist by attribute while of excluding organizes association, and surplus lines product is the service product that described number can be ordered.
4. the querying method of service product in value-added service according to claim 1, is characterized in that,
Described step 31 comprises further:
Step 51, number section that in reading database, user's group comprises, determines the part comprised by same subscriber group in each described number section;
Step 52, in each's section, each described part becomes a new section, and described new section organizes correspondence with the user comprising this new section.
5. the querying method of service product in value-added service according to claim 1, is characterized in that,
The product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 61, according to the product composition information of product bag in the database read, sets up the mutex relation between service product, and add described mutex relation in data correlation structure;
Also comprise after receiving the number that client provides in described step 2:
Step 62, the service product that the number that inquiring about from database provides has been ordered;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 63, the number of pressing section is inquired about in described data correlation structure, relation between foundation section and service product, determines the service product that described number can be ordered;
Step 64, according to the mutex relation between service product, deletes the service product of the service product mutual exclusion of having ordered with described number in the described service product ordered.
6. the querying method of service product in value-added service according to claim 1, is characterized in that,
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 71, in reading database, the overall situation forbids number section of order business product, described section is deleted from data correlation structure;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 72, if number section not inquiring belonging to described number in data correlation structure, then the service product ordered of described number is for empty; Or,
Described step 1 also comprises
Step 73, in reading database, the overall situation forbids the number of order business product, stores described number;
The described number section determined belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determines that described number also comprises with before the ordering authorization relation between service product:
Step 74, forbids the number provided described in inquiry in the number of order business product in the overall situation stored, if inquired, then the service product that described number can be ordered is sky; Otherwise perform the described number section determined belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine the operation of described number with the ordering authorization relation between service product.
7., according to the querying method of service product in described value-added service arbitrary in claim 1 to 6, it is characterized in that,
Client provides the service product also providing described number request to order during number;
Number section belonging to the described number determining to provide, the number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product
Step 81, determine number section belonging to number provided, the number of pressing section is inquired about in described data correlation structure, determines the service product ordered of described number;
Step 82, judge service product that the request that provides orders whether in the service product ordered of described number, if so, then number request orders described service product authentication success, otherwise number request orders described service product authentification failure.
8. the querying method of service product in value-added service according to claim 1, is characterized in that,
The product bag that described service product comprises single product and is made up of multiple single product, single product, with the product bag mutual exclusion comprising described single product, comprises the product parlor mutual exclusion of same single product;
Also comprise after the described data correlation structure according to relation between described data foundation reflection section and service product:
Step 91, according to the product composition information of product bag in the database read, sets up the mutex relation between service product, and add described mutex relation in data correlation structure;
The service product that described client also provides described number request to order;
The described number of pressing section is inquired about in described data correlation structure, determines that described number comprises further with the ordering authorization relation between service product:
Step 92, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of blacklist, judge whether the service product that described request is ordered organizes association with described user, if, then number request orders described service product authentification failure, otherwise, perform step 93;
Step 93, according to the corresponding relation between described section and user's group, the attribute of the described number section correspondence of inquiry is user's group of Red List, judge whether the service product that described request is ordered organizes association with described user, if, then perform step 94, otherwise number request orders described service product authentification failure;
Step 94, the product that repels each other of the service product ordered according to described mutex relation inquiry described request, whether the product that repels each other described in inquiry from database is the service product ordered of described number, if, then number request orders described service product authentification failure, otherwise number request orders described service product authentication success.
9. the inquiry system of service product in value-added service, it is characterized in that, described system comprises: database, data correlation structure set up module, enquiry module,
Data correlation structure sets up module, for data in reading database, sets up the data correlation structure of relation between reflection section and service product, store described data correlation structure according to described data;
Enquiry module is used for when client is inquired about, receive the number that client provides, determine number section belonging to the number that client provides, the number of pressing section is inquired about in described data correlation structure, determine that described number is with the ordering authorization relation between service product, returns Query Result to client;
Further, data correlation structure sets up module data in reading database, be further used for number section that user's group in reading database comprises when setting up the data correlation structure of relation between reflection section and service product according to described data, set up the corresponding relation between each's section and user's group; The service product that in reading database, user's group comprises, set up user's group and associating between service product, in reading database, user organizes attribute, and determining that user organizes attribute is Red List or blacklist.
CN201110447116.6A 2011-12-28 2011-12-28 The querying method of service product and system in a kind of value-added service Active CN103186553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110447116.6A CN103186553B (en) 2011-12-28 2011-12-28 The querying method of service product and system in a kind of value-added service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110447116.6A CN103186553B (en) 2011-12-28 2011-12-28 The querying method of service product and system in a kind of value-added service

Publications (2)

Publication Number Publication Date
CN103186553A CN103186553A (en) 2013-07-03
CN103186553B true CN103186553B (en) 2016-04-20

Family

ID=48677722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110447116.6A Active CN103186553B (en) 2011-12-28 2011-12-28 The querying method of service product and system in a kind of value-added service

Country Status (1)

Country Link
CN (1) CN103186553B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038549A (en) * 2016-02-04 2017-08-11 平安科技(深圳)有限公司 The information processing method and device of group danger
CN107038224B (en) * 2017-03-29 2022-09-30 腾讯科技(深圳)有限公司 Data processing method and data processing device
CN113543049B (en) * 2020-04-15 2022-10-18 中国移动通信集团安徽有限公司 Information processing method and device and business server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093482A (en) * 2006-06-19 2007-12-26 上海全成通信技术有限公司 Method for storing and retrieving mass information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002009940A (en) * 2000-06-21 2002-01-11 Fujitsu Ltd Method and device for controlling communication in intelligent network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093482A (en) * 2006-06-19 2007-12-26 上海全成通信技术有限公司 Method for storing and retrieving mass information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于SP/CP的电信增值业务管理平台的设计与实现;吴红欣;《中国优秀硕士学位论文全文数据库信息科技辑》;20100315(第3期);第7,29,56-57页 *

Also Published As

Publication number Publication date
CN103186553A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
JP4088549B2 (en) Methods in telecommunications networks
CN1230755C (en) Personal service environment manager (PSEM)
CN101330657B (en) Address list system and implementing method thereof
CN104737157B (en) Federated database system
CN103152417B (en) Towards multiple enterprises cloud folder arrangement and the information interacting method of common Client end
CN102868998A (en) Method and device for visiting businesses of internet of things
CN100488203C (en) Method and apparatus for improving data processing speed
CN101853287A (en) Data compression quick retrieval file system and method thereof
CN102684903A (en) Management platform, system and method for realizing access of multiple cloud storage resource nodes
CN103186553B (en) The querying method of service product and system in a kind of value-added service
CN109005433B (en) A kind of video cloud service platform architecture and implementation method
CN109241384A (en) A kind of method for visualizing and device of scientific research information
CN110476444A (en) For the identifier distribution of network service and/or the network entity and method of identifier mapping
CA2177967A1 (en) A method and device for extracting data from a group of data
CN100371931C (en) Method for realizing quick-accessing database
CN102737061A (en) Distributed ticket query management system and method
CN102201930A (en) Method and system for group management of MTC (machine type communication) equipment
CN102024010A (en) Data processing system and data processing method
CN101729929B (en) System for accessing mass data with intelligent network business libraries, device and method
CN103441865B (en) Method, system and the BRAS and Portal server of management ip address
CN108629582A (en) Method for processing business and device
US11789949B2 (en) Method and system of performing an operation on a single-table, multi-tenant database and partition key format therefor
CN109271279A (en) Information-based scenic spot system
CN108876259A (en) Warehouse management system
CN1984354B (en) Method and device for managing user account resource

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.