Search

CN-122018922-A - Warehouse business processing method, device, electronic equipment and medium

CN122018922ACN 122018922 ACN122018922 ACN 122018922ACN-122018922-A

Abstract

The application provides a warehouse service processing method, a device, electronic equipment and a medium, which can be widely applied to the technical field of computers, wherein the warehouse service processing method comprises the steps of deploying each warehouse service in a plurality of warehouse services to a micro service, and determining the architecture of the micro service according to the execution logic of the warehouse service; the architecture comprises one or more of an aggregator micro-service architecture, a chained micro-service architecture and a data sharing micro-service architecture, wherein a technical stack and a target function are configured for each micro-service based on a domain driving design according to execution logic of storage service, if a current flow node belongs to a preset flow node, a target event is issued, and the target event is received through a target micro-service corresponding to the target event so as to execute the target function corresponding to the target micro-service. The application is beneficial to reducing the problem of difficult service deployment in the related technology and improving the maintainability and the high-efficiency operation of the warehouse service.

Inventors

  • HOU SHUYU
  • LI BO
  • WU ZHIWEI
  • ZHANG XIBIN
  • WANG DONGYING
  • YANG YONGJIAN

Assignees

  • 珠海格力智能装备有限公司
  • 珠海格力数控机床有限公司

Dates

Publication Date
20260512
Application Date
20260119

Claims (10)

  1. 1. The warehouse business processing method is characterized by comprising the following steps of: deploying each warehousing service in a plurality of warehousing services to a micro service, and determining a framework of the micro service according to execution logic of each warehousing service, wherein the framework comprises one or more of an aggregator micro service framework, a chained micro service framework and a data sharing micro service framework; According to the execution logic of each warehousing service, configuring a technical stack and a target function for each micro-service based on a domain driving design; if the current flow node belongs to a preset flow node, a target event is issued, and the target event is received through a target micro-service corresponding to the target event so as to execute a target function corresponding to the target micro-service.
  2. 2. The warehousing business processing method of claim 1, wherein determining the architecture of the micro-service according to execution logic of each of the warehousing businesses comprises: If the execution logic of the warehouse service is to synchronously butt-joint a plurality of first services in all warehouse services, connecting the micro service corresponding to each first service to a gateway through an aggregator so as to receive a user request through the gateway; Or if the execution logic of the warehouse service is to sequentially dock a plurality of second services in all warehouse services, sequentially connecting the micro services corresponding to the second services according to the docking sequence, and connecting the sequentially connected micro services with a client through a gateway; or if the execution logic of the warehousing service is that data interaction exists among a plurality of third services in all the warehousing services, connecting the micro service corresponding to each third service to a database.
  3. 3. The method for processing the warehousing services according to claim 1, wherein the deploying each of the plurality of warehousing services to the micro service comprises: deploying a fourth service in the storage services to a first micro service, and setting the deployment state of the first micro service as deployed; and deploying a fifth service in the plurality of warehousing services to a second micro service, and setting the deployment state of the second micro service as deployed.
  4. 4. The warehouse business process method as claimed in claim 3, wherein if the current process node belongs to a preset process node, the method further comprises, before issuing a target event and receiving the target event through a target micro service corresponding to the target event: If a new warehousing service exists, determining a micro service corresponding to the new warehousing service, executing the new warehousing service through the micro service corresponding to the new warehousing service, and issuing a target event corresponding to the new warehousing service; The method comprises the steps of acquiring a target event through a third micro-service to execute a follow-up service of the new warehousing service, or acquiring the new warehousing service through the third micro-service based on a preset interface to execute the follow-up service of the new warehousing service, wherein the third micro-service is a micro-service except for a micro-service corresponding to the new warehousing service.
  5. 5. The warehouse business processing method as claimed in claim 1, wherein if the current process node belongs to a preset process node, a target event is issued, and the target event is received through a target micro service corresponding to the target event, the method further comprises: Acquiring service data corresponding to the warehouse service; if the consistency requirement of the warehouse business on the data is a first level, determining that business data corresponding to each execution stage of the warehouse business are in a consistent state; and if the consistency requirement of the warehouse business on the data is a second level, determining that business data corresponding to a final execution stage of the warehouse business is in a consistent state, wherein the data consistency requirement corresponding to the first level is higher than the data consistency requirement corresponding to the second level.
  6. 6. The method for processing warehouse services according to claim 1, wherein the warehouse services include a warehouse-out service, the warehouse-out service includes a resource reservation stage, a submission stage and a rollback stage, and determining that service data corresponding to each execution stage of the warehouse service is in a consistent state if a consistency requirement of the warehouse service on data is a first level comprises: When the received ex-warehouse business and the available inventory are larger than the preset inventory, entering a resource reservation stage, determining a first frozen inventory according to the sum of the ex-warehouse inventory and the original frozen inventory, and setting the state of the ex-warehouse business to be confirmed; if the business in the resource reservation stage is successfully executed, entering a submitting stage, determining a final frozen stock according to the difference between the first frozen stock and the ex-warehouse stock, determining a final actual stock according to the difference between the original actual stock and the ex-warehouse stock, and setting the ex-warehouse business state as ex-warehouse; Or if the resource reservation stage has the service which is not successfully executed or the state of the submitting stage is that the overtime is not completed, entering a rollback stage, and determining a final frozen stock according to the difference between the first frozen stock and the ex-warehouse stock.
  7. 7. The warehouse business process method according to claim 1, wherein issuing a target event and receiving the target event through a target micro service corresponding to the target event, comprises: if the execution logic synchronizes the operation results of the issuer and the receiver of the target event and the time for the receiver to acquire the operation result of the issuer is less than or equal to the preset time, the target event is issued through an interface of a REST protocol; Otherwise, the target event is issued through the message middleware.
  8. 8. A warehouse business processing device is characterized in that, the warehouse business processing device comprises: The architecture design module is used for deploying each warehouse service in the plurality of warehouse services to the micro service and determining the architecture of the micro service according to the execution logic of each warehouse service, wherein the architecture comprises one or more of an aggregator micro service architecture, a chained micro service architecture and a data sharing micro service architecture; The function configuration module is used for configuring a technical stack and a target function for each micro-service based on the field driving design according to the execution logic of each warehousing service; And the function realization module is used for issuing a target event if the current flow node belongs to a preset flow node, and receiving the target event through a target micro-service corresponding to the target event so as to execute a target function corresponding to the target micro-service.
  9. 9. An electronic device, the electronic device comprising: A memory and a processor, the memory having stored therein a computer program, the processor being arranged to perform the warehousing business processing method of any one of claims 1-7 by means of the computer program.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform the warehousing service processing method according to any one of claims 1 to 7.

Description

Warehouse business processing method, device, electronic equipment and medium Technical Field The present application relates to the field of computer technologies, and in particular, to a storage service processing method, a storage service processing device, an electronic device, and a medium. Background With the rapid development of electronic commerce, intelligent manufacturing and modern logistics industry, enterprises have raised higher requirements on efficiency, accuracy and flexibility of warehouse management. In the related art, warehouse Management Systems (WMSs) are designed and developed by adopting a monolithic architecture, i.e., all functional modules are deployed in a single server or cluster environment. However, with the expansion of service scale and the improvement of system complexity, the scheme has the problems of high system coupling degree and difficult maintenance. The technical stack is single, iteration is difficult, the whole system is generally constructed based on a unified technical framework, and new programming languages, databases or middleware are difficult to introduce for local optimization, so that technical innovation is hindered. The deployment is complex, the updating risk is high, the whole application needs to be redeployed every time the version is updated, and the operation and maintenance complexity and the risk of the production environment are increased. Disclosure of Invention The application mainly aims to provide a warehouse business processing method, a warehouse business processing device, electronic equipment and a storage business processing medium, so as to at least solve the problems of difficult maintenance and difficult deployment in the prior art. In order to achieve the above object, according to one aspect of the present application, there is provided a warehouse service processing method, which includes deploying each of a plurality of warehouse services to a micro service, and determining an architecture of the micro service according to execution logic of each warehouse service, wherein the architecture includes one or more of an aggregator micro service architecture, a chained micro service architecture, and a data sharing micro service architecture, configuring a technology stack and a target function for each micro service based on a domain driving design according to the execution logic of the warehouse service, issuing a target event if a current flow node belongs to a preset flow node, and receiving the target event through a target micro service corresponding to the target event to execute the target function corresponding to the target micro service. According to the application, the warehouse business is deployed into each micro service respectively, the architecture of the micro service is determined based on the execution logic of the warehouse business, and the problem of difficult service deployment in the related technology is reduced based on the release of the target event of the micro service according to the current flow node. In addition, the application is designed into a micro-service configuration technical stack and a target function based on the field drive, carries out micro-service limitation on the warehousing business flow, realizes automatic execution of the warehousing business through a plurality of micro-services, and improves maintainability and efficient operation of the warehousing business. Optionally, the determining, according to the execution logic of the warehousing service, an architecture of the micro service includes: If the execution logic of the warehouse service is to synchronously butt-joint a plurality of first services in all warehouse services, connecting the micro service corresponding to each first service to a gateway through an aggregator so as to receive a user request through the gateway; Or if the execution logic of the warehouse service is to sequentially dock a plurality of second services in all warehouse services, sequentially connecting the micro services corresponding to the second services according to the docking sequence, and connecting the sequentially connected micro services with a client through a gateway; or if the execution logic of the warehousing service is that data interaction exists among a plurality of third services in all the warehousing services, connecting the micro service corresponding to each third service to a database. Optionally, the deploying each of the plurality of the warehousing services to the micro service includes: deploying a fourth service in the storage services to a first micro service, and setting the deployment state of the first micro service as deployed; and deploying a fifth service in the plurality of warehousing services to a second micro service, and setting the deployment state of the second micro service as deployed. Optionally, if the current flow node belongs to a preset flow node, issuing a target event, and before receiving the t