CN110378664B - Method and device for establishing contract on line, storage medium and electronic device - Google Patents

Method and device for establishing contract on line, storage medium and electronic device Download PDF

Info

Publication number
CN110378664B
CN110378664B CN201910498282.5A CN201910498282A CN110378664B CN 110378664 B CN110378664 B CN 110378664B CN 201910498282 A CN201910498282 A CN 201910498282A CN 110378664 B CN110378664 B CN 110378664B
Authority
CN
China
Prior art keywords
signing
state
time
contract
target contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910498282.5A
Other languages
Chinese (zh)
Other versions
CN110378664A (en
Inventor
夏刚
张艳
李一诺
胡琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201910498282.5A priority Critical patent/CN110378664B/en
Publication of CN110378664A publication Critical patent/CN110378664A/en
Application granted granted Critical
Publication of CN110378664B publication Critical patent/CN110378664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services; Handling legal documents
    • G06Q50/188Electronic negotiation

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for creating contracts on line, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a creation request of a target contract through a signing channel, wherein the creation request comprises: signing requester identification, signing product identification and signing channel identification; querying a signing state of the target contract, wherein the signing state is used for indicating a current execution state of the target contract; and when the signing state is the designated state which is not effective, signing the target contract through the signing channel. The invention solves the technical problem of poor timeliness when the timing task is used for signing the target contract in the related technology, and ensures the real-time property and the accuracy of the contract.

Description

Method and device for establishing contract on line, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a method and a device for creating contracts on line, a storage medium and an electronic device.
Background
In the related art, in a platform commercialization project, after a merchant stays in a platform, functions related to value-added services provided by the platform need to be used, and a series of electronic agreement contracts are required to be signed with the platform to restrict behavior rules of the two parties.
In the related art, there are two channels for the merchant and the platform to sign: one is that the merchant signs a contract independently, the merchant can select the corresponding product to sign a contract, and the process that the merchant (the business or the individual who has business activity and gains money) cooperates with the platform to match and negotiate is the contract. The other is urban bd young second or service provider contract signing of the platform, after the bd young second or service provider successfully negotiates with the merchant on line, a product is selected for the merchant to sign on a contract signing central management page of the platform sales workbench, a pre-validated electronic contract is generated after the contract signing, the contract can be validated only after the merchant confirms to pass, and the pre-contract to be validated is generated before the contract is validated, for example, related technologies with application number of CN201810010212 disclose a method and a device for achieving electronic contract signing, and the merchant initiates and completes the contract signing of the electronic contract. In the related art, only a single channel can be used for signing, and two signing channels cannot be combined.
In the related art solution, the processing of the contract validation mode to control the validation and invalidation defects representing the contracts through the states further includes: the control state of the contract is single, the contract is difficult to support to take effect, and the confirmation overtime failure of the contract controls the contract taking-effect state to the contract failure state.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for creating contracts on line, a storage medium and an electronic device.
According to one embodiment of the invention, a method for creating contracts online is provided, which comprises the following steps: receiving a creation request of a target contract through a signing channel, wherein the creation request comprises: signing requester identification, signing product identification and signing channel identification; querying a signing state of the target contract, wherein the signing state is used for indicating a current execution state of the target contract; and when the signing state is the designated state which is not effective, signing the target contract through the signing channel.
Optionally, the receiving a request for creating a target contract through a contract signing channel includes: and receiving a first establishment request of the target contract through a first signing channel, wherein the first signing channel corresponds to the signing requester.
Optionally, when the signing status is an invalid specified status, signing the target contract through the signing channel includes one of the following: when the signing state is a to-be-validated state, sending a confirmation request to the signing requester through the first signing channel, updating the state of the target contract into a validated state after receiving the signing confirmation of the signing requester, and setting validation time and invalidation time of the target contract; and when the signing state is an unknown state, creating contract data of the target contract, setting the state of the target contract to be an effective state, and setting the effective time and the ineffective time of the target contract, wherein the contract data corresponds to the signing product.
Optionally, after querying the contract signing status of the target contract, the method further includes: and when the signing state is the effective state, sending the prompt information that the target contract has been signed to the signing requester through the first signing channel.
Optionally, the receiving a request for creating a target contract through a contract signing channel includes: and receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agency of the signing requester.
Optionally, when the signing status is an invalid designated status, signing the target contract through the signing channel includes: and when the signing state is an unknown state, establishing contract data of the target contract, forwarding a confirmation request to the signing requester through the second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the invalid time of the target contract.
Optionally, after querying the contract signing status of the target contract, the method further includes: when the signing state is an effective state, forwarding the prompt information that the target contract has been signed to the signing requester through the second signing channel; or, when the signing state is a to-be-validated state, forwarding indication information for indicating the signing requester to confirm the target contract to the signing requester through the second signing channel.
Optionally, querying the contract signing status of the target contract includes: reading contract time of the target contract and current system time, wherein the contract time comprises effective time and ineffective time; comparing the contract time and the system time; when the effective time is less than or equal to the system time and the failure time is greater than or equal to the system time, determining that the signing state of the target contract is an effective state; and when the effective time is greater than the system time or the failure time is less than the system time, determining that the signing state of the target contract is a failure state.
Optionally, querying the contract signing status of the target contract includes: reading the expected time of the target contract and the current system time, wherein the expected time comprises a pre-effective time and a pre-ineffective time; comparing the projected time to the system time; when the pre-validation time is less than or equal to the system time and the pre-invalidation time is greater than or equal to the system time, determining that the signing state of the target contract is a to-be-validated state; and when the pre-effective time is greater than the system time or the pre-failure time is less than the system time, determining that the signing state of the target contract is a cancellation state.
Optionally, when the signing state is a to-be-validated state, setting the validation time and the expiration time of the target contract includes: determining an validation mechanism for the target contract, wherein the validation mechanism comprises one of: a synchronization mechanism, a translation mechanism; when the validation mechanism is a synchronization mechanism, setting the pre-validation time and the pre-invalidation time of the target contract as the validation time and the invalidation time of the target contract respectively; and when the validation mechanism is a translation mechanism, respectively setting the validation time and the invalidation time of the target contract after adding preset time to the preset validation time and the preset invalidation time of the target contract.
According to another embodiment of the present invention, there is provided an apparatus for creating a contract online, including: the system comprises a receiving module, a contract creating module and a contract editing module, wherein the receiving module is used for receiving a creating request of a target contract through a signing channel, and the creating request comprises: signing requester identification, signing product identification and signing channel identification; the query module is used for querying the signing state of the target contract, wherein the signing state is used for indicating the current execution state of the target contract; and the signing module is used for signing the target contract through the signing channel when the signing state is a specified state which is not effective.
Optionally, the receiving module includes: the first receiving unit is configured to receive a first creation request of the target contract through a first signing channel, where the first signing channel corresponds to the signing requester.
Optionally, the subscription module includes one of: the first signing unit is used for sending a confirmation request to the signing requester through the first signing channel when the signing state is a to-be-validated state, updating the state of the target contract into a validated state after receiving the signing confirmation of the signing requester, and setting the validation time and the invalidation time of the target contract; and the second signing unit is used for creating contract data of the target contract when the signing state is an unknown state, setting the state of the target contract to be an effective state, and setting effective time and ineffective time of the target contract, wherein the contract data corresponds to the signed product.
Optionally, the receiving module includes: and the second receiving unit is used for receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agent of the signing requester.
Optionally, the subscription module includes: and the third signing unit is used for creating contract data of the target contract when the signing state is an unknown state, forwarding a confirmation request to the signing requester through the second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the invalid time of the target contract.
Optionally, when the subscription state is a to-be-validated state, the first subscription unit includes: a determining subunit configured to determine an effectiveness mechanism of the target contract, wherein the effectiveness mechanism includes one of: a synchronization mechanism, a translation mechanism; the setting subunit is configured to, when the validation mechanism is a synchronization mechanism, set the pre-validation time and the pre-expiration time of the target contract as the validation time and the expiration time of the target contract, respectively; and when the validation mechanism is a translation mechanism, respectively setting the validation time and the invalidation time of the target contract after adding preset time to the preset validation time and the preset invalidation time of the target contract.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the method, the device and the system, after the establishment request of the target contract is received through the signing channel, the signing state of the target contract is inquired, when the signing state is the specified state which is not in effect, the target contract is signed through the signing channel, the signing channel identification is carried in the establishment request, the signing state of the target contract is inquired, and the target contract which is not in effect can be quickly signed aiming at different signing channels and signing states. The method solves the technical problem of poor timeliness when the target contract is signed by using the timing task in the related technology, and ensures the real-time performance and the accuracy of the contract.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a server architecture for creating contracts online in accordance with an embodiment of the present invention;
FIG. 2 is a flow diagram of a method for creating contracts online, according to an embodiment of the invention;
FIG. 3 is a flow chart of merchant autonomic subscription according to an embodiment of the present invention;
FIG. 4 is a flow diagram of a proxy offer according to an embodiment of the present invention;
FIG. 5 is a flow diagram illustrating a process for determining whether a contract is in effect according to an embodiment of the invention;
FIG. 6 is a flow diagram of updating a invalidation contract according to an embodiment of the invention;
FIG. 7 is a flow diagram of canceling a contract to be validated according to an embodiment of the present invention;
fig. 8 is a block diagram of an apparatus for creating a contract online according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the example of running on a server, fig. 1 is a structural block diagram of a server for creating a contract online according to an embodiment of the present invention. As shown in fig. 1, the server 10 may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and is not intended to limit the structure of the server. For example, the server 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for creating a contract online in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to server 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for creating a contract online is provided, and fig. 2 is a flowchart of a method for creating a contract online according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving a creation request of a target contract through a signing channel, wherein the creation request comprises: signing requester identification, signing product identification and signing channel identification;
in this embodiment, the contract requester is a service user of the target contract, and the service user and the service provider agree on a target contract, which is a consensus of rights and obligations for using a certain project service. The signed product is the target of the target contract service, is the virtual service or the virtual product selected by the signing requester, and the signed channel corresponds to the main body initiating the creation request and can comprise a channel initiated by the merchant independently and a channel initiated by a third-party agent.
Step S204, inquiring the signing state of the target contract, wherein the signing state is used for indicating the current execution state of the target contract;
the target contract of this embodiment has a plurality of contract statuses, such as to-be-validated, invalidated, cancelled, unknown, etc., where the contract status of the validated status indicates that the target contract is the currently executed validated status, and the rest statuses are specified statuses of this embodiment that are not validated. Each signing state corresponds to a state identifier, the signing state can be determined through the inquired state identifiers, and the signing state is defaulted to be an unknown state when the state identifiers are not inquired.
And step S206, when the signing state is the designated state which is not effective, signing the target contract through the signing channel.
The signing channel of the embodiment is an online channel, comprises a specific routing path and a server path, and finally performs information interaction with a signing requester. Wherein, different signing channels are also corresponding to different specified states.
The signing target contract of the embodiment means that the target contract is set to be in an effective signing state, different operations need to be executed when the inquired specified states are different, and contract signing modes of different signing channels are different.
Through the steps, after the establishment request of the target contract is received through the signing channel, the signing state of the target contract is inquired, when the signing state is the specified state which is not in effect, the target contract is signed through the signing channel, the signing channel identification is carried in the establishment request, the signing state of the target contract is inquired, and the target contract which is not in effect can be quickly signed aiming at different signing channels and signing states. The method solves the technical problem of poor timeliness when the target contract is signed by using the timing task in the related technology, ensures the real-time performance and the accuracy of the contract, identifies the signing channel by creating the signing channel identification carried by the request, signs the target contract by using the signing channel of the request, shortens the on-line signing time, and improves the success rate.
The embodiment can be applied to a scene that a merchant (or a user) creates a target contract with a platform when entering the online platform or after entering the online platform, and can also be applied to a scene that any two virtual objects sign a target contract online.
The target contract of this embodiment may be signed independently by the signing requesting party or may be signed by the agent party instead, and the signing channels include a first signing channel corresponding to the signing requesting party and a second signing channel corresponding to the signing agent party of the signing requesting party.
In the example of autonomous contract signing of the present embodiment, receiving a creation request of a target contract through a signing channel includes: and receiving a first establishment request of the target contract through a first signing channel, wherein the first signing channel corresponds to a signing requester and is initiated and executed by the signing requester.
The designated state of the embodiment may be a plurality of states, and in a plurality of signing states of the target contract, the target contract may be signed through the signing channel. Optionally, the designated state includes a to-be-generated state and an unknown state, and the signing of the target contract through the signing channel includes: when the signing state is a to-be-validated state, a confirmation request is sent to a signing requester through a first signing channel, after the signing confirmation of the signing requester is received, the state of a target contract is updated to be a validated state, and the validation time and the failure time of the target contract are set; and when the signing state is an unknown state, creating contract data of the target contract, setting the state of the target contract to be an effective state, and setting the effective time and the failure time of the target contract, wherein the contract data corresponds to the signing product. And sending a prompt message of successful signing to the signing requester through the first signing channel when the effective time and the ineffective time of the target contract are set. The to-be-generated state and the unknown state of the embodiment can also be determined by inquiring whether contract data of a target contract is created or not (can be inquired by signing a product identifier), and if the contract data is created but the contract is not executed, the to-be-generated state is the to-be-generated state; if contract data is not created, then the state is unknown.
Optionally, after querying the contract signing status of the target contract, the method further includes: and when the signing state is the effective state, sending the prompt information that the target contract has been signed to the signing requester through the first signing channel.
In an example of the present embodiment, receiving a creation request of a target contract through a contract channel includes: and receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agency of the signing requester and is initiated and executed by the signing agency.
Optionally, when the signing status is an invalid designated status, signing the target contract through the signing channel includes: and when the signing state is an unknown state, establishing contract data of the target contract, forwarding a confirmation request to the signing requester through a second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the ineffective time of the target contract. And sending a prompt message of successful signing to the signing requester through a second signing channel when the effective time and the ineffective time of the target contract are set.
Optionally, after querying the contract signing status of the target contract, the method further includes: when the signing state is the effective state, forwarding the prompt information that the target contract has been signed to the signing requester through a second signing channel; or when the signing state is the to-be-validated state, forwarding indication information for indicating the signing requester to confirm the target contract to the signing requester through a second signing channel, updating the state of the target contract into the validated state after receiving the signing confirmation of the signing requester, and setting validation time and invalidation time of the target contract. The embodiment is forwarded to the signing requester by the signing broker.
In an exemplary implementation scenario, querying the contract status of the target contract includes:
s11, reading contract time of the target contract and current system time, wherein the contract time comprises effective time and ineffective time;
s12, comparing contract time with system time;
s13, when the effective time is less than or equal to the system time and the failure time is greater than or equal to the system time, determining the contract signing state of the target contract as the effective state; and when the effective time is greater than the system time or the failure time is less than the system time, determining the signing state of the target contract as a failure state. The signing process of the failure state is the same as the signing process of the unknown state, contract data of the target contract is created, the state of the target contract is set to be in an effective state, and effective time and failure time of the target contract are set, wherein the contract data correspond to the signed product.
In another possible implementation scenario, querying the subscription status of the target contract comprises:
s21, reading the predicted time of the target contract and the current system time, wherein the predicted time comprises a pre-effective time and a pre-ineffective time; in the process of the contract waiting for signing, contract data of the target contract is created, after a confirmation request is forwarded to a signing requester through a second signing channel, the state of the target contract is a state to be validated, and the state of the target contract is set to be validated only after the signing confirmation of the signing requester is received. The to-be-validated state corresponds to a predicted time, and the predicted time comprises a pre-validation time and a pre-invalidation time, and the pre-validation time and the pre-invalidation time can be the same as or different from the validation time and the invalidation time of the target contract.
S22, comparing the predicted time with the system time;
s23, when the preaffective time is less than or equal to the system time and the preaffective time is greater than or equal to the system time, determining the contract signing state of the target contract as a to-be-generated state; and when the pre-effective time is greater than the system time or the pre-failure time is less than the system time, determining that the signing state of the target contract is a cancellation state.
The contract time and the predicted time of the embodiment are contract parameters which are preset and stored in the signing platform, the contract time is generated after the previous signing is successful, but the target contract may be expired and needs to be signed again, and the predicted time is generated after the previous signing is successful (the contract is not in effect and is in a state to be validated). It is also possible that the contract time and the expected time are not read, in which case the confirmation target contract is also not successfully signed, and the signed status is unknown.
Optionally, in an example of the present embodiment, when the subscription state is the to-be-validated state, setting the validation time and the expiration time of the target contract includes: determining an effectiveness mechanism for the target contract, wherein the effectiveness mechanism comprises one of: the translation mechanism needs to translate for a period of time at equal intervals on the basis of the pre-effective time and the pre-invalid time to obtain the effective time and the invalid time; when the validation mechanism is a synchronization mechanism, setting the pre-validation time and the pre-invalidation time of the target contract as the validation time and the invalidation time of the target contract respectively; when the validation mechanism is a translation mechanism, the preset time is added to the pre-validation time and the pre-invalidation time of the target contract, and then the pre-validation time and the pre-invalidation time are respectively set as the validation time and the invalidation time of the target contract. In one example, the preset time is the time confirmed by the merchant-the time of creation of the offer.
The following explains and explains the scheme of this embodiment in detail by using different embodiments with reference to specific examples, and table 1 is code field information that may be carried by data streams in the interaction process in this embodiment.
TABLE 1
Figure BDA0002089342930000101
Figure BDA0002089342930000111
Wherein, partner _ id is merchant pid, product _ code is signed product code, status is contract state (01: to be validated, 02: validated, 03: invalidated, 04: cancelled), gmt _ effect represents contract validation time, gmt _ end represents contract end time, gmt _ effect _ product contract pre-validation time, and gmt _ end _ product contract pre-invalidation time.
Fig. 3 is a flowchart of merchant autonomous contract signing according to an embodiment of the present invention, where the process of merchant autonomous contract signing includes:
the merchant selects a certain product to submit a contract, and whether the merchant has an unproductive or effective contract is judged according to partner _ id and product _ code;
if the contract which is validated exists, the merchant is prompted to sign up;
if the contract (01 state) to be validated exists, the merchant skips to a contract confirmation process, the contract is validated after confirmation, the state of the contract is modified to 02, the validation time is merchant confirmation time, and the invalidation time is pre-invalidation time;
if there are no non-validated contracts and no validated contracts, then the contract data is dropped directly, the status of the contract is modified to 02, and the validation time and expiration time of the contracted contract are contracted.
Fig. 4 is a flowchart of contract signing for BD, according to an embodiment of the present invention, where the flowchart of contract signing for BD includes:
when the BD submits signing order data to a merchant, whether the merchant has contract data or not is judged according to partner _ id and product _ code;
if the effective contract data exists, prompting the BD merchant to sign a contract;
if the contract data which is not valid exists, the BD cannot initiate signing on behalf of the merchant;
if no unproductive contract or no validated contract is available, contract data is signed, the state of the contract is a state to be validated 01, the contract validation and invalidation time is null, the pre-validation time and the pre-invalidation time are the time submitted by the BD, after the merchant confirms, the state of the contract is updated to be the validation 02 state, the validation time is the merchant confirmation time, and the invalidation time is the pre-invalidation time;
after the agent merchant confirms, the contract validation and invalidation time can be controlled according to the validation mode defined in the product. For example, the product defines the synchronous pre-validation and pre-invalidation time, and when the merchant confirms that the contract is validated, the validation and invalidation time of the contract is equal to the pre-validation and pre-invalidation time; if the product defines a need for translation time, then the contract's validation and expiration times are equal to the pre-validation and pre-expiration times + (merchant confirmed time-time of contract creation), respectively.
Fig. 5 is a schematic flow chart of determining whether a contract is in effect according to an embodiment of the present invention, including querying the effective contract status and the non-effective contract status, wherein,
the logic for querying the status of the contract that the merchant has taken effect comprises: inquiring about the state of the contract which is effective by the merchant, according to the partner _ id and the product _ code of the merchant, inquiring about the effective time gmt __ effect < (the current time), the expiration time gmt _ end > (the system time), and the state of the contract is the contract data of 02, if the inquiry result is not null, then the contract which is effective by the merchant is represented. If the query result is null, the merchant does not currently have a contract which is in effect;
the logic for querying the merchant for non-validated contract status includes: inquiring the non-effective contract state of the merchant, inquiring contract data with the contract state of 01 according to the partner _ id and the signed product code of the merchant, and if the inquiry result is not null, indicating that the merchant has the contract with the non-effective state. If the query result is null, it indicates that the merchant does not currently have a contract that has not been validated.
Fig. 6 is a flowchart of updating invalidation contracts according to an embodiment of the present invention, and the merchant contract expiration processing flow includes: and inquiring contract data with a contract state of 02 by the timing task, judging that the failure time of the current contract is less than the current system time, and updating the contract state to 03.
Fig. 7 is a flowchart of canceling a contract to be validated according to the embodiment of the present invention, where the process of confirming timeout invalidation by a merchant in signing a pre-contract includes: and the timing task inquires contract data with a contract state of 01, judges that the pre-failure time of the current contract is less than the current system time or judges whether the pre-contract reaches N days (the N days are preset time) and is not confirmed, and updates the contract state to 04.
The present embodiment records contract data submitted by the BD generation operation by contract state 01, the time expected to take effect and the time expected to fail. The effectiveness of the contract is accurately judged through the contract state 02, the effective time and the failure time, and only one effective contract can be ensured for the same signed product of the same merchant. The conversion control from the expected effective time and the expected pre-failure time to the effective time and the failure time is realized through the conversion control of the contract states 01-02, so that the proxy contract process is compatible. And judging whether the contract is invalid or the pre-created contract is cancelled by the contract state being the 03-04 state.
The scheme of the embodiment supports the self-service signing and agent signing processes of the merchants at the same time, and can control the twisting of the two signing processes aiming at the same merchant through the contract state, the effective failure time and the contract pre-effective and pre-failure time. The contract type is judged according to the state, the pre-effective time and the pre-failure time, the contract effectiveness is also judged according to the contract effectiveness state, the effective time and the failure time, the real-time performance and the accuracy of the contract effectiveness judgment can be ensured, and the overdue processing result of the effective contract which depends on the timing task is not needed.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for creating an online contract is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of an apparatus for creating a contract online according to an embodiment of the present invention, as shown in fig. 8, the apparatus including: a receiving module 80, a querying module 82, a signing module 84, wherein,
a receiving module 80, configured to receive a creation request of a target contract through a contract signing channel, where the creation request includes: signing requester identification, signing product identification and signing channel identification;
a query module 82, configured to query a contract status of the target contract, where the contract status is used to indicate a current execution status of the target contract;
and the signing module 84 is configured to sign the target contract through the signing channel when the signing state is an invalid specified state.
Optionally, the receiving module includes: the first receiving unit is configured to receive a first creation request of the target contract through a first signing channel, where the first signing channel corresponds to the signing requester.
Optionally, the subscription module includes one of: the first signing unit is used for sending a confirmation request to the signing requester through the first signing channel when the signing state is a to-be-validated state, updating the state of the target contract into a validated state after receiving the signing confirmation of the signing requester, and setting the validation time and the invalidation time of the target contract; and the second signing unit is used for creating contract data of the target contract when the signing state is an unknown state, setting the state of the target contract to be an effective state, and setting effective time and ineffective time of the target contract, wherein the contract data corresponds to the signed product.
Optionally, the receiving module includes: and the second receiving unit is used for receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agent of the signing requester.
Optionally, the subscription module includes: and the third signing unit is used for creating contract data of the target contract when the signing state is an unknown state, forwarding a confirmation request to the signing requester through the second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the invalid time of the target contract.
Optionally, when the subscription state is a to-be-validated state, the first subscription unit includes: a determining subunit configured to determine an effectiveness mechanism of the target contract, wherein the effectiveness mechanism includes one of: a synchronization mechanism, a translation mechanism; the setting subunit is configured to, when the validation mechanism is a synchronization mechanism, set the pre-validation time and the pre-expiration time of the target contract as the validation time and the expiration time of the target contract, respectively; and when the validation mechanism is a translation mechanism, respectively setting the validation time and the invalidation time of the target contract after adding preset time to the preset validation time and the preset invalidation time of the target contract.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in an aspect of the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a creating request of a target contract through a signing channel, wherein the creating request comprises: signing requester identification, signing product identification and signing channel identification;
s2, inquiring the signing state of the target contract, wherein the signing state is used for indicating the current execution state of the target contract;
and S3, when the signing state is a designated state which is not effective, signing the target contract through the signing channel.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in an aspect of this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a creating request of a target contract through a signing channel, wherein the creating request comprises: a signing requester identifier and a signing product identifier;
s2, inquiring the signing state of the target contract, wherein the signing state is used for indicating the current execution state of the target contract;
and S3, when the signing state is a designated state which is not effective, signing the target contract through the signing channel.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (18)

1. A method for creating contracts online, comprising:
receiving a creation request of a target contract through a signing channel, wherein the creation request comprises: signing requester identification, signing product identification and signing channel identification;
querying a signing state of the target contract, wherein the signing state is used for indicating a current execution state of the target contract;
and when the signing state is the designated state which is not in effect, signing the target contract through the signing channel, wherein different signing channels correspond to different designated states.
2. The method of claim 1, wherein receiving a request for creation of a target contract through a subscription channel comprises:
and receiving a first establishment request of the target contract through a first signing channel, wherein the first signing channel corresponds to the signing requester.
3. The method of claim 2, wherein the specified states include a to-be-generated state and an unknown state, and wherein contracting the target contract through the contracting channel comprises:
when the signing state is a to-be-validated state, sending a confirmation request to the signing requester through the first signing channel, updating the state of the target contract into a validated state after receiving the signing confirmation of the signing requester, and setting validation time and invalidation time of the target contract;
and when the signing state is an unknown state, creating contract data of the target contract, setting the state of the target contract to be an effective state, and setting the effective time and the ineffective time of the target contract, wherein the contract data corresponds to the signing product.
4. The method of claim 2, wherein after querying the sign-up status of the target contract, the method further comprises:
and when the signing state is the effective state, sending the prompt information that the target contract has been signed to the signing requester through the first signing channel.
5. The method of claim 1, wherein receiving a request for creation of a target contract through a subscription channel comprises:
and receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agency of the signing requester.
6. The method of claim 5, wherein the specified state comprises an unknown state, and wherein contracting the target contract through the contracting channel comprises:
and when the signing state is an unknown state, creating contract data of the target contract, forwarding a confirmation request to the signing requester through the second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the invalid time of the target contract, wherein the contract data corresponds to the signing product.
7. The method of claim 5, wherein after querying the sign-up status of the target contract, the method further comprises:
when the signing state is the effective state, forwarding the prompt information that the target contract has been signed to the signing requester through the second signing channel; or the like, or, alternatively,
and when the signing state is a to-be-validated state, forwarding indication information for indicating the signing requester to confirm the target contract to the signing requester through the second signing channel.
8. The method of claim 1, wherein querying the subscription status of the target contract comprises:
reading contract time of the target contract and current system time, wherein the contract time comprises effective time and ineffective time;
comparing the contract time and the system time;
when the effective time is less than or equal to the system time and the failure time is greater than or equal to the system time, determining that the signing state of the target contract is an effective state; and when the effective time is greater than the system time or the failure time is less than the system time, determining that the signing state of the target contract is a failure state.
9. The method of claim 1, wherein querying the subscription status of the target contract comprises:
reading the expected time of the target contract and the current system time, wherein the expected time comprises a pre-effective time and a pre-ineffective time;
comparing the projected time to the system time;
when the pre-validation time is less than or equal to the system time and the pre-invalidation time is greater than or equal to the system time, determining that the signing state of the target contract is a to-be-validated state; and when the pre-effective time is greater than the system time or the pre-failure time is less than the system time, determining that the signing state of the target contract is a cancellation state.
10. The method of claim 3, wherein setting the validation time and the expiration time of the target contract when the signing status is a pending status comprises:
determining an validation mechanism for the target contract, wherein the validation mechanism comprises one of: a synchronization mechanism, a translation mechanism;
when the validation mechanism is a synchronization mechanism, setting the pre-validation time and the pre-invalidation time of the target contract as the validation time and the invalidation time of the target contract respectively; and when the validation mechanism is a translation mechanism, respectively setting the validation time and the invalidation time of the target contract after adding preset time to the preset validation time and the preset invalidation time of the target contract.
11. An apparatus for creating contracts online, comprising:
the system comprises a receiving module, a contract creating module and a contract editing module, wherein the receiving module is used for receiving a creating request of a target contract through a signing channel, and the creating request comprises: signing requester identification, signing product identification and signing channel identification;
the query module is used for querying the signing state of the target contract, wherein the signing state is used for indicating the current execution state of the target contract;
and the signing module is used for signing the target contract through the signing channel when the signing state is a specified state which is not in effect, wherein different signing channels correspond to different specified states.
12. The apparatus of claim 11, wherein the receiving module comprises:
the first receiving unit is configured to receive a first creation request of the target contract through a first signing channel, where the first signing channel corresponds to the signing requester.
13. The apparatus of claim 12, wherein the subscription module comprises one of:
the first signing unit is used for sending a confirmation request to the signing requester through the first signing channel when the signing state is a to-be-validated state, updating the state of the target contract into a validated state after receiving the signing confirmation of the signing requester, and setting the validation time and the invalidation time of the target contract;
and the second signing unit is used for creating contract data of the target contract when the signing state is an unknown state, setting the state of the target contract to be an effective state, and setting effective time and ineffective time of the target contract, wherein the contract data corresponds to the signed product.
14. The apparatus of claim 11, wherein the receiving module comprises:
and the second receiving unit is used for receiving a second establishment request of the target contract through a second signing channel, wherein the second signing channel corresponds to a signing agent of the signing requester.
15. The apparatus of claim 14, wherein the subscription module comprises:
and the third signing unit is used for creating contract data of the target contract when the signing state is an unknown state, forwarding a confirmation request to the signing requester through the second signing channel, setting the state of the target contract to be an effective state after receiving the signing confirmation of the signing requester, and setting the effective time and the invalid time of the target contract.
16. The apparatus of claim 13, wherein when the subscription state is a to-be-validated state, the first subscription unit comprises:
a determining subunit configured to determine an effectiveness mechanism of the target contract, wherein the effectiveness mechanism includes one of: a synchronization mechanism, a translation mechanism;
the setting subunit is configured to set, when the validation mechanism is a synchronization mechanism, the pre-validation time and the pre-expiration time of the target contract as the validation time and the expiration time of the target contract, respectively; and when the validation mechanism is a translation mechanism, respectively setting the validation time and the invalidation time of the target contract after adding preset time to the preset validation time and the preset invalidation time of the target contract.
17. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 10 when executed.
18. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 10.
CN201910498282.5A 2019-06-10 2019-06-10 Method and device for establishing contract on line, storage medium and electronic device Active CN110378664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910498282.5A CN110378664B (en) 2019-06-10 2019-06-10 Method and device for establishing contract on line, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910498282.5A CN110378664B (en) 2019-06-10 2019-06-10 Method and device for establishing contract on line, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110378664A CN110378664A (en) 2019-10-25
CN110378664B true CN110378664B (en) 2021-12-21

Family

ID=68250032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910498282.5A Active CN110378664B (en) 2019-06-10 2019-06-10 Method and device for establishing contract on line, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110378664B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080233B (en) * 2019-11-22 2023-11-03 贝壳技术有限公司 Method, device and storage medium for generating subscription information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809062A (en) * 2016-03-01 2016-07-27 布比(北京)网络技术有限公司 Contract construction and execution methods and apparatuses
CN106487528A (en) * 2015-08-27 2017-03-08 中国移动通信集团公司 A kind of acquisition methods of user VoLTE signing state and equipment
CN106960165A (en) * 2017-03-13 2017-07-18 广东网金控股股份有限公司 It is a kind of that the method that electronic contract is conutersigned in many ways is realized based on the intelligent contract of block chain
CN109711999A (en) * 2018-11-14 2019-05-03 平安科技(深圳)有限公司 Go out single method and device, computer equipment, storage medium based on halfpace

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487528A (en) * 2015-08-27 2017-03-08 中国移动通信集团公司 A kind of acquisition methods of user VoLTE signing state and equipment
CN105809062A (en) * 2016-03-01 2016-07-27 布比(北京)网络技术有限公司 Contract construction and execution methods and apparatuses
CN106960165A (en) * 2017-03-13 2017-07-18 广东网金控股股份有限公司 It is a kind of that the method that electronic contract is conutersigned in many ways is realized based on the intelligent contract of block chain
CN109711999A (en) * 2018-11-14 2019-05-03 平安科技(深圳)有限公司 Go out single method and device, computer equipment, storage medium based on halfpace

Also Published As

Publication number Publication date
CN110378664A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN108520454B (en) Method and system for calling back orders in real time
CN108427581A (en) System micro services method and terminal device
KR101780220B1 (en) Method and system for location based data communication over network
US20190158674A1 (en) Distributed ledger system for management and tracking of exchanges of wireless services between wireless service providers
CN111460504B (en) Service processing method, device, node equipment and storage medium
CN112766646B (en) Method, device, equipment and storage medium for generating and processing task flow
CN109933626B (en) Financial business data processing method and device and financial transaction terminal
CN107194810B (en) Asset configuration system and method of operation
CN102024233B (en) Transaction processing system
CN111639279A (en) Graphic code generation method, target page loading method and device
CN1595890B (en) Virtual connectivity with subscribe-notify service
CN105847231A (en) Service publishing method, device and system
CN110378664B (en) Method and device for establishing contract on line, storage medium and electronic device
CN113067866A (en) Batch file transmission method and device between heterogeneous systems
CN105227736A (en) A kind of update method, Apparatus and system of reserved phone number
KR20220052819A (en) Information providing method for providing information regarding terminal activation and electronic device performing the same
US20210241372A1 (en) System, apparatus, and method for data trading based on blockchain
CN110717756B (en) Payment data processing device and method based on contract
CN105681384A (en) Information expiration processing method and apparatus
US20190102833A1 (en) Variable rate system
CN114172958B (en) Privacy computing node, system, method, device and storage medium
CN105450737A (en) Data processing method, data processing device and data processing system
KR102390349B1 (en) Simple payment method based on device authentication and system therefore
CN114020797A (en) Block chain distributed account book and database-based chain uplink and downlink mixed storage method
CN114466322A (en) Communication method, system, device, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant