CN111104556A - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
CN111104556A
CN111104556A CN201911134210.9A CN201911134210A CN111104556A CN 111104556 A CN111104556 A CN 111104556A CN 201911134210 A CN201911134210 A CN 201911134210A CN 111104556 A CN111104556 A CN 111104556A
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.)
Granted
Application number
CN201911134210.9A
Other languages
Chinese (zh)
Other versions
CN111104556B (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

Images

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 invention discloses a service processing method and a service processing device, and relates to the technical field of computers. One embodiment of the method comprises: constructing a standard storage layer parameter set based on the data items of each service interface; extracting corresponding service data from the received service data according to the standard storage layer parameter set; code value conversion is carried out on the extracted service data to obtain standard storage layer data; and calling each service interface by executing the service flow service to process the service, wherein when the service flow service is executed, the access data is obtained from the data of the standard storage layer. The method and the system can adapt to service processing scenes when different service parties cooperate, have good expansibility and reduce the cost of research and development, test, operation and maintenance and the like.

Description

Service processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a service.
Background
With the expansion of enterprise business scale, the business needs to cooperate with a plurality of business parties frequently, the existing business processing flow is difficult to be adaptively applied to cooperate scenes with different business parties, so that each cooperation enterprise needs to independently establish development, test, implement online, business processing and later operation and maintenance, a development team needs to be established from the establishment of development, the business parties are familiar with messages interacted with, the business flow in the enterprise is familiar, and when inexperienced developers face the project of cooperation of new business parties, the development difficulty is high. And project time is short, the code defect rate is high, and for testers, a system tested by cooperation each time is a new system, so that the stress of a test team is high. Because each business partner cooperation project is independently developed, codes and database table storage are different, operation and maintenance are required at the later stage of each online project, and the operation and maintenance cost is gradually increased. However, the research and development of enterprises are limited in human resources, and with the increase of the number of cooperative business parties, based on the problems, enterprise technical teams cannot meet the requirements of the businesses in a short time, and rapid development of the businesses is restricted to a certain extent.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the existing business processing scheme is difficult to adapt to business processing scenes when the business processing scheme cooperates with different business parties, and has poor expansibility, so that different business processing systems need to be developed respectively aiming at different business parties, and the cost of research and development, test, operation and maintenance and the like is increased.
Disclosure of Invention
In view of this, embodiments of the present invention provide a service processing method and apparatus, which are capable of adapting to service processing scenarios when cooperating with different service parties, have good extensibility, and reduce costs of research and development, testing, operation and maintenance, and the like.
To achieve the above object, according to an aspect of an embodiment of the present invention, a service processing method is provided.
A service processing method comprises the following steps: constructing a standard storage layer parameter set based on the data items of each service interface; extracting corresponding service data from the received service data according to the standard storage layer parameter set; code value conversion is carried out on the extracted service data to obtain standard storage layer data; and calling each service interface by executing the service flow service to process the service, wherein when the service flow service is executed, the access data is obtained from the data of the standard storage layer.
Optionally, the step of constructing a standard storage layer parameter set based on the data items of each service interface includes: and acquiring the data items of each service interface, and merging 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 party 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 party dictionary code from the service data; searching a second format code value corresponding to the standard dictionary code matched with the service party dictionary code from the standard data dictionary corresponding to the service party; 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 value in the service data into the corresponding second format 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 business data according to business rules, and storing the obtained various types of 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 the business interfaces, and when each business process service is executed, the access parameter data is acquired from at least one XML node of the plurality of XML nodes.
Optionally, before executing the business process service corresponding to one of the business interfaces, the method includes: judging whether the business process service corresponding to the business interface exists at present, and packaging the business process service in the following mode under the condition that the business process service does not exist: and 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 embodiments of the present invention, 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 performing code value conversion on the extracted service data to obtain standard storage layer data; and the business processing module is used for calling each business interface by executing the business process service so as to process the business, wherein when the business process service is executed, the access data is obtained from the data of the standard storage layer.
Optionally, the parameter set construction module is further configured to: and acquiring the data items of each service interface, and merging 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 party 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 party dictionary code from the service data; searching a second format code value corresponding to the standard dictionary code matched with the service party dictionary code from the standard data dictionary corresponding to the service party; 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 submodule configured to: converting the first format code value in the service data into the corresponding second format code value to obtain converted service data; and classifying the converted service data according to service rules, and storing the obtained various types of 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 the business interfaces, and when each business process service is executed, the access parameter data is acquired from at least one XML node of the plurality of XML nodes.
Optionally, the method further comprises: a business process service encapsulation module, configured to: 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 at present, and packaging the business process service in the following mode under the condition that the business process service does not exist: and 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, whether the service interface is a target service interface is judged, under the condition that the service interface is the target service interface, code values in a service processing result of the service interface are converted into the first format code values, and the service processing result after code value conversion is sent to the service party.
According to yet another aspect of an embodiment of the present invention, an electronic device is provided.
An electronic device, comprising: one or more processors; a memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the service processing method provided by the embodiments of the present invention.
According to yet another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements a service processing method provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: constructing a standard storage layer parameter set based on the data items of each service interface; extracting corresponding service data from the received service data according to the standard storage layer parameter set; code value conversion is carried out 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 reference data from the data of the standard storage layer when the business process service is executed. The method can adapt to service processing scenes when the method cooperates with different service parties, has good expansibility, reduces the costs of research and development, test, operation and maintenance and the like, has low requirement on the understanding of the services of developers, and improves the research and development response speed.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of main steps of a service processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of a standard data dictionary, in accordance with one embodiment of the present invention;
FIG. 3 is a business process flow diagram according to one embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of a service processing apparatus according to one embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as 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 invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely 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 invention.
As shown in fig. 1, the service processing method according to an embodiment of the present invention 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 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 process the business, wherein when the business process service is executed, the reference data is obtained from the data of the standard storage layer.
The method comprises the following steps of constructing a standard storage layer parameter set based on data items of each service interface, and specifically comprises the following steps: and acquiring data items of each service interface, and merging the acquired data items to construct a standard storage layer parameter set.
Taking insurance enterprises as an example, for example, the business interface includes: premium trial calculation, underwriting, assuming that all parameters (i.e., data items) required by the premium trial calculation interface include: quota, date of birth, sex. All parameters (i.e., data items) required by the underwriting interface include: name, certificate number, certificate type, date of birth, gender. Then the union of the data items of the two service interfaces results in: the standard storage layer parameter set is constructed by the quota, the name, the certificate number, the certificate type, the birth date and the gender.
And extracting corresponding service data from the received service data according to the standard storage layer parameter set, wherein the service data comprises a plurality of data, and some data are not required in service processing, so that the data required by the service processing are extracted according to the standard storage layer parameter set and are used as the service data used in 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 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 party dictionary code 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 service data includes a service side dictionary code, which is a field representing a service side data item, such as a quota, a date of birth, a gender, etc., and a corresponding first format code value. The first format code value is a code value format of a service side dictionary code, and the first format code value of gender is: 0 (for male) and 1 (for female).
And a standard data dictionary corresponding to each service party is constructed in advance, and the standard data dictionary stores the mapping relation among the service party dictionary code, the first format code value, the standard storage layer parameter and the second format code value. The second format code values are in a prescribed code value format for standard storage layer parameter values, e.g., gender: m (for male) and F (for female).
Fig. 2 is a schematic diagram of a standard data dictionary according to an embodiment of the present invention, and fig. 2 is a diagram of a standard data dictionary of an insurance enterprise, wherein a business party is a bank. In fig. 2, the "bkvale" column corresponds to the second format code value of the bank, the "BKNAME" column corresponds to the dictionary code of the bank, the "TKNAME" column corresponds to the dictionary code of the insurance company, which is the standard storage tier parameter, and the "TKVALUE" column corresponds to the first format code value of the insurance company, which is the prescribed code value format of the standard storage tier parameter value.
Converting the first format code value in the service data into a corresponding second format code value to obtain the standard storage layer data, wherein the step comprises the following steps: converting a first format code value in the service data into a corresponding second format code value to obtain converted service data; classifying the converted business data according to business rules, 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 value in the service data is converted into a corresponding second format value, for example, the first format value is a gender: the code value for men is converted from 0 to M.
Classifying the converted business data according to business rules, storing the obtained various data into a plurality of XML nodes to obtain standard storage layer data, taking the life insurance as an example, dividing the converted business data into client information (administrative policemen beneficiaries), policy information (mainly storing information related to policy), health notification information and the like according to the life insurance business rules.
In one embodiment, the plurality of business process services may be respectively used for calling the business interfaces, and when each business process service is executed, the access data is acquired from at least one XML node of the plurality of XML nodes.
In an embodiment, before executing a business process service corresponding to a business interface, it may be determined whether a business process service corresponding to the business interface exists at present, and the business process service is encapsulated in the following manner when the business process service does not exist: and 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.
In an embodiment, after a service interface is called to perform service processing, it may be further determined whether the service interface is a target service interface, and in a 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 for data interaction with a service party.
The following describes the business processing method of the embodiment of the present invention in detail by taking a bank as a business party and taking a business processing flow of cooperation between an insurance enterprise and the bank as an example.
For the scene that the insurance enterprise develops the electric sales business by adopting a mode of cooperating with the bank, the electric sales of the insurance enterprise uses a bank-end system and carries out telephone sales based on the high-quality client data of the bank. And exporting the order which the client agrees to purchase from the bank system to form a text file, loading the text file into an insurance enterprise system for verification, returning the money request file by the insurance enterprise according to the format required by the bank after the verification is successful, loading the money request file by the bank for deducting the fee, returning the fee deduction result to the insurance enterprise by the bank after the fee deduction through the text file, and ensuring the order which is successfully deducted by the insurance enterprise.
In the prior art, an independent business processing system is required to be used in the business processing flow, so that for each cooperative bank, an insurance enterprise needs to independently establish item development, test, implement online, business sale and later operation and maintenance. In the business processing flow, the insurance enterprise needs to confirm the specific message format contents of the order file, the payment file and the fee deduction return file with the bank side, and then the complete business processing flow is combined in series according to insurance business points of the insurance enterprise, such as premium measurement and calculation, underwriting, insurance acceptance and the like.
The data volume is not large because the transmitted orders are orders which the client agrees to buy, but the server resources are required to be applied for each project, so that the resources are wasted. In addition, in order to normally perform the business processing flow, a development team needs to be established from project establishment and familiar with messages interacting with the opposite bank and with the internal business flow of the insurance enterprise, and due to the fact that the flow rate of developers is high, the developers are likely to be inexperienced developers almost every time when facing a new cooperation. In the implementation, project time is short, the code defect rate is high, corresponding to the business processing system of each cooperative bank, testers are equivalent to testing a new system, and the pressure of a testing team is high. Because each bank cooperation project is independently developed, the codes and the database table storage are different. Operation and maintenance are needed in the later stage of each online project, and the operation and maintenance cost is gradually increased. Due to the limited technical and human resources, with the increase of the bank cooperation quantity, based on the problems, the appeal of the service cannot be met in a short time, and the rapid development of the service is restricted to a certain extent.
FIG. 3 is a business process flow diagram according to one embodiment of the invention.
As shown in fig. 3, the insurance enterprise respectively cooperates with bank a, bank B and bank C, and sells insurance products by telephone (for short, electric sales) and the marketing mode and operation flow of each bank electric sales insurance product are basically the same, and all are bank providing systems, and after an order is generated, the insurance products are sold by external call through TSR (telephone sales representative), and then collected into a bank order file through a bank background system and transmitted to a general bank cooperation system of the insurance enterprise, and the flow related to the insurance enterprise includes: the bank order is transmitted into the general bank cooperation system, the general bank cooperation system carries out the underwriting, the general bank cooperation system feeds back the money requisition file to the bank electric sale system, the bank electric sale system deducts money, the bank electric sale system feeds back the money deduction return file to the general bank cooperation system, and the general bank cooperation system undertakes the underwriting and returns commissions, settlement, bookkeeping and the like after underwriting.
The general bank cooperation system of the embodiment of the invention adopts the modes of unified storage, unified service and differentiated interaction files, can quickly respond and develop when the business cooperation party is expanded, and achieves low defect rate and low operation and maintenance cost.
Taking the life insurance product as an example, the universal bank cooperation system of the embodiment of the invention comprises a standard storage layer for unifying the life insurance data of the electronic sales, which is called the standard storage layer for short. And constructing a standard storage layer parameter set in advance based on the data items of each service interface, wherein the service interface comprises a standard underwriting interface, a standard underwriting interface and the like. 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, the code value conversion is carried out on the extracted service data corresponding to the order storage conversion interface of each bank so as to obtain standard storage layer data, the standard storage layer data is stored in the standard storage layer, and the method can be divided into the following steps according to actual services: policy information, insurance responsibility information, policyholder 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 a standard storage layer.
When code value conversion is carried out on the extracted service data, 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 are obtained from the service 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 service data into a corresponding insurance enterprise format code value.
The standard data dictionary is constructed in advance according to the needs of the business process, the standard data dictionaries of all banks are respectively constructed corresponding to different banks, 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 insurance enterprise dictionary codes in the standard data dictionary corresponding to one bank, namely standard storage layer parameters, for example, the standard storage layer parameters can comprise: job code, frequency of payment, type of certificate, type of debit, and the like.
And standard business process services such as premium measurement and calculation, underwriting, printing, underwriting and the like are encapsulated by relying on the standard storage layer. It should be noted that, the input parameter data of the encapsulated business process service should be taken from the data of the standard storage layer. When the business process service is packaged, data is read from at least one XML node in the plurality of XML nodes, and the data is assembled to form a message for calling a corresponding business interface.
And calling each business interface by executing the business process service so as to process the business.
The embodiment of the invention uses the standard data dictionary to convert the code values of different banks in a differentiation way based on the difference of various banks, such as different order file formats, different requisition file formats and different disk return file formats, and analyzes the orders and the disk return files with different formats transmitted by each bank independently to obtain the data of a standard storage layer.
And the fund requisition files required to be returned to all the banks are independently generated according to the special formats of different banks. For example, after the standard underwriting interface is called for underwriting, because the requisition file needs to be fed back to the bank electric marketing system after underwriting, the standard underwriting interface is a business interface corresponding to a business link for data interaction with a business party, the underwriting rule engine returns the requisition file to the standard storage layer, the order storage conversion interface corresponding to the bank acquires the requisition file from the standard storage layer, and the insurance enterprise format code value in the requisition file is converted into the corresponding bank format code value. The data flow of the file returned from the general banking collaboration system to the banking electric marketing system is not shown in fig. 3, and the data flow is specifically as follows: and after the business is processed, returning the business result data to the standard storage layer, acquiring the business result data from the standard storage layer by the order storage conversion interface corresponding to the bank, converting the insurance enterprise format code value in the business result data into a corresponding bank format code value, and then returning the business result data comprising the bank format code value to the bank telemarketing system.
The business processing flow of the embodiment of the invention ensures that when a business partner is expanded, for example, if a new partner bank is added, only a standard data dictionary of the added bank needs to be constructed, solves a series of problems of the existing business processing flow when the business partner is expanded, is suitable for business processing scenes when different business partners are cooperated, has good expansibility, reduces the costs of research and development, test, operation and maintenance and the like, has low business understanding requirement on developers, improves the research and development response speed, ensures that the business processing architecture based on the business processing flow of the embodiment of the invention can be automatically expanded along with the development of business, and only needs to pay attention to the decoupling of the service on a data level.
Fig. 4 is a schematic diagram of main modules of a service processing apparatus according to an embodiment of the present invention.
The service processing apparatus 400 according to an embodiment of the present invention 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.
A parameter set constructing module 401, configured to construct a standard storage layer parameter set based on 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 merging the acquired data items to construct a standard storage layer parameter set.
A service data extracting module 402, configured to extract corresponding service data from the received service data according to the standard storage layer parameter set.
A code value conversion module 403, 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 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 party dictionary code 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 submodule for: converting a first format code value in the service data into a corresponding second format code value to obtain converted service data; classifying the converted business data according to business rules, 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 the business process service, so as to perform business processing, where when the business process service is executed, the access data is obtained from the data of the standard storage layer.
In an embodiment, the plurality of business process services may be respectively configured to invoke the business interfaces, and when each of the business process services is executed, the access data is obtained from at least one XML node of the plurality of XML nodes.
In one embodiment, the service processing apparatus 400 further includes: a business process service encapsulation module, configured to: before the business processing module 404 executes a business process service corresponding to a business interface, it is determined whether a business process service corresponding to the business interface exists currently, and the business process service is encapsulated in the following manner if the business process service does not exist: and 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.
In one embodiment, the code value conversion module 403 is further configured to: after the service processing module 404 calls 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, 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 for data interaction with a service party.
In addition, the detailed implementation content of the service processing device in the embodiment of the present invention has been described in detail in the above service processing method, so that the repeated content is not described again.
Fig. 5 illustrates an exemplary system architecture 500 of a business process method or business process apparatus to which embodiments of the invention 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 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the service processing method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the service processing device 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, shown is a block diagram of a computer system 600 suitable for use in implementing a terminal device or server of an embodiment of the present application. The terminal device or the server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the 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 that 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 necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via 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, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; 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 driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the 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 illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 flowchart 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 described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a 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 some cases constitute a definition of the module itself, and for example, the parameter set building module may also be described as "a module for building a standard storage tier parameter set based on data items of each service interface".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: constructing a standard storage layer parameter set based on the data items of each service interface; extracting corresponding service data from the received service data according to the standard storage layer parameter set; code value conversion is carried out on the extracted service data to obtain standard storage layer data; and calling each service interface by executing the service flow service to process the service, wherein when the service flow service is executed, the access data is obtained from the data of the standard storage layer.
According to the technical scheme of the embodiment of the invention, a standard storage layer parameter set is constructed based on data items of each service interface; extracting corresponding service data from the received service data according to the standard storage layer parameter set; code value conversion is carried out 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 reference data from the data of the standard storage layer when the business process service is executed. The method can adapt to service processing scenes when the method cooperates with different service parties, has good expansibility, reduces the costs of research and development, test, operation and maintenance and the like, has low requirement on the understanding of the services of developers, and improves the research and development response speed.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for processing a service, comprising:
constructing a standard storage layer parameter set based on the data items of each service interface;
extracting corresponding service data from the received service data according to the standard storage layer parameter set;
code value conversion is carried out on the extracted service data to obtain standard storage layer data;
and calling each service interface by executing the service flow service to process the service, wherein when the service flow service is executed, the access data is obtained from the data of the standard storage layer.
2. The method of claim 1, wherein the step of constructing a standard set of storage tier parameters based on the data items of each service interface comprises:
and acquiring the data items of each service interface, and merging the acquired data items to construct the standard storage layer parameter set.
3. 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 party 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 party dictionary code from the service data;
searching a second format code value corresponding to the standard dictionary code matched with the service party dictionary code from the standard data dictionary corresponding to the service party;
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.
4. The method according to claim 3, wherein the step of converting the first format value in the service data into the corresponding second format value to obtain the standard storage layer data comprises:
converting the first format code value in the service data into the corresponding second format code value to obtain converted service data;
and classifying the converted service data according to service rules, and storing the obtained various types of data into a plurality of XML nodes to obtain the standard storage layer data.
5. The method of claim 4, wherein the plurality of business process services are respectively configured to invoke the business interfaces, and wherein each of the business process services, when executed, obtains the access data from at least one of the plurality of XML nodes.
6. The method of claim 5, wherein before executing the business process service corresponding to one of the business interfaces, the method comprises:
judging whether the business process service corresponding to the business interface exists at present, and packaging the business process service in the following mode under the condition that the business process service does not exist: and 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.
7. The method of claim 5, 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.
8. 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 performing code value conversion on the extracted service data to obtain standard storage layer data;
and the business processing module is used for calling each business interface by executing the business process service so as to process the business, wherein when the business process service is executed, the access data is obtained from the data of the standard storage layer.
9. 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 recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
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 true CN111104556A (en) 2020-05-05
CN111104556B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015493A (en) * 2020-08-27 2020-12-01 中国平安财产保险股份有限公司 External system interface docking method, device and storage medium
CN112767036A (en) * 2021-01-25 2021-05-07 北京有竹居网络技术有限公司 Service processing method and device
CN113157271A (en) * 2021-05-13 2021-07-23 中国建设银行股份有限公司 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 (9)

* 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
US20150081485A1 (en) * 2013-09-13 2015-03-19 Mace Engineering Group Pty Ltd. Sales Order Data Collection And Management System
CN105760498A (en) * 2016-02-22 2016-07-13 浪潮通用软件有限公司 Achievement method of XML data and relational database matching
US20180046965A1 (en) * 2016-08-15 2018-02-15 International Business Machines Corporation Executing a set of business rules on incomplete data
US20180152400A1 (en) * 2016-11-28 2018-05-31 Snap Inc. Processing media content in a messaging system
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

Patent Citations (10)

* 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
US20150081485A1 (en) * 2013-09-13 2015-03-19 Mace Engineering Group Pty Ltd. Sales Order Data Collection And Management System
CN105760498A (en) * 2016-02-22 2016-07-13 浪潮通用软件有限公司 Achievement method of XML data and relational database matching
US20180046965A1 (en) * 2016-08-15 2018-02-15 International Business Machines Corporation Executing a set of business rules on incomplete data
US20180152400A1 (en) * 2016-11-28 2018-05-31 Snap Inc. Processing media content in a messaging system
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015493A (en) * 2020-08-27 2020-12-01 中国平安财产保险股份有限公司 External system interface docking method, device and storage medium
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
CN113157271A (en) * 2021-05-13 2021-07-23 中国建设银行股份有限公司 Service processing method and device
CN113392093A (en) * 2021-07-09 2021-09-14 中国建设银行股份有限公司 Service processing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN111104556B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN111104556B (en) Service processing method and device
CN112184154A (en) Business approval method and device
CN110689268B (en) Method and device for extracting indexes
CN110109983B (en) Method and device for operating Redis database
CN111857888A (en) Transaction processing method and device
CN113673978A (en) Transaction method, system, computer device and storage medium based on SWIFT system
CN108076110B (en) Electronic data exchange system and apparatus comprising an electronic data exchange system
CN109345249A (en) A kind of payment fail processing method and device
CN112559646A (en) Report downloading method and device
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN113362111B (en) Content sending method and device and electronic equipment
CN115330540A (en) Method and device for processing transaction data
CN113360672B (en) Method, apparatus, device, medium and product for generating knowledge graph
US20190163830A1 (en) Customer service advocacy on social networking sites using natural language query response from site-level search results
CN111526184B (en) Business auditing method and device
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN114881739A (en) Order event processing method and device, electronic equipment and storage medium
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
CN114780361A (en) Log generation method, device, computer system and readable storage medium
CN112363716A (en) Method, system and device for dynamically assembling evaluation model
CN113448960A (en) Method and device for importing form file
CN113283850A (en) Task auditing method, device and system
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN112348612A (en) Order generation method and device
CN111127221A (en) Policy claim settlement method, policy claim settlement device, policy claim settlement medium and electronic 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