Method, processor and machine-readable storage medium for item management
By determining the packet mode and layer by layer, the problem of low efficiency of bank card sorting is solved, rapid positioning and efficient sorting are achieved, sorting pressure is reduced, and the speed of customers receiving items is improved.
Patent Information
- Application Number
- CN202111266394.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-10-28
AI Technical Summary
The sorting efficiency of bank cards and other items is low, resulting in serious accumulation in the card making center and it is impossible to get the card in a short period of time.
By determining the package mode and distribution result set of items, package them layer by layer, responding to the package request of the distribution agency, reducing sorting pressure and improving sorting efficiency.
The distribution agency can quickly locate the next agency without secondary sorting, reducing sorting pressure, improving sorting efficiency, and shortening the time for customers to collect items.
Smart Images

Figure CN113947362B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of banking business management, and in particular to a method, processor and machine-readable storage medium for article management. Background Art
[0002] As competition in the financial industry becomes increasingly fierce, the proportion of non-cash payments has gradually increased. The business volume related to bank cards and other items has surged, and the number of items has also increased. Taking bank cards as an example, due to the relatively scattered card collection outlets and the strict hierarchical system of bank distribution centers, there are many difficulties in the sorting and distribution of bank cards, resulting in serious accumulation of bank cards in the card production center, heavy sorting workload for bank tellers, and customers cannot receive the cards within a short period of time after applying for them.
[0003] At present, banks can use professional packaging equipment to batch package bank cards and other items to increase the packaging speed, but this cannot reduce the sorting pressure. Therefore, the sorting efficiency of bank cards and other items in the existing technology is low. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, a processor, and a machine-readable storage medium for item management, aiming to solve the problem of low sorting efficiency of items such as bank cards in the prior art.
[0005] In order to achieve the above-mentioned object, the first aspect of the present application provides a method for item management, comprising:
[0006] Determine the packaging mode of the item;
[0007] When the packaging mode is the first mode, determining a distribution result set of the packaging mechanism;
[0008] Pack the items layer by layer according to the delivery result set;
[0009] When the packaging mode is the second mode, in response to a packaging request from a distribution agency, determining items to be packaged;
[0010] Pack the items to be packed.
[0011] In the embodiment of the present application, determining the distribution result set of the packaging mechanism includes:
[0012] Obtain a distribution relationship table, wherein the distribution relationship table is established based on the distribution hierarchical relationship of the organization;
[0013] Iteratively query the distribution relationship table to determine the distribution link pair of the packaging organization, the distribution link pair includes the upper-level organization and the lower-level organization;
[0014] Record the iteration level of iterative queries;
[0015] Determine whether the subordinate organization is an outlet;
[0016] When the subordinate organization is a branch, the iterative query ends;
[0017] A delivery result set is generated according to the delivery link pairs determined by each iterative query and the recorded iteration levels.
[0018] In the embodiment of the present application, the items are packaged layer by layer according to the delivery result set, including:
[0019] Find the first subordinate organization of the packaging organization from the distribution result set;
[0020] Determine the leaf organization of the first subordinate organization according to the distribution result set;
[0021] Determine if the leaf organization's item requisition quantity is zero;
[0022] When the item application quantity is not zero, the items are packaged layer by layer starting from the leaf mechanism;
[0023] If the requested quantity of an item is zero, no packaging will be performed.
[0024] In an embodiment of the present application, the method further includes:
[0025] Record the packet number of each layer in the order of packets;
[0026] Generate a layer mapping table based on the packet number.
[0027] In an embodiment of the present application, the method further includes:
[0028] Creating a first key-value pair and a second key-value pair, wherein the first key-value pair indicates an institution whose attribute is a branch or a vault, and the second key-value pair indicates an institution whose attribute is a branch and a vault;
[0029] Determine the current packet number and current organization;
[0030] Find the first superior organization of the current organization from the distribution result set;
[0031] Assign a value to the first key-value pair or the second key-value pair according to the current packet number and the first superior organization.
[0032] In an embodiment of the present application, the method further includes:
[0033] When the packaging mode is the first mode, obtaining the packaging task of external input;
[0034] Add the packaging task to the asynchronous queue;
[0035] After the packaging is completed, a packaging completion prompt message is output.
[0036] In the embodiment of the present application, determining the items to be packaged includes:
[0037] Determine the delivery agency based on the package request;
[0038] Determine whether the distribution organization is an outlet;
[0039] In the case where the distribution organization is a branch, obtain an inventory list of items;
[0040] Determine the first inventory record of the distribution organization in the inventory table;
[0041] Items to be packaged are determined according to the first inventory record.
[0042] In an embodiment of the present application, the method further includes:
[0043] When the distribution agency is not a network point, a distribution relationship table is obtained, wherein the distribution relationship table is established based on the distribution hierarchical relationship of the agency;
[0044] Determine the set of outlets corresponding to the distribution organization according to the distribution relationship table;
[0045] Get the inventory table of items;
[0046] Determine a second inventory record of the set of outlets in the inventory table;
[0047] The items to be packaged are determined according to the second inventory record.
[0048] In the embodiment of the present application, determining the outlet organization corresponding to the distribution organization according to the distribution relationship table includes:
[0049] Iteratively query the distribution relationship table according to the distribution agency until the queried agency is a network point;
[0050] All the queried network points are regarded as a network point set, and the iterative query ends.
[0051] In an embodiment of the present application, the method further includes:
[0052] Determine the packet number and top-level packet number;
[0053] A hierarchical mapping table is generated based on the package number, the top-level package number, and the distribution organization.
[0054] In an embodiment of the present application, the method further includes:
[0055] Determine the packet status;
[0056] A packet table is generated according to the packet number, the top-level packet number and the packet status.
[0057] In an embodiment of the present application, the method further includes:
[0058] Get the current level mapping table of the items to be packaged;
[0059] Determine the current top-level packet number of the current level mapping table;
[0060] Search the packet table whose packet status is packet and whose top-level packet number is the current top-level packet number;
[0061] In case of search failure, the items to be packaged are packaged.
[0062] In an embodiment of the present application, the method further includes:
[0063] In response to a delivery request from a delivery organization, determining a top package of packages to be delivered;
[0064] Unpack the top-level package.
[0065] A second aspect of the present application provides a processor configured to execute the above-mentioned method for item management.
[0066] A third aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned method for item management.
[0067] A fourth aspect of the present application provides a computer program product, comprising a computer program, which implements the above-mentioned method for item management when executed by a processor.
[0068] Through the above technical solution, the distribution agency can quickly locate the next agency after receiving the package without secondary sorting, which reduces the sorting pressure and improves the sorting efficiency.
[0069] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0071] Figure 1 A schematic diagram of a process flow of an embodiment of a method for item management according to an embodiment of the present application is shown;
[0072] Figure 2 Schematically shows Figure 1 A schematic diagram of an embodiment of a distribution result set;
[0073] Figure 3 Schematically shows Figure 1 A detailed flow chart of an embodiment of step 206;
[0074] Figure 4 Schematically shows Figure 1 A detailed flow chart of an embodiment of step 208;
[0075] Figure 5 The flowchart of another embodiment of the method for item management according to the embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0076] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0077] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0078] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0079] Figure 1 The flowchart of the method for item management according to the embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a method for item management is provided, and the method may include the following steps:
[0080] Step 202, determining the packaging mode of the item.
[0081] It should be understood that the items in the embodiments of the present application may be bank cards, documents, checks, etc. The principle of the embodiments of the present application is explained below using a bank card as an example.
[0082] At present, there are many difficulties in the distribution and sorting of bank cards, such as: 1. There are various channels for applying for bank cards, which can be applied for at outlets or through online electronic channels, resulting in the card collection outlets in the card making data received by the card making center being relatively scattered and cannot be processed centrally; 2. Due to special regulations of UnionPay, the last digit of the bank card is the check digit, resulting in discontinuous card numbers; 3. Due to the regulations of the bank's business system and the setting of the distribution agency hierarchy, bank cards are generally not directly distributed from the card making center to the card collection outlets, and may be transferred to multiple vaults or distribution agencies in the middle. Therefore, the distribution agency needs to sort the bank cards twice, which greatly increases the error rate and complexity; 4. Since outlets are usually distributed in different areas, banks stipulate that one area must have a vault under its jurisdiction, and the vault position setting is relatively complex and the warehouse requirements are high. Therefore, a virtual vault with the same institution number as the local outlet may be set up in remote areas, that is, the same institution may have both vault and outlet attributes, which increases the difficulty of distribution.
[0083] In order to reduce the pressure of bank card delivery, the packaging technology on the market focuses more on the improvement of hardware equipment and improves the packaging speed through the use of professional packaging equipment. However, due to the limited procurement of packaging equipment, not all institutions in the bank can adopt it. Moreover, although this solution improves the packaging speed, it cannot reduce the sorting pressure of warehouse custodians and delivery personnel, and cannot improve the sorting efficiency.
[0084] The executor of the embodiment of the present application is a packaging mechanism. In a specific implementation, the business personnel can select a packaging mode through a terminal. The packaging mechanism can obtain the packaging mode selected by the user from the terminal and adopt different packaging strategies according to the packaging mode.
[0085] When the items are packed, the package containing bank cards at the bottom layer is called a leaf package, and the institution to which the leaf package belongs is the card collection outlet; the physical package at the top layer that can be shown to business personnel for subsequent safekeeping and inventory is called a top package.
[0086] According to the characteristics of bank card distribution, the packaging mode can be divided into the first mode and the second mode. Among them, the first mode can be called the package-package mode. When there is a multi-layer distribution relationship between the packaging mechanism and the bank card collection outlets, the packaging starts from the leaf package and continues to the top package; the second mode can be called the card-package mode. When there is a multi-layer distribution relationship between the packaging mechanism and the bank card collection outlets, only one layer of physical package is sealed according to the subordinate institutions that have a direct distribution relationship with the packaging mechanism.
[0087] Step 204, when the packaging mode is the first mode, determine the distribution result set of the packaging mechanism.
[0088] Among them, the distribution result set is the relationship set of all institutions that have a distribution relationship with the packaging institution. In the specific implementation, the distribution result set can be determined according to the following steps: obtaining a distribution relationship table, wherein the distribution relationship table is established based on the distribution hierarchy relationship of the institutions; iteratively querying the distribution relationship table to determine the distribution link pair of the packaging institution, the distribution link pair includes the upper-level institution and the lower-level institution; recording the iteration level of the iterative query; determining whether the lower-level institution is a network point; if the lower-level institution is a network point, ending the iterative query; generating a distribution result set according to the distribution link pair determined by each iterative query and the recorded iteration level.
[0089] It should be understood that in the bank card distribution business, the distribution hierarchy relationship between institutions is relatively strict. Bank cards will only be distributed from the vault to the outlets, and the subordinate institution will only correspond to one superior institution under the distribution relationship, and the superior institution can correspond to multiple subordinate institutions. A distribution relationship table can be established based on the distribution hierarchy relationship of the institution. After obtaining the distribution relationship table, starting from the packaging institution, all distribution link pairs of the packaging institution are iteratively queried. The iterative exit is the distribution link pair in which the subordinate institution is an outlet. That is, when the subordinate institution is queried as an outlet, the outlet is regarded as a leaf node, and the iteration is exited. The distribution link pairs, iteration hierarchy, and whether the subordinate institution is a leaf node obtained during the iteration are stored in the distribution result set. The specific code reference is as follows:
[0090] select distinet tl.bins_id as binsId,
[0091] t1.dstrn_insid as dstrnInsid,
[0092] level as lev,
[0093] decode(t1.cshr_inst_cgycd,'5','1','0')as isLeaf--the organization attribute is 5 and is regarded as a leaf
[0094] from ipopr_inst_dstrn_rel t1
[0095] start with t1.dstrn_insid='A'
[0096] connect by t1.dstrn_insid=prior t1.bins_id
[0097] and((tl.bins_id<>prior t1.bins_id)or
[0098] (t1.cshr_inst_cgycd<>prior t1.cshr_inst_cgycd))
[0099] and prior t1.cshr_inst_cgycd = '2' - the institution attribute is 2 and is regarded as a treasury
[0100] order by decode(t1.cshr_inst_ceycd,'5','1','0')desc,
[0101] level desc,
[0102] abs(to_number(t1.dstrn_insid)-to_number(t1.bins_id))asc
[0103] In the above code, binsId represents the subordinate organization in the delivery link pair, dstrnInsid represents the superior organization in the delivery link pair, level is the iteration level, the level of the root node is 1, the level of the child node is 2, and so on.
[0104] For example, if the packaging organization is A and the distribution relationships of A in the distribution relationship table include AA, AB, AFC, AFDD, and AFF, the iterative process is as follows: during the iteration, start from A and query all distribution organizations from top to bottom to ensure that there is no repeated query. When the attribute of the organization is 5, it means that the organization is a branch, and it is regarded as a leaf node. The iteration ends and the relevant information is stored in the distribution result set. The specific content of the distribution result set can be referred to Figure 2 .exist Figure 2 In the example, considering that leaf packets are sealed first, when sorting and displaying, leaf nodes can be displayed first, and the iteration levels can be displayed in order from bottom to top.
[0105] It should be emphasized that when packaging, the system needs to automatically cycle packaging according to the inventory table. The packaging volume is large, so the packaging can be designed as an asynchronous mode. Specifically, after obtaining the external input packaging task, the packaging task can be added to the asynchronous queue; after the packaging is completed, the packaging completion prompt information is output. Since the packaging is to package all bank cards applied for by all outlets of the packaging organization, after receiving the external input packaging task, it can also be detected whether the packaging organization has an executing packaging task. If so, the corresponding prompt is output.
[0106] For example, when the teller at the front desk submits a packaging task, the background checks whether the packaging agency has an ongoing packaging task. If so, it outputs: The current packaging task has not been completed, please wait. to remind the teller. At the same time, the system will add the packaging task submitted by the teller to the asynchronous queue. After the packaging operation steps are completed, the teller is notified in the form of a message that the packaging task has been completed.
[0107] Step 206, packing the items layer by layer according to the delivery result set.
[0108] It should be understood that since the distribution result set contains the hierarchical relationship of all organizations from the packaging organization to the outlets, the items can be packaged layer by layer according to the distribution result set.
[0109] Figure 3 Schematically shows Figure 1 A detailed flow chart of an embodiment of step 206 is shown in FIG. Figure 3 As shown, in a specific implementation, layer-by-layer packetization can be implemented according to the following steps:
[0110] Step 2061: Search the first subordinate organization of the packaging organization from the distribution result set.
[0111] It should be understood that the first subordinate organization of the packaging organization refers to a subordinate organization that has a direct distribution relationship with the packaging organization. The first subordinate organization can be found according to the iterative level field in the distribution result set.
[0112] by Figure 2 Taking the distribution result set in as an example, by querying the organization with iteration level 1, it can be determined that the first subordinate organizations of the packaging organization A are: A, B, F.
[0113] Step 2062: Determine the leaf organization of the first subordinate organization based on the distribution result set.
[0114] It should be understood that the leaf organization refers to the organization corresponding to the leaf node, and the leaf organization is a network point. According to the iterative query of the distribution result set of the first subordinate organization, the leaf organization of each first subordinate organization can be determined.
[0115] Step 2063: Determine whether the item application quantity of the leaf organization is zero;
[0116] Step 2064: When the item application quantity is not zero, the items are packaged layer by layer starting from the leaf mechanism;
[0117] Step 2065: When the item request quantity is zero, no packaging is performed.
[0118] It should be understood that the number of items requested by the leaf organization can be determined from the inventory table. When the item request data of the leaf organization is zero, it indicates that the branch has not requested any items, and therefore packaging is not required. When the item request data is not zero, the items need to be packaged layer by layer starting from the leaf organization. During the packaging process, the package number of each layer can be recorded in the order of packaging, and a hierarchical mapping table can be generated based on the package number to record the link relationship between packages.
[0119] It should be noted that, since the same institution may have both the attributes of a safe and an outlet, a first key-value pair and a second key-value pair may be created during the packaging process, wherein the first key-value pair indicates an institution whose attributes are an outlet or a safe, and the second key-value pair indicates an institution whose attributes are an outlet and a safe; determine the current package number and the current institution; search the first parent institution of the current institution from the distribution result set; and assign values to the first key-value pair or the second key-value pair according to the current package number and the first parent institution.
[0120] For example, the packaging mechanism is A, and the distribution relationship of A in the distribution relationship table includes: AFDD, the first key-value pair is recorded as insidPktMap, and the second key-value pair is recorded as mixedInsidPktMap. The packaging process is as follows:
[0121] [The traversed delivery entry is: card collection agency = D delivery agency = D]
[0122] [Distribution tree with card collection agency inventory: card collection agency = D distribution agency = D]
[0123] [Insert packet list, packet number: 1, organization is D]
[0124] [Insert packet list, packet number: 2, organization is D]
[0125] [The current insidPktMap content is: {"D":"1"}]
[0126] [The current content of mixedInsidPktMap is: {"D":2"}]
[0127] [Insert layer mapping table, packet number: 1, upper layer packet number: 2]
[0128] [The leaf nodes under node D are ["D"]]
[0129] [Node D has inventory]
[0130] [Insert packet list, packet number: 3, organization is F]
[0131] [The current insidPxtMap content is: {"F":"3","D":"1"}]
[0132] [The current content of mixedInsidPktMap is: {"D":2"}]
[0133] [Insert layer mapping table, packet number: 2, upper layer packet number: 3]
[0134] The above inventory table is formed based on the information of bank cards applied for by the outlets. The inventory table can be designed with reference to the following Table 1:
[0135] Table 1
[0136]
[0137] The above packet table is the table of the top-level packet. The packet table can be designed with reference to the following Table 2:
[0138] Table 2
[0139] Fields describe Remark Pkt_ID Packet Number Kep_InsID Custodian Number GtCrd_InsID Card issuing institution number Card application outlets Pkt_InsNo Packet organization number Pkt_Inst_Nm Name of Packaging Agency Dpckt_InsID Unpacking agency number Dpckt_Inst_Nm Name of unpacking agency Pkt_Dt Packet Date Pkt_Tm Packet time Dpckt_Dt Unpacking date Dpckt_Tm Unpacking time Pkt_TrID Packet teller number Dpckt_TrID Unpacking teller number Seal_Rvw_Stff_ID Seal reviewer number Seal_Hdl_Stff_ID Sealing agent number Seal_Rtfd_Stff_ID Seal Approval Person Number Pkt_StCd Packet status code 01-Packing 02-Unpacking Last_Udt_Dt_Tm #Last updated date and time
[0140] The above-mentioned hierarchical mapping table is a table that represents the relationship between packages. The hierarchical mapping table can be designed with reference to the following Table 3:
[0141] Table 3
[0142]
[0143]
[0144] In addition, due to the difference in information between leaf packages and top-level packages, a separate table for leaf packages can be created. The design can refer to Table 4 below:
[0145] Table 4
[0146] Fields describe Remark Pkt_ID Packet Number Leaf package number Seq_No Sequence Number Blg_InsID Organization Number Card Collection Points IpOpR_Sdvn_Cd Important operating resource category code IpOpR_PD_ID Important Operational Resources Product Number Card product number IpOpR_PD_Nm Name of important operating resources product Pkt_Num Number of packets Beg_Num Starting number Remove the check digit from the starting card number CtOf_No Cut-off number Remove the check digit from the number segment ending card number Last_Udt_Dt_Tm #Last updated date and time
[0147] Step 208, when the packaging mode is the second mode, in response to the packaging request of the distribution organization, determine the items to be packaged.
[0148] It should be noted that card packaging only requires sealing one layer of packaging, so the focus is not on the packaging operation, but on finding out which items can be packaged by the card, that is, it is necessary to determine the items to be packaged.
[0149] Figure 4 Schematically shows Figure 1 A detailed flow chart of step 208 of an embodiment. Figure 4 As shown, the items to be packaged can be determined according to the following steps:
[0150] Step 2081: Determine the distribution agency based on the package request.
[0151] Step 2082: Determine whether the distribution organization is a network point.
[0152] In a specific implementation, the distribution agency can send a packaging request to the packaging agency. The packaging agency determines whether the distribution agency is a network point based on the packaging request, and adopts different schemes to determine the items to be packaged based on the attributes of the distribution agency.
[0153] Step 2083: When the distribution organization is a branch, obtain the inventory list of the items.
[0154] Step 2084: Determine the first inventory record of the distribution organization in the inventory table.
[0155] Step 2085: Determine the items to be packaged according to the first inventory record.
[0156] In one example, when the attribute of the distribution organization is a network point, the inventory record of the network point can be directly queried from the inventory table, and then the card packaging is performed according to the queried inventory record.
[0157] Step 2083': When the distribution organization is not a network point, obtain a distribution relationship table, wherein the distribution relationship table is established based on the distribution hierarchical relationship of the organization.
[0158] Step 2084': Determine the network point set corresponding to the distribution organization according to the distribution relationship table.
[0159] Step 2085': Get the inventory table of the item.
[0160] Step 2086': Determine the second inventory record of the network point set in the inventory table.
[0161] Step 2087': Determine the items to be packaged according to the second inventory record.
[0162] In another example, when the distribution organization is not an outlet, it is necessary to determine the outlet set corresponding to the distribution organization through iterative query, then query the inventory records of the outlet set from the inventory table, and perform card packaging based on the queried inventory records.
[0163] In the specific implementation, the outlet set can be determined by the following steps: iteratively query the distribution relationship table according to the distribution agency until the queried agency is an outlet; all the queried outlets are regarded as the outlet set, and the iterative query ends. The specific code is as follows:
[0164]
[0165]
[0166] Among them, the inventory table is stored in InstMdupAlCIBRgstBook, blg_insid is the card collection outlet, and it is necessary to query which leaf-level outlets the distribution agency has to obtain the outlet set.
[0167] For example, if the packaging organization is A, the distribution organization is the vault B, and the card collection outlets in the inventory table are B, C, D, and E, among which B and D have both vault and outlet attributes, and the distribution relationship is ABB, ABC, ABDD, and ABDE, the process of determining the outlet set is as follows:
[0168] Starting from distribution agency B, the distribution relationship table is queried from top to bottom until the queried agency is terminated as a network point, and the queried network point set B, C, D, and E are obtained.
[0169] Step 210, packaging the items to be packaged.
[0170] In the process of packing the items to be packed, the packing number and the top packing number can also be determined; a hierarchical mapping table is generated according to the packing number, the top packing number and the distribution mechanism. The specific design of the hierarchical mapping table can refer to Table 3, which will not be repeated here.
[0171] It should be noted that, since the card package only packages one layer, the package number and the upper layer package number in its layer mapping table are both 0.
[0172] In addition, the packet mechanism can also determine the packet status and generate a packet table according to the packet number, the top-level packet number and the packet status. The specific design of the packet table can refer to Table 2 and will not be repeated here.
[0173] In the process of card packaging, the synchronization problem needs to be considered to avoid the same bank card being sealed in different packages. To solve this problem, the current level mapping table of the items to be packaged can be obtained; the current top-level package number of the current level mapping table can be determined; the packaging table with the packaging status of packaging and the top-level package number of the current top-level package number can be searched; if the search fails, the items to be packaged can be packaged.
[0174] That is to say, if the status of the package with the same top-level package number as the current top-level package number of the item to be packaged in the package table is not packaged but unpacked, the item to be packaged can be packaged; if the status is packaged, the item to be packaged cannot be packaged.
[0175] The embodiment of the present application provides two storage modes for the centralized storage of items: the first mode is called package-to-package, and the second mode is called card-to-package. Package-to-package is suitable for the mode in which the packaging mechanism has a sorting machine. The machine directly sorts once, and the subordinate mechanism only needs to bear the responsibility of distribution without secondary sorting; card-to-package is suitable for the packaging mechanism that does not want to sort layer by layer, and the work of sorting layer by layer is allocated to the subordinate distribution mechanism. The packaging mechanism only needs to determine the items needed by the outlets of the distribution mechanism, and seal these items in a layer and give them to the distribution mechanism, and then the distribution mechanism reselects the packaging mode for storage or distribution. Due to the large number of bank outlets and the large number of application channels for items such as bank cards, the bank distribution hierarchy is complex (such as the existence of vaults and outlets with the same institution number), so it is necessary to consider how to correctly and quickly locate the card collection outlet when packaging. By applying an iterative algorithm to the packaging mode, the present application can not only circulate at a high speed, but also accurately locate the exit, thereby achieving correct and fast packaging. By performing the above-mentioned packaging process on the items, the unified and standardized storage of the items is achieved. After receiving the packages, the distribution agency can quickly locate them to the next agency without the need for secondary sorting, which reduces the sorting pressure and improves the sorting efficiency.
[0176] Figure 5 The flowchart of another embodiment of the method for item management according to the embodiment of the present application is schematically shown. Figure 5 As shown, in another embodiment of the present application, the method for item management may further include the following steps:
[0177] Step 220: In response to the delivery request from the delivery organization, determine the top package of the package to be delivered.
[0178] It should be understood that after the packaging is completed, the current organization will query the top-level package of the package to be distributed according to the distribution request of the distribution organization. The query rule can be: the status of the package in the package table is "packaging", and the corresponding package number in the hierarchical mapping table is 0, or the status of the upper package in the hierarchical mapping table is "unpacking". Select to generate a transfer order and distribute it to the lower-level organization.
[0179] Step 230: Unpack the top-level package.
[0180] After the subordinate organization receives the transfer order for the package and verifies it for storage, the current organization will automatically unpack the top package, that is, the top package in the package table is set to "unpack". The purpose of this distribution mode is to allow the subordinate organization to automatically unpack the top package after receiving the package escorted by the superior organization, so that the subordinate organization does not need to sort it twice, and the unpacked package has already been sorted by the superior organization.
[0181] Taking the package to be delivered as a package, the delivery relationship is AFDD, and the package numbers are 0-3-2-1 in sequence as an example, the delivery principle of the embodiment of the present application is explained:
[0182] The top package found in vault A is numbered 3. After vault F receives the package, the top package is automatically removed. Vault F sees the top package as numbered 2 and determines that the package needs to be delivered to vault D.
[0183] The top package found in vault F has a package number of 2. After vault D receives the package, the top package is automatically removed. Vault D sees the top package as package number 1 and determines that the package needs to be delivered to branch D with the same institution number;
[0184] What the outlet D receives is the item that the customer applied for at the outlet, and the customer can be notified to pick up the item.
[0185] The embodiment of the present application can realize automatic unpacking and quickly locate the next delivery agency through the above-mentioned delivery mode. The delivery agency can perform secondary delivery after simply checking the information of the top package, thereby avoiding delivery and sorting errors, improving delivery speed, and shortening the time for customers to pick up items.
[0186] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0187] An embodiment of the present application provides a machine-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned method for item management is implemented.
[0188] An embodiment of the present application provides a processor, which is used to run a program, wherein the program executes the above-mentioned method for item management when it is running.
[0189] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: determining a packing mode for an item; when the packing mode is a first mode, determining a distribution result set of a packing mechanism; packing the items layer by layer according to the distribution result set; when the packing mode is a second mode, determining items to be packed in response to a packing request of the distribution mechanism; and packing the items to be packed.
[0190] In one embodiment, a distribution relationship table is obtained, wherein the distribution relationship table is established based on the distribution hierarchy relationship of the organization; the distribution relationship table is iteratively queried to determine the distribution link pair of the packaging organization, wherein the distribution link pair includes the superior organization and the subordinate organization; the iteration level of the iterative query is recorded; it is determined whether the subordinate organization is an outlet; if the subordinate organization is an outlet, the iterative query is terminated; and a distribution result set is generated based on the distribution link pair determined by each iterative query and the recorded iteration level.
[0191] In one embodiment, the first subordinate organization of the packaging organization is searched from the distribution result set; the leaf organization of the first subordinate organization is determined according to the distribution result set; it is determined whether the item application quantity of the leaf organization is zero; if the item application quantity is not zero, the items are packaged layer by layer starting from the leaf organization; if the item application quantity is zero, no packaging is performed.
[0192] In one embodiment, the packet number of each layer is recorded in packet order; and a layer mapping table is generated according to the packet number.
[0193] In one embodiment, a first key-value pair and a second key-value pair are created, wherein the first key-value pair indicates an institution whose attributes are an outlet or a safe, and the second key-value pair indicates an institution whose attributes are an outlet and a safe; the current package number and the current institution are determined; the first parent institution of the current institution is searched from the distribution result set; and the first key-value pair or the second key-value pair is assigned a value according to the current package number and the first parent institution.
[0194] In one embodiment, when the packaging mode is the first mode, an externally input packaging task is obtained; the packaging task is added to an asynchronous queue; and after the packaging is completed, a packaging completion prompt message is output.
[0195] In one embodiment, a distribution agency is determined based on a packaging request; whether the distribution agency is an outlet is determined; if the distribution agency is an outlet, an inventory list of items is obtained; a first inventory record of the distribution agency in the inventory list is determined; and items to be packaged are determined based on the first inventory record.
[0196] In one embodiment, when the distribution agency is not an outlet, a distribution relationship table is obtained, wherein the distribution relationship table is established based on the distribution hierarchy relationship of the agency; the set of outlets corresponding to the distribution agency is determined based on the distribution relationship table; an inventory table of items is obtained; a second inventory record of the set of outlets in the inventory table is determined; and the items to be packaged are determined based on the second inventory record.
[0197] In one embodiment, the distribution relationship table is iteratively queried according to the distribution agencies until the queried agency is an outlet; all the queried outlets are taken as an outlet set, and the iterative query ends.
[0198] In one embodiment, a packet number and a top-level packet number are determined; and a hierarchical mapping table is generated according to the packet number, the top-level packet number, and the distribution mechanism.
[0199] In one embodiment, a packet status is determined; and a packet table is generated according to the packet number, the top-level packet number, and the packet status.
[0200] In one embodiment, the current level mapping table of the items to be packaged is obtained; the current top-level package number of the current level mapping table is determined; the package table whose package status is packaged and the top-level package number is the current top-level package number is searched; if the search fails, the items to be packaged are packaged.
[0201] In one embodiment, in response to a delivery request from a delivery organization, a top package of packages to be delivered is determined; and the top package is unpacked.
[0202] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0203] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0206] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0207] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0208] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0209] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0210] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for item management, characterized in that: include: Determine the packaging mode of the item; When the packaging mode is the first mode, determining a distribution result set of the packaging mechanism; Packing the items layer by layer according to the delivery result set; In the case where the packaging mode is the second mode, in response to a packaging request from a distribution agency, determining items to be packaged; Packaging the items to be packed; The distribution result set of the package packaging mechanism is determined, including: Obtaining a distribution relationship table, wherein the distribution relationship table is established based on the distribution hierarchical relationship of the organization; Iteratively querying the distribution relationship table to determine a distribution link pair of the packaging mechanism, wherein the distribution link pair includes a superior mechanism and a subordinate mechanism; Record the iteration level of iterative queries; Determining whether the subordinate organization is an outlet; In the case where the subordinate organization is a network point, terminating the iterative query; Generate a delivery result set according to the delivery link pairs determined by each iterative query and the recorded iteration levels; The step of packing the items layer by layer according to the delivery result set includes: Searching the first subordinate organization of the packaging organization from the distribution result set; Determining a leaf organization of the first subordinate organization according to the distribution result set; determining whether the item request quantity of the leaf mechanism is zero; When the item application quantity is not zero, the items are packaged layer by layer starting from the leaf mechanism; If the requested quantity of the item is zero, no packaging will be performed; The step of determining the items to be packaged comprises: determining the distribution organization according to the package request; Determining whether the distribution organization is an outlet; In the case where the distribution organization is a network point, obtaining an inventory list of the items; determining a first inventory record for the delivery organization in the inventory table; Items to be packaged are determined according to the first inventory record.
2. The method according to claim 1, characterized in that: Also includes: Record the packet number of each layer in the order of packets; A level mapping table is generated according to the packet number.
3. The method according to claim 1, characterized in that Also includes: Creating a first key-value pair and a second key-value pair, wherein the first key-value pair indicates an institution whose attribute is a branch or a vault, and the second key-value pair indicates an institution whose attribute is a branch and a vault; Determine the current packet number and current organization; Find the first superior organization of the current organization from the distribution result set; Assign a value to the first key-value pair or the second key-value pair according to the current packet number and the first superior organization.
4. The method according to claim 1, characterized in that: Also includes: When the packaging mode is the first mode, obtaining a packaging task input externally; Add the packaging task to the asynchronous queue; After the packaging is completed, a packaging completion prompt message is output.
5. The method according to claim 1, characterized in that: Also includes: In the case where the distribution organization is not a network point, obtaining a distribution relationship table, wherein the distribution relationship table is established based on the distribution hierarchical relationship of the organization; Determine the network point set corresponding to the distribution organization according to the distribution relationship table; Get an inventory list of said item; Determine a second inventory record of the set of outlets in the inventory table; Items to be packaged are determined according to the second inventory record.
6. The method according to claim 5, characterized in that The determining the network point organization corresponding to the distribution organization according to the distribution relationship table includes: Iteratively querying the distribution relationship table according to the distribution organization until the organization found to be a network point; All the queried network points are regarded as a network point set, and the iterative query ends.
7. The method according to claim 5, characterized in that Also includes: Determine the packet number and top-level packet number; A hierarchical mapping table is generated according to the packet number, the top-level packet number and the distribution mechanism.
8. The method according to claim 6, characterized in that Also includes: Determine the packet status; A packet table is generated according to the packet number, the top-level packet number and the packet status.
9. The method according to claim 8, characterized in that Also includes: Obtaining the current level mapping table of the items to be packaged; Determining a current top-level packet number of the current level mapping table; Searching for a packet table in which the packet status is packet and the top-level packet number is the current top-level packet number; In case of search failure, the items to be packaged are packaged.
10. The method according to claim 1, characterized in that Also includes: In response to a delivery request from a delivery organization, determining a top package of packages to be delivered; The top package is unpacked.
11. A processor, characterized in that: The method is configured to execute the method for item management according to any one of claims 1 to 10.
12. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the processor is configured to perform the method for item management according to any one of claims 1 to 10.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for item management according to any one of claims 1 to 10.
