CN112346882A - Method and apparatus for transmitting information - Google Patents

Method and apparatus for transmitting information Download PDF

Info

Publication number
CN112346882A
CN112346882A CN202010223630.0A CN202010223630A CN112346882A CN 112346882 A CN112346882 A CN 112346882A CN 202010223630 A CN202010223630 A CN 202010223630A CN 112346882 A CN112346882 A CN 112346882A
Authority
CN
China
Prior art keywords
item
target
information
obtaining
request
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
CN202010223630.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 Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010223630.0A priority Critical patent/CN112346882A/en
Publication of CN112346882A publication Critical patent/CN112346882A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0611Request for offers or quotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a method and a device for sending information. One embodiment of the method comprises: in response to receiving a request sent by an external system for obtaining a target price of an item, obtaining target information from the request, wherein the target information comprises a service type and item-related parameters; obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result; determining the target price of the article by using the analysis result and the article related parameters; transmitting the target price for the item to an external system. The implementation mode can simplify the processing logic and improve the adaptability of the system.

Description

Method and apparatus for transmitting information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for sending information.
Background
In recent years, with the application of new generation information technology such as internet of things, artificial intelligence, AR (Augmented Reality)/VR (Virtual Reality technology), and the like, and the upgrading of consumption, consumption and retail scenes begin to become diversified, fragmented, and instantaneized, and are no longer limited to specific retail partners such as e-commerce websites and physical stores. In the near future, people can trigger and complete consumption transaction at any time, any place and any place through social networking, media, film and television works, smart homes, unmanned stores, even plane advertisements, physical tags, photos and the like, and the retail can enter an ubiquitous, untimely and untimely state, which can be called unbounded retail.
The innovative business of the current unbounded retail requires more refined operation, one point of the innovative business different from the traditional online business is that the offline business is more various and more flexible, and the cost price calculation of the offline commodity is more flexible if the cost of the refined operation needs to be known. The related method for calculating the cost price of goods is usually to perform differential calculation for different business systems. The processing logic in this manner is relatively redundant, which affects computational efficiency and increases the cost of post-system maintenance.
Disclosure of Invention
The embodiment of the application provides a method and a device for sending information.
In a first aspect, an embodiment of the present application provides a method for sending information, including: in response to receiving a request sent by an external system for obtaining a target price of an item, obtaining target information from the request, wherein the target information comprises a service type and item-related parameters; obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result; determining the target price of the article by using the analysis result and the article related parameters; transmitting the target price for the item to an external system.
In some embodiments, in response to receiving a request sent by an external system for obtaining a target price for an item, obtaining target information from the request includes: in response to receiving a request sent by an external system for obtaining a target price of an article, obtaining initial information from the request, and converting the initial information into target information.
In some embodiments, the parsed result includes indication information characterizing whether the formula requires a remote procedure call.
In some embodiments, determining a target price for the item based on the parsed result and the item-related parameter includes: if the indication information indicates that remote procedure call is needed, remote call is carried out by using the remote call parameters in the formula to obtain a remote call result, and the target price of the article is determined by using the remote call result and the article related parameters.
In some embodiments, the external system comprises a procurement management system.
In a second aspect, an embodiment of the present application provides an apparatus for sending information, including: the system comprises an acquisition unit, a price calculation unit and a price calculation unit, wherein the acquisition unit is configured to respond to a request sent by an external system for acquiring a target price of an item, and acquire target information from the request, wherein the target information comprises a service type and an item-related parameter; the analysis unit is configured to acquire a formula corresponding to the service type, and analyze the formula to obtain an analysis result; a determining unit configured to determine a target price of the item using the analysis result and the item-related parameter; a transmitting unit configured to transmit a target price of the item to an external system.
In some embodiments, the obtaining unit is further configured to obtain the target information from the request in response to receiving the request for obtaining the target price of the item sent by the external system by: in response to receiving a request sent by an external system for obtaining a target price of an article, obtaining initial information from the request, and converting the initial information into target information.
In some embodiments, the parsed result includes indication information characterizing whether the formula requires a remote procedure call.
In a third aspect, an embodiment of the present application provides a server, where the server includes: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
The method and the device for sending information provided by the above embodiment of the application, by responding to a request sent by an external system for obtaining a target price of an item, obtain target information including a business type and relevant parameters of the item from the request; then, a formula corresponding to the service type can be obtained, and the formula is analyzed to obtain an analysis result; then, the target price of the article can be determined by using the analysis result and the article related parameters; finally, a target price for the item may be transmitted to the external system. In this way, the processing logic can be simplified, and the adaptability of the system is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which various embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for transmitting information according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of a method for transmitting information according to the present application;
FIG. 4 is a schematic block diagram illustrating one embodiment of an apparatus for transmitting information according to the present application;
FIG. 5 is a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for transmitting information of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include request servers 1011, 1012, 1013, a network 102, and a server 103. Network 102 is used to provide a medium for communication links between request servers 1011, 1012, 1013 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The requesting servers 1011, 1012, 1013 may interact with the server 103 via the network 102 to send or receive messages or the like (e.g., the requesting servers 1011, 1012, 1013 may send a request to the server 103 for obtaining a target price for an item, and the requesting servers 1011, 1012, 1013 may also receive a target price for an item returned by the server 103).
The request servers 1011, 1012, 1013 may be hardware or software. When the requesting servers 1011, 1012, 1013 are hardware, they may be implemented as a distributed server cluster consisting of a plurality of servers, or may be implemented as a single server. When the requesting server 1011, 1012, 1013 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The request servers 1011, 1012, 1013 may be provided with external systems, for example, the request server 1011 may be provided with a return system, the request server 1012 may be provided with an inventory system, and the request server 1013 may be provided with a processing system.
The server 103 may be a server that provides various services. For example, it may be a background server that analyzes a request sent by an external system to obtain a target price for an item. When receiving a request for acquiring a target price of an item from an external system, the server 103 acquires target information from the request; then, a formula corresponding to the service type in the target information can be obtained, and the formula is analyzed to obtain an analysis result; then, the target price of the article can be determined by using the analysis result and the article related parameters; finally, the target price of the item may be transmitted to the external system (request server 1011, 1012, 1013).
The server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for sending information provided in the embodiment of the present application is generally performed by the server 103.
The external system may be provided in the server 103. The exemplary system architecture 100 may not have the requesting servers 1011, 1012, 1013 and the network 102 at this time.
It should be understood that the number of requesting servers, networks, and servers in FIG. 1 are illustrative only. There may be any number of requesting servers, networks, and servers, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for transmitting information in accordance with the present application is shown. The method for transmitting information comprises the following steps:
step 201, determining whether a request sent by an external system for obtaining a target price of an item is received.
In the present embodiment, an execution subject (e.g., a server shown in fig. 1) of the method for transmitting information may determine whether a request for obtaining a target price of an item transmitted by an external system is received. The target price may include a cost price of the item. The executing agent may execute step 202 if a request for obtaining a target price of the item is received from an external system.
In this embodiment, the external system may include, but is not limited to, at least one of the following: a return system, an inventory system, and a processing system.
In response to receiving a request sent by an external system for obtaining a target price of an item, target information is obtained from the request, step 202.
In this embodiment, if it is determined in step 201 that a request for obtaining a target price of an item sent by an external system is received, the executing entity may obtain target information from the request. Here, the target information may include a service type and an item-related parameter. The service types are typically associated with external systems, one external system typically being associated with at least one service type. By way of example, a return transaction is typically associated with a return system, an inventory transaction is typically associated with an inventory system, and a processing transaction is typically associated with a processing system. The item-related parameter may include an item parameter of the item and an item parameter of a related item related to the item. The item parameter of the item may include an item identification (e.g., a SKU (Stock keeping Unit)), and the item parameter of the related item related to the item may include, but is not limited to, at least one of: the item quantity of the relevant item, the item identification of the relevant item, and the price (cost price or purchase price) of the relevant item. Here, the target information may further include a system identifier of the external system.
Step 203, obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result.
In this embodiment, the executing entity may obtain a formula corresponding to the service type, and analyze the formula to obtain an analysis result. Specifically, the execution main body may store a correspondence table between the service type and the formula, and may search the formula corresponding to the service type in the correspondence table. Then, the executing entity may analyze the formula to obtain an analysis result. The analysis result typically includes mathematical operations (e.g., addition, multiplication) that need to be performed and objects for which the mathematical operations are directed, and the objects are typically present in the item-related parameters.
And step 204, determining the target price of the article by using the analysis result and the article related parameters.
In this embodiment, the executing agent may determine the target price of the item by using the mathematical operation required in the analysis result and the item-related parameter for the mathematical operation.
Step 205, the target price for the item is sent to the external system.
In this embodiment, the executing entity may transmit the target price of the item determined in step 204 to the external system.
In some optional implementations of this embodiment, the executing entity may respond to a request sent by an external system for obtaining a target price of an item by obtaining target information from the request as follows: in response to receiving a request sent by an external system for obtaining a target price of an item, the execution main body may obtain initial information from the request, and convert the initial information into target information. The initial information is generally data suitable for the external system or data expressed in a data expression form in the external system. The target information is generally data suitable for a system (may be referred to as an internal system) provided in the execution body or data expressed in a data expression form in the internal system. Specifically, the execution body may store an initial information set, and may acquire the initial information existing in the initial information set in the request. The execution body may store a correspondence table of a correspondence between the initial information and the target information, and may query the target information corresponding to the acquired initial information from the correspondence table.
The initial information set and the correspondence table are usually associated with the external system, that is, different external systems usually correspond to different initial information sets and correspondence tables.
As an example, the correspondence table corresponding to the machining system stores: source _ id corresponds to source _ type, while reflection _ no corresponds to doc _ no, type corresponds to trans _ type, num corresponds to num, while butyl _ print corresponds to print, and amount corresponds to amount, if a request sent by the processing system is received, the initial information obtained from the request is: "source _ id": "1", "bussiness _ no": "1", "type": "2", "num": "11.1", "buy _ price": "10", "amount": "111", the correspondence table can be used to determine that the target information is: "source _ type": "1", "doc _ no": "1", "trans _ type": "2", "num": "11.1", "price": "10", "amount": "111".
In some optional implementations of this embodiment, the external system may include a procurement management system. The purchasing management system is a management system which comprehensively utilizes the functions of purchasing application, purchasing order, feeding inspection, warehouse receiving, purchasing return, purchasing invoice processing, supplier management, price and supply information management, order management, quality inspection management and the like, and effectively controls and tracks the whole process of purchasing logistics and fund flow in a two-way mode, so that the perfect enterprise material supply information management is realized.
The method provided by the above embodiment of the present application can process all requests sent by external systems for obtaining the target price of an item, and compared with the existing manner of performing differentiated calculation for different service systems, the manner provided by this embodiment can simplify processing logic, improve adaptability of the system, and simultaneously can meet high-concurrency and high-performance calculation requirements.
With further reference to fig. 3, a flow 300 of yet another embodiment of a method for transmitting information is shown. The process 300 of the method for transmitting information includes the steps of:
step 301, determining whether a request sent by an external system for obtaining a target price of an item is received.
Step 302, in response to receiving a request sent by an external system for obtaining a target price of an item, obtaining target information from the request.
In the present embodiment, the steps 301-302 can be performed in a similar manner to the steps 201-203, and will not be described herein again.
Step 303, obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result.
In this embodiment, the executing entity may obtain a formula corresponding to the service type, and analyze the formula to obtain an analysis result. Specifically, the execution main body may store a correspondence table between the service type and the formula, and may search the formula corresponding to the service type in the correspondence table. Then, the executing entity may analyze the formula to obtain an analysis result. The analysis result typically includes mathematical operations (e.g., addition, multiplication) that need to be performed and objects for which the mathematical operations are directed, and the objects are typically present in the item-related parameters. The parsing result may also include indication information for characterizing whether the above formula requires a Remote Procedure Call (RPC). If two servers A and B exist, one application is deployed on the server A, and a function or a method provided by the application on the server B is required to be called, because the function or the method is not in a memory space and cannot be directly called, the semantics of the call and the data of the call need to be expressed through a network, and the process can be called as a remote procedure call. The indication information may be characterized as characters. As an example, the indication information for characterizing that the above formula requires a remote procedure call may be 1 or T, and the indication information for characterizing that the above formula does not require a remote procedure call may be 0 or F.
Here, the execution body may query whether there are characters (e.g., RPCs) in the formula that characterize the remote procedure call. If so, indication information characterizing that the above formula requires a remote procedure call may be obtained.
At step 304, it is determined whether the indication information included in the parsing result indicates that a remote procedure call is required.
In this embodiment, the execution subject of the method for sending information may determine whether the indication information included in the parsing result indicates that a remote procedure call is required. As an example, if the indication information is 1 or T, it may be determined that the indication information indicates that a remote procedure call is required.
And 305, if the indication information indicates that the remote procedure call is required, performing remote call by using the remote call parameter in the formula to obtain a remote call result, and determining the target price of the item by using the remote call result and the item-related parameter.
In this embodiment, if it is determined in step 304 that the indication information indicates that a remote procedure call is required, the executing entity may perform a remote call by using the remote call parameter in the formula to obtain a remote call result. Specifically, the execution body may parse a remote procedure call name in the formula, send a remote procedure call parameter to the electronic device corresponding to the remote procedure call name, and receive a remote procedure call result returned by the electronic device.
Then, the execution subject may determine a target price of the item using the remote invocation result and the item-related parameter. The execution main body can perform corresponding mathematical operation on the remote calling result and an object aimed by the mathematical operation in the article related parameters, so as to obtain the target price of the article.
As an example, the formula is Sum (getpricerpc (a.doc _ no) × a.num)/b.num, where the above formula is a formula corresponding to the processing system, a.doc _ no represents the item identifier of the item a, a.num represents the item number of the item a, and b.num represents the item number of the item b. Here, the a item represents an item related to an item whose target price is to be obtained, and the b item represents an item whose target price is to be obtained. For example, if the item for which the target price is to be sought is bread, the items related to the item for which the target price is to be sought may include flour, oil, sugar, and yeast. The executing entity may parse the remote procedure call name in the above formula to be popicirpc, and send the item identifier of the item a to the corresponding electronic device, so as to query the target price of the item a. Then, the target price of at least one a item can be inquired, the target price of each a item is multiplied by the item quantity of the corresponding a item, the obtained at least one product is added, and finally the addition result can be divided by the item quantity of the b item, so that the target price of the b item is obtained.
Step 306, the target price for the item is sent to the external system.
In this embodiment, step 306 may be performed in a similar manner as step 404, and will not be described herein again.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the method for sending information in this embodiment represents steps of, if the indication information indicates that a remote procedure call is required, performing a remote call by using a remote call parameter in a formula to obtain a remote call result, and determining a target price of an item by using the remote call result and an item related parameter. Therefore, the scheme described in the embodiment can improve the expandability of the system and further simplify the processing logic.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for sending information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the apparatus 400 for transmitting information of the present embodiment includes: acquisition section 401, analysis section 402, determination section 403, and transmission section 404. The obtaining unit 401 is configured to, in response to receiving a request sent by an external system for obtaining a target price of an item, obtain target information from the request, where the target information includes a service type and an item-related parameter; the parsing unit 402 is configured to obtain a formula corresponding to the service type, and parse the formula to obtain a parsing result; the determining unit 403 is configured to determine a target price of the item using the parsed result and the item-related parameter; the sending unit 404 is configured to send the target price of the item to the external system.
In this embodiment, the specific processing of the obtaining unit 401 of the apparatus 400 for sending information may refer to step 201 and step 202 in the corresponding embodiment of fig. 2, and the specific processing of the parsing unit 402, the determining unit 403, and the sending unit 404 may refer to step 203, step 204, and step 205 in the corresponding embodiment of fig. 2.
In some optional implementations of this embodiment, the obtaining unit 401 may obtain the target information from the request in response to receiving a request sent by an external system for obtaining a target price of the item, by: in response to receiving a request sent by an external system for obtaining a target price of an item, the obtaining unit 401 may obtain initial information from the request, and convert the initial information into target information. The initial information is generally data suitable for the external system or data expressed in a data expression form in the external system. The target information is generally data suitable for a system provided in the execution body or data expressed in a data expression form in the internal system. Specifically, the acquiring unit 401 may store an initial information set, and may acquire initial information existing in the initial information set in the request. The obtaining unit 401 may store a correspondence table of correspondence between the initial information and the target information, and may query the target information corresponding to the obtained initial information from the correspondence table.
The initial information set and the correspondence table are usually associated with the external system, that is, different external systems usually correspond to different initial information sets and correspondence tables.
In some optional implementations of this embodiment, the parsing result may include indication information for characterizing whether the formula requires a remote procedure call. If two servers A and B exist, one application is deployed on the server A, and a function or a method provided by the application on the server B is required to be called, because the function or the method is not in a memory space and cannot be directly called, the semantics of the call and the data of the call need to be expressed through a network, and the process can be called as a remote procedure call. The indication information may be characterized as characters. As an example, the indication information for characterizing that the above formula requires a remote procedure call may be 1 or T, and the indication information for characterizing that the above formula does not require a remote procedure call may be 0 or F.
In some optional implementations of the embodiment, the determining unit 403 may determine the target price of the item based on the analysis result and the item-related parameter by: if it is determined that the indication information indicates that a remote procedure call is required, the determining unit 403 may perform a remote call by using the remote call parameter in the formula to obtain a remote call result. Specifically, the determining unit 403 may parse a remote procedure call name in the formula, send a remote call parameter to the electronic device corresponding to the remote procedure call name, and receive a remote call result returned by the electronic device. Then, the determining unit 403 may determine the target price of the item by using the remote invocation result and the item-related parameter. The execution main body can perform corresponding mathematical operation on the remote calling result and an object aimed by the mathematical operation in the article related parameters, so as to obtain the target price of the article.
In some optional implementations of this embodiment, the external system may include a procurement management system. The purchasing management system is a management system which comprehensively utilizes the functions of purchasing application, purchasing order, feeding inspection, warehouse receiving, purchasing return, purchasing invoice processing, supplier management, price and supply information management, order management, quality inspection management and the like, and effectively controls and tracks the whole process of purchasing logistics and fund flow in a two-way mode, so that the perfect enterprise material supply information management is realized.
Referring now to FIG. 5, a schematic diagram of an electronic device (e.g., the server of FIG. 1) 500 suitable for use in implementing embodiments of the present disclosure is shown. The server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the server; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a request sent by an external system for obtaining a target price of an item, obtaining target information from the request, wherein the target information comprises a service type and item-related parameters; obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result; determining the target price of the article by using the analysis result and the article related parameters; transmitting the target price for the item to an external system.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a parsing unit, a determination unit, and a transmission unit. Where the names of these units do not in some way constitute a limitation on the units themselves, for example, a receiving unit may also be described as a "unit that sends a target price for an item to an external system".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for transmitting information, comprising:
in response to receiving a request sent by an external system for obtaining a target price of an item, obtaining target information from the request, wherein the target information comprises a service type and item-related parameters;
obtaining a formula corresponding to the service type, and analyzing the formula to obtain an analysis result;
determining a target price of the item by using the analysis result and the item-related parameter;
transmitting the target price for the item to the external system.
2. The method of claim 1, wherein the obtaining target information from a request for obtaining a target price for an item sent by an external system in response to receiving the request comprises:
in response to receiving a request sent by an external system for obtaining a target price of an article, obtaining initial information from the request, and converting the initial information to obtain target information.
3. The method of claim 1, wherein the parsed result includes indication information for characterizing whether the formula requires a remote procedure call.
4. The method of claim 3, wherein the determining a target price for the item based on the parsed result and the item-related parameter comprises:
if the indication information indicates that remote procedure call is needed, remote call is carried out by using the remote call parameter in the formula to obtain a remote call result, and the target price of the article is determined by using the remote call result and the article related parameter.
5. The method of one of claims 1 to 4, wherein the external system comprises a procurement management system.
6. An apparatus for transmitting information, comprising:
the system comprises an acquisition unit, a price calculation unit and a price calculation unit, wherein the acquisition unit is configured to respond to a request sent by an external system for acquiring a target price of an item, and acquire target information from the request, wherein the target information comprises a service type and an item-related parameter;
the analysis unit is configured to acquire a formula corresponding to the service type, and analyze the formula to obtain an analysis result;
a determining unit configured to determine a target price of the item using the analysis result and the item-related parameter;
a transmitting unit configured to transmit the target price of the item to the external system.
7. The apparatus of claim 6, wherein the obtaining unit is further configured to obtain the target information from the request in response to receiving the request for obtaining the target price of the item sent by the external system by:
in response to receiving a request sent by an external system for obtaining a target price of an article, obtaining initial information from the request, and converting the initial information to obtain target information.
8. The apparatus of claim 6, wherein the parsed result includes indication information characterizing whether the formula requires a remote procedure call.
9. A server, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202010223630.0A 2020-03-26 2020-03-26 Method and apparatus for transmitting information Pending CN112346882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010223630.0A CN112346882A (en) 2020-03-26 2020-03-26 Method and apparatus for transmitting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010223630.0A CN112346882A (en) 2020-03-26 2020-03-26 Method and apparatus for transmitting information

Publications (1)

Publication Number Publication Date
CN112346882A true CN112346882A (en) 2021-02-09

Family

ID=74357754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010223630.0A Pending CN112346882A (en) 2020-03-26 2020-03-26 Method and apparatus for transmitting information

Country Status (1)

Country Link
CN (1) CN112346882A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112884405A (en) * 2021-02-10 2021-06-01 北京京东振世信息技术有限公司 Inquiry system and scheduling method thereof
CN113377554A (en) * 2021-06-24 2021-09-10 携程旅游信息技术(上海)有限公司 Method, system, equipment and storage medium for caching air ticket price

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130304611A1 (en) * 2012-05-10 2013-11-14 Wal-Mart Stores, Inc. Price Notification and/or Adjustment System in a Web-Based Electronic Commerce Environment
CN107292653A (en) * 2016-04-12 2017-10-24 北京京东尚科信息技术有限公司 One kind retail warehoused cargo calculation of price method and device
CN107767209A (en) * 2017-09-21 2018-03-06 武汉蜕变人工智能科技有限公司 A kind of automatic price quoting method and system
CN109784817A (en) * 2019-01-26 2019-05-21 深圳市云带网投资科技有限公司 A kind of same city dispatching freight charges calculation method, system and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130304611A1 (en) * 2012-05-10 2013-11-14 Wal-Mart Stores, Inc. Price Notification and/or Adjustment System in a Web-Based Electronic Commerce Environment
CN107292653A (en) * 2016-04-12 2017-10-24 北京京东尚科信息技术有限公司 One kind retail warehoused cargo calculation of price method and device
CN107767209A (en) * 2017-09-21 2018-03-06 武汉蜕变人工智能科技有限公司 A kind of automatic price quoting method and system
CN109784817A (en) * 2019-01-26 2019-05-21 深圳市云带网投资科技有限公司 A kind of same city dispatching freight charges calculation method, system and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112884405A (en) * 2021-02-10 2021-06-01 北京京东振世信息技术有限公司 Inquiry system and scheduling method thereof
CN113377554A (en) * 2021-06-24 2021-09-10 携程旅游信息技术(上海)有限公司 Method, system, equipment and storage medium for caching air ticket price
CN113377554B (en) * 2021-06-24 2024-03-05 携程旅游信息技术(上海)有限公司 Caching method, caching system, caching equipment and caching storage medium for air ticket price

Similar Documents

Publication Publication Date Title
US11232392B2 (en) Method for processing orders and electronic device
CN111164950A (en) Method and system for user segmentation as a service
CN113658597B (en) Voice ordering method, device, electronic equipment and computer readable medium
CN111324786A (en) Method and device for processing consultation problem information
CN112346882A (en) Method and apparatus for transmitting information
WO2016077176A1 (en) Universal shopping search engine
CN110866040A (en) User portrait generation method, device and system
CN111177433A (en) Method and apparatus for parallel processing of information
CN112749323A (en) Method and device for constructing user portrait
CN113554493A (en) Interactive ordering method, device, electronic equipment and computer readable medium
CN113887783A (en) Storage replenishment prediction method, device, equipment and storage medium
CN113487265A (en) Method, device and equipment for subscribing, inquiring and pushing logistics information
JP2023521215A (en) Method, device and system for outbound control
CN111078636A (en) Marketing data processing method and system and related equipment
US20240054451A1 (en) Inventory information processing method and device
CN110766417A (en) Information query method and device, electronic equipment and computer readable medium
CN111861293B (en) Method and device for transmitting information
US20210272187A1 (en) System and method for integrating voice assistant device and digital assistant device with cloud-based services
CN115115313A (en) Order aging management method and device
CN111784376B (en) Method and device for processing information
JP2023518987A (en) Methods, apparatus, servers, computer readable media and computer programs for processing appliance demand information
CN113780650A (en) Transport capacity locking method, device, equipment and storage medium
CN109074596A (en) It emphasizes to communicate based on interaction in the past relevant to commodity sales promotion
CN112819619A (en) Transaction processing method and device
US20190272512A1 (en) Systems and methods for providing an electronic line-of-business gateway

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