Order processing method, order processing device and computer readable storage medium
By creating order templates and processing scripts, the error problems arise in the order entry process of smart card manufacturers are solved, automatic order processing and secure connection of peripheral systems are realized, and order placement efficiency is improved.
Patent Information
- Application Number
- CN202510030347.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-06-10
AI Technical Summary
Smart card manufacturers are prone to data entry errors when receiving customer orders. Due to network security restrictions, customers cannot log in to the system to enter order information directly, and they need to manually enter to ensure security.
Provides an order processing method. By creating multiple order templates and corresponding order processing scripts, customers can choose order templates to fill in, and modify the order processing scripts as needed to connect to peripheral systems to automatically process orders.
It reduces errors caused by manual order entry, realizes automatic order processing, improves order placing efficiency, and ensures the security of peripheral systems.
Smart Images

Figure CN120125307A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular, to an order processing method, an order processing device, and a computer-readable storage medium. Background Art
[0002] Smart card manufacturers can receive orders from customers for the production of smart cards. When sending an order request, customers can transmit it by fax or email, or there is also the work of entering orders by filling in forms on a website. When entered manually, it is easy to make data entry errors in the order. And since most customers are bank customers with network security restrictions, they cannot directly log in to systems such as the warehousing system to directly enter order information. It is necessary for the smart card manufacturer to enter it manually to ensure the security of the system.
[0003] There is a current business email processing method where when the type of the email to be sent is a business email, the system receives the option of the business document template selected by the user; extracts the corresponding business document template in the system; receives the document data entered by the user, and generates a business email as the email to be sent according to the business document template and the document data; sends the email to be sent to the email address of the corresponding customer, and archives the email to be sent in the customer database corresponding to the customer in the system. This solution can directly generate a document for entry according to the email content and the business document template, but this business email only completes the function of order entry and does not connect to an external system to complete the automatic processing of orders. Summary of the Invention
[0004] The first object of the present invention is to provide an order processing method that can directly complete order entry and process orders.
[0005] The second object of the present invention is to provide an order processing device for implementing the above order processing method.
[0006] The third object of the present invention is to provide a computer-readable storage medium applying the above order processing method.
[0007] To achieve the first object of the present invention, the present invention provides an order processing method, which includes: creating a plurality of order templates, creating an order processing script according to each order template, and binding each order processing script to the corresponding order template; receiving mail information, which is created according to the target template; determining whether the mail information further includes a modified order processing script, and if so, executing the modified order processing script, where the modified order processing script is a modified script of the target order processing script corresponding to the target order template; the steps of executing the modified order processing script include: processing the mail information to generate order information; connecting to a peripheral system, invoking the peripheral system to process the order information, confirming the processing result information, and sending the order information and the processing result information to the target mailbox.
[0008] As can be seen from the above solution, the present invention can provide multiple order templates for customers to choose from, and customers can choose an order template to fill in. Since the order processing script is formulated in advance according to the order template of the present invention, after the customer fills in the information, an order can be automatically generated, thereby reducing errors caused by manual order entry. In addition, the order processing script can also be extended to a peripheral system, connect to the peripheral system to send the order information to the peripheral system, thereby completing the preliminary processing of the order. Customers can also modify the order script to form a modified order processing script, and the order data can be processed according to the business logic through the modified order processing script. For example, it is determined whether to allocate according to the quantity of the order and the inventory quantity of the peripheral system, so as to complete the automatic processing of the order and better meet the customer's needs. Through the transfer operation of the order processing device of the present invention, the security of the peripheral system is ensured. While the present invention completes the automatic entry of the order through the mail information and the order processing script, it can also be extended to the peripheral system, complete the interconnection of multiple systems on different networks, complete the automatic processing of the order, and improve the order placement efficiency.
[0009] In a further solution, before processing the mail information, the following is also executed: verifying the target account to which the mail information is sent, and determining whether the target account is in the white list; if so, further verifying the mail information and performing a security authentication on the mail information.
[0010] As can be seen, the order processing script can also perform security authentication on the target account and the mail information, and ensure the security of the peripheral system when connecting to the peripheral system and automatically analyzing the order information.
[0011] In a further solution, after generating the order information, the following is also executed: the modified order processing script includes allocation structure parameters; switching the format of the order information according to the allocation structure parameters; cleaning and authenticating the order information.
[0012] As can be seen, switching the format of the order information according to the allocation structure parameters makes the format meet the requirements of the peripheral system.
[0013] In a further solution, the transfer structure parameters include at least one of the following: product name, quantity of ordered products, priority level, and processing time.
[0014] Thus, the peripheral system processes the order according to the transfer structure.
[0015] In a further solution, the steps of invoking the peripheral system to process the order information include: sending a service instruction for modifying the order processing script to the peripheral system, and obtaining the processing result information of the peripheral system executing the service instruction.
[0016] In a still further solution, the service instruction is created according to the transfer structure parameters.
[0017] Thus, the customer can add a service instruction according to the transfer structure parameters, so that the peripheral system can execute the service instruction. For example, it is determined whether to transfer according to the order quantity and the inventory quantity of the peripheral system, thereby completing the automatic processing of the order.
[0018] To achieve the second object, the order processing device provided by the present invention includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the above-mentioned order processing method is implemented.
[0019] To achieve the third object, the computer-readable storage medium provided by the present invention stores a computer program thereon, and is characterized in that when the computer program is executed, the above-mentioned order processing method is implemented. Description of the Drawings
[0020] Figure 1 It is a system structure block diagram of an embodiment of the order processing device of the present invention.
[0021] Figure 2 It is a flowchart of an embodiment of the order processing method of the present invention.
[0022] The present invention will be further described below in conjunction with the drawings and embodiments. Detailed Embodiments
[0023] The present invention creates an order template and an order processing script, provides the order template and the order processing script to the customer. The customer can fill in information according to the order template and modify the order processing script, so that when the order processing script is executed, it can connect to the peripheral system and send the order information to the peripheral system for processing, thereby reducing errors caused by manual order entry, meeting the customer's needs, completing the automatic processing of the order, and improving the order placement efficiency.
[0024] Embodiment of the order processing device: See Figure 1, the order processing device 12 of this embodiment is respectively connected to the client 11 and the peripheral system 13. The client 11 and the peripheral system 13 are not connected to each other to ensure the security of the peripheral system 13. The client 11 can be a computer device or a smart device used by the customer. The peripheral system 13 can be a warehouse management system. The customer can obtain the order template and the order processing script created by the order processing device 12 through the client 11, fill in the order content information according to the order template, modify the order processing script, and after filling is completed, send the order content information and the modified order processing script to the order processing device 12 in the form of an email. The order processing device 13 can execute the modified order processing script to analyze the email information, generate order information, connect to the peripheral system 13, send the order information to the peripheral system 13 for processing, the peripheral system 13 sends the processing result information to the order processing device 12, and the order processing device 12 can send the processing result information to the client.
[0025] The order processing device 12 further includes a processor and a memory. The memory stores a computer program, and when the processor executes the computer program, it implements the order processing method of the order processing method embodiment.
[0026] Order processing method embodiment: The order processing method of this embodiment is implemented by the order processing device of the order processing device embodiment. Refer to Figure 2 , the order processing device first executes step S1 to create multiple order templates and create an order processing script according to each order template. Each order processing script is bound to the corresponding order template, that is, one order template corresponds to one order processing script. The order processing script can process the information after filling in the order template to generate order information.
[0027] The customer can obtain the order template and the order processing script created by the order processing device 12 through the client 11, select the target template, fill in the order content information according to the target template, and after filling is completed, modify the target order processing script to form a modified order processing script. The customer can also not modify the order processing script. The customer can modify the transfer structure parameters of the target order processing script and create a business instruction according to the transfer structure parameters. After filling is completed, send the order content information and the modified order processing script to the order processing device in the form of an email.
[0028] After the customer sends the email to the order processing device, the order processing device executes step S2 to receive the email information. This email information is created by the customer according to the target template.
[0029] After receiving the email information, execute step S3 to determine whether the email information includes a modified order processing script. The modified order processing script is the modified script of the target order processing script corresponding to the target order template.
[0030] If the email information has a modified order script, then step S4 is executed to execute the modified order processing script. Among them, before processing the email information, first verify the target account to which the email information is sent to determine whether the target account is within the whitelist. That is, the order processing device is provided with a whitelist on which customer account information is recorded. Only emails sent from customer accounts on the whitelist can perform the next operation. If the customer account is not within the whitelist, the email is marked for manual processing. If the customer account is within the whitelist, the email information is further verified and a security authentication is performed on the email information. Performing a security authentication on the email information can be to input the email information into a neural network and output whether the email information is a qualified email. If the email information includes prohibited words, sensitive information, etc., then the email information cannot pass the security authentication and the email information is marked for manual processing. The email information that passes the security authentication can perform the next operation.
[0031] After the email information passes the security authentication, the email information can be processed to generate order information. The order information can include the product name, order quantity, etc. After generating the order information, the order information is format-converted according to the transfer structure parameters to convert the order information into a format requirement that can be read by the peripheral system. After the format conversion, it is checked whether the format-converted order information is valid.
[0032] After the format conversion, the peripheral system is connected, and the peripheral system is called to process the order information, that is, the order information is sent to the peripheral system. The peripheral system performs an inventory transfer operation according to the order information. After the peripheral system performs the inventory transfer operation, it sends the processing result information to the order processing device. After the business instruction of the modified order processing script is sent to the peripheral system, the processing result information of the peripheral system executing the business instruction can also be obtained. The business instruction is created according to the transfer structure parameters, and the customer can add business instructions according to the transfer structure parameters. For example, it is determined whether to transfer according to the order quantity and the inventory quantity of the peripheral system, so as to complete the automatic processing of the order. The API provided by the peripheral system is called for inventory transfer processing. After the peripheral system processes the order according to the transfer structure, it outputs the processing result information to the order processing device.
[0033] If the email information in step S3 does not have a modified order script, then step S6 is executed to execute the target order processing script corresponding to the target template. The target order processing script analyzes the email information, generates order information, sends the order information to the peripheral system, and does not perform a business operation instruction on the peripheral system.
[0034] After the order processing device receives the processing result information, step S5 is executed to send the processing result information to the customer's email.
[0035] In this embodiment, an order processing script is formulated in advance according to the order template. Therefore, after the customer fills in the information, an order can be automatically generated, thus reducing errors caused by manual order entry. In addition, the order processing script can also be extended to the peripheral system, connect to the peripheral system to send the order information to the peripheral system, and thus complete the preliminary processing of the order. The customer can also modify the order script to form a modified order processing script. Through the modified order processing script, the order data can be processed according to the business logic. For example, it is determined whether to allocate according to the quantity of the order and the inventory quantity of the peripheral system, etc., so as to complete the automatic processing of the order and better meet the customer's needs. While the present invention completes the automatic entry of the order through the email information and the order processing script, it can also be extended to the peripheral system, complete the interconnection of multiple systems, complete the automatic processing of the order, and improve the order placement efficiency.
[0036] Embodiment of computer-readable storage medium: The order processing method in the card-making device described in the above embodiment can be stored in a computer-readable storage medium in the form of a computer program. When the computer program is executed by a processor, the steps of the order processing method embodiment in the above card-making device can be completed. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0037] The above is only a preferred embodiment of the present invention, but the design concept of the invention is not limited thereto. Without departing from the inventive concept, there can be more other equivalent embodiments, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention.
Claims
1. An order processing method, characterized in that: include: Creating multiple order templates, creating an order processing script according to each order template, and binding each order processing script to the corresponding order template; Receiving an email message, wherein the email message is created according to a target template; Determine whether the email information also includes a modified order processing script, and if so, execute the modified order processing script, where the modified order processing script is a modified script of the target order processing script corresponding to the target order template; The steps of executing the modified order processing script include: Processing the email information to generate order information; Connect to the peripheral system, call the peripheral system to process the order information, confirm the processing result information, and send the processing result information to the target mailbox.
2. The order processing method according to claim 1, characterized in that: Before processing the email information, the following steps are also performed: Verify the target account to which the email message is sent to determine whether the target account is in the whitelist; If yes, the email information is further verified and security authentication is performed on the email information.
3. The order processing method according to claim 1, characterized in that: After generating the order information, also execute: The modification order processing script includes transfer structure parameters; The format of the order information is switched according to the transfer structure parameters.
4. The order processing method according to claim 3, characterized in that: The allocation structure parameters include at least one of the following: commodity name, order quantity, priority level and processing time.
5. The order processing method according to claim 4, characterized in that: The step of calling the peripheral system to process the order information includes: The business instruction for modifying the order processing script is sent to the peripheral system, and processing result information of the peripheral system executing the business instruction is obtained.
6. The order processing method according to claim 5, characterized in that: The business instruction is created according to the allocation structure parameters.
7. An order processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the order processing method according to any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the order processing method according to any one of claims 1 to 6 is implemented.