Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
The following further describes specific implementations of embodiments of the present application with reference to the drawings of the embodiments of the present application.
Example one
For convenience of understanding, an application scenario of the data processing method provided in the first embodiment of the present application is described, and referring to fig. 1, fig. 1 is a scenario diagram of the data processing method provided in the first embodiment of the present application. The scenario shown in fig. 1 includes an electronic device 101. The electronic device 101 may be a device that executes the data processing method provided in the first embodiment of the present application.
The electronic device 101 may be a terminal device such as a smart phone, a tablet computer, a notebook computer, or the like, and the electronic device 101 may also be a network device such as a server, which is not limited in this application.
The electronic device 101 may be a Network device at the cloud, and is connected to the terminal device through a Network, where the Network includes a Local Area Network (LAN), a Wide Area Network (WAN), and a mobile communication Network; such as the World Wide Web (WWW), Long Term Evolution (LTE) networks, 2G networks (2 th Generation Mobile Network), 3G networks (3 th Generation Mobile Network), 5G networks (5 th Generation Mobile Network), etc. Of course, this is merely an example and does not represent a limitation of the present application.
The electronic device 101 can access an item center, an item domain and a price domain, and obtain the package attribute of the item by accessing the item center; determining a freight rate scheme of the goods based on the logistics area, and calculating the transportation cost of the goods according to the package attributes and the freight rate scheme; acquiring an initial price of the item through the item domain; the price of the item is calculated based on the price domain according to the transportation cost and the initial price of the item. The price of the goods is independent of the goods domain and the logistics domain, the goods is arranged in the independent price domain, the transportation cost and the initial price of the goods are decoupled, if the transportation cost changes, the price of the goods does not need to be adjusted manually, and the price of the goods can be obtained automatically only by adjusting the transportation cost scheme.
With reference to the scenario shown in fig. 1, a data processing method provided in an embodiment of the present application is described in detail, where it is to be noted that fig. 1 is only an application scenario of the data processing method provided in the embodiment of the present application, and does not represent that the data processing method is necessarily applied to the scenario shown in fig. 1, optionally, the data processing method provided in the embodiment of the present application may be applied to an electronic device, that is, the electronic device is an execution subject of the data processing method provided in the embodiment of the present application, the electronic device may be a network device such as a server, or a terminal device such as a smart phone, a tablet computer, or a notebook computer, as shown in fig. 2, fig. 2 is a flowchart of the data processing method provided in the embodiment of the present application, and the method includes the following steps:
step 201, visiting an item center to obtain the parcel attribute of the item.
The article center may be provided in the electronic device or in another device, and the article center may include detailed information of various articles, such as names, appearances, and functions of the articles. The wrapping attributes of the item may include information about the type, size (length, width, height), weight, etc. of the item.
Optionally, in a specific example, when the user initiates the query, the package attribute may be obtained, for example, the method may further include: receiving an inquiry instruction for an article, which is sent by terminal equipment, wherein the inquiry instruction comprises an identifier of the article; accessing an item center to obtain package attributes for an item, comprising: and accessing the item center according to the identification of the item and acquiring the package attribute of the item. It should be noted that the query instruction may be caused by various requests such as a query request initiated by a user, a search request, a transaction order placement, and the like. The Identification (ID) of the item may refer to a type of item, and may be a character string corresponding to the type of item, for example, "100001, 210001 … …", although this is only an example.
Step 202, determining a shipping cost plan for the item, and calculating a shipping cost for the item based on the package attributes and the shipping cost plan.
For example, the freight rate scheme of the item may be determined based on a physical domain or a logistics database, the logistics domain may include a domain for processing and storing logistics data, the logistics domain may be disposed on an electronic device or other devices, a plurality of freight rate schemes may be disposed in the logistics domain, one freight rate scheme may indicate a policy for calculating freight rate for a certain item, for example, contracting all of the postal fee, contracting a part of the postal fee or not, and the like, and the freight rate scheme is used for calculating the transport fee. An item may correspond to a shipping cost plan, and a shipping cost plan may correspond to one or more items. The regional levels of the delivery and receipt locations may be provincial, city, etc., although this is merely illustrative.
Illustratively, a specific example is listed here to illustrate how to calculate the transportation cost, and further, the query instruction further includes a delivery location and a receiving location of the item based on the example in step 201; calculating a shipping cost for the item based on the package attributes and the shipping cost plan, comprising: the shipping cost for the item is calculated based on the shipping cost plan, the package attributes, and the shipping and receiving locations of the item. For example, the delivery location may be china and the receiving location may be france or spain; as another example, where the delivery location may be belgium, the receiving location may be the united kingdom or the united states, etc., and the shipping cost may be determined based on the receiving and delivery locations (receiving and delivery locations), shipping cost plans, and package attributes. Some consignees and delivery places may not support parcel post, and some consignees and delivery places may support partial post, that is, bear partial freight in proportion, of course, this is only an exemplary illustration, and different regions may set freight schemes according to different policies.
Further, the freight scheme may be updated, and in an optional implementation, the method further includes: monitoring a template change event in a logistics domain; when the freight scheme in the logistics domain is changed, the new freight scheme is updated and stored. The change of the freight scheme may be user-adjusted or may be made according to a regional policy, and this is merely an example.
Step 203, obtaining an initial price of the item.
Illustratively, an initial price for an item may be obtained through the item domain. The item field may include a field in which an initial price of an item is processed and stored. The article field may be provided on the electronic device, or may be provided on another device. Alternatively, the initial price of each type of item may be stored in the item field, the initial price of the item may be a selling price on the premise that the item does not contain a postage, and the initial price of the item may be set by the seller.
And step 204, calculating the price of the item according to the transportation cost and the initial price of the item.
It should be noted that the price of the item may be calculated based on the price domain. The price field may include a field in which the price of the item is processed and stored. The price field may be provided on the electronic device or on another device. Alternatively, in one particular implementation, the price of the item may be the sum of the shipping cost and the initial price of the item; alternatively, in another specific implementation, the price of the item may be a weighted sum of the shipping cost and the initial price of the item. Of course, this is merely an example.
Optionally, in an embodiment, before calculating the price of the item based on the price domain according to the transportation cost and the initial price of the item, the method further comprises: a price field for calculating and storing the price of the item is set. After the price field is set, the price can be calculated for all subsequent items, after the price of an item is calculated by using the price field for the first time for a certain type of item, the price of the item can be stored in the price field, and if the item is inquired again, the price of the item can be directly extracted from the price field without recalculation.
Optionally, in another embodiment, based on the example in step 201, the method further includes: the price of the item is sent to the terminal device. And after the terminal equipment receives the price of the article, the price can be displayed to the user.
The data processing method described in conjunction with the above steps 201-204 and the scenario shown in fig. 1 are further described by taking another specific application scenario as an example. Fig. 3 is a schematic diagram of a domain structure provided in an embodiment of the present application, where fig. 3 illustrates a service domain, a price domain, a logistics domain, and an item domain, it should be noted that the service domain, the price domain, the logistics domain, and the item domain may be disposed on 1-N devices, N is an integer greater than or equal to 4, for example, the service domain, the price domain, the logistics domain, and the item domain are respectively disposed on a single device, and for example, the service domain, the price domain, the logistics domain, and the item domain may be disposed on the same electronic device. Of course, this is merely an example.
The service domain may include services such as search, item details, shopping cart, transaction ordering, marketing, solicitation, data, etc., each of which may cause a query to query the price of an item. The logistics domain may include freight calculation, freight templates, wherein the freight templates include freight schemes. The price domain and the service domain can be mutually accessed, the price domain can be accessed to the commodity flow domain and the article domain, the electronic equipment can access to the commodity flow domain through the price domain to obtain the transportation cost, and can also access to the article domain through the price domain to obtain the initial price of the article. Here, referring to fig. 4, a freight template is exemplarily described, fig. 4 is an interface schematic diagram of a freight template provided in an embodiment of the present application, fig. 4 includes at least one setting option of an order, further includes at least one setting option of logistics, and further illustrates a plurality of freight templates. Of course, fig. 4 is merely an exemplary illustration and does not represent a limitation of the present application.
Based on the description of fig. 3, the relationship between the data is further described in detail, as shown in fig. 5, fig. 5 is a schematic diagram of a data structure provided in an embodiment of the present application, wherein an item center is used for issuing a commodity and separating prices; the price domain can access the item domain and the commodity domain; the logistics domain may include an Open Data Processing Service (ODPS) module, a message agent module, a freight template module, and an expression module. The open type data processing service module is used for providing a perfect data import and distributed computing model for a user, and can solve the data computing problem more quickly; the message agent module is used for monitoring a template change event; the freight template module can realize the functions of freight scheme configuration, transportation cost management, transportation cost preview, freight template configuration, freight scheme check, service subscription and the like; the expression module may calculate the transportation cost using the expression.
Based on the above description of fig. 5, the functions of the respective modules are further described, as shown in fig. 6, fig. 6 is a flowchart of another data processing method provided in the first embodiment of the present application. Fig. 6 shows an administrator, a merchant, a freight template module, an expression module, a price domain, and an item center, the method comprising the steps of:
step 601, the freight template module sets up a gray seller according to the setting operation of the administrator.
The gray seller refers to a merchant who does not adopt the data processing method provided by the embodiment of the application to calculate the price of the item.
Step 602, the freight template module performs service subscription according to the operation of the merchant.
Service ordering here refers to ordering the price of an item calculated using the data processing method provided by the embodiments of the present application.
Step 603, the freight template module configures freight scheme.
It should be noted that different freight schemes can be configured for different articles.
Step 604, the freight template module obtains a request for previewing the transportation cost initiated by the merchant.
Step 605, the freight template module obtains the parcel attributes of the item from the item center.
And step 606, the freight template module inputs the package attributes into the expression module to calculate the transportation cost.
Step 607, the freight template module returns the transportation cost to the merchant for display.
Step 608, the freight template module saves the freight scheme in the expression module.
It should be noted that step 601-608 completes the configuration of the freight scheme, and presents the transportation fee to the merchant, and then the price of the item can be calculated. As shown in fig. 6, the method further comprises the steps of:
step 609, the price field obtains the query instruction for the item through the item center.
Step 610, an instruction for calculating the transportation cost is sent to the transportation cost template module.
Step 611, the freight template module obtains the package attributes of the item from the item center.
And step 612, the freight template module inputs the package attributes into the expression module to calculate the transportation cost.
Step 613, the freight template module outputs the transportation cost to the price field.
And 614, calculating the price of the item according to the transportation cost and the initial price of the item by the price field, and returning the price to the item center.
According to the data processing method provided by the embodiment of the application, an article center is accessed to obtain the parcel attribute of an article; determining a freight scheme of the goods, and calculating the transportation cost of the goods according to the package attributes and the freight scheme; acquiring an initial price of an article; the price of the item is calculated based on the shipping cost and the initial price of the item. Because the transportation cost and the initial price of the article are decoupled, if the transportation cost is changed, the price of the article does not need to be adjusted manually, and the price of the article can be automatically obtained only by adjusting the transportation cost scheme.
Example two
Based on the method described in the first embodiment, a second embodiment of the present application provides another data processing method, which is to describe a cross-border item, i.e., an item transported between different countries, and as shown in fig. 7, the data processing method includes the following steps:
step 701, visiting an item center to obtain the parcel attributes of the cross-border item.
The cross-border article belongs to the article described in the first embodiment, except that the receiving place and the delivery place are different countries, and for the related explanation, reference may be made to the corresponding description in the first embodiment, and details are not described here.
Step 702, according to the delivery place and the receiving place of the cross-border goods, determining a target cross-border freight scheme corresponding to the cross-border goods in at least one cross-border freight scheme, and calculating the transportation cost of the goods according to the parcel attributes and the target cross-border freight scheme.
A cross-border freight plan indicates freight plans corresponding to a transit route between two countries. The delivery location and the receiving location of the cross-border item may be determined according to the query instruction, and the specific manner may refer to the description of step 202, which is not described herein again.
Step 703, obtaining the initial price of the cross-border article.
Step 704, calculating the price of the cross-border item according to the transportation cost and the initial price of the item.
The method described in the steps 701-704 dynamically superimposes the transportation cost of the cross-border goods within the price of the goods, and sets dynamic transportation cost for transportation routes of different countries, thereby facilitating price adjustment.
According to the data processing method provided by the embodiment of the application, the package attribute of the cross-border article is obtained by accessing the article center; determining a target cross-border freight scheme corresponding to the cross-border item in at least one cross-border freight scheme according to a delivery place and a receiving place of the cross-border item, and calculating the transportation cost of the item according to the parcel attribute and the target cross-border freight scheme, wherein one cross-border freight scheme indicates the freight scheme corresponding to a transportation route between two countries; acquiring an initial price of an article; the price of the item is calculated based on the shipping cost and the initial price of the item. Because the transportation cost of the cross-border article and the initial price of the cross-border article are decoupled, if the transportation cost changes, the price of the cross-border article does not need to be adjusted manually, and only the transportation cost scheme needs to be adjusted, so that the price of the article can be acquired automatically in a cross-border manner.
EXAMPLE III
Based on the method described in the first embodiment, a third embodiment of the present application provides a data processing apparatus for executing the method described in the first embodiment or the second embodiment, and referring to fig. 8, the data processing apparatus 80 includes:
an item center module 801, configured to access an item center to obtain a package attribute of an item;
a freight module 802, configured to determine a freight scheme for the item, and calculate a transportation cost for the item according to the package attribute and the freight scheme;
an item cost module 803 for obtaining an initial price of the item;
a price module 804 for calculating a price of the item based on the transportation cost and the initial price of the item.
Optionally, in an embodiment of the present application, the item center module 801 is further configured to receive an inquiry instruction for an item sent by the terminal device, where the inquiry instruction includes an identifier of the item; and accessing the item center according to the identification of the item and acquiring the package attribute of the item.
Optionally, in an embodiment of the present application, the query instruction further includes a delivery location and a receiving location of the item; a freight module 802 for calculating a shipping cost for the item based on the freight plan, the package attributes, and the shipping and receiving locations of the item.
Optionally, in an embodiment of the present application, the freight module 802 is further configured to monitor a template change event in the logistics domain; when the freight scheme in the logistics domain is changed, the new freight scheme is updated and stored.
Optionally, in an embodiment of the present application, the item center module 801 is further configured to send the price of the item to the terminal device.
Optionally, in an embodiment of the present application, the price module 804 is further configured to set a price field for calculating and storing the price of the item.
The data processing device provided by the embodiment of the application accesses the article center to obtain the parcel attribute of the article; determining a freight scheme of the goods, and calculating the transportation cost of the goods according to the package attributes and the freight scheme; acquiring an initial price of an article; the price of the item is calculated based on the shipping cost and the initial price of the item. Because the transportation cost and the initial price of the article are decoupled, if the transportation cost is changed, the price of the article does not need to be adjusted manually, and the price of the article can be automatically obtained only by adjusting the transportation cost scheme.
Example four
Based on the method described in the second embodiment, a fourth embodiment of the present application provides a data processing apparatus for executing the method described in the second embodiment, and referring to fig. 9, the data processing apparatus 90 includes:
an article center module 901, configured to access an article center to obtain a package attribute of an article;
a freight module 902, configured to determine a target cross-border freight scheme corresponding to the cross-border item in at least one cross-border freight scheme according to a delivery location and a receiving location of the cross-border item, and calculate a transportation cost of the item according to the package attribute and the target cross-border freight scheme, where one cross-border freight scheme indicates a freight scheme corresponding to a transportation route between two countries;
an item cost module 903, configured to obtain an initial price of the cross-border item;
a price module 904 for calculating a price for the cross-border item based on the transportation cost and the initial price for the item.
The data processing device provided by the embodiment of the application accesses the article center to obtain the parcel attribute of the cross-border article; determining a target cross-border freight scheme corresponding to the cross-border item in at least one cross-border freight scheme according to a delivery place and a receiving place of the cross-border item, and calculating the transportation cost of the item according to the parcel attribute and the target cross-border freight scheme, wherein one cross-border freight scheme indicates the freight scheme corresponding to a transportation route between two countries; acquiring an initial price of an article; the price of the item is calculated based on the shipping cost and the initial price of the item. Because the transportation cost of the cross-border article and the initial price of the cross-border article are decoupled, if the transportation cost changes, the price of the cross-border article does not need to be adjusted manually, and only the transportation cost scheme needs to be adjusted, so that the price of the article can be acquired automatically in a cross-border manner.
EXAMPLE five
Based on the methods described in the first embodiment and the second embodiment, a fifth embodiment of the present application provides an electronic device, which is configured to execute the methods described in the first embodiment and the second embodiment, and referring to fig. 10, fig. 10 is a schematic structural diagram of the electronic device provided in the fifth embodiment of the present application, and a specific embodiment of the present application does not limit a specific implementation of the electronic device.
As shown in fig. 10, the electronic device may include: a processor (processor)1002, a Communications Interface 1004, a memory 1006, and a Communications bus 1008.
Wherein:
the processor 1002, communication interface 1004, and memory 1006 communicate with each other via a communication bus 1008.
A communication interface 1004 for communicating with other electronic devices such as a terminal device or a server.
The processor 1002 is configured to execute the program 1010, and may specifically perform the relevant steps in the foregoing method embodiments.
In particular, the program 1010 may include program code that includes computer operating instructions.
The processor 1002 may be a central processing unit CPU, or an application Specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present application. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 1006 is used for storing the program 1010. The memory 1006 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 1010 may be specifically configured to cause the processor 1002 to execute any one of the methods of the first and second embodiments.
For specific implementation of each step in the program 1010, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing data processing method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
According to the electronic equipment provided by the embodiment of the application, an article center is accessed to obtain the parcel attribute of an article; determining a freight scheme of the goods, and calculating the transportation cost of the goods according to the package attributes and the freight scheme; acquiring an initial price of an article; the price of the item is calculated based on the shipping cost and the initial price of the item. Because the transportation cost and the initial price of the article are decoupled, if the transportation cost is changed, the price of the article does not need to be adjusted manually, and the price of the article can be automatically obtained only by adjusting the transportation cost scheme.
EXAMPLE six
Based on the methods described in the first and second embodiments, a sixth embodiment of the present application provides a computer storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the methods described in the first and second embodiments.
EXAMPLE seven
Based on the methods described in the first and second embodiments, a seventh embodiment of the present application provides a computer program product, which when executed by a processor implements the methods described in the first and second embodiments.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present application may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the methods described herein may be stored in such software processes on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It will be appreciated that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the data processing methods described herein. Further, when a general-purpose computer accesses code for implementing the data processing method shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the data processing method shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The above embodiments are only used for illustrating the embodiments of the present application, and not for limiting the embodiments of the present application, and those skilled in the relevant art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.