Transaction control method, device, electronic device and storage medium
By obtaining the transaction contract group and determining whether the execution characteristic value reaches the upper limit of the procurement characteristic, controlling the freezing or performance of the transaction contract, the problem of transaction risks in e-commerce bidding and procurement is solved, and the balanced control and risk reduction of the transaction contract is achieved.
Patent Information
- Application Number
- CN202111148593.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-09-29
AI Technical Summary
In the process of e-commerce bidding and procurement, how to manage transactions to reduce transaction risks is an urgent issue to be solved.
By obtaining the transaction contract group and determining whether the execution characteristic value of the transaction contract reaches the upper limit of the procurement characteristic of different stages when each time acquiring the transaction contract is obtained, the freezing or performance of the transaction contract is controlled, thereby achieving balanced control of multiple transaction contracts.
This method can effectively avoid malicious behavior in the procurement process, reduce transaction risks, and achieve balanced control of transaction contracts.
Smart Images

Figure CN113888264B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of transaction management, and in particular to a transaction management and control method, device, electronic device and storage medium. Background Art
[0002] In recent years, e-commerce bidding and procurement has been widely used in modern enterprise material bidding and procurement as a procedural, standardized and open procurement method.
[0003] However, how to conduct transaction control and reduce transaction risks during the procurement process has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present application provide a transaction control method, device, electronic device and storage medium to achieve the purpose of reducing transaction risks. The technical solution is as follows:
[0005] A transaction control method, comprising:
[0006] Acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in an execution state;
[0007] When the state of the transaction contract group is the execution state, when each purchase order for the commodity in the first transaction contract is obtained, determining the execution characteristic value of the first transaction contract based on the purchase order, the first transaction contract being any one of the transaction contracts in the transaction contract group;
[0008] Determining whether the execution characteristic value of the first transaction contract reaches a target stage procurement characteristic upper limit value, where the target stage procurement characteristic upper limit value is one of a plurality of stage procurement characteristic upper limits set for the transaction contract group;
[0009] If the target stage procurement characteristic upper limit value is reached, determining whether the execution characteristic values of other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage procurement characteristic upper limit value respectively;
[0010] If the upper limit of the target stage procurement characteristics is not reached, the first transaction contract is frozen;
[0011] If the execution characteristic value of at least one transaction contract among the other transaction contracts except the first transaction contract reaches the target stage procurement characteristic upper limit value, it is determined whether the execution characteristic value reaching the target stage procurement characteristic upper limit value reaches the next stage procurement characteristic upper limit value, and the next stage procurement characteristic upper limit value is the sum of the target stage procurement characteristic upper limit value and the set procurement characteristic threshold value;
[0012] If the execution characteristic values that have reached the upper limit of the purchase characteristic of the target stage have not reached the upper limit of the purchase characteristic of the next stage, then each second transaction contract in the transaction contract group is restored to the execution state, and the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the upper limit of the purchase characteristic of the first target stage, and the upper limit of the purchase characteristic of the first target stage is the minimum value of the multiple stage purchase characteristic upper limits set for the transaction contract group;
[0013] If there is an execution characteristic value that has reached the upper limit value of the procurement characteristics of the next stage, then each third transaction contract is restored to the execution status. The third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the upper limit value of the procurement characteristics of the second target stage. The upper limit value of the procurement characteristics of the second target stage is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the upper limit value of the procurement characteristics of the next stage.
[0014] Optionally, the method further includes:
[0015] When the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired state, determining whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage;
[0016] If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, then each second transaction contract in the transaction contract group is restored to the execution status, and the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the upper limit value of the procurement characteristic of the first target stage. The upper limit value of the procurement characteristic of the first target stage is the minimum value of the multiple stage procurement characteristic upper limits set for the transaction contract group.
[0017] Optionally, determining the execution characteristic value of the first transaction contract based on the purchase requisition includes:
[0018] Based on the purchase requisition, determining a valid purchase requisition amount;
[0019] The valid historical order amount of the first transaction contract is obtained, and the sum of the valid purchase requisition amount and the valid historical order amount is used as the total transaction contract execution amount.
[0020] Optionally, determining the execution characteristic value of the first transaction contract based on the purchase requisition includes:
[0021] Based on the purchase requisition, determining the effective purchase quantity of each commodity in the purchase requisition;
[0022] Acquire valid historical orders for the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders;
[0023] The latest quantity of each commodity in the valid historical order is used as the execution feature value.
[0024] A transaction control device, comprising:
[0025] An acquisition module, used for acquiring a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in an execution state;
[0026] a first determining module, configured to determine, when the state of the transaction contract group is an execution state, an execution characteristic value of the first transaction contract based on each purchase order for commodities in the first transaction contract obtained, wherein the first transaction contract is any one of the transaction contracts in the transaction contract group;
[0027] A first judgment module is used to judge whether the execution characteristic value of the first transaction contract reaches a target stage procurement characteristic upper limit value, where the target stage procurement characteristic upper limit value is one of a plurality of stage procurement characteristic upper limits set for the transaction contract group;
[0028] A second judgment module is used to judge whether the execution characteristic values of other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage procurement characteristic upper limit value respectively if the target stage procurement characteristic upper limit value is reached;
[0029] A freezing module, used for freezing the first transaction contract if the upper limit value of the procurement characteristic of the target stage is not reached;
[0030] A third judgment module is used to judge whether the execution characteristic value reaching the upper limit value of the procurement characteristic of the target stage reaches the upper limit value of the procurement characteristic of the next stage if the execution characteristic value of at least one of the other transaction contracts except the first transaction contract reaches the upper limit value of the procurement characteristic of the target stage, and the upper limit value of the procurement characteristic of the next stage is the sum of the upper limit value of the procurement characteristic of the target stage and the set procurement characteristic threshold value;
[0031] A first recovery module is used for recovering each second transaction contract in the transaction contract group to a fulfillment state if all execution characteristic values reaching the target stage procurement characteristic upper limit value do not reach the next stage procurement characteristic upper limit value, wherein the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the first target stage procurement characteristic upper limit value, and the first target stage procurement characteristic upper limit value is the minimum value among multiple stage procurement characteristic upper limits set for the transaction contract group;
[0032] The second recovery module is used to restore each third transaction contract to the execution state if there is an execution characteristic value that has reached the upper limit value of the next stage procurement characteristic. The third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the second target stage procurement characteristic upper limit value. The second target stage procurement characteristic upper limit value is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the next stage procurement characteristic upper limit value.
[0033] Optionally, the device further comprises:
[0034] a fourth judgment module, configured to judge, when the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired status, whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage;
[0035] If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, the first recovery module is executed to restore each second transaction contract in the transaction contract group to a fulfillment state.
[0036] Optionally, the first determining module is specifically configured to:
[0037] Based on the purchase requisition, determining a valid purchase requisition amount;
[0038] The valid historical order amount of the first transaction contract is obtained, and the sum of the valid purchase requisition amount and the valid historical order amount is used as the total transaction contract execution amount.
[0039] Optionally, the first determining module is specifically configured to:
[0040] Based on the purchase requisition, determining the effective purchase quantity of each commodity in the purchase requisition;
[0041] Acquire valid historical orders for the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders;
[0042] The latest quantity of each commodity in the valid historical order is used as the execution feature value.
[0043] An electronic device, comprising:
[0044] Memory and processor;
[0045] A memory for storing at least one set of instructions;
[0046] A processor is used to call and execute the instruction set in the memory, and execute any one of the transaction control methods described above by executing the instruction set.
[0047] A storage medium stores a computer program for implementing any one of the transaction control methods described above, wherein the computer program is executed by a processor to implement any one of the transaction control methods described above.
[0048] Compared with the prior art, the beneficial effects of this application are:
[0049] In the present application, by obtaining a transaction contract group, each time a purchase requisition for goods in the first transaction contract is obtained, it is determined whether each transaction contract in the transaction contract group has reached the upper limit of the procurement characteristics at different stages, so as to control the freezing or performance of the transaction contract, achieve balanced control of multiple transaction contracts, avoid malicious behavior in the procurement process, and reduce transaction risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 any creative labor.
[0051] Figure 1 This is a flow chart of a transaction control method provided in Example 1 of the present application;
[0052] Figure 2 This is a flow chart of a transaction control method provided in Example 2 of the present application;
[0053] Figure 3 This is a flow chart of a transaction control method provided in Example 3 of the present application;
[0054] Figure 4 It is a logical structure diagram of a transaction control device provided by this application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] Reference Figure 1 , is a flow chart of a transaction control method provided in Example 1 of the present application, such as Figure 1 As shown, the method may include but is not limited to the following steps:
[0058] Step S11: Acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in the execution state.
[0059] Step S12: when the state of the transaction contract group is the execution state, when each purchase order for the commodity in the first transaction contract is obtained, determining the execution characteristic value of the first transaction contract based on the purchase order.
[0060] The execution characteristic value of the first transaction contract can at least represent the characteristics that the first transaction contract has been executed.
[0061] The first transaction contract is any one of the transaction contracts in the transaction contract group.
[0062] Step S13: Determine whether the execution characteristic value of the first transaction contract reaches the upper limit value of the procurement characteristic in the target stage.
[0063] In this embodiment, multiple stage purchase feature upper limits can be set for the transaction contract group, and the purchase feature upper limits of each stage are different. The purchase feature upper limit of each stage can be obtained by calculating the purchase feature upper limit of the previous stage and the set feature threshold. For example, the sum of the purchase feature upper limit of the previous stage and the set feature threshold is used as the purchase feature upper limit of the stage.
[0064] The target stage procurement feature upper limit value is one of a plurality of stage procurement feature upper limits set for the transaction contract group;
[0065] If yes, execute step S14; if no, no processing is required and the first transaction contract can continue to be performed.
[0066] Step S14: determining whether the execution characteristic values of the other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage procurement characteristic upper limit values respectively;
[0067] If none of the above target stage procurement feature upper limit values are reached, execute step S15; if the execution feature value of at least one transaction contract other than the first transaction contract reaches the target stage procurement feature upper limit value, execute step S16.
[0068] Step S15: Freeze the first transaction contract;
[0069] Step S16, determining whether the execution characteristic value that reaches the upper limit value of the procurement characteristic of the target stage reaches the upper limit value of the procurement characteristic of the next stage.
[0070] The upper limit value of the purchase feature in the next stage is the sum of the upper limit value of the purchase feature in the target stage and the set purchase feature threshold value;
[0071] If the execution characteristic values that have reached the upper limit of the procurement characteristic of the target stage have not reached the upper limit of the procurement characteristic of the next stage, execute step S17; if there is an execution characteristic value that has reached the upper limit of the procurement characteristic of the next stage, execute step S18.
[0072] Step S17, restore each second transaction contract in the transaction contract group to the execution status, the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the first target stage procurement characteristic upper limit value, and the first target stage procurement characteristic upper limit value is the minimum value of multiple stage procurement characteristic upper limits set for the transaction contract group.
[0073] Step S18, restore each third transaction contract to the execution status, the third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the second target stage procurement characteristic upper limit value, and the second target stage procurement characteristic upper limit value is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the next stage procurement characteristic upper limit value.
[0074] In this embodiment, when the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired state, it can also be determined whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage;
[0075] If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, step S17 is executed.
[0076] In the present application, by obtaining a transaction contract group, each time a purchase requisition for goods in the first transaction contract is obtained, it is determined whether each transaction contract in the transaction contract group has reached the upper limit of the procurement characteristics at different stages, so as to control the freezing or performance of the transaction contract, achieve balanced control of multiple transaction contracts, avoid malicious behavior in the procurement process, and reduce transaction risks.
[0077] As another optional embodiment of the present application, refer to Figure 2 , is a flow chart of a transaction control method provided in Example 2 of the present application. This embodiment is mainly a detailed solution of the transaction control method described in Example 1 above, such as Figure 2 As shown, the method may include but is not limited to the following steps:
[0078] Step S21: Acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in the execution state;
[0079] Step S22: when the transaction contract group is in the execution state, when each purchase order for the commodity in the first transaction contract is obtained, determine the effective purchase order amount based on the purchase order.
[0080] The first transaction contract is any one of the transaction contracts in the transaction contract group.
[0081] Step S23: Obtain the valid historical order amount of the first transaction contract, and use the sum of the valid purchase requisition amount and the valid historical order amount as the total transaction contract execution amount.
[0082] Steps S22-S23 are a specific implementation of step S12 in Example 1.
[0083] Step S24: determine whether the total transaction contract execution amount of the first transaction contract reaches the upper limit of the purchase amount in the target stage.
[0084] In this embodiment, multiple stage purchase amount upper limits can be set for the transaction contract group, and the purchase amount upper limits for each stage are different. The purchase amount upper limit for each stage can be obtained by calculating the purchase amount upper limit for the previous stage and the set amount threshold. For example, the sum of the purchase amount upper limit for the previous stage and the set amount threshold is used as the purchase amount upper limit for this stage.
[0085] It should be noted that the upper limit of the purchase amount at each stage shall not be greater than the total transaction contract amount set for the transaction contract group. The proportion of the upper limit of the purchase amount at each stage shall not be greater than 100%. Among them, the proportion of the upper limit of the stage purchase amount is the value obtained by dividing the upper limit of the stage purchase amount by the total transaction contract amount.
[0086] The target stage purchase amount upper limit value is one of a plurality of stage purchase amount upper limits set for the transaction contract group.
[0087] If yes, execute step S25; if no, no processing is required and the first transaction contract can continue to be performed.
[0088] Step S24 is a specific implementation of step S13 in Example 1.
[0089] Step S25: determining whether the total execution amount of the transaction contracts other than the first transaction contract in the transaction contract group has reached the upper limit of the purchase amount in the target stage;
[0090] If the upper limit of the purchase amount in the target stage has not been reached, step S26 is executed; if the total transaction contract execution amount of at least one transaction contract other than the first transaction contract reaches the upper limit of the purchase amount in the target stage, step S27 is executed.
[0091] Step S25 is a specific implementation of step S14 in Example 1.
[0092] Step S26: Freeze the first transaction contract;
[0093] Step S27: Determine whether the total amount of the transaction contract execution that has reached the upper limit of the purchase amount in the target stage has reached the upper limit of the purchase amount in the next stage.
[0094] The upper limit value of the procurement characteristics in the next stage is the sum of the upper limit value of the procurement characteristics in the target stage and the set procurement characteristics threshold.
[0095] If the total execution amount of the transaction contracts that have reached the upper limit of the purchase amount in the target stage has not reached the upper limit of the purchase amount in the next stage, execute step S28; if there is a total execution amount of the transaction contracts that has reached the upper limit of the purchase amount in the next stage, execute step S29.
[0096] Step S27 is a specific implementation of step S16 in Example 1.
[0097] Step S28, restore each second transaction contract in the transaction contract group to the execution status, the second transaction contract is a frozen transaction contract whose total transaction contract execution amount is not greater than the upper limit value of the purchase amount in the first target stage, and the upper limit value of the purchase amount in the first target stage is the minimum value of the multiple stage purchase amount upper limits set for the transaction contract group.
[0098] Step S28 is a specific implementation of step S17 in Example 1.
[0099] Step S29, restore each third transaction contract to the execution status, the third transaction contract is a frozen transaction contract in the transaction contract group whose total execution amount of transaction contracts is not greater than the upper limit of the purchase amount in the second target stage, and the upper limit of the purchase amount in the second target stage is the minimum value of the stage purchase amount upper limit that has not been reached by other transaction contracts except the transaction contract that has reached the upper limit of the purchase amount in the next stage.
[0100] Step S29 is a specific implementation of step S18 in Example 1.
[0101] In the present application, by obtaining a transaction contract group, each time a purchase requisition for goods in the first transaction contract is obtained, it is determined whether each transaction contract in the transaction contract group has reached the upper limit of the purchase amount at different stages, so as to control the freezing or performance of the transaction contract, achieve balanced control of multiple transaction contracts, avoid malicious behavior in the procurement process, and reduce transaction risks.
[0102] As another optional embodiment of the present application, refer to Figure 3 , is a flow chart of a transaction control method provided in Example 3 of the present application. This embodiment is mainly a detailed solution of the transaction control method described in Example 1 above, such as Figure 3 As shown, the method may include but is not limited to the following steps:
[0103] Step S31: Acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in the execution state;
[0104] Step S32: when the transaction contract group is in the execution state, when each purchase order for commodities in the first transaction contract is obtained, determine the effective purchase quantity of each commodity in the purchase order based on the purchase order.
[0105] The first transaction contract is any one of the transaction contracts in the transaction contract group.
[0106] Step S33: Acquire valid historical orders of the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders;
[0107] Step S34: taking the latest quantity of each commodity in the valid historical order as an execution feature value.
[0108] Steps S32-S34 are a specific implementation of step S12 in Example 1.
[0109] Step S35: Determine whether the execution characteristic value of the first transaction contract reaches the upper limit value of the procurement characteristic in the target stage.
[0110] In this embodiment, multiple stage purchase feature upper limits can be set for the transaction contract group, and the purchase feature upper limits of each stage are different. The purchase feature upper limit of each stage can be obtained by calculating the purchase feature upper limit of the previous stage and the set feature threshold. For example, the sum of the purchase feature upper limit of the previous stage and the set feature threshold is used as the purchase feature upper limit of the stage.
[0111] The target stage procurement feature upper limit value is one of the multiple stage procurement feature upper limits set for the transaction contract group.
[0112] Correspondingly, the upper limit value of the stage purchase characteristic can be: the upper limit value of the quantity of goods purchased in the stage.
[0113] If yes, execute step S36; if no, no processing is required and the first transaction contract can continue to be performed.
[0114] Step S36, determining whether the execution characteristic values of the other transaction contracts in the transaction contract group except the first transaction contract have reached the upper limit value of the procurement characteristic in the target stage;
[0115] If none of the above target stage procurement feature upper limit values are reached, execute step S37; if the execution feature value of at least one transaction contract other than the first transaction contract reaches the target stage procurement feature upper limit value, execute step S38.
[0116] Step S37: Freeze the first transaction contract;
[0117] Step S38, determine whether the execution characteristic value that reaches the upper limit value of the procurement characteristic of the target stage reaches the upper limit value of the procurement characteristic of the next stage.
[0118] The upper limit value of the purchase feature in the next stage is the sum of the upper limit value of the purchase feature in the target stage and the set purchase feature threshold value;
[0119] If the execution characteristic values that have reached the upper limit of the procurement characteristic of the target stage have not reached the upper limit of the procurement characteristic of the next stage, execute step S39; if there is an execution characteristic value that has reached the upper limit of the procurement characteristic of the next stage, execute step S310.
[0120] Step S39, restore each second transaction contract in the transaction contract group to the execution status, the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the first target stage procurement characteristic upper limit value, and the first target stage procurement characteristic upper limit value is the minimum value of multiple stage procurement characteristic upper limits set for the transaction contract group.
[0121] Step S310, restore each third transaction contract to the execution status, the third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the second target stage procurement characteristic upper limit value, and the second target stage procurement characteristic upper limit value is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the next stage procurement characteristic upper limit value.
[0122] In the present application, by obtaining a transaction contract group, when each purchase order for goods in the first transaction contract is obtained, based on the purchase order, the valid purchase quantity of each commodity in the purchase order is determined, the valid historical order of the first transaction contract is obtained, the quantity of each commodity in the valid historical order is determined, and based on the valid purchase quantity of each commodity in the purchase order, the quantity of each commodity in the valid historical order is updated to obtain the latest quantity of each commodity in the valid historical order, and the latest quantity of each commodity in the valid historical order is used as the execution feature value, and it is judged whether each transaction contract in the transaction contract group has reached the upper limit of the quantity of purchased goods at different stages, so as to control the freezing or performance of the transaction contract, realize balanced control of multiple transaction contracts, avoid malicious behavior in the procurement process, and reduce transaction risks.
[0123] Next, the transaction control device provided in the present application is introduced. The transaction control device introduced below and the transaction control method introduced above can be referenced to each other.
[0124] See also Figure 4 The transaction control device includes: an acquisition module 100, a first determination module 200, a first judgment module 300, a second judgment module 400, a freezing module 500, a third judgment module 600, a first recovery module 700 and a second recovery module 800.
[0125] An acquisition module 100 is used to acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in an execution state;
[0126] A first determining module 200 is configured to determine an execution characteristic value of the first transaction contract based on a purchase order for a commodity in the first transaction contract when the transaction contract group is in an execution state, and when the purchase order for the commodity in the first transaction contract is obtained. The first transaction contract is any one of the transaction contracts in the transaction contract group.
[0127] A first judgment module 300 is used to judge whether the execution characteristic value of the first transaction contract reaches a target stage procurement characteristic upper limit value, where the target stage procurement characteristic upper limit value is one of a plurality of stage procurement characteristic upper limits set for the transaction contract group;
[0128] The second judgment module 400 is used to judge whether the execution characteristic values of other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage procurement characteristic upper limit value respectively if the target stage procurement characteristic upper limit value is reached;
[0129] A freezing module 500, configured to freeze the first transaction contract if the upper limit of the procurement characteristic of the target stage is not reached;
[0130] A third judgment module 600 is used to judge whether the execution characteristic value reaching the upper limit value of the procurement characteristic of the target stage reaches the upper limit value of the procurement characteristic of the next stage if the execution characteristic value of at least one of the other transaction contracts except the first transaction contract reaches the upper limit value of the procurement characteristic of the target stage, and the upper limit value of the procurement characteristic of the next stage is the sum of the upper limit value of the procurement characteristic of the target stage and the set procurement characteristic threshold value;
[0131] A first restoring module 700 is used to restore each second transaction contract in the transaction contract group to a fulfillment state if all execution characteristic values reaching the target stage procurement characteristic upper limit value do not reach the next stage procurement characteristic upper limit value, wherein the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the first target stage procurement characteristic upper limit value, and the first target stage procurement characteristic upper limit value is the minimum value among multiple stage procurement characteristic upper limits set for the transaction contract group;
[0132] The second recovery module 800 is used to restore each third transaction contract to a fulfillment state if there is an execution characteristic value that has reached the upper limit value of the next stage procurement characteristic. The third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the second target stage procurement characteristic upper limit value. The second target stage procurement characteristic upper limit value is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the next stage procurement characteristic upper limit value.
[0133] In this embodiment, the above device may further include:
[0134] a fourth judgment module, configured to judge, when the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired status, whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage;
[0135] If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, the first recovery module is executed to restore each second transaction contract in the transaction contract group to a fulfillment state.
[0136] In this embodiment, the first determining module 200 may be specifically used for:
[0137] Based on the purchase requisition, determining a valid purchase requisition amount;
[0138] The valid historical order amount of the first transaction contract is obtained, and the sum of the valid purchase requisition amount and the valid historical order amount is used as the total transaction contract execution amount.
[0139] In this embodiment, the first determining module 200 may be specifically used for:
[0140] Based on the purchase requisition, determining the effective purchase quantity of each commodity in the purchase requisition;
[0141] Acquire valid historical orders for the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders;
[0142] The latest quantity of each commodity in the valid historical order is used as the execution feature value.
[0143] In another embodiment of the present application, an electronic device is provided, including:
[0144] Memory and processor;
[0145] A memory for storing at least one set of instructions;
[0146] A processor is used to call and execute the instruction set in the memory, and execute the transaction control method introduced in any one of embodiments 1-3 by executing the instruction set.
[0147] In another embodiment of the present application, a storage medium is provided, storing a computer program for implementing the transaction control method as described in any one of Examples 1-3, and the computer program is executed by a processor to implement the transaction control method as described in any one of Examples 1-3.
[0148] It should be noted that each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0149] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic 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, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.
[0150] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0151] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer electronic device (which can be a personal computer, a server, or a network electronic device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0152] The above is a detailed introduction to a transaction control method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A transaction control method, characterized in that: include: Acquire a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in an execution state; When the state of the transaction contract group is the execution state, when each purchase order for the commodity in the first transaction contract is obtained, determining the execution characteristic value of the first transaction contract based on the purchase order, the first transaction contract being any one of the transaction contracts in the transaction contract group; Determining whether the execution characteristic value of the first transaction contract reaches a target stage procurement characteristic upper limit value, where the target stage procurement characteristic upper limit value is one of a plurality of stage procurement characteristic upper limits set for the transaction contract group; If the target stage purchase characteristic upper limit value is reached, it is determined whether the execution characteristic values of other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage purchase characteristic upper limit value respectively; the execution characteristic value is the total execution amount of the transaction contract or the latest quantity of each commodity in the valid historical order; If the upper limit of the target stage procurement characteristics is not reached, the first transaction contract is frozen; If the execution characteristic value of at least one transaction contract among the other transaction contracts except the first transaction contract reaches the target stage procurement characteristic upper limit value, it is determined whether the execution characteristic value reaching the target stage procurement characteristic upper limit value reaches the next stage procurement characteristic upper limit value, and the next stage procurement characteristic upper limit value is the sum of the target stage procurement characteristic upper limit value and the set procurement characteristic threshold value; If the execution characteristic values that have reached the upper limit of the purchase characteristic of the target stage have not reached the upper limit of the purchase characteristic of the next stage, then each second transaction contract in the transaction contract group is restored to the execution state, and the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the upper limit of the purchase characteristic of the first target stage, and the upper limit of the purchase characteristic of the first target stage is the minimum value of the multiple stage purchase characteristic upper limits set for the transaction contract group; If there is an execution characteristic value that has reached the upper limit value of the procurement characteristics of the next stage, then each third transaction contract is restored to the execution status. The third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the upper limit value of the procurement characteristics of the second target stage. The upper limit value of the procurement characteristics of the second target stage is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the upper limit value of the procurement characteristics of the next stage.
2. The method according to claim 1, characterized in that The method further comprises: When the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired state, determining whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage; If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, then each second transaction contract in the transaction contract group is restored to the execution status, and the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the upper limit value of the procurement characteristic of the first target stage. The upper limit value of the procurement characteristic of the first target stage is the minimum value of the multiple stage procurement characteristic upper limits set for the transaction contract group.
3. The method according to claim 1, characterized in that The step of determining the execution characteristic value of the first transaction contract based on the purchase requisition includes: Based on the purchase requisition, determining a valid purchase requisition amount; The valid historical order amount of the first transaction contract is obtained, and the sum of the valid purchase requisition amount and the valid historical order amount is used as the total transaction contract execution amount.
4. The method according to claim 1, characterized in that: The step of determining the execution characteristic value of the first transaction contract based on the purchase requisition includes: Based on the purchase requisition, determining the effective purchase quantity of each commodity in the purchase requisition; Acquire valid historical orders for the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders; The latest quantity of each commodity in the valid historical order is used as the execution feature value.
5. A transaction control device, characterized in that: include: An acquisition module, used for acquiring a transaction contract group, wherein the transaction contract group includes at least two transaction contracts in an execution state; a first determining module, configured to determine, when the state of the transaction contract group is an execution state, an execution characteristic value of the first transaction contract based on each purchase order for commodities in the first transaction contract obtained, wherein the first transaction contract is any one of the transaction contracts in the transaction contract group; A first judgment module is used to judge whether the execution characteristic value of the first transaction contract reaches a target stage procurement characteristic upper limit value, where the target stage procurement characteristic upper limit value is one of a plurality of stage procurement characteristic upper limits set for the transaction contract group; A second judgment module is used to judge whether the execution characteristic values of other transaction contracts in the transaction contract group except the first transaction contract have reached the target stage procurement characteristic upper limit value respectively if the target stage procurement characteristic upper limit value is reached; the execution characteristic value is the total execution amount of the transaction contract or the latest quantity of each commodity in the valid historical order; A freezing module, used for freezing the first transaction contract if the upper limit value of the procurement characteristic of the target stage is not reached; A third judgment module is used to judge whether the execution characteristic value reaching the upper limit value of the procurement characteristic of the target stage reaches the upper limit value of the procurement characteristic of the next stage if the execution characteristic value of at least one of the other transaction contracts except the first transaction contract reaches the upper limit value of the procurement characteristic of the target stage, and the upper limit value of the procurement characteristic of the next stage is the sum of the upper limit value of the procurement characteristic of the target stage and the set procurement characteristic threshold value; A first recovery module is used for recovering each second transaction contract in the transaction contract group to a fulfillment state if all execution characteristic values reaching the target stage procurement characteristic upper limit value do not reach the next stage procurement characteristic upper limit value, wherein the second transaction contract is a frozen transaction contract whose execution characteristic value is not greater than the first target stage procurement characteristic upper limit value, and the first target stage procurement characteristic upper limit value is the minimum value among multiple stage procurement characteristic upper limits set for the transaction contract group; The second recovery module is used to restore each third transaction contract to the execution state if there is an execution characteristic value that has reached the upper limit value of the next stage procurement characteristic. The third transaction contract is a frozen transaction contract in the transaction contract group whose execution characteristic value is not greater than the second target stage procurement characteristic upper limit value. The second target stage procurement characteristic upper limit value is the minimum value of the stage procurement characteristic upper limit values that have not been reached by other transaction contracts except the transaction contract that has reached the next stage procurement characteristic upper limit value.
6. The device according to claim 5, characterized in that The device also includes: a fourth judgment module, configured to judge, when the status of the fourth transaction contract in the transaction contract group is changed to a terminated or expired status, whether the execution characteristic values of other transaction contracts in the transaction contract group except the fourth transaction contract have reached the upper limit value of the procurement characteristic of the first target stage; If there is an execution characteristic value that has reached the upper limit value of the procurement characteristic of the first target stage, the first recovery module is executed to restore each second transaction contract in the transaction contract group to a fulfillment state.
7. The device according to claim 5, characterized in that The first determining module is specifically configured to: Based on the purchase requisition, determining a valid purchase requisition amount; The valid historical order amount of the first transaction contract is obtained, and the sum of the valid purchase requisition amount and the valid historical order amount is used as the total transaction contract execution amount.
8. The device according to claim 5, characterized in that The first determining module is specifically configured to: Based on the purchase requisition, determining the effective purchase quantity of each commodity in the purchase requisition; Acquire valid historical orders for the first transaction contract, determine the quantity of each commodity in the valid historical orders, and update the quantity of each commodity in the valid historical orders based on the valid purchase quantity of each commodity in the purchase requisition to obtain the latest quantity of each commodity in the valid historical orders; The latest quantity of each commodity in the valid historical order is used as the execution feature value.
9. An electronic device, characterized in that: include: Memory and processor; A memory for storing at least one set of instructions; A processor is used to call and execute the instruction set in the memory, and execute the transaction control method as described in any one of claims 1 to 4 by executing the instruction set.
10. A storage medium, characterized in that: A computer program for implementing the transaction control method according to any one of claims 1 to 4 is stored, and the computer program is executed by a processor to implement the transaction control method according to any one of claims 1 to 4.
Citation Information
Patent Citations
A method for settling project funds, a device thereof and a computer-readable storage medium
CN109146485A
Protocol inventory intelligent matching method
CN110866154A