[go: up one dir, main page]

CN114547092A - A data processing method, device, electronic device and storage medium - Google Patents

A data processing method, device, electronic device and storage medium Download PDF

Info

Publication number
CN114547092A
CN114547092A CN202111635105.0A CN202111635105A CN114547092A CN 114547092 A CN114547092 A CN 114547092A CN 202111635105 A CN202111635105 A CN 202111635105A CN 114547092 A CN114547092 A CN 114547092A
Authority
CN
China
Prior art keywords
warehouse
address information
target
level address
determining
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
CN202111635105.0A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111635105.0A priority Critical patent/CN114547092A/en
Publication of CN114547092A publication Critical patent/CN114547092A/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Remote Sensing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a data processing method, an apparatus, an electronic device, and a storage medium, including: the method comprises the steps of obtaining address information, determining a plurality of area codes corresponding to the address information based on the address and area code mapping relation, sending a warehouse query instruction, wherein the warehouse query instruction comprises the plurality of area codes, and receiving a warehouse identifier corresponding to at least one area code in the plurality of area codes. According to the method and the device, the address information of different levels in the address information is coded and used as the key value, the interaction times in the cache system are reduced in a concurrent query mode, and in the face of a multi-warehouse inventory mode, accurate warehouse selection can be achieved, the inventory query efficiency is improved, and good use experience is provided for users.

Description

一种数据处理方法、装置、电子设备及存储介质A data processing method, device, electronic device and storage medium

技术领域technical field

本公开涉及互联网技术领域,尤其涉及一种数据处理方法、装置、电子设备及存储介质。The present disclosure relates to the field of Internet technologies, and in particular, to a data processing method, apparatus, electronic device, and storage medium.

背景技术Background technique

随着当前的移动互联网的迅速发展,网上购物在人们的购物中占据着越来越重要的位置,这是因为人们可以花费少量的时间进行多家货品比较。With the rapid development of the current mobile Internet, online shopping occupies an increasingly important position in people's shopping, because people can spend a small amount of time to compare multiple items.

服务器通常在获取完整的地址后,可以从中确定出用户的地址信息。随后,获取多个仓库中每个仓库对应的地址信息,将每个仓库对应的地址信息和用户的地址信息进行匹配,直到找到和用户的地址信息匹配的地址信息。这样,服务器可以确定出仓库。然而,当主播或者平台下设置的仓库较少时,每个仓库都会对应数十个,数百个甚至数千个地址信息,使用上述的方式进行仓库确定时,会消耗很长的时间,降低用户的下单体验。The server usually can determine the user's address information from the complete address after obtaining the complete address. Subsequently, the address information corresponding to each warehouse in the plurality of warehouses is acquired, and the address information corresponding to each warehouse is matched with the user's address information until the address information matching the user's address information is found. In this way, the server can determine the warehouse. However, when there are few warehouses set up under the anchor or the platform, each warehouse will correspond to dozens, hundreds or even thousands of address information. When using the above method to determine the warehouse, it will consume a long time and reduce User experience when placing an order.

发明内容SUMMARY OF THE INVENTION

本公开提供一种数据处理方法、装置、电子设备及存储介质,本公开的技术方案如下:The present disclosure provides a data processing method, device, electronic device and storage medium, and the technical solutions of the present disclosure are as follows:

根据本公开实施例的第一方面,提供一种数据处理方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including:

获取地址信息;obtain address information;

基于地址和区域编码映射关系确定地址信息对应的多个区域编码;Determine a plurality of area codes corresponding to the address information based on the mapping relationship between the address and the area code;

发送仓库查询指令;仓库查询指令包括多个区域编码;Send warehouse query instructions; warehouse query instructions include multiple area codes;

接收多个区域编码中至少一个区域编码对应的仓库标识。A warehouse identifier corresponding to at least one area code among the plurality of area codes is received.

在一些可能的实施例中,基于地址和区域编码映射关系确定地址信息对应的多个区域编码包括:In some possible embodiments, determining a plurality of area codes corresponding to the address information based on the mapping relationship between addresses and area codes includes:

从地址信息中确定第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息;第一级地址信息包括第二级地址信息,第二级地址信息包括第三级地址信息,第三级地址信息包括第四级地址信息;Determine the first-level address information, the second-level address information, the third-level address information and the fourth-level address information from the address information; the first-level address information includes the second-level address information, and the second-level address information includes the third-level address information address information, the third-level address information includes the fourth-level address information;

基于地址和区域编码映射关系确定第一级地址信息对应的区域编码、第二级地址信息对应的区域编码、第三级地址信息对应的区域编码和第四级地址信息对应的区域编码。Based on the mapping relationship between the address and the area code, the area code corresponding to the first-level address information, the area code corresponding to the second-level address information, the area code corresponding to the third-level address information, and the area code corresponding to the fourth-level address information are determined.

在一些可能的实施例中,接收多个区域编码中至少一个区域编码对应的仓库标识包括:In some possible embodiments, receiving a warehouse identifier corresponding to at least one area code in the plurality of area codes includes:

接收多个区域编码中一个区域编码对应的仓库标识。Receive a warehouse identifier corresponding to one area code among the multiple area codes.

在一些可能的实施例中,一个区域编码对应的仓库标识包括多个仓库一一对应的多个仓库标识,获取地址信息包括:In some possible embodiments, the warehouse identifier corresponding to an area code includes multiple warehouse identifiers corresponding to multiple warehouses one-to-one, and obtaining the address information includes:

接收订单信息;receive order information;

从订单信息中解析得到地址信息和对象的目标数量。The address information and the target quantity of the object are obtained by parsing the order information.

在一些可能的实施例中,方法还包括:In some possible embodiments, the method further includes:

基于多个仓库标识中每个仓库标识确定出对应的仓库中,对象的供应数量;Determine the supply quantity of the object in the corresponding warehouse based on each warehouse identifier in the multiple warehouse identifiers;

将供应数量满足目标数量的仓库确定为目标仓库;Determine the warehouse whose supply quantity meets the target quantity as the target warehouse;

将目标仓库对应的仓库标识确定为目标仓库标识。The warehouse ID corresponding to the target warehouse is determined as the target warehouse ID.

在一些可能的实施例中,将目标仓库对应的仓库标识确定为目标仓库标识包括:In some possible embodiments, determining the warehouse identifier corresponding to the target warehouse as the target warehouse identifier includes:

若存在多个目标仓库,确定多个目标仓库中每个目标仓库的优先级;If there are multiple target warehouses, determine the priority of each target warehouse in the multiple target warehouses;

将优先级满足预设优先级的目标仓库确定为配置仓库;Determine the target warehouse whose priority meets the preset priority as the configuration warehouse;

将配置仓库对应的仓库标识确定为目标仓库标识。Determine the warehouse ID corresponding to the configuration warehouse as the target warehouse ID.

在一些可能的实施例中,发送仓库查询指令,包括:In some possible embodiments, sending a warehouse query instruction includes:

发送仓库查询指令,仓库查询指令包括多个区域编码;仓库查询指令用于指示将多个区域编码中每个区域编码作为键值key实现对于仓库标识value的查询。Send a warehouse query instruction, the warehouse query instruction includes multiple area codes; the warehouse query instruction is used to instruct to use each area code in the multiple area codes as a key value key to query the warehouse identifier value.

根据本公开实施例的第二方面,提供一种数据处理装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus, including:

信息获取模块,被配置为执行获取地址信息;an information acquisition module, configured to perform acquisition of address information;

区域编码确定模块,被配置为执行基于地址和区域编码映射关系确定地址信息对应的多个区域编码;an area code determination module, configured to execute a plurality of area codes corresponding to the address information determined based on the mapping relationship between the address and the area code;

指令发送模块,被配置为执行发送仓库查询指令;仓库查询指令包括多个区域编码;an instruction sending module, configured to execute and send a warehouse query instruction; the warehouse query instruction includes a plurality of area codes;

标识接收模块,被配置为执行接收多个区域编码中至少一个区域编码对应的仓库标识。The identification receiving module is configured to receive a warehouse identification corresponding to at least one area code among the plurality of area codes.

在一些可能的实施例中,区域编码确定模块,被配置为执行:In some possible embodiments, the region code determination module is configured to perform:

从地址信息中确定第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息;第一级地址信息包括第二级地址信息,第二级地址信息包括第三级地址信息,第三级地址信息包括第四级地址信息;Determine the first-level address information, the second-level address information, the third-level address information and the fourth-level address information from the address information; the first-level address information includes the second-level address information, and the second-level address information includes the third-level address information address information, the third-level address information includes the fourth-level address information;

基于地址和区域编码映射关系确定第一级地址信息对应的区域编码、第二级地址信息对应的区域编码、第三级地址信息对应的区域编码和第四级地址信息对应的区域编码。Based on the mapping relationship between the address and the area code, the area code corresponding to the first-level address information, the area code corresponding to the second-level address information, the area code corresponding to the third-level address information, and the area code corresponding to the fourth-level address information are determined.

在一些可能的实施例中,标识接收模块,被配置为执行:In some possible embodiments, the identity receiving module is configured to perform:

接收多个区域编码中一个区域编码对应的仓库标识。Receive a warehouse identifier corresponding to one area code among the multiple area codes.

在一些可能的实施例中,一个区域编码对应的仓库标识包括多个仓库一一对应的多个仓库标识,信息获取模块,被配置为执行:In some possible embodiments, a warehouse identifier corresponding to an area code includes a plurality of warehouse identifiers corresponding to multiple warehouses one-to-one, and the information acquisition module is configured to execute:

接收订单信息;receive order information;

从订单信息中解析得到地址信息和对象的目标数量。The address information and the target quantity of the object are obtained by parsing the order information.

在一些可能的实施例中,装置还包括:In some possible embodiments, the apparatus further includes:

数量确定模块,被配置为执行基于多个仓库标识中每个仓库标识确定出对应的仓库中,对象的供应数量;The quantity determination module is configured to determine the supply quantity of the object in the corresponding warehouse based on each warehouse identifier of the plurality of warehouse identifiers;

仓库确定模块,被配置为执行将供应数量满足目标数量的仓库确定为目标仓库;The warehouse determination module is configured to determine the warehouse whose supply quantity meets the target quantity as the target warehouse;

仓库标识确定模块,被配置为执行将目标仓库对应的仓库标识确定为目标仓库标识。The warehouse identifier determination module is configured to perform determining the warehouse identifier corresponding to the target warehouse as the target warehouse identifier.

在一些可能的实施例中,仓库标识确定模块,被配置为执行:In some possible embodiments, the warehouse identification determination module is configured to perform:

若存在多个目标仓库,确定多个目标仓库中每个目标仓库的优先级;If there are multiple target warehouses, determine the priority of each target warehouse in the multiple target warehouses;

将优先级满足预设优先级的目标仓库确定为配置仓库;Determine the target warehouse whose priority meets the preset priority as the configuration warehouse;

将配置仓库对应的仓库标识确定为目标仓库标识。Determine the warehouse ID corresponding to the configuration warehouse as the target warehouse ID.

在一些可能的实施例中,指令发送模块,被配置为执行:In some possible embodiments, the instruction sending module is configured to perform:

发送仓库查询指令,仓库查询指令包括多个区域编码;仓库查询指令用于指示将多个区域编码中每个区域编码作为键值key实现对于仓库标识value的查询。Send a warehouse query instruction, the warehouse query instruction includes multiple area codes; the warehouse query instruction is used to instruct to use each area code in the multiple area codes as a key value key to query the warehouse identifier value.

根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令,以实现如上述第一方面中任一项的方法。According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the first aspect as described above any of the methods.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,当计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例的第一方面中任一项的方法。According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the first aspect of the embodiments of the present disclosure any of the methods.

根据本公开实施例的第五方面,提供一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序存储在可读存储介质中,计算机设备的至少一个处理器从可读存储介质读取并执行计算机程序,使得计算机设备执行本公开实施例的第一方面中任一项的方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the computer device reads and executes the computer program from the readable storage medium A computer program that causes a computer device to perform the method of any one of the first aspects of the embodiments of the present disclosure.

本公开的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:

获取地址信息,基于地址和区域编码映射关系确定地址信息对应的多个区域编码,发送仓库查询指令,仓库查询指令包括多个区域编码,接收多个区域编码中至少一个区域编码对应的仓库标识。本申请实施例通过将地址信息中的不同级别的地址信息进行编码,作为键值,通过并发查询的方式减少和缓存系统中的交互次数,面对多仓库库存模式,可以精准择仓,提高库存查询效率,为用户提供良好的使用体验。Obtain address information, determine multiple area codes corresponding to the address information based on the mapping relationship between addresses and area codes, send a warehouse query instruction, which includes multiple area codes, and receive a warehouse identifier corresponding to at least one of the multiple area codes. In the embodiment of the present application, by encoding the address information of different levels in the address information as key values, the number of interactions with the cache system is reduced by means of concurrent query. Facing the multi-warehouse inventory mode, the warehouse can be accurately selected and the inventory can be improved. Query efficiency and provide users with a good experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.

图1是根据一示例性实施例示出的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种数据处理方法的流程图;FIG. 2 is a flowchart of a data processing method according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种仓库标识确定方法的流程图;3 is a flowchart of a method for determining a warehouse identifier according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种仓库标识确定方法的流程图;4 is a flowchart of a method for determining a warehouse identifier according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种数据处理装置的框图;5 is a block diagram of a data processing apparatus according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种用于数据处理的电子设备的框图。Fig. 6 is a block diagram of an electronic device for data processing according to an exemplary embodiment.

具体实施方式Detailed ways

为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的第一对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first objects, and are not necessarily used to describe a specific order or sequence. order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

本申请中有关用户的所有数据均是用户授权后的数据。All data about the user in this application is the data authorized by the user.

请参阅图1,图1是根据一示例性实施例示出的一种数据处理方法的应用环境的示意图,如图1所示,该应用环境可以包括服务器01和客户端02。Please refer to FIG. 1 , which is a schematic diagram of an application environment of a data processing method according to an exemplary embodiment. As shown in FIG. 1 , the application environment may include a server 01 and a client 02 .

本申请实施例中,服务器01可以获取客户端02发送的地址信息,随后,服务器01可以基于地址和区域编码映射关系确定地址信息对应的多个区域编码。发送仓库查询指令,仓库查询指令包括多个区域编码,接收多个区域编码中至少一个区域编码对应的仓库标识。In this embodiment of the present application, the server 01 may acquire the address information sent by the client 02, and then the server 01 may determine a plurality of area codes corresponding to the address information based on the mapping relationship between addresses and area codes. Send a warehouse query instruction, where the warehouse query instruction includes multiple area codes, and receive a warehouse identifier corresponding to at least one area code in the multiple area codes.

服务器01可以包括是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。服务器上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows、Unix等。Server 01 may include an independent physical server, a server cluster or a distributed system composed of multiple physical servers, and may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, and cloud communications , middleware services, domain name services, security services, CDN (Content Delivery Network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The operating system running on the server may include, but is not limited to, Android system, IOS system, linux, windows, Unix, and the like.

在一些可能的实施例中,上述的客户端02向服务器01发送地址信息。客户端02可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能可穿戴设备等类型的客户端。也可以为运行于上述客户端的软体,例如应用程序、小程序等。可选的,客户端上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows、Unix等。In some possible embodiments, the above-mentioned client 02 sends address information to the server 01 . Client 02 may include, but is not limited to, smartphones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices, smart wearable devices, etc. type of client. It can also be software running on the above-mentioned client, such as an application program, a small program, and the like. Optionally, the operating system running on the client may include, but is not limited to, an Android system, an IOS system, linux, windows, Unix, and the like.

此外,需要说明的是,图1所示的仅仅是本公开提供的数据处理方法的一种应用环境,在实际应用中,还可以包括其他应用环境。比如,上述的客户端可以是买家用户的客户端,因此,还可以包括一种数据处理方法的一种应用环境,包括买家用户对应的客户端03,卖家用户对应的客户端04,以及在物理架构上,位于客户端03和客户端04之间的服务器05。In addition, it should be noted that what is shown in FIG. 1 is only an application environment of the data processing method provided by the present disclosure, and other application environments may also be included in practical applications. For example, the above-mentioned client may be the client of the buyer user, therefore, it may also include an application environment of a data processing method, including the client 03 corresponding to the buyer user, the client 04 corresponding to the seller user, and Physically, server 05 is located between client 03 and client 04.

图2是根据一示例性实施例示出的一种数据处理方法的流程图,如图2所示,数据处理方法可以应用于服务器,也可以应用于其他节点设备,包括以下步骤:FIG. 2 is a flowchart of a data processing method according to an exemplary embodiment. As shown in FIG. 2, the data processing method can be applied to a server or other node devices, including the following steps:

在步骤S201中,获取地址信息。In step S201, address information is acquired.

本申请实施例中,服务器可以接收客户端发送的订单信息,从订单信息中解析得到地址信息。In this embodiment of the present application, the server may receive the order information sent by the client, and obtain the address information by parsing the order information.

可选的,上述的订单信息可以是客户端所属的用户在对应的平台或者应用程序上对某个对象进行下单后生成的。Optionally, the above-mentioned order information may be generated after a user to which the client belongs places an order for an object on a corresponding platform or application.

可选的,上述的地址信息可以是该用户输入的地址信息,用于当服务器接收到地址信息,可以基于该地址信息确定发货的仓库的标识。Optionally, the above-mentioned address information may be address information input by the user, for when the server receives the address information, the identifier of the warehouse for delivery may be determined based on the address information.

在另一些可能的实施例中,在后续的过程中,基于该地址信息匹配对的仓库可能存在多个。然而,仓库可能存在以下情况:和该地址信息匹配的多个仓库中,并不是任意一个仓库正好能够提供该订单信息中需求的对象的数量。为了避免出现如上的情况,服务器可以从订单信息中解析得到地址信息和对象的目标数量。In some other possible embodiments, in the subsequent process, there may be multiple warehouses matching pairs based on the address information. However, the warehouse may have the following situation: among the multiple warehouses matching the address information, not any one warehouse can exactly provide the quantity of objects required in the order information. In order to avoid the above situation, the server can parse the address information and the target quantity of the object from the order information.

在步骤S202中,基于地址和区域编码映射关系确定地址信息对应的多个区域编码。In step S202, a plurality of area codes corresponding to the address information are determined based on the mapping relationship between addresses and area codes.

一种可选的实施例中,用户输入的地址可以包括国家信息、省份信息、城市信息、区信息/县信息和街道社区信息/镇信息,还可以包括更详细的小区信息,村信息,门牌号信息等等。In an optional embodiment, the address input by the user may include country information, province information, city information, district information/county information and street community information/town information, and may also include more detailed community information, village information, house number number information, etc.

由于本申请的方案是通过地址信息确定能够提供对象的仓库的标识,能够提供对象的仓库可能是基于城市布局的,也就是说,通过城市信息可以查询到该城市中该对象所在的仓库。可选的,能够提供对象的仓库可能是基于区域/县布局的,也就是说,通过区域信息/县信息可以查询到该城市中该对象所在的仓库。可选的,能够提供对象的仓库可能是基于省份布局的,也就是说,通过省份信息可以查询到该城市中该对象所在的仓库。Since the solution of the present application determines the identifier of the warehouse that can provide the object through the address information, the warehouse that can provide the object may be based on the city layout, that is, the warehouse where the object is located in the city can be queried through the city information. Optionally, the warehouse that can provide the object may be based on the region/county layout, that is, the warehouse where the object is located in the city can be queried through the region information/county information. Optionally, the warehouse that can provide the object may be based on the layout of the province, that is, the warehouse where the object is located in the city can be queried through the province information.

基于此,服务器从订单信息中得到地址后,可以从中提取出地址信息。可选的,若该地址中包括国家信息,则服务器可以从地址中提取出地址信息,包括第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息。Based on this, after the server obtains the address from the order information, it can extract the address information therefrom. Optionally, if the address includes country information, the server may extract address information from the address, including first-level address information, second-level address information, third-level address information, and fourth-level address information.

其中,第一级地址信息为国家信息,第二级地址信息为省份信息,第三级地址信息为城市信息,第四级地址信息为区域信息或者县信息。由此可见,第一级地址信息可以包括第二级地址信息,第二级地址信息可以包括第三级地址信息,第三级地址信息可以包括第四级地址信息。The first-level address information is country information, the second-level address information is province information, the third-level address information is city information, and the fourth-level address information is regional information or county information. It can be seen that the first-level address information may include second-level address information, the second-level address information may include third-level address information, and the third-level address information may include fourth-level address information.

若该地址中不包括国家信息,则服务器可以从地址中提取出地址信息,包括第二级地址信息、第三级地址信息和第四级地址信息。其中,第二级地址信息为省份信息,第三级地址信息为城市信息,第四级地址信息为区域信息或者县信息。由此可见,第二级地址信息可以包括第三级地址信息,第三级地址信息可以包括第四级地址信息。If the address does not include country information, the server may extract address information from the address, including the second-level address information, the third-level address information, and the fourth-level address information. The second-level address information is province information, the third-level address information is city information, and the fourth-level address information is regional information or county information. It can be seen that the second-level address information may include third-level address information, and the third-level address information may include fourth-level address information.

可选的,服务器可以直接根据地址信息(比如包括第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息)确定出该地址信息对应的一个区域编码。举个例子,可以直接根据A国B省份C城市D区确定出区域编码。然而,上述说到有些仓库可能是基于城市布局,若直接定位区域编码的地址信息中包括区信息,则在后续使用区域编码时,是不会查到对应的仓库的。可选的,当根据第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息确定的区域编码不能查到对应的仓库标识时,可以根据第一级地址信息、第二级地址信息和第三级地址信息确定的区域编码查询对应的仓库标识,以此逐步减少地址信息中包含的信息,以便可以根据重新确定的地址信息查到对应的仓库标识。Optionally, the server may directly determine an area code corresponding to the address information according to the address information (for example, including the first-level address information, the second-level address information, the third-level address information, and the fourth-level address information). For example, the area code can be determined directly from the area of country A, province B, city D, city D. However, as mentioned above, some warehouses may be based on the urban layout. If the address information of the direct positioning area code includes the area information, the corresponding warehouse will not be found when the area code is used subsequently. Optionally, when the corresponding warehouse identifier cannot be found according to the area codes determined according to the first-level address information, the second-level address information, the third-level address information, and the fourth-level address information, you can use the first-level address information, The area code determined by the second-level address information and the third-level address information is queried for the corresponding warehouse identification, thereby gradually reducing the information contained in the address information, so that the corresponding warehouse identification can be found according to the re-determined address information.

然而,上段的方式虽然解决了出现的问题,但是存在出现多次和缓存系统的交互才能得到仓库标识的后果。基于此,服务器可以基于地址和区域编码映射关系确定地址信息对应的多个区域编码,以便,服务器可以通过多个区域编码和缓存系统进行的一次交互,就可以得到对应的仓库标识,也就是说,服务器可以通过并发查询的方式减少和缓存系统中的交互次数。However, although the method in the previous paragraph solves the problem, there is a consequence that the warehouse ID can only be obtained after multiple interactions with the cache system. Based on this, the server can determine multiple area codes corresponding to the address information based on the mapping relationship between the address and the area code, so that the server can obtain the corresponding warehouse identifier through one interaction between the multiple area codes and the caching system, that is to say , the server can reduce the number of interactions with the cache system through concurrent queries.

可选的,若地址信息包括第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息,服务器可以基于地址和区域编码映射关系确定第一级地址信息对应的区域编码、第二级地址信息对应的区域编码、第三级地址信息对应的区域编码和第四级地址信息对应的区域编码。Optionally, if the address information includes the first-level address information, the second-level address information, the third-level address information, and the fourth-level address information, the server may determine the region corresponding to the first-level address information based on the mapping relationship between the address and the region code. code, the area code corresponding to the second-level address information, the area code corresponding to the third-level address information, and the area code corresponding to the fourth-level address information.

可选的,若地址信息包括第二级地址信息、第三级地址信息和第四级地址信息,服务器可以基于地址和区域编码映射关系确定第二级地址信息对应的区域编码、第三级地址信息对应的区域编码和第四级地址信息对应的区域编码。Optionally, if the address information includes the second-level address information, the third-level address information, and the fourth-level address information, the server may determine the region code and the third-level address corresponding to the second-level address information based on the mapping relationship between the address and the region code. The area code corresponding to the information and the area code corresponding to the fourth-level address information.

举个例子,假设地址信息包括的第一级地址信息为A国、第二级地址信息为B省份、第三级地址信息为C城市和第四级地址信息为D区。服务器可以从地址和区域编码映射关系中确定A国对应的区域编码,比如“100001”;B省份对应的区域编码,比如“200001”;C城市对应的区域编码,比如“300001”;以及D区对应的区域编码,比如“4000001”。上述的区域编码为示例性的一种编码形式,可选的,每个区域编码还可以是64位二进制编码。For example, it is assumed that the first-level address information included in the address information is country A, the second-level address information is province B, the third-level address information is city C, and the fourth-level address information is district D. The server can determine the area code corresponding to country A, such as "100001"; the area code corresponding to province B, such as "200001"; the area code corresponding to city C, such as "300001"; The corresponding region code, such as "4000001". The above region encoding is an exemplary encoding form. Optionally, each region encoding may also be a 64-bit binary encoding.

本申请实施例中,地址和区域编码映射关系可以用地址和区域编码映射表格来表示,还可以用TXT文件来表示地址和区域编码映射关系。上面分别包括地址信息中每个级别的地址信息对应的区域编码。In this embodiment of the present application, the mapping relationship between addresses and area codes may be represented by an address and area code mapping table, and a TXT file may also be used to represent the mapping relationship between addresses and area codes. The area codes corresponding to each level of address information in the address information are respectively included above.

一种可选的实施例中,可能存在不同城市中包括的区的名字是一样的,比如一个是X城市下辖的Y区,一个是Z城市下辖的Y区,若仅仅根据Y区这个第四级城市信息从地址和区域编码映射关系确定区域编码,则可能确定出多个区域编码,从而造成由地址信息转化成区域编码时的紊乱。In an optional embodiment, there may be districts with the same names in different cities. For example, one is district Y under the jurisdiction of city X, and the other is district Y under the jurisdiction of city Z. The fourth-level city information determines the area code from the mapping relationship between the address and the area code, and it is possible to determine multiple area codes, thus causing confusion when converting the address information into the area code.

基于上述原因,以地址信息包括第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息为例进行阐述。可选的,服务器可以基于第一级地址信息从地址和区域编码映射关系中确定出第一级地址信息对应的区域编码,基于第一级地址信息和第二级地址信息从地址和区域编码映射关系中确定出第二地址信息对应的区域编码,基于第二地址信息和第三级地址信息从地址和区域编码映射关系中确定出第三地址信息对应的区域编码,基于第三地址信息和第四级地址信息从地址和区域编码映射关系中确定出第四地址信息对应的区域编码。Based on the above reasons, the address information includes the first-level address information, the second-level address information, the third-level address information, and the fourth-level address information as an example for description. Optionally, the server may determine the area code corresponding to the first-level address information from the mapping relationship between the address and the area code based on the first-level address information, and map the address and area code based on the first-level address information and the second-level address information. The area code corresponding to the second address information is determined in the relationship, and the area code corresponding to the third address information is determined from the mapping relationship between the address and the area code based on the second address information and the third-level address information. The fourth-level address information determines the area code corresponding to the fourth address information from the mapping relationship between the address and the area code.

在步骤S203中,发送仓库查询指令;仓库查询指令包括多个区域编码。In step S203, a warehouse query instruction is sent; the warehouse query instruction includes a plurality of area codes.

本申请实施例中,若区域编码和其对应的仓库标识存放在数据库中,则服务器可以向数据库发送仓库查询指令。若数据库存在配对的缓存系统,则服务器可以将仓库查询指令发至给缓存系统。In the embodiment of the present application, if the area code and the corresponding warehouse identifier are stored in the database, the server may send a warehouse query instruction to the database. If a paired cache system exists in the database, the server can send the warehouse query instruction to the cache system.

可选的,缓存系统可以为键值对key-value缓存系统,如此,服务器向缓存系统发送仓库查询指令后,缓存系统可以将多个区域编码中每个区域编码作为键值key实现对于仓库标识value的查询。Optionally, the cache system can be a key-value pair key-value cache system. In this way, after the server sends a warehouse query instruction to the cache system, the cache system can use each region code in the multiple region codes as a key-value key to realize the identification of the warehouse. Query for value.

可选的,该key-value缓存系统可以为Redis缓存系统,这是因为Redis缓存系统性能较高,其读的速度为110000次/秒,写的速度为81000次/秒。Optionally, the key-value cache system can be a Redis cache system, because the Redis cache system has high performance, and its read speed is 110,000 times/second and the write speed is 81,000 times/second.

一种可选的实施例中,若下单平台上的所有对象是位于平台下的仓库中,即不同的主播或者不同的商家的提供的对象都位于该平台下的仓库中,当服务器确定好地址信息对应的多个区域编码,则服务器可以向平台对应的缓存系统发送仓库查询指令。In an optional embodiment, if all objects on the ordering platform are located in the warehouse under the platform, that is, the objects provided by different anchors or different merchants are located in the warehouse under the platform. If there are multiple area codes corresponding to the address information, the server can send a warehouse query instruction to the cache system corresponding to the platform.

另一种可选的实施例中,若不同的主播或者不同的商家的提供的对象位于不同的仓库中,服务器可以基于平台标识和商家标识(主播标识)确定缓存系统,随后将仓库查询指令发送至该缓存系统。In another optional embodiment, if the objects provided by different hosts or different merchants are located in different warehouses, the server may determine the cache system based on the platform ID and the merchant ID (host ID), and then send the warehouse query instruction to the cache system.

在步骤S204中,接收多个区域编码中至少一个区域编码对应的仓库标识。In step S204, a warehouse identifier corresponding to at least one area code among the plurality of area codes is received.

一种可选的实施例中,缓存系统可以基于多个区域编码中每个区域确定对应的仓库标识,若多个区域编码中存在两个区域编码有对应的仓库标识,则可以将两个区域编码有对应的仓库标识发送至服务器。In an optional embodiment, the cache system can determine the corresponding warehouse identifier based on each area in the multiple area codes. If there are two area codes in the multiple area codes with corresponding warehouse identifiers, the two area codes can be The code is sent to the server with the corresponding warehouse ID.

然而,一般情况下,仓库所述的区域一般都是最小区域。举个例子,若仓库是基于城市布局的,则缓存系统可以根据城市信确定其对应的区域编码,其他诸如国家信息,省份信息和区信息都可能查询不到仓库标识。此种情况下,服务器可以接收多个区域编码中一个区域编码对应的仓库标识。However, in general, the areas described in the warehouse are generally the smallest areas. For example, if the warehouse is based on the city layout, the cache system can determine the corresponding area code according to the city information. Others such as country information, province information and district information may not be able to query the warehouse identifier. In this case, the server may receive a warehouse identifier corresponding to one area code among the multiple area codes.

上文已经提到,基于该地址信息匹配对的仓库可能存在多个。然而,仓库可能存在以下情况:和该地址信息匹配的多个仓库中,并不是任意一个仓库正好能够提供该订单信息中需求的对象的数量。为了避免出现如上的情况,服务器可以从订单信息中解析得到地址信息和对象的目标数量。As mentioned above, there may be multiple warehouses matching pairs based on the address information. However, the warehouse may have the following situation: among the multiple warehouses matching the address information, not any one warehouse can provide the quantity of objects required in the order information. In order to avoid the above situation, the server can parse the order information to obtain the address information and the target quantity of the object.

图3是根据一示例性实施例示出的一种仓库标识确定方法的流程图,如图3所示,包括以下步骤:Fig. 3 is a flow chart of a method for determining a warehouse identifier according to an exemplary embodiment, as shown in Fig. 3, including the following steps:

在步骤S301中,基于多个仓库标识中每个仓库标识确定出对应的仓库中,对象的供应数量。In step S301, the supply quantity of the object in the corresponding warehouse is determined based on each of the warehouse identifiers of the plurality of warehouse identifiers.

一种可选的实施例中,服务器接收到多个区域编码中至少一个区域编码对应的仓库标识后。可以基于每个仓库标识确定出每个仓库标识对应的仓库中,对象的供应数量。可选的,每个仓库中对象的供应数量可以保存在服务器内。In an optional embodiment, the server receives the warehouse identifier corresponding to at least one area code among the plurality of area codes. The supply quantity of the object in the warehouse corresponding to each warehouse identification may be determined based on each warehouse identification. Optionally, the supply quantity of objects in each warehouse can be stored on the server.

在步骤S302中,将供应数量满足目标数量的仓库确定为目标仓库。In step S302, a warehouse whose supply quantity meets the target quantity is determined as a target warehouse.

可选的,若多个仓库标识对应的多个仓库中,存在有仓库能够提供的数量,即供应数量可以满足目标数量,服务器可以将该仓库确定为目标仓库。Optionally, if there is a quantity that the warehouse can provide in the multiple warehouses corresponding to the multiple warehouse identifiers, that is, the supply quantity can meet the target quantity, the server may determine the warehouse as the target warehouse.

在步骤S303中,将目标仓库对应的仓库标识确定为目标仓库标识。In step S303, the warehouse identifier corresponding to the target warehouse is determined as the target warehouse identifier.

可选的,服务器可以将目标仓库对应的仓库标识确定为目标仓库标识,以便服务器可以将目标仓库标识发送至用户的客户端。Optionally, the server can determine the warehouse identifier corresponding to the target warehouse as the target warehouse identifier, so that the server can send the target warehouse identifier to the client of the user.

图4是根据一示例性实施例示出的一种仓库标识确定方法的流程图,如图4所示,包括以下步骤:FIG. 4 is a flowchart of a method for determining a warehouse identifier according to an exemplary embodiment, as shown in FIG. 4 , including the following steps:

在步骤S401中,若存在多个目标仓库,确定多个目标仓库中每个目标仓库的优先级。In step S401, if there are multiple target warehouses, the priority of each target warehouse in the multiple target warehouses is determined.

在步骤S402中,将优先级满足预设优先级的目标仓库确定为配置仓库。In step S402, a target warehouse whose priority meets the preset priority is determined as a configuration warehouse.

在步骤S403中,将配置仓库对应的仓库标识确定为目标仓库标识。In step S403, the warehouse identifier corresponding to the configuration warehouse is determined as the target warehouse identifier.

可选的,若存在有多个仓库能够提供的数量可以满足目标数量,服务器可以将从中随机选择一个为目标仓库,并将目标仓库对应的仓库标识确定为目标仓库标识,以便服务器可以将目标仓库标识发送至用户的客户端。Optionally, if there are multiple warehouses that can provide the quantity that can meet the target quantity, the server can randomly select one of them as the target warehouse, and determine the warehouse ID corresponding to the target warehouse as the target warehouse ID, so that the server can identify the target warehouse. Identifies the client sent to the user.

可选的,若存在有多个仓库能够提供的数量可以满足目标数量,服务器可以确定多个目标仓库中每个目标仓库的优先级,并将优先级满足预设优先级的目标仓库确定为配置仓库,将配置仓库对应的仓库标识确定为目标仓库标识,以便服务器可以将目标仓库标识发送至用户的客户端。可选的,优先级满足预设优先级可以指最高优先级。Optionally, if there are multiple warehouses that can provide the quantity that can meet the target quantity, the server can determine the priority of each target warehouse in the multiple target warehouses, and determine the target warehouse whose priority meets the preset priority as the configuration. Warehouse, determine the warehouse ID corresponding to the configuration warehouse as the target warehouse ID, so that the server can send the target warehouse ID to the client of the user. Optionally, the priority meeting the preset priority may refer to the highest priority.

本申请实施例中,当服务器基于每个仓库标识确定出每个仓库标识对应的仓库中,对象的供应数量后,当没有一个仓库中对象的供应数量是满足目标数量时。服务器可以确定出每个仓库的优先级,按照优先级的顺序对仓库进行排序。其中,优先级越高的仓库,排序位置越高。In the embodiment of the present application, after the server determines the supply quantity of objects in the warehouse corresponding to each warehouse identifier based on each warehouse identifier, when the supply quantity of objects in none of the warehouses meets the target quantity. The server can determine the priority of each warehouse, and sort the warehouses according to the order of priority. Among them, the higher the priority warehouse, the higher the sorting position.

当服务器对每个仓库进行排序后,可以将排序第一的仓库中的供应数量和排序第二的仓库中的供应数量进行相加,得到综合供应数量。若综合供应数量大于等于目标数量,服务器可以将排序第一的仓库对应的仓库标识和排序第二的仓库对应的仓库标识确定为目标仓库标识。否则,可以将排序第一的仓库中的供应数量、排序第二的仓库中的供应数量和排序第三的仓库中的供应数量进行相加,得到综合供应数量。若综合供应数量大于等于目标数量,服务器可以将排序第一的仓库对应的仓库标识、排序第二的仓库对应的仓库标识和排序第三的仓库对应的仓库标识确定为目标仓库标识……After the server sorts each warehouse, the supply quantity in the warehouse with the first order and the supply quantity in the warehouse with the second order can be added to obtain the comprehensive supply quantity. If the comprehensive supply quantity is greater than or equal to the target quantity, the server may determine the warehouse identifier corresponding to the warehouse in the first order and the warehouse identifier corresponding to the warehouse in the second order as the target warehouse identifier. Otherwise, the supply quantity in the first-ranked warehouse, the supply quantity in the second-ranked warehouse, and the supply quantity in the third-ranked warehouse may be added to obtain a comprehensive supply quantity. If the comprehensive supply quantity is greater than or equal to the target quantity, the server may determine the warehouse identifier corresponding to the warehouse in the first order, the warehouse identifier corresponding to the warehouse in the second order, and the warehouse identifier corresponding to the warehouse in the third order as the target warehouse identifier...

另一种可选的实施例中,仓库的对象的供应数量并没有存储在服务器中,而是存储在缓存系统中。可选的,服务器向缓存系统发送仓库查询指令时,仓库查询指令可以包括多个区域编码和对象标识。缓存系统可以将每个区域编码和对象标识作为键值key,对仓库标识以及对象的供应数量进行查询。随后,服务器可以接收到的仓库标识以及对象的供应数量和目标对象进行目标仓库标识的确定。In another optional embodiment, the supply quantity of the object in the warehouse is not stored in the server, but is stored in the cache system. Optionally, when the server sends a warehouse query instruction to the cache system, the warehouse query instruction may include multiple area codes and object identifiers. The cache system can use each region code and object ID as the key value key to query the warehouse ID and the supply quantity of the object. Subsequently, the server can determine the target warehouse identification by receiving the warehouse identification and the supply quantity of the object and the target object.

综上,本申请将地址信息中的不同级别的地址信息进行编码,作为键值,通过并发查询的方式减少和缓存系统中的交互次数。而且,面对多仓库库存模式,可以精准择仓,提高库存查询效率,为用户提供良好的使用体验。To sum up, the present application encodes different levels of address information in the address information as key values, and reduces the number of interactions with the cache system by means of concurrent queries. Moreover, in the face of the multi-warehouse inventory model, it is possible to accurately select warehouses, improve inventory query efficiency, and provide users with a good experience.

图5是根据一示例性实施例示出的一种数据处理装置框图。参照图5,该装置包括:信息获取模块501,区域编码确定模块502,指令发送模块503和标识接收模块504。Fig. 5 is a block diagram of a data processing apparatus according to an exemplary embodiment. Referring to FIG. 5 , the apparatus includes: an information acquisition module 501 , a region code determination module 502 , an instruction sending module 503 and an identification receiving module 504 .

信息获取模块501,被配置为执行获取地址信息;an information obtaining module 501, configured to execute obtaining address information;

区域编码确定模块502,被配置为执行基于地址和区域编码映射关系确定地址信息对应的多个区域编码;an area code determining module 502, configured to execute a plurality of area codes corresponding to the address information determined based on the mapping relationship between the address and the area code;

指令发送模块503,被配置为执行发送仓库查询指令;仓库查询指令包括多个区域编码;The instruction sending module 503 is configured to execute sending a warehouse query instruction; the warehouse query instruction includes a plurality of area codes;

标识接收模块504,被配置为执行接收多个区域编码中至少一个区域编码对应的仓库标识。The identifier receiving module 504 is configured to receive a warehouse identifier corresponding to at least one area code among the plurality of area codes.

在一些可能的实施例中,区域编码确定模块,被配置为执行:In some possible embodiments, the region code determination module is configured to perform:

从地址信息中确定第一级地址信息、第二级地址信息、第三级地址信息和第四级地址信息;第一级地址信息包括第二级地址信息,第二级地址信息包括第三级地址信息,第三级地址信息包括第四级地址信息;Determine the first-level address information, the second-level address information, the third-level address information and the fourth-level address information from the address information; the first-level address information includes the second-level address information, and the second-level address information includes the third-level address information address information, the third-level address information includes the fourth-level address information;

基于地址和区域编码映射关系确定第一级地址信息对应的区域编码、第二级地址信息对应的区域编码、第三级地址信息对应的区域编码和第四级地址信息对应的区域编码。Based on the mapping relationship between the address and the area code, the area code corresponding to the first-level address information, the area code corresponding to the second-level address information, the area code corresponding to the third-level address information, and the area code corresponding to the fourth-level address information are determined.

在一些可能的实施例中,标识接收模块,被配置为执行:In some possible embodiments, the identity receiving module is configured to perform:

接收多个区域编码中一个区域编码对应的仓库标识。Receive a warehouse identifier corresponding to one area code among the multiple area codes.

在一些可能的实施例中,一个区域编码对应的仓库标识包括多个仓库一一对应的多个仓库标识,信息获取模块,被配置为执行:In some possible embodiments, a warehouse identifier corresponding to an area code includes a plurality of warehouse identifiers corresponding to multiple warehouses one-to-one, and the information acquisition module is configured to execute:

接收订单信息;receive order information;

从订单信息中解析得到地址信息和对象的目标数量。The address information and the target quantity of the object are obtained by parsing the order information.

在一些可能的实施例中,装置还包括:In some possible embodiments, the apparatus further includes:

数量确定模块,被配置为执行基于多个仓库标识中每个仓库标识确定出对应的仓库中,对象的供应数量;The quantity determination module is configured to determine the supply quantity of the object in the corresponding warehouse based on each warehouse identifier of the plurality of warehouse identifiers;

仓库确定模块,被配置为执行将供应数量满足目标数量的仓库确定为目标仓库;The warehouse determination module is configured to determine the warehouse whose supply quantity meets the target quantity as the target warehouse;

仓库标识确定模块,被配置为执行将目标仓库对应的仓库标识确定为目标仓库标识。The warehouse identifier determination module is configured to perform determining the warehouse identifier corresponding to the target warehouse as the target warehouse identifier.

在一些可能的实施例中,仓库标识确定模块,被配置为执行:In some possible embodiments, the warehouse identification determination module is configured to perform:

若存在多个目标仓库,确定多个目标仓库中每个目标仓库的优先级;If there are multiple target warehouses, determine the priority of each target warehouse in the multiple target warehouses;

将优先级满足预设优先级的目标仓库确定为配置仓库;Determine the target warehouse whose priority meets the preset priority as the configuration warehouse;

将配置仓库对应的仓库标识确定为目标仓库标识。Determine the warehouse ID corresponding to the configuration warehouse as the target warehouse ID.

在一些可能的实施例中,缓存系统为键值对key-value缓存系统;指令发送模块,被配置为执行:In some possible embodiments, the cache system is a key-value pair key-value cache system; the instruction sending module is configured to execute:

发送仓库查询指令,仓库查询指令包括多个区域编码;仓库查询指令用于指示将多个区域编码中每个区域编码作为键值key实现对于仓库标识value的查询。Send a warehouse query instruction, the warehouse query instruction includes multiple area codes; the warehouse query instruction is used to instruct to use each area code in the multiple area codes as a key value key to query the warehouse identifier value.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图6是根据一示例性实施例示出的一种用于数据处理的装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of an apparatus 600 for data processing according to an exemplary embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电力组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

存储器604被配置为存储各种类型的数据以支持在设备600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 604 is configured to store various types of data to support operation at device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. Memory 604 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。Power supply assembly 606 provides power to the various components of device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 608 includes screens that provide an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front-facing camera and/or a rear-facing camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。Audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when device 600 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 604 or transmitted via communication component 616 . In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of device 600 . For example, the sensor assembly 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the orientation or acceleration/deceleration of the device 600 and the temperature change of the device 600 . Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 616 is configured to facilitate wired or wireless communication between apparatus 600 and other devices. Device 600 may access wireless networks based on communication standards, such as WiFi, carrier networks (eg, 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a storage medium including instructions, such as a memory 604 including instructions, which are executable by the processor 620 of the apparatus 600 to perform the above method. Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage equipment, etc.

Claims (10)

1. A data processing method, comprising:
acquiring address information;
determining a plurality of area codes corresponding to the address information based on the address and area code mapping relation;
sending a warehouse query instruction; the warehouse query instruction comprises the plurality of regional codes;
and receiving a warehouse identification corresponding to at least one region code in the plurality of region codes.
2. The data processing method according to claim 1, wherein the determining a plurality of region codes corresponding to the address information based on the address and region code mapping relationship comprises:
determining first-level address information, second-level address information, third-level address information and fourth-level address information from the address information; the first level address information comprises the second level address information, the second level address information comprises the third level address information, and the third level address information comprises the fourth level address information;
and determining the area code corresponding to the first-level address information, the area code corresponding to the second-level address information, the area code corresponding to the third-level address information and the area code corresponding to the fourth-level address information based on the mapping relation between the address and the area code.
3. The data processing method according to any one of claims 1-2, wherein the receiving the warehouse identifier corresponding to at least one of the plurality of regional codes comprises:
and receiving a warehouse identification corresponding to one of the plurality of area codes.
4. The data processing method according to claim 3, wherein the repository identifier corresponding to the area code includes a plurality of repository identifiers corresponding to a plurality of repositories, and the obtaining the address information includes:
receiving order information;
and analyzing the order information to obtain the address information and the target number of the object.
5. The data processing method of claim 4, wherein the method further comprises:
determining a supply quantity of the object in a corresponding warehouse based on each of the plurality of warehouse identifiers;
determining the warehouse of which the supply quantity meets the target quantity as a target warehouse;
and determining the warehouse identifier corresponding to the target warehouse as a target warehouse identifier.
6. The data processing method of claim 5, wherein determining the warehouse identifier corresponding to the target warehouse as a target warehouse identifier comprises:
if a plurality of target warehouses exist, determining the priority of each target warehouse in the plurality of target warehouses;
determining the target warehouse with the priority meeting the preset priority as a configuration warehouse;
and determining the warehouse identifier corresponding to the configuration warehouse as a target warehouse identifier.
7. A data processing apparatus, comprising:
an information acquisition module configured to perform acquiring address information;
a region code determining module configured to perform determining a plurality of region codes corresponding to the address information based on an address and a region code mapping relationship;
the instruction sending module is configured to execute the sending of the warehouse query instruction; the warehouse query instruction comprises the plurality of region codes;
an identification receiving module configured to perform receiving a warehouse identification corresponding to at least one region code of the plurality of region codes.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any of claims 1 to 6.
10. A computer program product, characterized in that it comprises a computer program, which is stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the data processing method of any one of claims 1 to 6.
CN202111635105.0A 2021-12-27 2021-12-27 A data processing method, device, electronic device and storage medium Pending CN114547092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111635105.0A CN114547092A (en) 2021-12-27 2021-12-27 A data processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111635105.0A CN114547092A (en) 2021-12-27 2021-12-27 A data processing method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114547092A true CN114547092A (en) 2022-05-27

Family

ID=81669062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111635105.0A Pending CN114547092A (en) 2021-12-27 2021-12-27 A data processing method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114547092A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388602A (en) * 2018-02-05 2018-08-10 杭州数梦工场科技有限公司 Quick-searching can dispense the method and device and electronic equipment in warehouse
CN111125557A (en) * 2019-12-26 2020-05-08 北京每日优鲜电子商务有限公司 Resource screening method and device, computer equipment and storage medium
CN113191713A (en) * 2021-05-07 2021-07-30 上海东普信息科技有限公司 Warehouse out-of-stock transferring method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388602A (en) * 2018-02-05 2018-08-10 杭州数梦工场科技有限公司 Quick-searching can dispense the method and device and electronic equipment in warehouse
CN111125557A (en) * 2019-12-26 2020-05-08 北京每日优鲜电子商务有限公司 Resource screening method and device, computer equipment and storage medium
CN113191713A (en) * 2021-05-07 2021-07-30 上海东普信息科技有限公司 Warehouse out-of-stock transferring method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10375002B2 (en) Presenting messages associated with locations
CN108304475B (en) Data query method and device and electronic equipment
US20180150652A1 (en) Managing confidential information
CN106204186B (en) Order information determines method and device
WO2017157040A1 (en) Search method and device, and device used for searching
CN106790727B (en) Message push method and device
CN114090575A (en) Data storage method and retrieval method based on key value database and corresponding devices
TW202242715A (en) Identity recognition method electronic equipment and computer-readable storage medium
CN115118695B (en) Message processing method, device, electronic device, and storage medium
WO2016173246A1 (en) Telephone call method and device based on name card in cloud
CN112131466A (en) Group display method, device, system and storage medium
CN111428150A (en) Information display method, device, electronic device, server and storage medium
CN109783244B (en) Processing method and device for processing
CN116339623A (en) Data storage method and device based on consistent hash algorithm
CN115080004A (en) Business process processing method and device, electronic equipment and storage medium
CN115033211A (en) Method, device and equipment for querying article based on strategy mode and storage medium
CN112241486A (en) Multimedia information acquisition method and device
CN108241438B (en) Input method, input device and input device
CN105550201B (en) Data display method and device
RU2621293C2 (en) Method for granting permission, method for obtaining permission and corresponding devices
CN115412739B (en) Live broadcasting room interaction method and device, electronic equipment and storage medium
CN114547092A (en) A data processing method, device, electronic device and storage medium
CN114125530B (en) Information display method and device, electronic equipment and storage medium
CN108874172B (en) Input method and device
CN111796690A (en) Data processing method and device and electronic equipment

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