CN111104556B - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
CN111104556B
CN111104556B CN201911134210.9A CN201911134210A CN111104556B CN 111104556 B CN111104556 B CN 111104556B CN 201911134210 A CN201911134210 A CN 201911134210A CN 111104556 B CN111104556 B CN 111104556B
Authority
CN
China
Prior art keywords
service
data
storage layer
business
standard storage
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
CN201911134210.9A
Other languages
Chinese (zh)
Other versions
CN111104556A (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201911134210.9A priority Critical patent/CN111104556B/en
Publication of CN111104556A publication Critical patent/CN111104556A/en
Application granted granted Critical
Publication of CN111104556B publication Critical patent/CN111104556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a business processing method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: constructing a standard storage layer parameter set based on data items of each service interface; extracting corresponding service data from the received service party data according to the standard storage layer parameter set; performing code value conversion on the extracted service data to obtain standard storage layer data; and calling each business interface by executing business process service to perform business processing, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data. The implementation mode can adapt to the service processing scene when cooperating with different service parties, has good expansibility, and reduces the cost of research, test, operation and maintenance and the like.

Description

Service processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service processing method and apparatus.
Background
Along with the expansion of business scale of enterprises, the enterprises often need to cooperate with a plurality of business parties, and the existing business processing flow is difficult to adaptively apply to the cooperation scene of different business parties, so that each cooperation enterprise needs to be independently developed, tested, online processed, and post-operation and maintenance, and from the development of the establishment, development teams are required to be built, the users are familiar with the messages interacted with the business parties, the business flow in the enterprises is familiar, and when inexperienced developers face the project of cooperation of new business parties, the development difficulty is high. Moreover, project time is short, code defect rate is high, and for testers, the system tested by each cooperation is a new system, and the pressure of a test team is high. Because each business side cooperation project is independently developed, codes and database table storage are different, and the later period of one project needs to be operated and maintained by people, so that the operation and maintenance cost is gradually increased. And the enterprise research and development manpower resources are limited, and along with the increase of the number of the cooperated business parties, based on the problems, the enterprise technical team cannot meet the requirements of the business in a short time, and the rapid development of the business is restricted to a certain extent.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
the existing service processing scheme is difficult to adapt to service processing scenes when the existing service processing scheme cooperates with different service parties, and has poor expansibility, so that different service processing systems are required to be developed for the different service parties respectively, and the cost of research, development, test, operation and maintenance and the like is increased.
Disclosure of Invention
In view of this, the embodiment of the application provides a service processing method and device, which can adapt to service processing scenes when cooperating with different service parties, has good expansibility, and reduces the cost of research, test, operation and maintenance and the like.
To achieve the above object, according to an aspect of an embodiment of the present application, there is provided a service processing method.
A business processing method, comprising: constructing a standard storage layer parameter set based on data items of each service interface; extracting corresponding service data from the received service party data according to the standard storage layer parameter set; performing code value conversion on the extracted service data to obtain standard storage layer data; and calling each business interface by executing business process service to perform business processing, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data.
Optionally, the step of constructing a standard storage layer parameter set based on the data item of each service interface includes: and acquiring the data items of the service interfaces, and acquiring a union set of the acquired data items to construct the standard storage layer parameter set.
Optionally, the step of performing code value conversion on the extracted service data to obtain standard storage layer data includes: acquiring a service side dictionary code which is the same as the parameters in the standard storage layer parameter set and a first format code value corresponding to the service side dictionary code from the service data; searching a second format code value corresponding to the standard dictionary code matched with the service side dictionary code from the standard data dictionary corresponding to the service side; and converting the first format code value in the service data into the corresponding second format code value to obtain the standard storage layer data.
Optionally, the step of converting the first format code value in the service data into the corresponding second format code value to obtain the standard storage layer data includes: converting the first format code value in the service data into the corresponding second format code value to obtain converted service data; classifying the converted service data according to service rules, and storing the obtained various data into a plurality of XML (extensible markup language) nodes to obtain the standard storage layer data.
Optionally, the plurality of business process services are respectively used for calling each business interface, and when each business process service is executed, the business process service obtains the entry data from at least one XML node in the plurality of XML nodes.
Optionally, before executing the business process service corresponding to one business interface, the method includes: judging whether the business process service corresponding to the business interface exists currently or not, and packaging the business process service under the condition that the business process service does not exist, by the following method: reading data from at least one XML node in the plurality of XML nodes, and organizing the read data into a message for calling the service interface.
Optionally, after invoking one of the service interfaces for service processing, the method includes: judging whether the service interface is a target service interface, converting a code value in a service processing result of the service interface into the first format code value under the condition that the service interface is the target service interface, and sending the service processing result after the code value conversion to the service party.
According to another aspect of the embodiment of the present application, a service processing apparatus is provided.
A traffic processing apparatus comprising: the parameter set construction module is used for constructing a standard storage layer parameter set based on the data items of each service interface; the service data extraction module is used for extracting corresponding service data from the received service party data according to the standard storage layer parameter set; the code value conversion module is used for carrying out code value conversion on the extracted service data so as to obtain standard storage layer data; and the business processing module is used for calling the business interfaces through executing business process service to process business, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data.
Optionally, the parameter set construction module is further configured to: and acquiring the data items of the service interfaces, and acquiring a union set of the acquired data items to construct the standard storage layer parameter set.
Optionally, the code value conversion module is further configured to: acquiring a service side dictionary code which is the same as the parameters in the standard storage layer parameter set and a first format code value corresponding to the service side dictionary code from the service data; searching a second format code value corresponding to the standard dictionary code matched with the service side dictionary code from the standard data dictionary corresponding to the service side; and converting the first format code value in the service data into the corresponding second format code value to obtain the standard storage layer data.
Optionally, the code value conversion module includes a conversion and storage sub-module for: converting the first format code value in the service data into the corresponding second format code value to obtain converted service data; classifying the converted service data according to service rules, and storing the obtained various data into a plurality of XML nodes to obtain the standard storage layer data.
Optionally, the plurality of business process services are respectively used for calling each business interface, and when each business process service is executed, the business process service obtains the entry data from at least one XML node in the plurality of XML nodes.
Optionally, the method further comprises: the business process service packaging module is used for: before the business processing module executes the business process service corresponding to one business interface, judging whether the business process service corresponding to the business interface exists currently, and packaging the business process service in the following mode when the business process service does not exist: reading data from at least one XML node in the plurality of XML nodes, and organizing the read data into a message for calling the service interface.
Optionally, the code value conversion module is further configured to: after the service processing module calls one service interface to process the service, judging whether the service interface is a target service interface, converting a code value in a service processing result of the service interface into the first format code value under the condition that the service interface is the target service interface, and sending the service processing result after the code value conversion to the service party.
According to yet another aspect of an embodiment of the present application, an electronic device is provided.
An electronic device, comprising: one or more processors; and the memory is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the service processing method provided by the embodiment of the application.
According to yet another aspect of an embodiment of the present application, a computer-readable medium is provided.
A computer readable medium having stored thereon a computer program which when executed by a processor implements a service processing method provided by an embodiment of the present application.
One embodiment of the above application has the following advantages or benefits: constructing a standard storage layer parameter set based on data items of each service interface; extracting corresponding service data from the received service party data according to the standard storage layer parameter set; performing code value conversion on the extracted service data to obtain standard storage layer data; and calling each business interface by executing the business process service to process the business, and acquiring the parameter entering data from the standard storage layer data when the business process service is executed. The method can adapt to service processing scenes when cooperating with different service parties, has good expansibility, reduces the cost of research, test, operation and maintenance and the like, has low requirements on service understanding of researchers, and improves the research and development response speed.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the application and are not to be construed as unduly limiting the application. Wherein:
FIG. 1 is a schematic diagram of the main steps of a business processing method according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a standard data dictionary in accordance with one embodiment of the present application;
FIG. 3 is a schematic illustration of a business process flow in accordance with one embodiment of the present application;
fig. 4 is a schematic diagram of main modules of a service processing apparatus according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Those skilled in the art will appreciate that embodiments of the application may be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Fig. 1 is a schematic diagram of main steps of a service processing method according to an embodiment of the present application.
As shown in fig. 1, the service processing method according to an embodiment of the present application mainly includes the following steps S101 to S104.
Step S101: and constructing a standard storage layer parameter set based on the data items of each service interface.
Step S102: and extracting corresponding service data from the received service party data according to the standard storage layer parameter set.
Step S103: and performing code value conversion on the extracted service data to obtain standard storage layer data.
Step S104: and calling each business interface by executing the business process service to perform business processing, wherein the business process service obtains the parameter entering data from the standard storage layer data when executing.
Based on the data items of each service interface, constructing a standard storage layer parameter set, which specifically comprises the following steps: and acquiring data items of each service interface, and acquiring a union set of the acquired data items to construct a standard storage layer parameter set.
Taking an insurance enterprise as an example, the service interface includes: the premium trial calculation and the verification are carried out, and all parameters (namely data items) required by the premium trial calculation interface are assumed to comprise: forehead, date of birth, sex. All parameters (i.e., data items) required by the kernel protection interface include: name, identification number, identification type, date of birth, gender. Then the data items of the two service interfaces are combined to obtain: the standard storage layer parameter set is constructed by the insurance amount, the name, the certificate number, the certificate type, the birth date and the sex.
According to the standard storage layer parameter set, corresponding service data is extracted from the received service party data, and because the service party data comprises a lot of data, some data are not needed in service processing, only the data needed by the service processing are extracted according to the standard storage layer parameter set to serve as the service data used by the service processing.
The step of performing code value conversion on the extracted service data to obtain standard storage layer data may specifically include: acquiring a service side dictionary code which is the same as parameters in a standard storage layer parameter set and a first format code value corresponding to the service side dictionary code from service data; searching a second format code value corresponding to the standard dictionary code matched with the dictionary code of the service party from the standard data dictionary corresponding to the service party; and converting the first format code value in the service data into a corresponding second format code value to obtain standard storage layer data.
The business data includes business party dictionary codes, which are fields representing business party data items, such as a guard, birth date, gender, etc., and corresponding first format code values. The first format code value is the code value format of the business side dictionary code, for example, the first format code value of gender is: 0 (for men) and 1 (for women).
And pre-constructing a standard data dictionary corresponding to each service party, wherein the standard data dictionary stores mapping relations among the dictionary codes of the service party, the first format code values, the standard storage layer parameters and the second format code values. The second format code value is a prescribed code value format of standard storage tier parameter values, for example, the second format code value of gender is: m (representing a male) and F (representing a female).
A schematic diagram of a standard data dictionary according to an embodiment of the present application is shown in fig. 2, and fig. 2 is a standard data dictionary of an insurance enterprise, where a business party is a bank. In fig. 2, the column "BKVALUE" corresponds to a second format code value of a bank, the column "BKNAME" corresponds to a bank dictionary code, the column "TKNAME" corresponds to an insurance enterprise dictionary code, which is a standard storage layer parameter, and the column "TKVALUE" corresponds to a first format code value of an insurance enterprise, which is a prescribed code value format of the standard storage layer parameter value.
The step of converting the first format code value in the service data into a corresponding second format code value to obtain standard storage layer data comprises the following steps: converting the first format code value in the service data into a corresponding second format code value to obtain converted service data; and classifying the converted service data according to the service rule, and storing the obtained various data into a plurality of XML nodes to obtain standard storage layer data.
Taking fig. 2 as an example, the first format code value in the service data is converted into the corresponding second format code value, for example, the gender is: the code value of the man is converted from 0 to M.
The method comprises the steps of classifying converted service data according to service rules, storing the obtained various data into a plurality of XML nodes to obtain standard storage layer data, taking life insurance as an example, dividing the converted service data into client information (insurance applicant's income person under jurisdiction), insurance policy information (information mainly related to the insurance policy is stored), health notification information and the like according to the life insurance service rules.
In one embodiment, the business process service may be multiple, and each business process service is used to call each business interface, and when each business process service is executed, the business process service obtains the entry data from at least one XML node in the multiple XML nodes.
In one embodiment, before executing a business process service corresponding to a business interface, it may be first determined whether there is a business process service corresponding to the business interface, and if there is no business process service, the business process service is encapsulated in the following manner: reading data from at least one XML node in the plurality of XML nodes, and organizing the read data into messages for calling the service interface.
In one embodiment, after a service interface is called to perform service processing, whether the service interface is a target service interface may be further determined, and in the case that the service interface is the target service interface, a code value in a service processing result of the service interface is converted into a first format code value, and the service processing result after the code value conversion is sent to a service party. The target service interface is a service interface corresponding to a service link of data interaction with a service party.
The business processing method of the embodiment of the application is described in detail below by taking a bank as a business party and taking a business processing flow of an insurance enterprise and the bank as an example.
For the scene that the insurance enterprise adopts a mode of cooperating with a bank to develop electric sales service, the insurance enterprise uses a system at a bank end for electric sales, and the electric sales is carried out based on high-quality customer data of the bank. And exporting the order which the customer agrees to purchase from the bank system to form a text file, loading the text file into the insurance enterprise system for verification, returning the money requesting file by the insurance enterprise according to the format required by the bank after the verification is successful, loading the money requesting file by the bank for deduction, returning the deduction result to the insurance enterprise through the text file by the bank after deduction, and carrying out the insurance with the order which is successfully deducted.
The prior art business process flow needs to use an independent business processing system, so that an insurance enterprise needs to develop, test, implement online, sell business and later operate and maintain independently for each cooperative bank. In the service processing flow, an insurance enterprise needs to confirm the specific message format contents of an order file, a money application file and a fee deduction disc file with a banking party, and then combines the complete service processing flow in series according to the insurance service points of the insurance enterprise, such as policy and insurance measurement, check and insurance.
Because the transmitted orders are orders which are agreed to be purchased by the clients, the data volume is not large, but server resources are required to be applied for each project, and the resources are wasted. In order to normally carry out the business process flow, a development team is built from the beginning of the development, the messages interacted with the opposite bank are familiar with the internal business flow of the insurance enterprise, and the flow rate of the developer is high, so that the developer is likely to be an inexperienced developer when facing a new cooperation almost every time. In the implementation, project time is tense, the code defect rate is high, the testing personnel correspond to a new system to be tested corresponding to the business processing system of each cooperative bank, and the pressure of a testing team is high. Since each banking collaborative project is independently developed, the code and database table storage are different. And the later period of one project needs to be operated and maintained by people, and the operation and maintenance cost is gradually increased. Due to limited technical human resources, the requirements of the business cannot be met in a short time based on the problems, and the rapid development of the business is restricted to a certain extent along with the increase of the cooperation quantity of banks.
Fig. 3 is a schematic diagram of a business process flow according to one embodiment of the application.
As shown in fig. 3, the insurance enterprises cooperate with banks a, B and C respectively, the marketing mode and operation flow of the insurance products sold by telephone (for short, electric sales) are basically the same, the insurance products are sold by TSR (telephone sales representative) by outbound, after generating orders, the orders are summarized into bank order files by a bank background system, and transmitted to a general bank cooperation system of the insurance enterprises, and the flow related to the insurance enterprises comprises: the bank order is transmitted into a general bank cooperation system, the general bank cooperation system is verified, the general bank cooperation system feeds back a money requesting file to a bank electric sales system, the bank electric sales system deducts money, the bank electric sales system feeds back a deduction disc returning file to the general bank cooperation system, the general bank cooperation system is underwritten, settled, bookkeeping and the like after underwritten.
The universal banking collaboration system provided by the embodiment of the application adopts a mode of unified storage, unified service and differentiated interaction files, so that rapid response development can be realized when a business collaboration extends, and low defect rate and low operation and maintenance cost are achieved.
Taking life insurance products as an example, the general bank cooperation system of the embodiment of the application comprises an electricity sales life insurance data unified standard storage layer, namely a standard storage layer for short. And constructing a standard storage layer parameter set in advance based on data items of each service interface, wherein the service interfaces are standard underwriting interfaces, such as standard underwriting interfaces and standard underwriting interfaces. And extracting corresponding business data from the received bank order data according to the standard storage layer parameter set.
In the general bank cooperation system, code value conversion is carried out on the extracted business data by the order storage conversion interface corresponding to each bank so as to obtain standard storage layer data, the standard storage layer data is stored in a standard storage layer, and the standard storage layer data can be divided into: the policy information, insurance responsibility information, applicant information, insured person information, beneficiary information, health notification information, risk assessment information, and various data can be stored in a plurality of XML nodes of the standard storage layer.
When the extracted business data are subjected to code value conversion, acquiring bank dictionary codes which are the same as parameters in a standard storage layer parameter set and bank format code values corresponding to the bank dictionary codes from the business data; searching an insurance enterprise format code value corresponding to the standard dictionary code matched with the bank dictionary code from the standard data dictionary corresponding to the bank; and converting the bank format code value in the business data into a corresponding insurance enterprise format code value.
The standard data dictionary is constructed in advance according to the requirements of the business process, the standard data dictionary of each bank is constructed corresponding to different banks, the dictionary codes in the standard data dictionary comprise corresponding relations among bank dictionary codes, insurance enterprise dictionary codes, bank format code values and insurance enterprise format code values, wherein the insurance enterprise dictionary codes in the standard data dictionary corresponding to one bank, namely standard storage layer parameters, can comprise: occupational codes, payment frequency, certificate type, debit type, etc.
And standard business process services, such as premium measurement, verification, printing, underwriting and the like, are packaged by relying on a standard storage layer. It should be noted that, the encapsulated business process service, the incoming data should be taken from the standard storage layer data. When the business process service is packaged, data is read from at least one XML node in a plurality of XML nodes, and assembled to form a message for calling the corresponding business interface.
And calling each business interface by executing the business process service to perform business processing.
The embodiment of the application uses standard data dictionary to differentially convert the code values of different banks based on the differences of each bank, such as different order file formats, different money requesting file formats and different disc returning file formats, and independently analyzes the orders and the disc returning files of different formats transmitted by each bank to obtain the standard storage layer data.
And the money requesting files which need to be returned to each bank are also independently generated according to the specific formats of different banks. For example, after the standard check interface is called to make check, the check interface needs to feed back the money-requesting file to the bank electric pin system, so that the standard check interface is a service interface corresponding to the service link of the service party for data interaction, the check rule engine returns the money-requesting file to the standard storage layer, and the corresponding bank order storage conversion interface acquires the money-requesting file from the standard storage layer, and converts the insurance enterprise format code value in the money-requesting file into the corresponding bank format code value. The data flow of the return file from the general banking collaboration system to the banking electric sales system is not shown in fig. 3, and specifically: after the business processing, the business result data is returned to the standard storage layer, the corresponding bank order storage conversion interface acquires the business result data from the standard storage layer, the insurance enterprise format code value in the business result data is converted into the corresponding bank format code value, and then the business result data comprising the bank format code value is returned to the process of the bank electric marketing system.
The business processing flow of the embodiment of the application can solve a series of problems of the prior business processing flow when the business party is expanded by only constructing a standard data dictionary of the newly added bank when the business party is expanded, has good expansibility, is suitable for business processing scenes when the business processing flow is cooperated with different business parties, reduces the cost of research and development, test, operation and maintenance and the like, has low requirement on the business understanding of researchers, improves the research and development response speed, and ensures that the business processing architecture based on the business processing flow of the embodiment of the application can be automatically expanded along with the development of the business and only needs to pay attention to the decoupling of the service on the data level.
Fig. 4 is a schematic diagram of main modules of a service processing apparatus according to an embodiment of the present application.
The service processing apparatus 400 according to one embodiment of the present application mainly includes: a parameter set construction module 401, a service data extraction module 402, a code value conversion module 403 and a service processing module 404.
The parameter set construction module 401 is configured to construct a standard storage layer parameter set based on the data items of each service interface.
The parameter set construction module 401 may specifically be configured to: and acquiring data items of each service interface, and acquiring a union set of the acquired data items to construct a standard storage layer parameter set.
And the service data extraction module 402 is configured to extract corresponding service data from the received service party data according to the standard storage layer parameter set.
The code value conversion module 403 is configured to perform code value conversion on the extracted service data to obtain standard storage layer data.
The code value conversion module 403 may specifically be configured to: acquiring a service side dictionary code which is the same as parameters in a standard storage layer parameter set and a first format code value corresponding to the service side dictionary code from service data; searching a second format code value corresponding to the standard dictionary code matched with the dictionary code of the service party from the standard data dictionary corresponding to the service party; and converting the first format code value in the service data into a corresponding second format code value to obtain standard storage layer data.
The code value conversion module 403 may include a conversion and storage sub-module for: converting the first format code value in the service data into a corresponding second format code value to obtain converted service data; and classifying the converted service data according to the service rule, and storing the obtained various data into a plurality of XML nodes to obtain standard storage layer data.
And the business processing module 404 is configured to invoke each business interface by executing a business process service to perform business processing, where the business process service obtains the entry data from the standard storage layer data when executing.
In one embodiment, the business process service may be multiple, and each business process service is used for calling each business interface, and when each business process service is executed, obtaining the entry data from at least one XML node in the multiple XML nodes.
In one embodiment, the service processing apparatus 400 further includes: the business process service packaging module is used for: before the business processing module 404 executes a business process service corresponding to a business interface, it is determined whether there is a business process service corresponding to the business interface currently, and if there is no business process service, the business process service is encapsulated in the following manner: reading data from at least one XML node in the plurality of XML nodes, and organizing the read data into messages for calling the service interface.
In one embodiment, the code value conversion module 403 is further configured to: after the service processing module 404 invokes a service interface to perform service processing, it is determined whether the service interface is a target service interface, and if the service interface is the target service interface, the code value in the service processing result of the service interface is converted into the first format code value, and the service processing result after the code value conversion is sent to the service party. The target service interface is a service interface corresponding to a service link of data interaction with a service party.
In addition, the specific implementation of the service processing device in the embodiment of the present application has been described in detail in the above service processing method, so that the description is not repeated here.
Fig. 5 illustrates an exemplary system architecture 500 for a business method or business device to which embodiments of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the service processing method provided by the embodiment of the present application is generally executed by the server 505, and accordingly, the service processing apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present application. The terminal device or server shown in fig. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: the processor comprises a parameter set construction module, a service data extraction module, a code value conversion module and a service processing module. The names of these modules do not in any way constitute a limitation of the module itself, for example, the parameter set construction module may also be described as "a module for constructing a standard storage layer parameter set based on data items of each service interface".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: constructing a standard storage layer parameter set based on data items of each service interface; extracting corresponding service data from the received service party data according to the standard storage layer parameter set; performing code value conversion on the extracted service data to obtain standard storage layer data; and calling each business interface by executing business process service to perform business processing, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data.
According to the technical scheme of the embodiment of the application, a standard storage layer parameter set is constructed based on the data items of each service interface; extracting corresponding service data from the received service party data according to the standard storage layer parameter set; performing code value conversion on the extracted service data to obtain standard storage layer data; and calling each business interface by executing the business process service to process the business, and acquiring the parameter entering data from the standard storage layer data when the business process service is executed. The method can adapt to service processing scenes when cooperating with different service parties, has good expansibility, reduces the cost of research, test, operation and maintenance and the like, has low requirements on service understanding of researchers, and improves the research and development response speed.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (9)

1. A method for processing a service, comprising:
based on the data items of each service interface, constructing a standard storage layer parameter set so as to package the service flow service for calling the corresponding service interface according to the standard storage layer parameter set; based on the data item of each service interface, constructing a standard storage layer parameter set, which comprises the following steps: acquiring data items of each service interface, and acquiring a union set of the acquired data items to construct the standard storage layer parameter set;
extracting corresponding service data from the received service party data according to the standard storage layer parameter set;
performing code value conversion on the extracted service data to obtain standard storage layer data;
and calling each business interface by executing business process service to perform business processing, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data.
2. The method of claim 1, wherein the step of performing code value conversion on the extracted service data to obtain standard storage layer data comprises:
acquiring a service side dictionary code which is the same as the parameters in the standard storage layer parameter set and a first format code value corresponding to the service side dictionary code from the service data;
searching a second format code value corresponding to the standard dictionary code matched with the service side dictionary code from the standard data dictionary corresponding to the service side;
and converting the first format code value in the service data into the corresponding second format code value to obtain the standard storage layer data.
3. The method of claim 2, wherein the step of converting the first format code value in the service data to the corresponding second format code value to obtain the standard storage tier data comprises:
converting the first format code value in the service data into the corresponding second format code value to obtain converted service data;
classifying the converted service data according to service rules, and storing the obtained various data into a plurality of XML nodes to obtain the standard storage layer data.
4. A method according to claim 3, wherein the business process service is plural, and each business process service is used for calling each business interface, and when each business process service is executed, obtaining the entry data from at least one XML node in the plural XML nodes.
5. The method of claim 4, wherein prior to executing the business process service corresponding to one of the business interfaces, comprising:
judging whether the business process service corresponding to the business interface exists currently or not, and packaging the business process service under the condition that the business process service does not exist, by the following method: reading data from at least one XML node in the plurality of XML nodes, and organizing the read data into a message for calling the service interface.
6. The method of claim 4, after invoking one of the service interfaces for service processing, comprising:
judging whether the service interface is a target service interface, converting a code value in a service processing result of the service interface into the first format code value under the condition that the service interface is the target service interface, and sending the service processing result after the code value conversion to the service party.
7. A service processing apparatus, comprising:
the parameter set construction module is used for constructing a standard storage layer parameter set based on the data items of each service interface so as to package the service flow service for calling the corresponding service interface according to the standard storage layer parameter set; based on the data item of each service interface, constructing a standard storage layer parameter set, which comprises the following steps: acquiring data items of each service interface, and acquiring a union set of the acquired data items to construct the standard storage layer parameter set;
the service data extraction module is used for extracting corresponding service data from the received service party data according to the standard storage layer parameter set;
the code value conversion module is used for carrying out code value conversion on the extracted service data so as to obtain standard storage layer data;
and the business processing module is used for calling the business interfaces through executing business process service to process business, wherein when the business process service is executed, the business process service obtains the entry data from the standard storage layer data.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN201911134210.9A 2019-11-19 2019-11-19 Service processing method and device Active CN111104556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911134210.9A CN111104556B (en) 2019-11-19 2019-11-19 Service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911134210.9A CN111104556B (en) 2019-11-19 2019-11-19 Service processing method and device

Publications (2)

Publication Number Publication Date
CN111104556A CN111104556A (en) 2020-05-05
CN111104556B true CN111104556B (en) 2023-09-15

Family

ID=70420727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911134210.9A Active CN111104556B (en) 2019-11-19 2019-11-19 Service processing method and device

Country Status (1)

Country Link
CN (1) CN111104556B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015493B (en) * 2020-08-27 2023-08-25 中国平安财产保险股份有限公司 External system interface docking method, device and storage medium
CN112767036A (en) * 2021-01-25 2021-05-07 北京有竹居网络技术有限公司 Service processing method and device
CN113392093A (en) * 2021-07-09 2021-09-14 中国建设银行股份有限公司 Service processing method and device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739436A (en) * 2009-09-28 2010-06-16 孙彬 XML-based flexible data migration method
CN101937598A (en) * 2010-08-23 2011-01-05 中国工商银行股份有限公司 Insurance policy output device based on bank teller terminal
CN105760498A (en) * 2016-02-22 2016-07-13 浪潮通用软件有限公司 Achievement method of XML data and relational database matching
CN108595391A (en) * 2018-04-28 2018-09-28 中国建设银行股份有限公司 A kind of data information conversion method and device
WO2018179002A1 (en) * 2017-03-30 2018-10-04 Tnq Books And Journals Private Limited Transformation of marked-up content into a file format that enables automated browser based pagination
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10262377B2 (en) * 2013-09-13 2019-04-16 Mace Engineering Group Pty Ltd. Sales order data collection and management system
US10339480B2 (en) * 2016-08-15 2019-07-02 International Business Machines Corporation Executing a set of business rules on incomplete data
US10333875B2 (en) * 2016-11-28 2019-06-25 Snap Inc. Processing media content in a messaging system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739436A (en) * 2009-09-28 2010-06-16 孙彬 XML-based flexible data migration method
CN101937598A (en) * 2010-08-23 2011-01-05 中国工商银行股份有限公司 Insurance policy output device based on bank teller terminal
CN105760498A (en) * 2016-02-22 2016-07-13 浪潮通用软件有限公司 Achievement method of XML data and relational database matching
WO2018179002A1 (en) * 2017-03-30 2018-10-04 Tnq Books And Journals Private Limited Transformation of marked-up content into a file format that enables automated browser based pagination
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
WO2019149019A1 (en) * 2018-01-30 2019-08-08 深圳壹账通智能科技有限公司 Data interaction method and apparatus, computer device, and storage medium
CN108595391A (en) * 2018-04-28 2018-09-28 中国建设银行股份有限公司 A kind of data information conversion method and device

Also Published As

Publication number Publication date
CN111104556A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111104556B (en) Service processing method and device
US20190325473A1 (en) Reward point redemption for cryptocurrency
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
US20180081955A1 (en) System and method for test data management
CN112633691A (en) Method and device for generating custom approval process
CN111857888B (en) Transaction processing method and device
CN107911449A (en) Method and apparatus for pushed information
US20150142700A1 (en) Dynamic risk evaluation for proposed information technology projects
CN110706093A (en) Accounting processing method and device
CN111127211A (en) Block chain based transaction method, system, device and computer readable storage medium
CN113673978A (en) Transaction method, system, computer device and storage medium based on SWIFT system
CN113011907A (en) Data processing method, device, storage medium and equipment
CN111881329A (en) Account balance management method and system
US11763314B2 (en) Systems and methods facilitating chargebacks in electronic transactions
CN111614762B (en) Electronic data exchange system and apparatus comprising an electronic data exchange system
CN109345249A (en) A kind of payment fail processing method and device
CN112785321A (en) Incentive management method and device
CN113362111B (en) Content sending method and device and electronic equipment
CN111275542A (en) Loan request processing method, device and system
CN111190750A (en) Data processing method and system
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN107679096B (en) Method and device for sharing indexes among data marts
CN115330540A (en) Method and device for processing transaction data
CN111526184B (en) Business auditing method and device
CN115147049A (en) Order batch loading method and device, storage medium and computer equipment

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