Order batch loading method, device, storage medium and computer equipment

By collecting, checking and converting order data, generating target documents and establishing association relationships, the problems of low efficiency and high cost of order data loading are solved, and efficient and stable data loading and business processing are achieved.

CN115147049BActive Publication Date: 2024-11-01YGSOFT INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210836640.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-15
Publication Date
2024-11-01
Estimated Expiration
2042-07-15

AI Technical Summary

Technical Problem

In group enterprises, the order data sources are diverse and the data volume is large, resulting in low data collection and loading efficiency, high cost, and easy to cause human errors.

Method used

By collecting original order data, performing checksum conversion, determining business model and order status, generating target documents and establishing upstream and downstream relationships, automatically loading them into the enterprise information management system, and achieving efficient and stable data loading.

Benefits of technology

It improves the efficiency and accuracy of order data loading, reduces costs, reduces manual errors, and realizes the timeliness of internal business processing of the enterprise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115147049B_ABST
    Figure CN115147049B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, storage medium and computer equipment for batch loading of orders, and relates to the field of data processing. The present application performs data collection, data verification, data conversion, data filling and automatic loading and pushing of orders through a preconfigured data model, so as to efficiently and stably load large quantities of order data from different data sources, different business models and different order statuses into an enterprise information management system. The problems of low efficiency, high cost and easy error in order data loading in the prior art are solved, and the timeliness of internal business processing of an enterprise can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial risk prediction, and in particular to a method, device, storage medium and computer equipment for loading batch orders. Background Art

[0002] In order to improve market competitiveness, more and more companies are choosing to expand sales channels and adopt different sourcing and procurement methods. This determines the diversity of the sources of corporate material procurement and sales order data, and there are large differences in the order data formats from different sources. Group companies involved in e-commerce procurement and sales business scenarios have a huge number of orders. Group companies usually use enterprise information management systems (such as ERP systems, etc.) to manage order fulfillment processes, cost accounting, and payment and settlement. In the case of diverse order sources and huge amounts of order data, how to quickly and effectively load order data into the enterprise information management system as a basis for subsequent business processing has always been a concern for material management-related business personnel and information system technicians. The problems with loading order data in the existing technology include:

[0003] 1. There are many sources of order data, making data collection difficult. Orders from multiple sources, including offline and online (and online also involves multiple different e-commerce platforms), usually have different data types and integrity, which makes batch data collection more difficult.

[0004] 2. Different order statuses make differentiated processing difficult. Due to different business models, factors such as the asynchronous loading of procurement and sales business and system data, there are situations where the order status and subsequent business processing requirements are different during data collection and loading. Orders of different business models and different statuses have different requirements when loaded into the system. For example, when loading the initial status order of the self-operated stocking model, only a sales order needs to be formed; when loading the initial status order of the self-operated consignment model, a sales order and a corresponding purchase order need to be formed; when loading the delivery status order of the self-operated consignment model, sales and purchase orders, purchase warehouse receipts, and sales warehouse delivery orders need to be formed.

[0005] 3. Large amount of order data, difficult to process in batches. Large group companies usually have a large number of orders due to their large business volume, especially in the e-commerce procurement and sales model, where the monthly order volume can reach hundreds of thousands. In addition, a series of complex tasks such as data collection, verification, processing, and order push are required when loading data, making it difficult to load and process data in batches efficiently.

[0006] Based on the above situation, the traditional order data loading method generally adopts manual entry of each order or segmented integration of data in each business link (different data items such as orders and warehouse entry orders are supported by different data interfaces. If some business data has no integrated source, partial integration and partial manual entry are adopted). It is inefficient and costly, and there is a risk of human error caused by manually establishing upstream and downstream data associations. Summary of the invention

[0007] The embodiments of the present application provide a method, device, storage medium and computer equipment for batch loading of orders, which can solve the problems of low efficiency, high cost and easy error in manual loading of order data in the prior art. The technical solution is as follows:

[0008] In a first aspect, an embodiment of the present application provides a method for loading orders in batches, the method comprising:

[0009] Collect original order data;

[0010] Verifying the original order data;

[0011] After verification, the original order data is converted into enterprise order data supported by the enterprise information management system;

[0012] Writing the enterprise order data into a database;

[0013] Reading the enterprise order data from the database, and parsing the business model and order status of the enterprise order data;

[0014] Determine the type of document to be generated according to the business model and order status;

[0015] Preprocessing the enterprise order data to obtain complete data required by the document type;

[0016] Generate one or more target documents according to the complete data, and establish upstream and downstream association relationships between each target document;

[0017] A document number is assigned to the generated target document, and the target document and designated field information are written into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

[0018] In a second aspect, an embodiment of the present application provides a device for loading batch orders, the device comprising:

[0019] An order data collection unit is used to collect original order data; verify the original order data; after verification, convert the original order data into enterprise order data supported by the enterprise information management system; and write the enterprise order data into a database;

[0020] An order data loading unit is used to read the enterprise order data from the database, and to parse the business model and order status of the enterprise order data; determine the document type to be generated according to the business model and order status; pre-process the enterprise order data to obtain the complete data required for the document type; generate one or more target documents according to the complete data, and establish upstream and downstream associations between each target document; assign a document number to the generated target document, and write the target document and designated field information into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

[0021] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0022] In a fourth aspect, an embodiment of the present application provides a computer device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0023] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0024] Through the pre-configured data model, data collection, data verification, data conversion, data filling and automatic loading and pushing of orders are performed, so that large quantities of order data from different data sources, different business models and different order statuses can be efficiently and stably loaded into the enterprise information management system. This solves the problems of low efficiency, high cost and easy errors in order data loading in the existing technology, and can effectively improve the timeliness of internal business processing in the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;

[0027] Figure 2 It is a flowchart of a method for loading orders in batches provided in an embodiment of the present application;

[0028] Figure 3 is a schematic diagram of a table template provided in an embodiment of the present application;

[0029] Figure 4 This is a schematic diagram of the message format of the e-commerce server provided in the embodiment of the present application;

[0030] Figure 5 This is a schematic diagram of the configuration of the verification rules provided in the embodiment of the present application;

[0031] Figure 6 It is a structural block diagram of an order batch loading device provided by the present application;

[0032] Figure 7 It is a structural block diagram of a computer device provided by this application. DETAILED DESCRIPTION

[0033] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0034] It should be noted that the order batch loading method provided in the present application is generally executed by a computer device, and accordingly, the order batch loading device is generally set in the computer device.

[0035] Figure 1 An exemplary system architecture of an order batch loading method or order batch loading device that can be applied to the present application is shown.

[0036] like Figure 1 As shown, the system architecture may include: a computer device 101 and a server 102. The computer device 101 and the server 102 may communicate via a network, and the network is used as a medium for providing communication links between the above-mentioned units. The network may include various types of wired communication links or wireless communication links, for example: a wired communication link includes an optical fiber, a twisted pair or a coaxial cable, etc., and a wireless communication link includes a Bluetooth communication link, a wireless fidelity (WIreless-FIdelity, Wi-Fi) communication link or a microwave communication link, etc.

[0037] The computer device 101 collects original order data, processes the original order data, and loads the processed order data into the enterprise information management system deployed in the server 102 .

[0038] It should be noted that the computer device 101 and the server 102 can be hardware or software. When the computer device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the computer device 101 and the server 102 are software, they can be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module, which is not specifically limited here.

[0039] Various communication client applications can be installed on the computer device of the present application, such as: video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0040] The computer device may be hardware or software. When the computer device is hardware, it may be various computer devices with a display screen, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers. When the computer device is software, it may be installed in the computer devices listed above. It may be implemented as multiple software or software modules (for example, to provide distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.

[0041] When the computer device is hardware, a display device and a camera may be installed thereon. The display device may be any device capable of realizing a display function, and the camera is used to collect video streams; for example, the display device may be a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), etc. The user may use the display device on the computer device to view displayed text, pictures, videos and other information.

[0042] It should be understood that Figure 1 The number of computer devices, networks and servers in the embodiment is only for illustration. Any number of computer devices, networks and servers may be used as required.

[0043] The following will be combined with the attached Figure 2 , the order batch loading method provided in the embodiment of the present application is described in detail. Among them, the order batch loading device in the embodiment of the present application can be Figure 1 Computer equipment shown.

[0044] See also Figure 2 , which is a flow chart of a method for loading batch orders according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0045] S201. Collect original order data.

[0046] The original order data represents the attributes of the order. The computer device can collect the original order data online or offline. The offline method is: the computer device provides a form template, the user fills in the form template, and after filling in the form, the final electronic form is obtained. The computer device collects the original order data based on the electronic form. The offline method is: the computer device is pre-configured with an integrated interface, and the e-commerce platform calls the integrated interface to push the original order data to the computer device. The number of original order data collected by the computer device can be one or more.

[0047] In this embodiment, the data model of the original order data is uniformly defined, and the original order data includes multiple fields and field values ​​of each field; the fields of the original order data are divided into main table fields and sub-table fields, the main table fields represent the basic information of the order, and the sub-table fields represent the attribute information of the material. Further, the main table fields are: one or more of order ID, order date, salesperson ID, business department ID, customer ID, sales type, e-commerce platform, order status and business model; the sub-table fields are: one or more of supplier ID, project code, material ID, material code, quantity, tax rate, cost amount, and sales amount.

[0048] For example: See Figure 3 The diagram shows a table template, where the computer device displays the table through the display unit. Figure 3 In the table template shown, the first cell of each column in the table template corresponds to a field. The multiple fields contained in the table template are not described here. Each field is configured with filling requirements. For example, for the order date, the filling requirement is: fill in the date in yyyy / mm / dd format, for example: 2020 / 07 / 01. Users fill in according to the filling requirements to improve accuracy. Each row corresponds to an original order data. Users can fill in the field value in the cell of the table template through an input device (such as a mouse, keyboard, touch screen, etc.). Furthermore, the multiple fields included in the table template are divided into two types: main table fields and sub-table fields. The cells where the main table fields and sub-table fields are located can be distinguished by different fill colors. For example, the fill color of the cell where the main table field is located is dark gray, and the fill color of the cell where the sub-table field is located is light gray. Furthermore, the multiple fields included in the table template are divided into required fields and optional fields. The required fields and optional fields can be distinguished by different colors. For example, the font color of the required fields is red, and the font color of the optional fields is black. The required fields indicate fields in which the user must fill in the field value, and the optional fields indicate fields in which the user can choose to fill in the field value. If the computer device detects that the cell in the column where the required field is located has not filled in the field value, it will prompt the user with an error.

[0049] For example: See Figure 4As shown in the figure, it is a schematic diagram of the message. The e-commerce platform uses Figure 4 The message format is used to push messages to computer devices. The messages include input parameters and output parameters. For input parameters and output parameters, see Figure 4 As shown, which will not be repeated here, the computer device receives a message pushed from the e-commerce platform, parses the message to obtain the field value of each field, and generates the original order data based on the field value obtained by parsing.

[0050] S202: Verify the original order data.

[0051] Among them, the computer device is pre-configured with verification rules, and the verification rules are used to verify the field values ​​of each field in the original order data. Different fields are associated with different verification rules. When the computer device detects that the field value of a field fails to pass the verification, a verification prompt message is displayed through the display unit. Further, the transaction rules include integrity verification and compliance verification. The integrity verification is used to verify whether the field value of each field in the original order data is empty, and the compliance verification is used to verify whether the field value is within a preset range.

[0052] For example, see Figure 5 The configuration table of the verification rules shown in the figure, the configuration table is configured with the verification rules and verification prompts of each field, for example: the verification rule of the order date is: a required field and the format is YYYY-MM-DD. The computer device detects whether the field value of the order date is filled in based on the verification rule. If not, the verification prompt "Required field cannot be empty" is displayed through the display unit; detects whether the filled format of the order date is YYYY-MM-DD. If not, the verification prompt "Date format must be YYYY-MM-DD" is displayed through the display unit. For the verification rules and verification prompts of other fields in the configuration table, please refer to Figure 5 As shown, no further description is given here.

[0053] S203: After verification, the original order data is converted into enterprise order data supported by the enterprise information management system.

[0054] Among them, the enterprise information management system may not be able to recognize certain fields and field values ​​in the original order data. At this time, the computer device can convert the field information (i.e., fields and field values) in the original order data into field information recognizable by the enterprise information management system according to the preset mapping conversion table. For example: the field information includes the following fields: material name, trading unit, etc., which are converted to obtain enterprise order data.

[0055] S204: Write the enterprise order data into the database.

[0056] The database is generally a relational database, such as a SQL database, etc. The enterprise order data is written into a data table in the database, and users can view, modify and delete the enterprise order data in the database.

[0057] S205: Read the enterprise order data from the database, and analyze the business model and order status of the enterprise order data.

[0058] Among them, the enterprise order data includes fields of business model and order status.

[0059] S206: Determine the type of document to be generated according to the business model and order status.

[0060] Among them, the computer equipment is pre-configured with mapping types between business models, order status and document types. Different order status and business models are associated with different document types. Business models include self-operated consignment sales, self-operated inventory preparation and platform services. Order status includes pending shipment, pending receipt and pending settlement.

[0061] Among them, self-operated consignment sales is a type of self-operation. The profit model is mainly to earn the difference between sales and purchases. The business includes the complete business process of procurement, sales, warehousing and outbound delivery, but there is no inventory. After the customer places an order (sales order), the corresponding purchase order is automatically generated and pushed to the supplier. The supplier ships the goods directly, but the settlement is still between the customer and the e-commerce company, and the e-commerce company and the supplier.

[0062] Self-operated stocking is also a type of self-operation. The profit model is the same as self-operated consignment sales. The difference is that there is inventory. First, a purchase order is placed with the supplier, and then the inventory is put into the warehouse and sold. The goods are shipped according to the customer's sales order, which is similar to the current model of JD.com's self-operated stores.

[0063] Platform service means that the e-commerce company does not participate in the transaction process between customers and suppliers. Customers place orders directly to suppliers who open stores on the e-commerce platform. The e-commerce company charges a commission (also called platform service fee) based on a certain percentage of the order amount.

[0064] For example, the relationship between business model, order status and document type is shown below.

[0065]

[0066] Table 1

[0067] When there are multiple document types in the table, "→" is used in Table 1 to indicate that each document has a specific generation order, that is, an upstream and downstream relationship.

[0068] S207. Pre-process the enterprise order data to obtain complete data required by the document type.

[0069] Among them, different document types correspond to different fields and field values. The enterprise order data may not have a certain field of the document or the field value of a certain field may be empty. At this time, the computer device preprocesses the enterprise order data according to the preprocessing rules to obtain the complete fields and field values ​​(i.e., complete data) required to generate the document type.

[0070] For example, the preprocessing rules are shown in Table 2.

[0071]

[0072] Table 2

[0073] S208. Generate one or more target documents based on the complete data, and establish upstream and downstream association relationships between each target document.

[0074] Among them, according to the above document type and complete data, one or more target documents are generated. If there are multiple target documents, the upstream and downstream association relationship of each target document is established according to the content of Table 1. In the process of generating target documents, the downstream documents can only be generated after the upstream documents are generated. For example: the purchase warehouse receipt can only be generated after the purchase order is generated.

[0075] Furthermore, when generating the target document, the long transaction of document creation and review is split into multiple small short transactions for processing (for example, the previous long transaction is divided into four short transactions: order generation, writing back the order ledger (order signing data), pushing out / incoming orders, and writing back the order ledger (direct inbound and outbound data). The order data is written immediately after the order is successfully generated instead of waiting until all transactions are successful to write the order data), so as to avoid system table locks due to long transaction execution time and improve system concurrency. When pushing multiple orders in batches at the same time, the number segments of all documents are allocated at once through number segment allocation. When storing documents, the number segments are taken from the allocated document number segments according to the document type, so that they can be taken when needed, avoiding multiple database interactions.

[0076] S209. Assign a document number to the generated target document, and write the target document and designated field information into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

[0077] Among them, a document number is assigned to each generated target document. The document number is used to uniquely indicate the identity of the document. The document number can be expressed in the form of letters + numbers. For example, the document number of a sales order is XSDD20211102001, and the document number of a purchase order is CGDD20211102001. Then call the order ledger writeback service to write the target order and the specified fields and field values ​​to the order execution ledger of the enterprise information management system. For example, write the relevant data such as the quantity and amount of inbound and outbound warehouses to the order execution ledger for users to trace and view. It supports the selection of ledger data penetration to view the generated orders and inbound and outbound warehouse documents.

[0078] Further, optionally, the present application also supports tracking and processing the loading results of the original order data, including: when the original order data is loaded successfully, a success prompt message pops up; wherein the success prompt message includes the number of the original order data;

[0079] When the loading of the original order data fails, a rollback operation is performed, the original order data is set to a pending loading state, and the step of verifying the original order data is re-executed.

[0080] Among them, after the original order data is loaded successfully, the order loading status is updated to completed, and a success prompt message pops up. The success prompt message can be: "Loading XX order information", and users can view the completion status on the original order data loading function page. If the loading process encounters problems such as repeated data loading (that is, the original order data is exactly the same), abnormal master data status, etc., which leads to data loading failure, the failed order information and the reason for failure will be sent. After the data loading fails, the data rollback operation is performed to roll back to the waiting state of the original order data. The user can perform the loading operation again after rectifying the original order data according to the reason for failure. If there is a network or service interruption problem, the system cannot perform the rollback operation. The user can query the records that have been in the loading state on the loading page and perform the cancel operation to trigger a rollback to the initial state and reload.

[0081] Furthermore, the present application processes multiple orders in batches through multi-threading (the number of concurrent threads is defined in combination with server resource conditions). Usually, the system uses long transactions to ensure the atomicity and consistency of the entire process when processing logic such as upstream and downstream document associations. However, considering that there are many transactions executed during the order loading process, in order to avoid the situation where the user has to wait in line or even get stuck due to table locks after issuing an execution loading transaction instruction, the transaction is cut into background execution in an asynchronous manner, and the result tracking processing unit is used to handle message feedback and exception handling of the execution process.

[0082] When loading order data into the enterprise information management system, the embodiments of the present application perform data collection, data verification, data conversion and automatic loading and pushing of orders through pre-configured data models, and adopt asynchronous processing technology of multi-threading and long transaction cutting to achieve efficient and stable loading of large quantities of order data from different data sources, different business models and different order statuses into the enterprise information management system. This solves the problems of low efficiency, high cost and poor experience of order data loading in the prior art, and can effectively improve the timeliness of internal business processing in enterprises.

[0083] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0084] See also Figure 6 , which shows a structural block diagram of an order batch loading device provided by an exemplary embodiment of the present application, hereinafter referred to as device 6. The device 6 can be implemented as all or part of a computer device through software, hardware or a combination of both. The device 6 includes: an order data collection unit 601 and an order data loading unit 602.

[0085] The order data collection unit 601 is used to collect original order data; verify the original order data; after verification, convert the original order data into enterprise order data supported by the enterprise information management system; and write the enterprise order data into the database;

[0086] The order data loading unit 602 is used to read the enterprise order data from the database, and to parse the business model and order status of the enterprise order data; determine the document type to be generated according to the business model and order status; pre-process the enterprise order data to obtain the complete data required for the document type; generate one or more target documents according to the complete data, and establish upstream and downstream associations between each target document; assign a document number to the generated target document, and write the target document and designated field information into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

[0087] In one or more possible embodiments, verifying the original order data includes:

[0088] Perform integrity check and compliance check on the original order data.

[0089] In one or more possible embodiments, collecting original order data includes:

[0090] Collect original order data based on table templates;

[0091] Collect original order data in the e-commerce server.

[0092] In one or more possible embodiments, converting the original order data into enterprise order data supported by an enterprise information management system includes:

[0093] According to a preset mapping relationship table, the field information in the original order data is converted into field information supported by the enterprise information management system; wherein the field information in the original order data includes: material files and trading units.

[0094] In one or more possible embodiments, the original order data includes: a basic information main table and a material information sub-table; the basic information main table includes fields: order ID, order date, salesperson ID, business department ID, customer ID, sales type, order status and business model;

[0095] The material information subtable includes the following fields: supplier ID, project code, material ID, material code, quantity, tax rate, cost amount, and sales amount.

[0096] In one or more possible embodiments, it further includes:

[0097] A result tracking processing unit, configured to pop up a success prompt message when the original order data is loaded successfully; wherein the success prompt message includes the number of the original order data;

[0098] When the loading of the original order data fails, a rollback operation is performed, the original order data is set to a pending loading state, and the step of verifying the original order data is re-executed.

[0099] In one or more possible embodiments, the business model is self-operation and self-sales, and when the order status is to be shipped, the target documents to be generated are sales orders and purchase orders;

[0100] When the business model is self-operated consignment sales and the order status is pending receipt or pending settlement, the target documents to be generated are sales order, purchase order, purchase receipt and sales receipt;

[0101] When the business model is self-operated stocking and the order status is pending shipment, pending receipt or pending settlement, the target document to be generated is a sales order;

[0102] The business model is platform service, the order status is to be shipped, to be received or to be settled, and the target document to be generated is a sales order.

[0103] It should be noted that the device 6 provided in the above embodiment only uses the division of the above functional modules as an example when executing the order batch loading method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the order batch loading device provided in the above embodiment and the order batch loading method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0104] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0105] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0106] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the order batch loading method described in the above embodiments.

[0107] See also Figure 7 , which is a structural block diagram of a computer device according to an embodiment of the present application. Figure 7 As shown, the computer device 700 may include: at least one processor 701 , at least one network interface 704 , a user interface 703 , a memory 705 , and at least one communication bus 702 .

[0108] The communication bus 702 is used to realize the connection and communication between these components.

[0109] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may also include a standard wired interface and a wireless interface.

[0110] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0111] Among them, the processor 701 may include one or more processing cores. The processor 701 uses various interfaces and lines to connect the various parts of the entire computer device 700, and executes various functions and processes data of the computer device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a chip.

[0112] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 705 may optionally be at least one storage device located away from the aforementioned processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.

[0113] exist Figure 7In the computer device 700 shown in FIG. 1 , the user interface 703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 701 can be used to call the application program stored in the memory 705 and specifically execute the following steps: Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.

[0114] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0115] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for loading orders in batches, characterized in that: include: Collect original order data; Verifying the original order data; The original order data includes: a basic information main table and a material information sub-table; the fields included in the basic information main table are: order ID, order date, salesperson ID, business department ID, customer ID, sales type, order status and business model; the fields included in the material information sub-table are: supplier ID, project code, material ID, material code, quantity, tax rate, cost amount and sales amount; After verification, the original order data is converted into enterprise order data supported by the enterprise information management system; Writing the enterprise order data into a database; Reading the enterprise order data from the database, and parsing the business model and order status of the enterprise order data; Determine the type of document to be generated according to the business model and order status; Preprocessing the enterprise order data to obtain complete data required by the document type; Generate one or more target documents according to the complete data, and establish upstream and downstream association relationships between each target document; A document number is assigned to the generated target document, and the target document and designated field information are written into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

2. The method according to claim 1, characterized in that The verifying the original order data includes: Perform integrity check and compliance check on the original order data.

3. According to the method of claim 1 or 2, the collecting of original order data comprises: Collect original order data based on table templates; Collect original order data in the e-commerce server.

4. The method according to claim 3, characterized in that: The converting the original order data into enterprise order data supported by the enterprise information management system comprises: According to a preset mapping relationship table, the field information in the original order data is converted into field information supported by the enterprise information management system; wherein the field information in the original order data includes: material files and trading units.

5. The method according to claim 1, characterized in that Also includes: When the original order data is loaded successfully, a success prompt message pops up; wherein the success prompt message includes the number of the original order data; When the loading of the original order data fails, a rollback operation is performed, the original order data is set to a pending loading state, and the step of verifying the original order data is re-executed.

6. The method according to claim 5, characterized in that When the business model is self-operated consignment sales and the order status is pending shipment, the target documents to be generated are sales orders and purchase orders; When the business model is self-operated consignment sales and the order status is pending receipt or pending settlement, the target documents to be generated are sales order, purchase order, purchase receipt and sales receipt; When the business model is self-operated stocking and the order status is pending shipment, pending receipt or pending settlement, the target document to be generated is a sales order; The business model is platform service, and when the order status is to be shipped, to be received, or to be settled, the target document to be generated is a sales order.

7. An order batch loading device, characterized in that: include: An order data collection unit, used for collecting original order data; Verifying the original order data; After verification, the original order data is converted into enterprise order data supported by the enterprise information management system; Writing the enterprise order data into a database; The original order data includes: a basic information main table and a material information sub-table; the fields included in the basic information main table are: order ID, order date, salesperson ID, business department ID, customer ID, sales type, order status and business model; the fields included in the material information sub-table are: supplier ID, project code, material ID, material code, quantity, tax rate, cost amount and sales amount; An order data loading unit is used to read the enterprise order data from the database, and to parse the business model and order status of the enterprise order data; determine the document type to be generated according to the business model and order status; pre-process the enterprise order data to obtain the complete data required for the document type; generate one or more target documents according to the complete data, and establish upstream and downstream associations between each target document; assign a document number to the generated target document, and write the target document and designated field information into the order execution ledger of the enterprise information management system according to the document number to complete the loading of the original order data.

8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 6.

9. A computer device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.