Disclosure of Invention
The invention provides a business processing method and a business processing device based on a sales promotion management system, which establish the connection between the sales promotion management system and an office management system for customer management, integrate the sales promotion management capability of the sales promotion management system and the customer management capability of the office management system, and improve the business processing capability of both ends.
In order to achieve the purpose of improving the business capability of a promotion management system, the invention provides a business processing method based on the promotion management system, which comprises the following steps:
Binding the first enterprise id of each enterprise with the corresponding first system member code in the sales promotion management system according to the enterprise information of the enterprise registered in the office management system, and generating mapping data; the enterprise information includes: enterprise id and enterprise user;
when business event information is generated by an office management system, acquiring information of a first enterprise user corresponding to the business event information; the business event information is generated by business operation of any enterprise user in an office management system; the information of the first enterprise users comprises second enterprise ids corresponding to the first enterprise users; acquiring the coding information of a corresponding first system member in the promotion management system according to the second enterprise id and the mapping data, and notifying the first system member to perform corresponding business processing according to the coding information of the first system member and the business event information;
when the promotion management system generates service message data, acquiring coding information of a corresponding second system member in the promotion management system; the business message data is generated by any system member performing business operation in the promotion management system; and acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data, and sending the business message data to a second enterprise user corresponding to the third enterprise id to perform corresponding business processing.
As a preferred scheme, the invention binds the enterprise id of each enterprise of the office management system with the corresponding system member code in the promotion management system end by establishing the mapping relation between the promotion management system and the office management system. On one hand, the invention finds out the system members of the promotion management system bound with the business event information through the enterprise id of the enterprise user in the business event information in the office management system, synchronizes the operation of the enterprise user in the office management system to the corresponding system members in the promotion management system, and completes the data transmission from the office management system end to the promotion management system end; on the other hand, the invention finds the enterprise id of the enterprise user in the business event message in the office management system bound with the system member of the promotion management system, synchronizes the business message data managed in the promotion management system to the corresponding enterprise user in the office management system, and completes the data transmission from the promotion management system end to the office management system end. The invention opens the authentication system between the office management system and the sales promotion management system, realizes data transmission and business intercommunication at both ends, combines the sales promotion management capability of the sales promotion management system and the customer management capability of the office management system, and combines the business functions at both ends so as to improve the business processing capability at both ends.
As a preferred scheme, according to enterprise information of enterprises registered in the office management system, binding first enterprise ids of the enterprises with corresponding first system member codes in the sales promotion management system respectively to generate mapping data, specifically:
according to enterprise information of all enterprises registered in an office management system, an enterprise configuration object is constructed in a configuration center of the office management system, each first enterprise id in the enterprise configuration object is respectively bound with a corresponding first system member code in a promotion management system, mapping data are generated, and the mapping data are stored in the configuration center.
As a preferred scheme, the invention establishes the mapping relation between the sales promotion management system and the enterprise WeChat enterprises through the configuration center, binds enterprise ids of all enterprises of the office management system with corresponding system member codes in the sales promotion management system end, so that the two ends can realize data transmission through the binding relation between the enterprise ids and the system member codes, and the service processing capacity of the two ends is improved.
Preferably, before the configuration center of the office management system constructs the enterprise configuration object, the method further comprises the steps of:
Creating a plurality of first applications in the background of the office management system according to first enterprise information of an enterprise to be registered, and generating application configuration information; registering the first application to an office management system through an API interface provided by an office management system engine according to the application configuration information; updating second enterprise information of the registered enterprise according to a preset time interval through a lock mechanism and a buffer mechanism;
wherein, each first application corresponds to an enterprise needing to be registered; the first enterprise information includes: enterprise name, enterprise id, aes_key information, and TOKEN information; the application configuration information includes: application id, application key, and permanent authorization code.
As a preferred scheme, the invention completes the registration of the enterprise configuration information by creating the application in the background of the office management system, the office management system engine manages the configuration information of multiple environments through the configuration center, and periodically updates the second enterprise information of the registered enterprise by adopting a caching mechanism and a flushable locking mechanism, thereby improving the configuration performance, realizing the registration of the enterprise information and laying a foundation for establishing the mapping relation between the promotion management system and the enterprise WeChat enterprise through the configuration center.
As a preferred scheme, when the office management system generates business event information, the information of the first enterprise user corresponding to the business event information is obtained, specifically:
when the callback message controller monitors a callback event, acquiring a data packet of the callback event; the callback event is triggered when business operation is carried out by the office management system to generate business event information; the data packet includes: the business event information and the corresponding first enterprise users;
and matching the information of the first enterprise user in the data packet with the AES_KEY information and the TOKEN information of the second enterprise information of the registered enterprise to obtain a second enterprise id corresponding to the first enterprise user.
As a preferred scheme, the invention realizes that the operation of a user in an office management system is synchronous in a promotion management system through callback processing, a system personnel can trigger callback events when the office management system performs business operation to generate business event information, the callback events of the office management system are monitored through a callback message controller, the office management system is matched with registered enterprise information to obtain corresponding enterprise ids, the data transmission from the office management system end to the promotion management system end is realized through the binding relation between the enterprise ids and system member codes, and the data interaction from the office management system end to the promotion management system background end is realized based on an authentication mapping base.
As a preferred solution, the service message data is sent to the second enterprise user corresponding to the third enterprise id to perform corresponding service processing, specifically:
constructing a card message according to the business message data, and sending the card message to a second enterprise user corresponding to the third enterprise id; the card message comprises an authorization callback URL link, and the authorization callback URL link is used for jumping from the office management system to the back-end server;
and when any second enterprise user clicks the card message, jumping the interface of the second enterprise user to a corresponding service interface for service processing.
As a preferred scheme, the invention uses the authorized callback URL link to realize the business processing from the office management system to the back-end server, and realizes the data transfer from the promotion management system to the office management system through calling processing.
When the card message comprises a query from a promotion management system end to an office management system end, controlling a query analyzer to call a client list interface of the office management system to acquire client data and call a cursor as a query result set; abstracting the query condition of the promotion management system into a plurality of rules, and matching the query result set with the plurality of rules one by one to obtain a matching result;
If the matching result does not meet the preset condition, updating the calling cursor, and repeating the matching operation until the matching result meets the preset condition or all the client data are traversed.
As a preferred scheme, the inquiry condition business of the promotion management system end is complex and comprises logic such as label screening, paging inquiry and sequencing, and the like, and the external contact interface provided by the office management system background for a developer is single in calling rule and only supports cursor inquiry, and paging and complex screening inquiry cannot be realized, so that an inquiry analyzer is required to be designed, and after the business rule is split and calculated, data are recombined and returned to the promotion management system. The invention realizes the adaptation of the inquiry rules of the promotion management system end and the office management system end through the inquiry analyzer so as to realize the complex inquiry logics such as paging inquiry, sorting, name screening, label combination and the like, realize the adaptation of the complex inquiry business of the promotion management system end to the inquiry of the office management system end, and combine the inquiry functions of the two ends.
When a user of the promotion management system logs in an application of the office management system, the promotion management system calls an engine of the office management system to construct an authorization callback link, and the user is notified to carry out authorization through the authorization callback link;
And after the user is authorized through the authorization callback link, the engine of the office management system performs data matching on the personal account number of the user and the system account number of the office management system, and associates the corresponding system members in the promotion management system through the system account number.
As a preferred scheme, the invention completes the unique mapping relation between the members of the sales promotion management system and the staff of the office management system by combining the authentication and the authentication of the office management system based on the mapping relation between the sales promotion management system and the office management system, and can realize code scanning login and authorized login. The invention opens the sales promotion management system and the office management system personnel account system, realizes the opening of the sales promotion management system member data and the office management system customer address book data, creates a base for the data interaction at two ends, and enables the system personnel in the sales promotion management system to rapidly authenticate and use the office management system, integrate the customer management capability of the office management system, and improve the customer management performance.
Correspondingly, the invention also provides a business processing device based on the promotion management system, which comprises: the device comprises a configuration module, a calling processing module and a callback processing module;
The configuration module is used for binding first enterprise ids of enterprises with corresponding first system member codes in the sales promotion management system respectively according to enterprise information of the enterprises registered in the office management system to generate mapping data; the enterprise information includes: enterprise id and enterprise user;
the callback processing module is used for acquiring information of a first enterprise user corresponding to the business event information when the business event information is generated by the office management system; the business event information is generated by business operation of any enterprise user in an office management system; the information of the first enterprise users comprises second enterprise ids corresponding to the first enterprise users; acquiring the coding information of a corresponding first system member in the promotion management system according to the second enterprise id and the mapping data, and notifying the first system member to perform corresponding business processing according to the coding information of the first system member and the business event information;
the call processing module is used for acquiring the coding information of the corresponding second system member in the promotion management system when the promotion management system generates service message data; the business message data is generated by any system member performing business operation in the promotion management system; and acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data, and sending the business message data to a second enterprise user corresponding to the third enterprise id to perform corresponding business processing.
The callback processing module comprises: a first information matching unit and a first information processing unit;
the first information matching unit is used for acquiring a data packet of a callback event when the callback event is monitored by the callback message controller; the callback event is triggered when business operation is carried out by the office management system to generate business event information; the data packet includes: the business event information and the corresponding first enterprise users; matching the information of the first enterprise user in the data packet with the AES_KEY information and the TOKEN information of the second enterprise information of the registered enterprise to obtain a second enterprise id corresponding to the first enterprise user;
the first information processing unit is configured to obtain, according to the second enterprise id and the mapping data, coding information of a corresponding first system member in the promotion management system, and notify the first system member to perform corresponding service processing according to the coding information of the first system member and the service event information.
The call processing module comprises: a second information matching unit and a second information processing unit;
the second information matching unit is used for acquiring the coding information of the corresponding second system member in the promotion management system; the business message data is generated by any system member performing business operation in the promotion management system; acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data;
The second information processing unit is used for constructing a card message according to the business message data and sending the card message to a second enterprise user corresponding to the third enterprise id; the card message comprises an authorization callback URL link, and the authorization callback URL link is used for jumping from the office management system to the back-end server;
and when any second enterprise user clicks the card message, jumping the interface of the second enterprise user to a corresponding service interface for service processing.
As a preferred scheme, the device establishes a mapping relation between the sales promotion management system and the office management system through the configuration module, and binds enterprise ids of enterprises of the office management system with corresponding system member codes in the sales promotion management system end. On one hand, a callback processing module finds out the system members of the promotion management system bound with the business event information through the enterprise id of the enterprise user in the business event information in the office management system, and synchronizes the operation of the enterprise user in the office management system to the corresponding system members in the promotion management system, so that the data transmission from the office management system end to the promotion management system end is completed; on the other hand, the enterprise id of the enterprise user in the business event message in the office management system bound with the system member of the promotion management system is found by calling the processing module, and the business message data managed by the promotion management system is synchronized to the corresponding enterprise user in the office management system, so that the data transfer from the promotion management system end to the office management system end is completed. The invention opens the authentication system between the office management system and the sales promotion management system, realizes data transmission and business intercommunication at both ends, combines the sales promotion management capability of the sales promotion management system and the customer management capability of the office management system, and combines the business functions at both ends so as to improve the business processing capability at both ends.
Accordingly, the present invention also provides a computer-readable storage medium including a stored computer program; wherein, the computer program controls the equipment of the computer readable storage medium to execute a business processing method based on a promotion management system according to the invention when running.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
The promotion management system is used for managing the working condition of a promoter, and the promoter, namely the system member, can perform business operation in the promotion management system and generate business message data.
The office management system is used for managing information of clients and also used for contacting the clients. In the fast-burning industry, office management systems are usually communication software such as enterprise WeChat.
In this embodiment, taking an office management system as an enterprise WeChat (enterprise WeChat) as an example, the invention accesses an enterprise WeChat adaptation layer between a background end of the sales promotion management system and the enterprise WeChat. The invention provides a business micro-adaptation layer for providing data interaction support at two ends through a business micro-engine, wherein the business micro-engine mainly comprises a configuration center, a business micro-caller and a callback processor, the business processing method based on a sales promotion management system is used for realizing data transmission at two ends of the sales promotion management system and the office management system, and concretely referring to FIG. 1, the business processing method based on the sales promotion management system provided by the embodiment of the invention comprises the following steps:
step S101: binding the first enterprise id of each enterprise with the corresponding first system member code in the sales promotion management system according to the enterprise information of the enterprise registered in the office management system, and generating mapping data; the enterprise information includes: enterprise id and enterprise user;
In this embodiment, according to enterprise information of enterprises registered in the office management system, binding first enterprise ids of the enterprises with corresponding first system member codes in the sales promotion management system respectively, and generating mapping data, specifically:
according to enterprise information of all enterprises registered in an office management system, an enterprise configuration object is constructed in a configuration center of the office management system, each first enterprise id in the enterprise configuration object is respectively bound with a corresponding first system member code in a promotion management system, mapping data are generated, and the mapping data are stored in the configuration center.
In this embodiment, before the configuration center of the office management system constructs the enterprise configuration object according to the enterprise information of all enterprises registered in the office management system, the method further includes:
creating a plurality of first applications in the background of the office management system according to first enterprise information of an enterprise to be registered, and generating application configuration information; registering the first application to an office management system through an API interface provided by an office management system engine according to the application configuration information; updating second enterprise information of the registered enterprise according to a preset time interval through a lock mechanism and a buffer mechanism;
Wherein, each first application corresponds to an enterprise needing to be registered; the first enterprise information includes: enterprise name, enterprise id, aes_key information, and TOKEN information; the application configuration information includes: application id, application key, and permanent authorization code.
In this embodiment, the second enterprise information of the registered enterprise is updated according to the preset time interval through a lock mechanism and a cache mechanism, which specifically includes: the interface call credential information of the enterprise is cached by adopting a hash table and a flushable locking mechanism, the expiration time is set, and the credentials are updated regularly.
Step S102: when business event information is generated by an office management system, acquiring information of a first enterprise user corresponding to the business event information; the business event information is generated by business operation of any enterprise user in an office management system; the information of the first enterprise users comprises second enterprise ids corresponding to the first enterprise users; acquiring the coding information of a corresponding first system member in the promotion management system according to the second enterprise id and the mapping data, and notifying the first system member to perform corresponding business processing according to the coding information of the first system member and the business event information;
In this embodiment, when the office management system generates the service event information, the information of the first enterprise user corresponding to the service event information is obtained, specifically:
when the callback message controller monitors a callback event, acquiring a data packet of the callback event; the callback event is triggered when business operation is carried out by the office management system to generate business event information; the data packet includes: the business event information and the corresponding first enterprise users;
and matching the information of the first enterprise user in the data packet with the AES_KEY information and the TOKEN information of the second enterprise information of the registered enterprise to obtain a second enterprise id corresponding to the first enterprise user.
In this embodiment, the business event information is generated by any enterprise user when the office management system performs operations such as adding a client and sending a friend circle, and the callback processor triggers a callback event when the business event information is generated.
In this embodiment, when a callback event is monitored through a callback message controller, a decoder corresponding to an enterprise is obtained from a configuration center, a data packet of the callback event is parsed through the decoder, the parsed data is packaged by adopting a policy mode, a corresponding processor is matched according to a message type to perform service processing, and data consistency of an enterprise WeChat end and a promotion management end is realized through callback.
Step S103: when the promotion management system generates service message data, acquiring coding information of a corresponding second system member in the promotion management system; the business message data is generated by any system member performing business operation in the promotion management system; and acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data, and sending the business message data to a second enterprise user corresponding to the third enterprise id to perform corresponding business processing.
In this embodiment, the service message data is sent to the second enterprise user corresponding to the third enterprise id to perform corresponding service processing, which specifically includes:
constructing a card message according to the business message data, and sending the card message to a second enterprise user corresponding to the third enterprise id; the card message comprises an authorization callback URL link, and the authorization callback URL link is used for jumping from the office management system to the back-end server;
and when any second enterprise user clicks the card message, jumping the interface of the second enterprise user to a corresponding service interface for service processing.
In this embodiment, when a card message is constructed and a remote request is sent, a message retry mechanism is used to avoid message loss caused by network fluctuations.
Referring to fig. 2, a flow chart of message pushing of enterprise WeChat management by the promotion management system according to the present embodiment is shown, when the promotion management system generates service message data, system members needing to push the service message data are queried according to data authority and packaged as member information, and the service module of the promotion management system sends the service message, including the member information and the service message data, to the unified interface for sending the message. The send message unified interface invokes the send message micro-service to send business messages to the enterprise micro-engine. After receiving the business message, the enterprise micro engine acquires corresponding enterprise information from the configuration center according to the Token information and the member information received by the calling end, converts the system member id of the promotion management system into the user_id of the user of the enterprise WeChat, encapsulates the business message data into card information (page message card), sends a remote request to the enterprise WeChat server, calls the message push interface to send the card information to the enterprise WeChat, so that the enterprise WeChat pushes the card information to the enterprise WeChat (H5 application) of the user corresponding to the user_id, and when the enterprise WeChat clicks the pushed card information, the enterprise WeChat triggers the authorization callback to jump to a specific message interface for business processing.
In this embodiment, in order to avoid the influence caused by the network fluctuation, a retry mechanism is added, a maximum retry number is set, and when the call fails, the call is continued to be attempted.
In the embodiment, member information and different business message data are sent through the enterprise micro-caller, so that functions of WeChat client management, label management, friend circle management, message pushing and the like for managing enterprise WeChat in a promotion management system are realized.
In the embodiment, when the card message comprises a query from a promotion management system end to an office management system end, controlling a query analyzer to call a client list interface of the office management system, acquiring client data and calling a cursor as a query result set; abstracting the query condition of the promotion management system into a plurality of rules, and matching the query result set with the plurality of rules one by one to obtain a matching result;
if the matching result does not meet the preset condition, updating the calling cursor, and repeating the matching operation until the matching result meets the preset condition or all the client data are traversed.
In the embodiment, a first step of inquiring the resolver calculates the data volume of the call according to the paging size, calls the WeChat client list interface of the enterprise WeChat terminal, and obtains client data and a next call cursor; secondly, abstracting the query conditions of the promotion management system end into rules to obtain a query result set; the rules are AND or relation, the rules are label inquiry rules and comprise a plurality of labels, different dimension labels are AND relation, and the labels in the same dimension are OR relation; matching the query result set with each rule to obtain a temporary result set; and thirdly, if the temporary result set is smaller than the paging size, transferring the cursor into the first step for recursion calling until the query condition that the temporary result set is smaller than the paging size is met or all client data are traversed.
In this embodiment, when a user of the promotion management system logs in an application of the office management system, the promotion management system invokes an engine of the office management system to construct an authorization callback link, and notifies the user to perform authorization through the authorization callback link;
and after the user is authorized through the authorization callback link, the engine of the office management system performs data matching on the personal account number of the user and the system account number of the office management system, and associates the corresponding system members in the promotion management system through the system account number.
For a better explanation of the present embodiment, please refer to fig. 3, which is a flowchart of a login authorization system of the present embodiment, when a user of a sales promotion management system logs in an application of an enterprise WeChat, an enterprise micro mobile phone sends an authorization message to the user, which includes: and the mobile phone number, the head portrait and one or more of the mailbox are used for acquiring an authorization callback URL link from the enterprise micro-engine so that the enterprise micro-engine returns an authorization callback page to the enterprise micro-phone terminal.
After a user clicks an authorization callback page to authorize, an enterprise micro-phone end sends an authorization code to an enterprise micro-engine, and the enterprise micro-engine inquires a user_id and a phone number of a background user of an enterprise micro-server according to the authorization code, and the background of the enterprise micro-server returns the user_id and the phone number of the user to the enterprise micro-engine;
The enterprise micro engine sends the mobile phone number of the user to the system account service so that the system account service inquires whether an account corresponding to the mobile phone number exists or not, and if so, the system account service returns corresponding account coding information;
the enterprise micro engine finds out corresponding enterprise micro personnel information according to the account number coding information and persists the personnel information;
the enterprise micro engine initiates a login request to a system authentication service according to the account number coding information, and the system authentication service returns Token information to the enterprise micro engine; and the enterprise micro engine returns Token information returned by the system authentication service, enterprise morph and user_id of the user to the enterprise micro mobile phone end, and controls the enterprise micro mobile phone end to enter a login page.
In this embodiment, the authorization callback link is an Oauth2 authorization callback link, the personal account number of the user is a mobile phone number, and the callback processor of the enterprise WeChat matches the mobile phone number of the user with the system account number of the enterprise WeChat, and then realizes authorized login, and binds the mapping relationship between the system member of the sales promotion management system and the current enterprise WeChat personnel. And the enterprise microengines are used for persistence of personnel data information and binding with system members of the sales promotion management system to realize authorized login.
According to the invention, through data transmission and business intercommunication between the sales promotion management system and the enterprise WeChat, the business coverage rate of the original sales promotion management system is improved, and more business scenes are created;
the sales promotion management system is communicated with the enterprise WeChat personnel account system through the authentication of the enterprise WeChat, and the shopping guide can rapidly authenticate the use system, so that the system performance is improved;
the invention integrates the customer management capability of enterprise WeChat in the original promotion management system, combines the data processing capability of customer labels and customer portraits, and improves the customer management capability;
the invention combines the promotion management system and the enterprise WeChat message pushing function, and accurately pushes the business flows such as flexible scheduling, point attendance, ordering and the like generated by the promotion management system to the upper level through the enterprise WeChat message module, thereby improving the approval efficiency.
The implementation of the embodiment of the invention has the following effects:
in a sales promotion management system in the quick-elimination industry, a system member account number of the sales promotion management system is related to an authorized mobile phone number through an enterprise micro engine and an authorized authentication system, so that system member data and enterprise micro-information address book data are communicated, and a base for data interaction at two ends is created. And monitoring callback events of the enterprise micro-end by designing a callback processor, and realizing data interaction from the enterprise micro-information end to a system background end of the promotion management system based on an authentication mapping base. And the enterprise micro-caller is designed to call the enterprise micro-background service API by sending a request, so that data transmission from the system end to the enterprise micro-end is completed. The adaptation from the complex inquiry service of the system end to the inquiry of the enterprise micro end is realized by designing the inquiry analyzer, and the combination of the promotion system and the enterprise micro-letter function is completed.
The invention binds the enterprise id of each enterprise of the office management system with the corresponding system member code in the promotion management system end by establishing the mapping relation between the promotion management system and the office management system. On one hand, the invention finds out the system members of the promotion management system bound with the business event information through the enterprise id of the enterprise user in the business event information in the office management system, synchronizes the operation of the enterprise user in the office management system to the corresponding system members in the promotion management system, and completes the data transmission from the office management system end to the promotion management system end; on the other hand, the invention finds the enterprise id of the enterprise user in the business event message in the office management system bound with the system member of the promotion management system, synchronizes the business message data managed in the promotion management system to the corresponding enterprise user in the office management system, and completes the data transmission from the promotion management system end to the office management system end. The invention opens the authentication system between the office management system and the sales promotion management system, realizes data transmission and business intercommunication at both ends, combines the sales promotion management capability of the sales promotion management system and the customer management capability of the office management system, and combines the business functions at both ends so as to improve the business processing capability at both ends.
Example two
Referring to fig. 4, a business processing device based on a promotion management system according to an embodiment of the present invention includes: a configuration module 201, a callback processing module 202 and a call processing module 203;
the configuration module is used for binding first enterprise ids of enterprises with corresponding first system member codes in the sales promotion management system respectively according to enterprise information of the enterprises registered in the office management system to generate mapping data; the enterprise information includes: enterprise id and enterprise user;
the callback processing module is used for acquiring information of a first enterprise user corresponding to the business event information when the business event information is generated by the office management system; the business event information is generated by business operation of any enterprise user in an office management system; the information of the first enterprise users comprises second enterprise ids corresponding to the first enterprise users; acquiring the coding information of a corresponding first system member in the promotion management system according to the second enterprise id and the mapping data, and notifying the first system member to perform corresponding business processing according to the coding information of the first system member and the business event information;
The call processing module is used for acquiring the coding information of the corresponding second system member in the promotion management system when the promotion management system generates service message data; the business message data is generated by any system member performing business operation in the promotion management system; and acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data, and sending the business message data to a second enterprise user corresponding to the third enterprise id to perform corresponding business processing.
The callback processing module 202 includes: a first information matching unit and a first information processing unit;
the first information matching unit is used for acquiring a data packet of a callback event when the callback event is monitored by the callback message controller; the callback event is triggered when business operation is carried out by the office management system to generate business event information; the data packet includes: the business event information and the corresponding first enterprise users; matching the information of the first enterprise user in the data packet with the AES_KEY information and the TOKEN information of the second enterprise information of the registered enterprise to obtain a second enterprise id corresponding to the first enterprise user;
The first information processing unit is configured to obtain, according to the second enterprise id and the mapping data, coding information of a corresponding first system member in the promotion management system, and notify the first system member to perform corresponding service processing according to the coding information of the first system member and the service event information.
The call processing module 203 includes: a second information matching unit and a second information processing unit;
the second information matching unit is used for acquiring the coding information of the corresponding second system member in the promotion management system; the business message data is generated by any system member performing business operation in the promotion management system; acquiring a third enterprise id corresponding to each second system member according to the coding information of the second system member and the mapping data;
the second information processing unit is used for constructing a card message according to the business message data and sending the card message to a second enterprise user corresponding to the third enterprise id; the card message comprises an authorization callback URL link, and the authorization callback URL link is used for jumping from the office management system to the back-end server;
and when any second enterprise user clicks the card message, jumping the interface of the second enterprise user to a corresponding service interface for service processing.
The configuration module 201 includes: a registration unit and a binding unit;
the registration unit is used for creating a plurality of first applications in the background of the office management system according to first enterprise information of enterprises to be registered, and generating application configuration information; registering the first application to an office management system through an API interface provided by an office management system engine according to the application configuration information; updating second enterprise information of the registered enterprise according to a preset time interval through a lock mechanism and a buffer mechanism;
wherein, each first application corresponds to an enterprise needing to be registered; the first enterprise information includes: enterprise name, enterprise id, aes_key information, and TOKEN information; the application configuration information includes: application id, application key and permanent authorization code;
the binding unit is used for constructing an enterprise configuration object in a configuration center of the office management system according to enterprise information of all enterprises registered in the office management system, binding each first enterprise id in the enterprise configuration object with a corresponding first system member code in the promotion management system respectively, generating mapping data, and storing the mapping data in the configuration center.
The service processing device based on the promotion management system further comprises: the system comprises a query module and an authorization module;
the inquiry module is used for controlling the inquiry analyzer to call a client list interface of the office management system when the card message comprises inquiry from the promotion management system end to the office management system end, acquiring client data and calling a cursor as an inquiry result set; abstracting the query condition of the promotion management system into a plurality of rules, and matching the query result set with the plurality of rules one by one to obtain a matching result;
if the matching result does not meet the preset condition, updating the calling cursor, and repeating the matching operation until the matching result meets the preset condition or all the client data are traversed.
The authorization module is used for calling an engine of the office management system to construct an authorization callback link when a user of the sales promotion management system logs in an application of the office management system, and notifying the user to conduct authorization through the authorization callback link;
and after the user is authorized through the authorization callback link, the engine of the office management system performs data matching on the personal account number of the user and the system account number of the office management system, and associates the corresponding system members in the promotion management system through the system account number.
The business processing device based on the promotion management system can implement the business processing method based on the promotion management system of the method embodiment. The options in the method embodiments described above are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the content of the method embodiments described above, and in this embodiment, no further description is given.
The implementation of the embodiment of the invention has the following effects:
the device establishes a mapping relation between the sales promotion management system and the office management system through the configuration module, and binds enterprise ids of enterprises of the office management system with corresponding system member codes in the sales promotion management system end. On one hand, a callback processing module finds out the system members of the promotion management system bound with the business event information through the enterprise id of the enterprise user in the business event information in the office management system, and synchronizes the operation of the enterprise user in the office management system to the corresponding system members in the promotion management system, so that the data transmission from the office management system end to the promotion management system end is completed; on the other hand, the enterprise id of the enterprise user in the business event message in the office management system bound with the system member of the promotion management system is found by calling the processing module, and the business message data managed by the promotion management system is synchronized to the corresponding enterprise user in the office management system, so that the data transfer from the promotion management system end to the office management system end is completed. The invention opens the authentication system between the office management system and the sales promotion management system, realizes data transmission and business intercommunication at both ends, combines the sales promotion management capability of the sales promotion management system and the customer management capability of the office management system, and combines the business functions at both ends so as to improve the business processing capability at both ends.
Example III
Correspondingly, the invention further provides a computer readable storage medium, which comprises a stored computer program, wherein the equipment where the computer readable storage medium is located is controlled to execute the business processing method based on the promotion management system according to any one of the embodiments when the computer program runs.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, a memory.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program and/or the module, and the processor may implement various functions of the terminal device by running or executing the computer program and/or the module stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the terminal device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.