Summary of the invention
The present invention is for solving commodity distribution scope and the ship-to problem of coupling automatically, by allowing businessman determine the geographic area scope of dispensing scope earlier, and these scopes are carried out standardization, determine the big scope of the ship-to of oneself when allowing the consumer order in the mode of selecting or inquiring about, and then fill in definite refinement ship-to, so just reached the automatic coupling of dispensing scope and ship-to, improved work efficiency greatly and also can allow the consumer feel very convenient.
Particularly, the technical solution used in the present invention is:
At first, determine the dispensing address realm of businessman, this scope represents that with the name list of the largest global geographic area that can provide and deliver (promptly dispensing geographic area atomization) its title is determined according to the postal ﹠ communications address area title of this geographic area;
Then, carry out the standardization of address, allow the All Ranges title can form an address hierarchical tree that common root is arranged;
Afterwards, the intact address of standardization is deposited in the atomic address tables of data step by step;
Again, set up the businessman's dispensing scale relationships table between businessman and the dispensing atomization address;
At last, the address hierarchical tree of the consumer of ordering products by selecting the atomic address tables of data to generate step by step (always can select but must not choose the tip of hierarchical tree) screened the businessman that can be dispensed into own region, platform constraints can only be initiated to order to these merchant product and service, also should import own refinement ship-to under the atomic address of selecting for the ease of the delivery consumer.
Largest global geographic area mentioned above is meant that businessman describes scope for this concept nature of integrally managing the maximum that can provide and deliver of user in zone, it is exactly this regional title that its corresponding concept nature is described, and this title can be zone name in the postal ﹠ communications address or people's oral habitual another name.The scope of businessman's service can not be described with a largest global geographic area usually, so its service range should be represented by the name list of an atomizing largest global geographic area.
Geographic area title mentioned above can be any zone name that combines according to postal ﹠ communications address area title and another name.
Standardization mentioned above is meant to turn to each section composition that following regional rank reduces successively each zone name is regular:
Country /region+province/municipality directly under the Central Government/autonomous region+city/county+town/district+street/road+number+sub-district/mansion/institute/university/unit+Lou Dong+unit number+room number
Standardisation process decomposes up to the Minimum Area rank according to above fractionation mode step by step from the maximum region rank that ordering platform can be served, and allows regional address section as much as possible be consistent with corresponding postal ﹠ communications address area title.
Atomic address tables of data mentioned above, its data structure is made up of following field:
1), node serial number, field is called AddrNo, type is an ordinal number;
2), zone name, field is called AddrName, type is a character string, the longest 255 bytes of length;
3), zone name another name, field is called AddrNickName, type is a character string, the longest 255 bytes of length;
4), father node, field is called ParentNo, type be the numeral;
5), whether be leaf node, field is called IsLeaf, type is a Boolean type.
Wherein:
Node serial number is unique numeral number of this atomic address record;
Zone name can be any one of standardized address or the title combination of several composition sections;
The zone name another name is the zone name of the geographic range equity of the daily oral use of people, is convenient to identification and memory.
Father node is the node serial number of higher level's zone name in this represented zone of record;
Whether be that leaf node is whether this record of expression is the leaf node of address hierarchical tree, promptly present node does not have subordinate's Area Node.
Businessman's dispensing scale relationships table mentioned above, its data structure is made up of following field:
1), merchant number, field is called SellerNo, type be the numeral;
2), the atomic address node serial number, field is called AddrNo, type be the numeral.
Wherein:
Merchant number is the unique number of each businessman, and the details of businessman can be described in other tables of data of correspondence and store.
The atomic address node serial number is the atomic address numbering of the regional extent that can provide and deliver of the businessman of merchant number correspondence.
The atom database that deposits in mentioned above is that the partition address field of standardization is deposited in database step by step.
Businessman's dispensing scale relationships table mentioned above, what preserve is the corresponding relation that dispensing scope atomic address is followed by businessman, businessman can corresponding a plurality of atomic addresses and a plurality of atomic address not at the same level at the same level, but between these atomic addresses regional relation of inclusion can not be arranged.
After the consumer selects own region step by step, system searches out the businessman that can be dispensed into this zone and above rank zone thereof automatically, can not be dispensed into that the consumer selects the zone or can only be dispensed into the businessman of selecting regional subordinate subregion can not list and maybe can not initiate to order.
By the technical solution used in the present invention as can be seen, though there has not been to allow the consumer import the freedom of ship-to,, for the little businessman of community's type, its innovative significance or good effect are:
1), the realization of robotization the coupling of businessman's dispensing scope and consumer's ship-to, improved work efficiency;
2), be easy to realize that based on the atomization address how intelligentized order integrates, further improve businessman's dispensing efficient.
Embodiment
The specific embodiment of content of the present invention being ordered on the website at community's type fast food of serving range of Beijing below in conjunction with each accompanying drawing is further described:
Community type fast food is ordered the website with numerous businessman's cooperations that provides fast food to send service outside, and the user after businessman accepts the order of website, arranges the special messenger to carry out fast food dispensing, gathering by website realize the delivering goods to the customers order operation of fast food.
Below be the partial content (generate after the dispensing range criterion processing of data based businessman, more multidata has been omitted in " ... " representative) of this example atomic address tables of data:
AddrNo |
AddrName |
AddrNickName |
ParentNo |
IsLeaf |
... |
... |
... |
... |
... |
8 |
Beijing |
|
2 |
0 |
9 |
The Haidian District |
|
8 |
0 |
10 |
The Cheng Fu road |
|
9 |
0 |
11 |
No. 22 |
Tsing-Hua University |
10 |
0 |
12 |
The East Road, Zhong Guan-cun |
|
9 |
0 |
13 |
No. 1 |
The world, literary composition Tianjin |
12 |
1 |
14 |
Nan Yuan |
|
11 |
0 |
15 |
1~20 |
|
14 |
1 |
16 |
The cercis apartment |
|
11 |
0 |
17 |
1~10 |
|
16 |
1 |
18 |
Other |
|
16 |
1 |
19 |
1~No. 21 |
|
10 |
1 |
20 |
The Xicheng District |
|
8 |
0 |
... |
... |
... |
... |
... |
All there is the limited dispensing scope of oneself in each businessman, below is the partial content of businessman dispensing scale relationships table:
SellerNo |
AddrNo |
... |
... |
5 |
9 |
6 |
11 |
6 |
13 |
7 |
15 |
7 |
17 |
8 |
18 |
9 |
19 |
10 |
17 |
... |
... |
When the consumer browses this website, can be prompted to select step by step its ship-to, for example consumer's ship-to is " south, Tsinghua University, Haidian District, Beijing City 12 4 unit 502# in garden ", when then the consumer selects " Beijing ", according to instance data above, AddrNo inquiry businessman with " Beijing " provides and delivers the scale relationships table without any the businessman that satisfies condition, and the subordinate zone is further selected in the simultaneity factor prompting: " Haidian District ", " Xicheng District "; The consumer selects " Haidian District ", this moment, system will be according to the AddrNo inquiry businessman dispensing scope table of " Haidian District " and " Beijing ", with listing SellerNo is 5 Business Information, the subordinate zone is further selected in the simultaneity factor prompting: " Cheng Fu road ", " East Road, Zhong Guan-cun ", the consumer selects " Cheng Fu road ", this moment, system will be according to " Cheng Fu road ", " Haidian District ", the AddrNo inquiry businessman dispensing table of " Beijing ", with listing SellerNo is 5 Business Information, and the subordinate zone is further selected in the simultaneity factor prompting: " 1~No. 21 ", " No. 22 (Tsing-Hua University) " (here the address another name being shown with insertion of brackets); The consumer selects " No. 22 (Tsing-Hua University) ", and this moment, system will be according to the AddrNo of " No. 22 ", " Cheng Fu road ", " Haidian District ", " Beijing " inquiry businessman dispensing scope table, is 5 and 6 Business Information with listing SellerNo; By that analogy up to choosing " 1~20 ", listed SellerNo this moment and be 5,6 and 7 businessman, the consumer can only select product to order in these several businessmans, input chopping up ship-to part " 12 4 unit 502# " really except that the address of selecting, and fill in other information of knowing that the website requires, provide order to get final product then.
In this example, website design address fuzzy query function, to make things convenient for the consumer, be that the consumer of " Tsinghua University, Haidian District, Beijing City south 12 the 4 unit 502# in garden " is an example with ship-to again, the consumer can import " Tsing-Hua University " inquiry, this moment system to list following atomic address path list selective:
Beijing>Haidian District>Cheng Fu road>No. 22 (Tsing-Hua University) [click and select]
The user can directly click and select can simplify the step of selection like this with the same atomic address path of own ship-to.
Community's fast food is ordered the website by after implementing the present invention, can obtain following benefit:
1), can allow the cooperation all businessmans carry out the processing of robotization to sending professional limited dispensing scope outside, improved work efficiency;
2), can be easily on ordering platform, realize integrating based on the order of atomic address, and unifiedly arrange dispensing, further improve dispensing efficient.
Anyly be familiar with those skilled in the art, without departing from the spirit and scope of the present invention, can increase the address lookup function, do a little change and retouching, but not influence statutory protection scope of the present invention as this example.