WO2022199076A1 - Service processing method for multiple types of services, computer device, and storage medium - Google Patents

Service processing method for multiple types of services, computer device, and storage medium Download PDF

Info

Publication number
WO2022199076A1
WO2022199076A1 PCT/CN2021/131754 CN2021131754W WO2022199076A1 WO 2022199076 A1 WO2022199076 A1 WO 2022199076A1 CN 2021131754 W CN2021131754 W CN 2021131754W WO 2022199076 A1 WO2022199076 A1 WO 2022199076A1
Authority
WO
WIPO (PCT)
Prior art keywords
business
code
parameters
service
configuration
Prior art date
Application number
PCT/CN2021/131754
Other languages
French (fr)
Chinese (zh)
Inventor
孙岩
邱进
王真
许军
司孝波
Original Assignee
苏宁易购集团股份有限公司
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 苏宁易购集团股份有限公司 filed Critical 苏宁易购集团股份有限公司
Publication of WO2022199076A1 publication Critical patent/WO2022199076A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Definitions

  • the present application relates to the technical field of service data processing, and in particular, to a service processing method, apparatus, computer equipment and storage medium for multiple types of services.
  • the business management system develops corresponding codes for each business type, so as to realize the data processing of the business data of the corresponding business types when the corresponding codes are run.
  • the code in the business management system When the business management system receives new business requirements, the code in the business management system must be adjusted based on the new business requirements.
  • the current adjustment method is to make changes to the old code or copy a new code to make changes to obtain the execution code that matches the new business.
  • making changes to old code increases the risk of existing functionality within the business management system. If a new code is copied and modified, the code repetition rate in the business management system will be high, and the later business management will change. Multiple codes in the business management system need to be modified at the same time, resulting in low R&D efficiency of the entire business management system and code changes. Management is complex.
  • a business processing method for multi-type business comprises: reading first codes of multiple types of business, the first code includes parent class code and each first subclass code inherited from the parent class code, the parent class code It is used to implement business process processing for each type of business among multiple types of business using the same processing flow when it is run.
  • Each first subclass code contains configuration parameters and each first subclass code is used to implement the process for each type of business when it is run.
  • Carry out business data processing when receiving business parameters of any type of business among multiple types of business, run the first code, and pass the business parameters to the first code, so that when the first code is run, the same processing flow is implemented.
  • Business process processing is performed on any type of business, and business data processing is performed on any type of business after matching the business parameters with the configuration parameters.
  • the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, the second subclass code It is used to process the business data of the extended business at runtime, and the extended business is not included in the various types of business.
  • a service processing method for multiple types of services further includes: reading a second code transmitted by parameters of multiple types of services, and using the second code to receive service parameters; Implement the parameter passing method of parameter passing.
  • the entity object is set in the parameter passing method, and the entity object is used to receive business parameters of any type of business.
  • the business parameters include first platform parameters and first business parameters
  • the configuration parameters include second platform parameters and second business parameters
  • the business parameters are passed to the first code so that the first code is executed when the first code is executed.
  • the business type parameters are matched with the second business type parameters, and business data processing is performed on any type of business according to the matching result.
  • a business processing method for multi-type business further includes: storing business data of each type of business in the multi-type business in sub-databases and sub-tables to obtain a plurality of data tables stored in the plurality of databases , each data table is used to record the business data of each type of business, and each data table adopts the configuration parameter as the identification of the business data; after matching the business parameter and the configuration parameter, the business data processing of any type of business, including: Match with the configuration parameters, determine the target first subclass code from each first subclass code according to the matching result, and run the target first subclass code so that when the target first subclass code is realized, the target first subclass code is obtained from the stored multiple code according to the matching parameter.
  • the business data of any type of business is extracted from the data table for business data processing.
  • a business processing method for multiple types of business further includes: reading a configuration file, and extracting configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, The configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
  • the configuration parameter when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter .
  • a service processing device for multiple types of services includes: a reading module for reading first codes of multiple types of services, the first codes include parent code and each first child inherited from the parent code Class code, the parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow at runtime.
  • Each first subclass code contains configuration parameters and each first subclass code is used to be run.
  • the processing module is used to run the first code when receiving the service parameters of any type of service among the multiple types of services, and pass the service parameters to the first code, so that the first code When a code is run, it implements business process processing for any type of business according to the same processing flow, and performs business data processing for any type of business after matching the business parameters with the configuration parameters.
  • a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method in any of the foregoing embodiments when the processor executes the computer program.
  • the first code is set in the business management system.
  • the first code includes the parent class code and the first subclass codes inherited from the parent class code.
  • the parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow when it is run.
  • a subclass code includes configuration parameters, and each first subclass code is used to implement business data processing for various types of business at runtime.
  • the service management system receives the service parameters of any type of service among the multiple types of services, it runs the first code, and transfers the service parameters to the first code, so that when the first code is run, it can implement the same processing flow for any type of service.
  • the business process is processed for the type of business and the business data is processed for any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
  • Fig. 1 is an application environment diagram of a service processing method of a multi-type service in one embodiment
  • FIG. 2 is a schematic flowchart of a service processing method for a multi-type service in one embodiment
  • FIG. 3 is a schematic diagram of an application flow of a business processing method for a multi-type business in a usage scenario
  • Fig. 4 is a structural block diagram of a service processing apparatus of a multi-type service in one embodiment
  • FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
  • a service processing method for multi-type services provided by the present application can be applied to the application environment shown in FIG. 1 .
  • the server 202 of the service management system is configured to execute a service processing method of a multi-type service of the present application.
  • the server 202 is provided with the first code.
  • the implementation logic of the first code is shown in FIG. 1 .
  • the first code includes the parent class code of the parent class and the first subclass codes inherited from the parent class code.
  • the parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow at runtime.
  • each first subclass code includes configuration parameters and each first subclass code is used to implement business data processing for various types of business at runtime.
  • the server 2020 of the service management system When the server 2020 of the service management system receives the service parameters of any type of service among the multiple types of services sent by the front end 102, it runs the first code, and passes the service parameters to the first code, so that the first code is executed when the first code is executed. Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
  • a service processing method for multi-type services is provided, and the method is applied to the server 202 of the service management system in FIG. 1 as an example for description, including the following steps:
  • the first codes include parent class codes and each first subclass code inherited from the parent class codes, and the parent class codes are used to implement the same processing flow to many when being run
  • each type of business performs business process processing
  • each first subtype code includes configuration parameters and each first subtype code is used to implement business data processing for each type of business when it is run.
  • the first code is set, and the first code adopts a general code structure.
  • the business process that needs to be executed during business data processing is the same.
  • the parent class code of the parent class is set in the first code, and the parent class code is used to implement the same processing flow for each type of business in multiple types of business Carry out business process processing.
  • Set up multiple first subclasses inherited from the parent class, and the codes of each first subclass are used to realize business data processing of various types of business.
  • each first subclass code includes configuration parameters, and various types of services corresponding to each first subclass code can be identified according to the configuration parameters. When each first subclass code is executed, it realizes business data processing for the business of the type corresponding to the configuration parameter.
  • an abstract method is set in the parent class code, and the abstract method is mainly used to define the business processing flow of multiple types of business.
  • Abstract methods can include one or more.
  • the execution order of each abstract method in the parent class code is fixed, so that the business processing flow of multiple types of business is determined through each fixed order abstract method, and the same processing flow is obtained.
  • the same processing flow includes the first step for data proofreading, the second step for submission processing, the third step for generating approval flow, and the fourth step for post-approval data entry, and the following steps The fifth step of the downstream system.
  • the structure of these steps is fixed, and the corresponding abstract methods are set for each step in the parent class code, so as to obtain the same processing flow.
  • the abstract method of the parent class can be rewritten in the code of the first subclass to obtain the corresponding specific method.
  • the specific method is used to define the business data processing of the corresponding type of business.
  • the first subclass code is used to implement differentiated business data processing between different types of business.
  • the subclass method can be used to rewrite the abstract method of the parent class to realize differentiated business data processing between different types of business.
  • the server when the server receives service parameters of any type of service among multiple types of services, the server runs the first code, and transmits the received service parameters to the first code.
  • the parent code of the first code implements business process processing for any type of business.
  • the first code implements matching the business business parameters with the configuration parameters of each first subclass code, determines the corresponding first subclass code according to the matching result, and then uses the corresponding first subclass code to realize any type of service business data processing. Therefore, the processing of business data of any type of business is realized.
  • a first code is set in the business management system.
  • the first code includes the parent class code and the first subclass codes inherited from the parent class code.
  • the parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow when it is run.
  • a subclass code includes configuration parameters, and each first subclass code is used to implement business data processing for various types of business at runtime.
  • the service management system receives the service parameters of any type of service among the multiple types of services, it runs the first code, and transfers the service parameters to the first code, so that when the first code is run, it can implement the same processing flow for any type of service.
  • the business process is processed for the type of business and the business data is processed for any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
  • an extension interface is also provided in the parent class code, and the extension interface is used to realize the code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
  • an extension interface is reserved in the parent class code, and the extension interface is used to implement code rewriting of the subclass method in the parent class code. Therefore, when a new type of service is added, the subclass method of the second subclass code can be obtained by rewriting the abstract class in the superclass code through the extended interface. Subclass methods are used to implement business data processing for new types of business.
  • the new type of service can be called an extended service of the service management system, thus improving the expansibility of the service management system.
  • it further includes the step of: reading the second codes for parameter transmission of multiple types of services, and using the second codes to receive service parameters; wherein, the second codes are provided with parameters for realizing parameter transmission.
  • the parameter method, the entity object is set in the parameter method, and the entity object is used to receive business parameters of any type of business.
  • the reception of service parameters of any type of service among multiple types of services is implemented by the second code.
  • the second code receives the business parameters by means of entity parameter transmission.
  • the method of entity parameter transfer can directly call the interface to set the newly added business parameters without modifying the parameter transfer method when adding new business parameters.
  • the parameter-passing method in the second code is method A
  • the business parameters to be passed include parameter a and parameter b. If the traditional parameter passing method is adopted, the parameter a and the parameter b are directly used as the passing parameters set in the method A, that is, methodA(a,b).
  • method A cannot pass parameter a, parameter b, and parameter c at the same time, and you need to rewrite a new method to pass parameter a, parameter b, and parameter c at the same time.
  • method A is designed as an entity passing parameter, that is, methodA(Entity A), and Entity A represents an entity object.
  • Entity A reserves parameters a, parameter b, parameter c, parameter d, etc. of common attributes. If the business parameters passed this time are parameter a and parameter b, create an entity object Entity A, and Entity A passes the Set a and Set b perform attribute assignment.
  • the a in Set a refers to parameter a
  • the b in Set b refers to parameter b. If you want to add parameter c later, you only need to call Set c at the interface for assignment, and you do not need to modify the interface method methodA (Entity A). Among them, c in Set c refers to parameter c. Therefore, the second code does not fix the passed business parameters, but makes extensible entity parameter passing, which is convenient for subsequent business parameter expansion.
  • the service parameters include first platform parameters and first business type parameters
  • the configuration parameters include second platform parameters and second business type parameters.
  • the above-mentioned business parameters are passed to the first code, so that when the first code is run, business process processing for any type of business according to the same processing flow and business data for any type of business after matching the business parameters with the configuration parameters.
  • the processing includes: passing the first platform parameter and the first format parameter to the first code, so that when the first code is run, the business process of any type of business can be processed according to the same processing flow, and when the first code is run
  • the first platform parameters are matched with the second platform parameters and the first format parameters are matched with the second format parameters respectively, and business data processing is performed for any type of business according to the matching result.
  • the configuration parameters include second platform parameters and second format parameters. That is, when setting each first subcategory code of the first code, the second platform parameter and the second format parameter are preset in the first subcategory code.
  • the received service parameters include first platform parameters and first format parameters.
  • the first code when the first code is run, it realizes business process processing for any type of business according to the same processing flow.
  • the parameters of the first platform and the parameters of the second platform are respectively matched, and the parameters of the first format and the parameters of the second format are matched.
  • the corresponding first subclass code is determined according to the two matching results, and the corresponding first subclass code is used to implement corresponding business data processing.
  • the first code is the code configured in the approval flow and used to implement business approval processing for various types of business.
  • the business parameters of various types of business are set by the front end and sent to the server by the front end.
  • the server receives the first platform field and the first service field sent by the front end, the server uses the first platform field as the first platform parameter and the first service field as the first service parameter in the approval flow configuration.
  • the process configuration logic in the first code will flow to the corresponding approver node according to the first platform parameters and the first business parameters, so that business data of different platforms and formats can be approved by different post personnel.
  • the process configuration logic in the first code refers to the data processing logic set in the parent class code and each first subclass code in the first code.
  • the first code controls the business process flow to transfer to the corresponding approver according to the matching of the first platform parameter with the second platform parameter in the first subclass code and the matching between the first format parameter and the second format parameter in the first subclass code node. Therefore, a set of codes is realized to realize business data processing of various types of businesses, the amount of code modification in the business management system is reduced, the research and development efficiency of the business management system is improved, and the amount of code management is simplified.
  • the above-mentioned S204 further includes the step of: storing the business data of each type of business in the multiple types of business in sub-database and sub-table, to obtain a plurality of data tables stored in a plurality of databases, and each data table uses It is used to record the business data of various types of business, and each data table adopts the configuration parameters as the identification of the business data.
  • the above-mentioned business data processing for any type of business after matching the business parameters with the configuration parameters includes: matching the business parameters with the configuration parameters, and determining the target first subclass code from each first subclass code according to the matching result, The target first subclass code is run so that when the target first subclass code is realized, business data of any type of business is extracted from the stored multiple data tables according to the matching parameters to perform business data processing.
  • the database is at the database design level of the business management system.
  • the database adopts MYSQL database, and the business data of various types of business is stored in sub-database and sub-table. A total of 10 databases and 1,000 tables are designed.
  • the storage method of the sub-library and sub-table may be performed by taking the modulo of the commodity code of the commodity corresponding to the business to perform the sub-library and sub-table.
  • match the business parameters with the configuration parameters determine the target first subclass code from each first subclass code according to the matching result, run the target first subclass code, and select the stored multiple code according to the matching parameters.
  • the business data of any type of business is extracted from each data table for business data processing.
  • the commodity code modulo is a routing strategy of sub-database and sub-table.
  • the data volume of commodities corresponding to various types of business is relatively large and the inventory of commodities is relatively large, if commodity data of various types of businesses are stored in a database and table, the performance of the database will be limited.
  • the storage method of sub-database and sub-table can realize the extended storage of business data, reduce the amount of data in each data table, and improve the read-write efficiency of business data.
  • the above S204 also includes the steps of: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, so as to be displayed by the configuration component Configuration parameters; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
  • a configuration component is set on the maintenance interface of the front end, and the configuration component is used to display platform parameters and format parameters of different functional modules.
  • a configuration file is stored in the service management system, and the configuration file includes configuration parameters of each first subclass code. It may be that the R&D personnel develop each first subclass code for different functional modules, and each first subclass code includes configuration parameters. At this point, the R&D personnel set the configuration parameters into the configuration file.
  • the server of the service management system extracts the configuration parameters of each first subclass code from the configuration file and loads the configuration parameters into the configuration component of the front end to display the configuration parameters through the configuration component. At this point, the configuration parameters are also the platform parameters and format parameters displayed in the configuration component.
  • the server dynamically reads configuration parameters from configuration files.
  • the background control layer reads the front-end framework through the SCM (software configuration management) file, and returns the configuration parameters read by the server to the background view layer.
  • the front-end page loads the configuration parameters of the background view layer into the corresponding configuration components to realize the configuration parameters. flexible increase or decrease.
  • the formats and platforms in the business management system are respectively defined by two different KEYs (identification numbers), and the definitions represent the scope of all formats and platforms in the entire system.
  • Each of the first subclass codes in the first code represents different functional modules.
  • Each different functional module determines certain scopes of the format and platform in the global system definition above through the KEY corresponding to the functional module, that is, the KEY corresponding to the functional module indicates the platform and format supported by each functional module, and the result will be directly It is displayed in the maintenance interface of the corresponding function of the front-end management side.
  • the corresponding personnel with configuration authority can make adjustments at any time in the system definition through the maintenance interface. After the adjustment, the system will take effect immediately, and the adjustment track will be recorded in the operation log. middle. After the business is maintained on the management interface, click Submit, and the data of platform parameters and business format parameters will be transmitted to the backend.
  • the back-end server implements the first code, so as to perform corresponding business data processing on the front-end platform parameters and business format parameters.
  • the platforms currently supported by the system are: retail chain platform, B2C e-commerce platform, B2B government-enterprise platform, Youhuo platform, Tmall platform, public platform, Darlingka, Dangdang, retail cloud, and electrical partner.
  • Multiple platforms are defined by the configuration item CHANNEL_CONFIG in the business management system.
  • the supported platform range corresponding to each different function module is defined by FC_CHANNEL_CONFIG, and multiple definitions are separated by English commas.
  • the formats currently supported by the system are: electrical appliances, supermarkets, Red kids, Jiwu, sports, Wanda Department Store, technology companies, sports equipment, after-sales companies, small stores, Dia Tiantian, Carrefour, Hong Kong, overseas purchases, cross-border trade, overseas purchases General trade, in stock, buy together.
  • Multiple businesses are defined through the configuration item THRY_CONFIG in the business management system.
  • the business scope corresponding to each different function module is defined through FC_BUSINESS_UNIT_CONFIG, and multiple definitions are separated by English commas.
  • the platforms and business formats that can be maintained by the front-end maintenance interface are not fixed.
  • the corresponding platforms and business formats are configured and displayed through the corresponding functional modules in the business management system.
  • the business management system realizes the dynamic configuration of multi-type business business processing, avoids repeated code development, and quickly realizes different platforms and formats with the same management specifications. business data processing on the management side.
  • the configuration parameter when the front-end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front-end detects that the configuration parameter in the configuration component is triggered, Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
  • data verification is performed on the configuration parameters triggered by the front end.
  • the method of data verification is: verifying the user authority of the user, and the user authority verification succeeds when the user authority meets the first preset condition.
  • the first preset condition may be user rights of one or more users set in the service management system that can trigger configuration parameters. Verify the triggered configuration parameters.
  • the triggered configuration parameter is verified successfully when the triggered configuration parameter satisfies the second preset condition.
  • the second preset condition may be a triggerable configuration parameter corresponding to the user authority set in the service management system.
  • the triggered configuration parameters include the platform field and the format field.
  • the platform field and the format field will be passed to the approval flow configuration as business parameters, and the process configuration logic in the approval flow configuration will be transferred to the corresponding approver node according to the corresponding business parameters to realize the business of different platforms and formats. Approved by different positions.
  • the data falls into the effective table and becomes effective, and the effective data is sent to the downstream system through the delivery interface.
  • multiple types of services are multiple types of services used for pricing.
  • the business data processing of the multi-type business is the business data processing in the pricing approval process of the multi-type business.
  • the initial business requirement of manual pricing on stock is to maintain the manual price of electrical appliances on the stock platform.
  • a multi-type business of this application is adopted.
  • the processing method turns the in-stock manual pricing into an extensible componentized pricing. Specifically, improvements are made in the following aspects to achieve scalable componentized pricing for in-stock manual pricing:
  • common attributes that may be used in the pricing process are reserved, such as commodity code, supplier, city, location, etc., and common fields are redundant, especially the platform and format fields are reserved.
  • Spring's MVC mode is adopted to separate the model layer and business layer.
  • the separate Controller layer is responsible for processing front-end page requests
  • the Service layer is responsible for processing business logic
  • the Dao layer is responsible for database operations
  • the FlowService layer is responsible for processing approvals Process
  • the SendService layer is responsible for data delivery
  • the Ftl layer is responsible for data display.
  • a set of process codes is made for the entire process of creation, submission, review, validation, distribution, and display.
  • the codes of different functional modules handle different business logic, and the functions and codes are layered. It has done a good stripping.
  • the business parameter transfer in the code is not hard-coded, but an extensible entity parameter transfer is made to facilitate the expansion of subsequent business parameters.
  • Approval process configuration All process configurations use the business parameters passed from the process template to determine which set of process branches to go to, and do not directly match the process, and transfer the approval flow to the corresponding post personnel node according to different process branches.
  • Front-end maintenance interface The range of platforms and formats that can be maintained is not fixed, but is read and displayed through the range of the corresponding function module configuration in the system.
  • the follow-up business has successively proposed that the in-stock pricing function needs to support retail cloud pricing and public pricing, and the business format needs to support supermarkets, red children, polar objects, sports, overseas purchases, and after-sales. These new requirements are not much different from the previous pricing of in-stock electrical appliances, but the management personnel are different.
  • FC_CHANNEL_CONFIG and FC_BUSINESS_UNIT_CONFIG in the system, the newly proposed platform and format can be supported. New development work is added.
  • the initial developer-day price of Yuhuo Electric Appliances is 20 person-days, involving more than 3,500 lines of code. If it is not for the support of configurable platform and format pricing, each new platform and format will be re-developed or transformed according to the business at least It takes 5 man-days to develop, plus testing to conduct a comprehensive regression test for each function point, which consumes more man-days. However, after the configuration is implemented, there is no development workload, and testing is only the main task of adding new requirements. The process can be returned, which greatly reduces the duplication of code, improves the utilization of code, and reduces the risk of transforming on the basis of the original code.
  • the demand development cycle can be reduced, the code scalability and ease of use can be improved, the risk of code changes and code duplication rates can be reduced, and developers' experience can be improved. R&D efficiency.
  • a service processing apparatus for multiple types of services includes a reading module 402 and a processing module 404 .
  • the reading module 402 is used to read the first codes of various types of services, the first codes include parent class codes and each first subclass code inherited from the parent class codes, and the parent class codes are used to be implemented and adopted by the runtime.
  • each first subclass code contains configuration parameters, and each first subclass code is used to implement business data processing for each type of business when it is run; the processing module 404, for running the first code when receiving the service parameters of any type of service among the multiple types of services, and passing the service parameters to the first code, so that when the first code is run, the processing of any type of service is implemented according to the same processing flow.
  • One type of business performs business process processing, and after matching business parameters with configuration parameters, business data processing is performed for any type of business.
  • the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, the second subclass code It is used to process the business data of the extended business at runtime, and the extended business is not included in the various types of business.
  • a service processing apparatus for multiple types of services further includes a receiving module, configured to read a second code transmitted by parameters of multiple types of services, and use the second code to receive service parameters; wherein, the second code A parameter-passing method for implementing parameter transfer is set in the parameter-passing method, and an entity object is set in the parameter-passing method, and the entity object is used to receive business parameters of any type of business.
  • the business parameters include first platform parameters and first business parameters
  • the configuration parameters include second platform parameters and second business parameters
  • the business parameters are passed to the first code so that the first code is executed when the first code is executed.
  • the business type parameters are matched with the second business type parameters, and business data processing is performed on any type of business according to the matching result.
  • a service processing apparatus for multiple types of services further includes a storage module for storing the service data of each type of services in multiple types of services in sub-databases and sub-tables to obtain data stored in multiple databases.
  • a plurality of data tables, each data table is used to record business data of various types of business, and each data table uses configuration parameters as the identifier of the business data.
  • the target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
  • a service processing apparatus for multiple types of services further includes a configuration module for reading a configuration file, extracting configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the front-end In the configuration component, the configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
  • the configuration parameter when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter .
  • Each module in the above-mentioned service processing apparatus for multiple types of services may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided, and the computer device may be a server supporting the above-mentioned service management system, and its internal structure diagram may be as shown in FIG. 5 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer equipment is used for communicating with the external terminal to receive service parameters sent by the external terminal.
  • the computer program when executed by the processor, implements a service processing method for multiple types of services.
  • FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when executing the computer program: reading multiple types of services
  • the first code includes the parent class code and each first subclass code inherited from the parent class code, and the parent class code is used to implement the same processing flow for each type of business in the multi-type business when it is run.
  • each first subclass code contains configuration parameters and each first subclass code is used to implement business data processing for various types of services when running; when receiving business parameters of any type of business among multiple types of services
  • the business parameters are passed to the first code, so that when the first code is run, the business process of any type of business can be processed according to the same processing flow, and the business parameters and configuration parameters are matched.
  • One type of business conducts business data processing.
  • the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
  • the processor executes the computer program, the following steps are further implemented: reading the second codes for parameter transmission of multiple types of services, and using the second codes to receive service parameters; wherein the second codes are provided with parameters for implementing The passed parameter method, the entity object is set in the parameter pass method, and the entity object is used to receive business parameters of any type of business.
  • the business parameters include first platform parameters and first business parameters
  • the configuration parameters include second platform parameters and second business parameters
  • the business parameters are passed to the first code, so that the first code is implemented at runtime Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code , so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first format The parameters are matched with the second format parameters, and business data processing is performed on any type of business according to the matching result.
  • the processor further implements the following steps when executing the computer program: storing business data of various types of services in multiple types of services in sub-databases and sub-tables to obtain multiple data tables stored in multiple databases, each of which is stored in multiple databases.
  • the data table is used to record the business data of various types of business, and each data table adopts the configuration parameter as the identifier of the business data.
  • the target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
  • the processor executes the computer program
  • the following steps are further implemented: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end to pass The configuration component displays the configuration parameters; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
  • the configuration parameter when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered The user authority of the user who configures the parameter and the triggered configuration parameter are verified; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: when receiving service parameters of any type of service among multiple types of services , run the first code, and pass the business parameters to the first code, so that when the first code is run, it can process the business process of any type of business according to the same processing flow and match the business parameters with the configuration parameters.
  • Type business for business data processing when receiving service parameters of any type of service among multiple types of services , run the first code, and pass the business parameters to the first code, so that when the first code is run, it can process the business process of any type of business according to the same processing flow and match the business parameters with the configuration parameters.
  • the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
  • the following steps are further implemented: reading the second codes transmitted by parameters of multiple types of services, and using the second codes to receive service parameters; The parameter-passing method of parameter passing, the entity object is set in the parameter-passing method, and the entity object is used to receive business parameters of any type of business.
  • the business parameters include first platform parameters and first business parameters
  • the configuration parameters include second platform parameters and second business parameters
  • the business parameters are passed to the first code, so that the first code is implemented at runtime Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code , so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first format The parameters are matched with the second format parameters, and business data processing is performed on any type of business according to the matching result.
  • the business data of each type of business among the multiple types of business is stored in sub-databases and sub-tables to obtain multiple data tables stored in multiple databases, Each data table is used to record business data of various types of business, and each data table adopts configuration parameters as the identification of the business data.
  • After matching the business parameters with the configuration parameters perform business data processing on any type of business, including: matching the business parameters with the configuration parameters, determining the target first subclass code from the first subclass codes according to the matching result, and running
  • the target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
  • the following steps are further implemented: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, to The configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
  • the configuration parameter when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered The user authority of the user who configures the parameter and the triggered configuration parameter are verified; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM) and so on.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

The present application relates to a service processing method and apparatus for multiple types of services, a computer device, and a storage medium. The method comprises: reading first codes for a plurality of types of services, the first codes comprising a parent code and first child codes, the parent code being used for implementing service flow processing of each type of service by using the same processing flow, and the first child codes comprising configuration parameters and being used for implementing service data processing on each type of service; and when a service parameter of any type of service in the plurality of types of services is received, running the first codes, and transmitting the service parameter to the first codes, so that when the first codes are run, the service flow processing of any type of service is implemented according to the same processing flow, and service data processing is performed on any type of service after the service parameter matches the configuration parameter. According to the method, service data processing can be carried out on a plurality of types of services by means of one set of codes, and a modification amount of codes in a service management system is reduced.

Description

多类型业务的业务处理方法、计算机设备和存储介质Business processing method, computer equipment and storage medium for multi-type business 技术领域technical field
本申请涉及业务数据处理技术领域,特别是涉及一种多类型业务的业务处理方法、装置、计算机设备和存储介质。 The present application relates to the technical field of service data processing, and in particular, to a service processing method, apparatus, computer equipment and storage medium for multiple types of services.
背景技术Background technique
目前面临着不同平台以及不同业态的多场景的业务需求,业务管理系统需要管理的业务类型不断增多。对于多业务类型的业务数据处理,业务管理系统针对各个业务类型开发对应的代码,以在运行对应的代码时实现对应业务类型的业务数据的数据处理。Currently facing the business needs of different platforms and different formats of multi-scenarios, the business types that need to be managed by the business management system are increasing. For the business data processing of multiple business types, the business management system develops corresponding codes for each business type, so as to realize the data processing of the business data of the corresponding business types when the corresponding codes are run.
当业务管理系统接收到新的业务需求时,基于新的业务需求业务管理系统内的代码必然需要调整。当前调整的方式为在老代码上进行改动调整或拷贝一份新代码进行改动以得到与新业务匹配的执行代码。然而,如果在老代码上进行改动调整就会增加业务管理系统内已有功能的风险。如果拷贝一份新代码进行改动,会导致业务管理系统内代码重复率高,且后期业务管理发生变化,需要同时修改业务管理系统内的多份代码,导致整个业务管理系统的研发效率低且代码管理复杂。When the business management system receives new business requirements, the code in the business management system must be adjusted based on the new business requirements. The current adjustment method is to make changes to the old code or copy a new code to make changes to obtain the execution code that matches the new business. However, making changes to old code increases the risk of existing functionality within the business management system. If a new code is copied and modified, the code repetition rate in the business management system will be high, and the later business management will change. Multiple codes in the business management system need to be modified at the same time, resulting in low R&D efficiency of the entire business management system and code changes. Management is complex.
技术解决方案technical solutions
基于此,有必要针对上述技术问题,提供一种多类型业务的业务处理方法、装置、计算机设备和存储介质,能够通过一份代码实现多种类型业务的业务数据处理,减少了业务管理系统内代码的修改量,提高了业务管理系统的研发效率且简化了代码管理量。Based on this, it is necessary to provide a business processing method, device, computer equipment and storage medium for multi-type business in response to the above technical problems, which can realize business data processing of various types of business through one code, and reduce the number of internal business management systems. The amount of code modification improves the R&D efficiency of the business management system and simplifies the amount of code management.
一种多类型业务的业务处理方法,该方法包括:读取多种类型业务的第一代码,第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理;当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。A business processing method for multi-type business, the method comprises: reading first codes of multiple types of business, the first code includes parent class code and each first subclass code inherited from the parent class code, the parent class code It is used to implement business process processing for each type of business among multiple types of business using the same processing flow when it is run. Each first subclass code contains configuration parameters and each first subclass code is used to implement the process for each type of business when it is run. Carry out business data processing; when receiving business parameters of any type of business among multiple types of business, run the first code, and pass the business parameters to the first code, so that when the first code is run, the same processing flow is implemented. Business process processing is performed on any type of business, and business data processing is performed on any type of business after matching the business parameters with the configuration parameters.
在其中一个实施例中,父类代码中还设置有扩展接口,扩展接口用于实现父类代码中子类方法的代码重写以得到父类代码的第二子类代码,第二子类代码用于被运行时实现对扩展业务进行业务数据处理,多种类型业务中不包含扩展业务。In one of the embodiments, the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, the second subclass code It is used to process the business data of the extended business at runtime, and the extended business is not included in the various types of business.
在其中一个实施例中,一种多类型业务的业务处理方法还包括:读取多种类型业务的参数传递的第二代码,采用第二代码接收业务参数;其中,第二代码中设置有用于实现参数传递的传参方法,传参方法中设置实体对象,实体对象用于接收任一类型业务的业务参数。In one of the embodiments, a service processing method for multiple types of services further includes: reading a second code transmitted by parameters of multiple types of services, and using the second code to receive service parameters; Implement the parameter passing method of parameter passing. The entity object is set in the parameter passing method, and the entity object is used to receive business parameters of any type of business.
在其中一个实施例中,业务参数包括第一平台参数和第一业态参数,配置参数包括第二平台参数和第二业态参数,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将第一平台参数和第一业态参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理,且第一代码被运行时实现分别将第一平台参数与第二平台参数进行匹配以及将第一业态参数与第二业态参数进行匹配并根据匹配结果对任一类型业务进行业务数据处理。In one of the embodiments, the business parameters include first platform parameters and first business parameters, the configuration parameters include second platform parameters and second business parameters, and the business parameters are passed to the first code so that the first code is executed when the first code is executed. To implement business process processing for any type of business according to the same processing flow and to perform business data processing for any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code, so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first The business type parameters are matched with the second business type parameters, and business data processing is performed on any type of business according to the matching result.
在其中一个实施例中,一种多类型业务的业务处理方法还包括:将多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且各数据表采用配置参数作为业务数据的标识;将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码以使得实现目标第一子类代码时根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In one of the embodiments, a business processing method for multi-type business further includes: storing business data of each type of business in the multi-type business in sub-databases and sub-tables to obtain a plurality of data tables stored in the plurality of databases , each data table is used to record the business data of each type of business, and each data table adopts the configuration parameter as the identification of the business data; after matching the business parameter and the configuration parameter, the business data processing of any type of business, including: Match with the configuration parameters, determine the target first subclass code from each first subclass code according to the matching result, and run the target first subclass code so that when the target first subclass code is realized, the target first subclass code is obtained from the stored multiple code according to the matching parameter. The business data of any type of business is extracted from the data table for business data processing.
在其中一个实施例中,一种多类型业务的业务处理方法还包括:读取配置文件,从配置文件中提取各第一子类代码的配置参数;将配置参数加载到前端的配置组件中,以通过配置组件展示配置参数;当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数。In one of the embodiments, a business processing method for multiple types of business further includes: reading a configuration file, and extracting configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, The configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
在其中一个实施例中,当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数,包括:当通过前端检测到配置组件中的配置参数被触发时,对触发配置参数的用户的用户权限以及触发的配置参数进行验证处理;当验证出用户权限符合第一预设条件且触发的配置参数符合第二预设条件时,将配置参数作为接收到的业务参数。In one of the embodiments, when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter .
一种多类型业务的业务处理装置,该装置包括:读取模块,用于读取多种类型业务的第一代码,第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理;处理模块,用于当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。A service processing device for multiple types of services, the device includes: a reading module for reading first codes of multiple types of services, the first codes include parent code and each first child inherited from the parent code Class code, the parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow at runtime. Each first subclass code contains configuration parameters and each first subclass code is used to be run. The processing module is used to run the first code when receiving the service parameters of any type of service among the multiple types of services, and pass the service parameters to the first code, so that the first code When a code is run, it implements business process processing for any type of business according to the same processing flow, and performs business data processing for any type of business after matching the business parameters with the configuration parameters.
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述任一实施例方法的步骤。A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method in any of the foregoing embodiments when the processor executes the computer program.
一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method in any of the foregoing embodiments.
有益效果beneficial effect
上述多类型业务的业务处理方法、装置、计算机设备和存储介质,业务管理系统内设置有第一代码。第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理。当业务管理系统接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。因此,业务管理系统能够采用一份代码实现多种类型业务的业务数据处理,减少了业务管理系统内代码的修改量,提高了业务管理系统的研发效率且简化了代码管理量。For the business processing method, device, computer equipment and storage medium of the above-mentioned multi-type business, the first code is set in the business management system. The first code includes the parent class code and the first subclass codes inherited from the parent class code. The parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow when it is run. A subclass code includes configuration parameters, and each first subclass code is used to implement business data processing for various types of business at runtime. When the service management system receives the service parameters of any type of service among the multiple types of services, it runs the first code, and transfers the service parameters to the first code, so that when the first code is run, it can implement the same processing flow for any type of service. The business process is processed for the type of business and the business data is processed for any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
附图说明Description of drawings
图1为一个实施例中一种多类型业务的业务处理方法的应用环境图;Fig. 1 is an application environment diagram of a service processing method of a multi-type service in one embodiment;
图2为一个实施例中一种多类型业务的业务处理方法的流程示意图;2 is a schematic flowchart of a service processing method for a multi-type service in one embodiment;
图3为一个使用场景中一种多类型业务的业务处理方法的应用流程示意图;3 is a schematic diagram of an application flow of a business processing method for a multi-type business in a usage scenario;
图4为一个实施例中一种多类型业务的业务处理装置的结构框图;Fig. 4 is a structural block diagram of a service processing apparatus of a multi-type service in one embodiment;
图5为一个实施例中计算机设备的内部结构图。FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请提供的一种多类型业务的业务处理方法,可以应用于如图1所示的应用环境中。如图1所示,业务管理系统的服务器202用于执行本申请的一种多类型业务的业务处理方法。具体地,服务器202内设置有第一代码。第一代码的实现逻辑如图1所示。第一代码中包含父类的父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理。当业务管理系统的服务器2020接收到前端102发送的多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。因此,业务管理系统能够采用一份代码实现多种类型业务的业务数据处理,减少了业务管理系统内代码的修改量,提高了业务管理系统的研发效率且简化了代码管理量。A service processing method for multi-type services provided by the present application can be applied to the application environment shown in FIG. 1 . As shown in FIG. 1 , the server 202 of the service management system is configured to execute a service processing method of a multi-type service of the present application. Specifically, the server 202 is provided with the first code. The implementation logic of the first code is shown in FIG. 1 . The first code includes the parent class code of the parent class and the first subclass codes inherited from the parent class code. The parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow at runtime. , each first subclass code includes configuration parameters and each first subclass code is used to implement business data processing for various types of business at runtime. When the server 2020 of the service management system receives the service parameters of any type of service among the multiple types of services sent by the front end 102, it runs the first code, and passes the service parameters to the first code, so that the first code is executed when the first code is executed. Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
在一个实施例中,如图2所示,提供了一种多类型业务的业务处理方法,以该方法应用于图1中的业务管理系统的服务器202为例进行说明,包括以下步骤: In one embodiment, as shown in FIG. 2 , a service processing method for multi-type services is provided, and the method is applied to the server 202 of the service management system in FIG. 1 as an example for description, including the following steps:
S202,读取多种类型业务的第一代码,第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理。S202, read the first codes of multiple types of services, the first codes include parent class codes and each first subclass code inherited from the parent class codes, and the parent class codes are used to implement the same processing flow to many when being run In the type business, each type of business performs business process processing, and each first subtype code includes configuration parameters and each first subtype code is used to implement business data processing for each type of business when it is run.
在本实施例中,设置第一代码,第一代码采用通用性的代码结构。对于多种类型业务,在业务数据处理时需要执行的业务流程相同,此时第一代码中设置父类的父类代码,父类代码用于实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理。设置继承于父类的多个第一子类,各第一子类代码用于实现各类型业务的业务数据处理。其中,各第一子类代码中包含有配置参数,根据配置参数可识别出各第一子类代码对应的各类型业务。当各第一子类代码被运行时实现对配置参数对应类型业务进行业务数据处理。In this embodiment, the first code is set, and the first code adopts a general code structure. For multiple types of business, the business process that needs to be executed during business data processing is the same. At this time, the parent class code of the parent class is set in the first code, and the parent class code is used to implement the same processing flow for each type of business in multiple types of business Carry out business process processing. Set up multiple first subclasses inherited from the parent class, and the codes of each first subclass are used to realize business data processing of various types of business. Wherein, each first subclass code includes configuration parameters, and various types of services corresponding to each first subclass code can be identified according to the configuration parameters. When each first subclass code is executed, it realizes business data processing for the business of the type corresponding to the configuration parameter.
各类型业务的业务数据处理存在差异性,但各类型业务的业务流程处理相同,因此通过设置各第一子类代码继承于父类代码可实现通过一套父类代码实现多种类型业务的业务流程处理。There are differences in the business data processing of each type of business, but the business process processing of each type of business is the same. Therefore, by setting each first subclass code to inherit from the parent class code, it is possible to realize the business of multiple types of business through a set of parent class codes. Process processing.
例如,父类代码中设置抽象方法,抽象方法主要用于定义多类型业务的业务处理流程。抽象方法可以包括一个或多个。当抽象方法为多个时,父类代码中各抽象方法的执行顺序是固定的,从而通过各个固定顺序的抽象方法确定多类型业务的业务处理流程,得到同一处理流程。如,同一处理流程中包括用于数据校对的第一步、用于提交处理的第二步、用于生成审批流程的第三步以及用于审批后数据落表的第四步、用于下发下游系统的第五步。这些步骤结构是固定的,父类代码中针对各个步骤设置对应的抽象方法,从而得到同一处理流程。For example, an abstract method is set in the parent class code, and the abstract method is mainly used to define the business processing flow of multiple types of business. Abstract methods can include one or more. When there are multiple abstract methods, the execution order of each abstract method in the parent class code is fixed, so that the business processing flow of multiple types of business is determined through each fixed order abstract method, and the same processing flow is obtained. For example, the same processing flow includes the first step for data proofreading, the second step for submission processing, the third step for generating approval flow, and the fourth step for post-approval data entry, and the following steps The fifth step of the downstream system. The structure of these steps is fixed, and the corresponding abstract methods are set for each step in the parent class code, so as to obtain the same processing flow.
对于各类型的业务,在业务数据处理方面存在差异时,可在第一子类代码中对父类的抽象方法进行重写,得到对应的具体方法。具体方法用于定义对应类型业务的业务数据处理。如,虽然每个步骤操作顺序已经被父类代码规定,但是可能不同类型业务之间在具体的业务数据处理方面还会存在差异化的特性。此时,第一子类代码用于实现不同类型业务之间差异化的业务数据处理。具体可以在第一子类代码中采用子类方法对父类的抽象方法进行重写的方式实现不同类型业务之间差异化的业务数据处理。For each type of business, when there are differences in business data processing, the abstract method of the parent class can be rewritten in the code of the first subclass to obtain the corresponding specific method. The specific method is used to define the business data processing of the corresponding type of business. For example, although the operation sequence of each step has been specified by the parent class code, there may be differences in specific business data processing between different types of services. At this time, the first subclass code is used to implement differentiated business data processing between different types of business. Specifically, in the first subclass code, the subclass method can be used to rewrite the abstract method of the parent class to realize differentiated business data processing between different types of business.
S204,当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。S204, when the service parameters of any type of service among the multiple types of services are received, run the first code, and pass the service parameters to the first code, so that when the first code is run, any type of service is executed according to the same processing flow. The business performs business process processing and business data processing is performed on any type of business after matching business parameters with configuration parameters.
在本实施例中,服务器接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,并将接收到的业务参数传递到第一代码。其中,运行第一代码时,第一代码的父类代码实现对任一类型业务进行业务流程处理。同时,第一代码实现将业务业务参数与各第一子类代码的配置参数进行匹配,根据匹配结果确定对应的第一子类代码,再由对应的第一子类代码实现该任一类型业务的业务数据处理。因此,实现了对任一类型业务的业务数据的处理。In this embodiment, when the server receives service parameters of any type of service among multiple types of services, the server runs the first code, and transmits the received service parameters to the first code. Wherein, when the first code is run, the parent code of the first code implements business process processing for any type of business. At the same time, the first code implements matching the business business parameters with the configuration parameters of each first subclass code, determines the corresponding first subclass code according to the matching result, and then uses the corresponding first subclass code to realize any type of service business data processing. Therefore, the processing of business data of any type of business is realized.
上述多类型业务的业务处理方法,业务管理系统内设置有第一代码。第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理。当业务管理系统接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。因此,业务管理系统能够采用一份代码实现多种类型业务的业务数据处理,减少了业务管理系统内代码的修改量,提高了业务管理系统的研发效率且简化了代码管理量。In the above-mentioned business processing method for multiple types of business, a first code is set in the business management system. The first code includes the parent class code and the first subclass codes inherited from the parent class code. The parent class code is used to implement business process processing for each type of business in the multi-type business using the same processing flow when it is run. A subclass code includes configuration parameters, and each first subclass code is used to implement business data processing for various types of business at runtime. When the service management system receives the service parameters of any type of service among the multiple types of services, it runs the first code, and transfers the service parameters to the first code, so that when the first code is run, it can implement the same processing flow for any type of service. The business process is processed for the type of business and the business data is processed for any type of business after matching the business parameters with the configuration parameters. Therefore, the business management system can use one code to realize business data processing of various types of businesses, which reduces the amount of code modification in the business management system, improves the research and development efficiency of the business management system, and simplifies the amount of code management.
在一实施例中,父类代码中还设置有扩展接口,扩展接口用于实现父类代码中子类方法的代码重写以得到父类代码的第二子类代码,第二子类代码用于被运行时实现对扩展业务进行业务数据处理,多种类型业务中不包含扩展业务。In one embodiment, an extension interface is also provided in the parent class code, and the extension interface is used to realize the code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
在该实施例中,父类代码中预留扩展接口,扩展接口用于实现父类代码中子类方法的代码重写。因此,当增加新类型业务时,可通过扩展接口重写父类代码中的抽象类得到第二子类代码的子类方法。子类方法用于实现新类型业务的业务数据处理。此处,新类型业务可称为业务管理系统的扩展业务,因此提高了业务管理系统的扩展性。In this embodiment, an extension interface is reserved in the parent class code, and the extension interface is used to implement code rewriting of the subclass method in the parent class code. Therefore, when a new type of service is added, the subclass method of the second subclass code can be obtained by rewriting the abstract class in the superclass code through the extended interface. Subclass methods are used to implement business data processing for new types of business. Here, the new type of service can be called an extended service of the service management system, thus improving the expansibility of the service management system.
在一实施例中,上述S204之前,还包括步骤:读取多种类型业务的参数传递的第二代码,采用第二代码接收业务参数;其中,第二代码中设置有用于实现参数传递的传参方法,传参方法中设置实体对象,实体对象用于接收任一类型业务的业务参数。In one embodiment, before the above S204, it further includes the step of: reading the second codes for parameter transmission of multiple types of services, and using the second codes to receive service parameters; wherein, the second codes are provided with parameters for realizing parameter transmission. The parameter method, the entity object is set in the parameter method, and the entity object is used to receive business parameters of any type of business.
在该实施中,通过第二代码实现多种类型业务中任一类型业务的业务参数的接收。其中,第二代码通过实体传参的方式接收业务参数。实体传参的方式能够在新增传递的业务参数时无需修改传参方法,直接调用接口设置新增的业务参数即可。例如,第二代码中传参方法为方法A,需要传递的业务参数包括参数a和参数b。若采用传统的传参方法,则直接将参数a和参数b作为方法A中设定的传递参数,即methodA(a,b)。若要再增加业务参数中的参数c,则方法A无法实现同时传递参数a、参数b和参数c,需重写新的方法以实现同时传递参数a、参数b和参数c。此时,若采用该实施例的方法,将方法A设计成实体传参,即methodA(Entity A),Entity A表示实体对象。Entity A中预留了常用属性的参数a、参数b、参数c、参数d等。若当次传递的业务参数为参数a和参数b,则创建实体对象Entity A,Entity A通过Set a和Set b进行属性赋值。Set a中的a指参数a,Set b中的b指参数b。后续若要增加参数c,则只需要再调用接口处进行Set c进行赋值即可,不需要修改methodA(Entity A)这个接口方法。其中,Set c中的c指参数c。因此,第二代码中没有将传递的业务参数固定化,而是做了可扩展的实体传参,便于后续的业务参数的扩展。In this implementation, the reception of service parameters of any type of service among multiple types of services is implemented by the second code. Wherein, the second code receives the business parameters by means of entity parameter transmission. The method of entity parameter transfer can directly call the interface to set the newly added business parameters without modifying the parameter transfer method when adding new business parameters. For example, the parameter-passing method in the second code is method A, and the business parameters to be passed include parameter a and parameter b. If the traditional parameter passing method is adopted, the parameter a and the parameter b are directly used as the passing parameters set in the method A, that is, methodA(a,b). If you want to add parameter c in the business parameters, method A cannot pass parameter a, parameter b, and parameter c at the same time, and you need to rewrite a new method to pass parameter a, parameter b, and parameter c at the same time. At this time, if the method of this embodiment is adopted, method A is designed as an entity passing parameter, that is, methodA(Entity A), and Entity A represents an entity object. Entity A reserves parameters a, parameter b, parameter c, parameter d, etc. of common attributes. If the business parameters passed this time are parameter a and parameter b, create an entity object Entity A, and Entity A passes the Set a and Set b perform attribute assignment. The a in Set a refers to parameter a, and the b in Set b refers to parameter b. If you want to add parameter c later, you only need to call Set c at the interface for assignment, and you do not need to modify the interface method methodA (Entity A). Among them, c in Set c refers to parameter c. Therefore, the second code does not fix the passed business parameters, but makes extensible entity parameter passing, which is convenient for subsequent business parameter expansion.
在一实施例中,业务参数包括第一平台参数和第一业态参数,配置参数包括第二平台参数和第二业态参数。上述将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将第一平台参数和第一业态参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理,且第一代码被运行时实现分别将第一平台参数与第二平台参数进行匹配以及将第一业态参数与第二业态参数进行匹配并根据匹配结果对任一类型业务进行业务数据处理。In one embodiment, the service parameters include first platform parameters and first business type parameters, and the configuration parameters include second platform parameters and second business type parameters. The above-mentioned business parameters are passed to the first code, so that when the first code is run, business process processing for any type of business according to the same processing flow and business data for any type of business after matching the business parameters with the configuration parameters. The processing includes: passing the first platform parameter and the first format parameter to the first code, so that when the first code is run, the business process of any type of business can be processed according to the same processing flow, and when the first code is run The first platform parameters are matched with the second platform parameters and the first format parameters are matched with the second format parameters respectively, and business data processing is performed for any type of business according to the matching result.
在该实施例中,配置参数包括第二平台参数和第二业态参数。也即是,在设置第一代码的各第一子类代码时,在第一子类代码中预先设置了第二平台参数和第二业态参数。接收到的业务参数包括第一平台参数和第一业态参数。此时,第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理。同时,第一代码运行时将分别将第一平台参数与第二平台参数进行匹配,将第一业态参数与第二业态参数进行匹配。根据两个匹配的结果确定对应的第一子类代码,采用对应的第一子类代码实现对应的业务数据处理。In this embodiment, the configuration parameters include second platform parameters and second format parameters. That is, when setting each first subcategory code of the first code, the second platform parameter and the second format parameter are preset in the first subcategory code. The received service parameters include first platform parameters and first format parameters. At this time, when the first code is run, it realizes business process processing for any type of business according to the same processing flow. At the same time, when the first code is running, the parameters of the first platform and the parameters of the second platform are respectively matched, and the parameters of the first format and the parameters of the second format are matched. The corresponding first subclass code is determined according to the two matching results, and the corresponding first subclass code is used to implement corresponding business data processing.
例如,第一代码为审批流配置的用于实现多种类型业务的业务审批处理的代码。多种类型业务的业务参数由前端设置,并由前端发送到服务器。服务器接收到前端发送的第一平台字段和第一业务字段时,将第一平台字段作为第一平台参数且将第一业务字段作为第一业务参数传递到传递到审批流配置中。运行审批流配置中的第一代码。第一代码中的流程配置逻辑将会根据第一平台参数和第一业务参数流转到对应的审批人员节点上,实现不同平台和业态的业务数据由不同的岗位人员进行审批。其中,第一代码中的流程配置逻辑指的是第一代码中父类代码和各第一子类代码中设置的数据处理逻辑。第一代码根据第一平台参数与第一子类代码中的第二平台参数的匹配以及第一业态参数与第一子类代码中的第二业态参数的匹配控制业务处理流转到对应的审批人员节点。因此,实现了一套代码实现多种类型业务的业务数据处理,减少了业务管理系统内代码的修改量,提高了业务管理系统的研发效率且简化了代码管理量。For example, the first code is the code configured in the approval flow and used to implement business approval processing for various types of business. The business parameters of various types of business are set by the front end and sent to the server by the front end. When the server receives the first platform field and the first service field sent by the front end, the server uses the first platform field as the first platform parameter and the first service field as the first service parameter in the approval flow configuration. Run the first code in the approval flow configuration. The process configuration logic in the first code will flow to the corresponding approver node according to the first platform parameters and the first business parameters, so that business data of different platforms and formats can be approved by different post personnel. The process configuration logic in the first code refers to the data processing logic set in the parent class code and each first subclass code in the first code. The first code controls the business process flow to transfer to the corresponding approver according to the matching of the first platform parameter with the second platform parameter in the first subclass code and the matching between the first format parameter and the second format parameter in the first subclass code node. Therefore, a set of codes is realized to realize business data processing of various types of businesses, the amount of code modification in the business management system is reduced, the research and development efficiency of the business management system is improved, and the amount of code management is simplified.
在一实施例中,上述S204之前,还包括步骤:将多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且各数据表采用配置参数作为业务数据的标识。上述将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码以使得实现目标第一子类代码时根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In one embodiment, before the above-mentioned S204, it further includes the step of: storing the business data of each type of business in the multiple types of business in sub-database and sub-table, to obtain a plurality of data tables stored in a plurality of databases, and each data table uses It is used to record the business data of various types of business, and each data table adopts the configuration parameters as the identification of the business data. The above-mentioned business data processing for any type of business after matching the business parameters with the configuration parameters includes: matching the business parameters with the configuration parameters, and determining the target first subclass code from each first subclass code according to the matching result, The target first subclass code is run so that when the target first subclass code is realized, business data of any type of business is extracted from the stored multiple data tables according to the matching parameters to perform business data processing.
在该实施例中,在业务管理系统的数据库设计层面。将相似业务功能的数据保存在同一个表中,通过表中的平台字段和业态字段进行区分和扩展。例如,数据库采用MYSQL数据库,各类型业务的业务数据进行分库分表存储,共设计10个数据库,1000张表。其中,分库分表的存储方式可以采用根据业务对应的商品的商品编码取模进行分库分表。当运行第一代码时,将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码,根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In this embodiment, it is at the database design level of the business management system. Store data of similar business functions in the same table, and differentiate and expand through the platform fields and business form fields in the table. For example, the database adopts MYSQL database, and the business data of various types of business is stored in sub-database and sub-table. A total of 10 databases and 1,000 tables are designed. Wherein, the storage method of the sub-library and sub-table may be performed by taking the modulo of the commodity code of the commodity corresponding to the business to perform the sub-library and sub-table. When running the first code, match the business parameters with the configuration parameters, determine the target first subclass code from each first subclass code according to the matching result, run the target first subclass code, and select the stored multiple code according to the matching parameters. The business data of any type of business is extracted from each data table for business data processing.
其中,商品编码取模是一种分库分表的路由策略。当各类型业务对应商品的数据量比较大以及商品的库存量比较多时,如果各类型业务的商品数据都放在一个数据库和表中进行存储,则导致数据库的性能受到限制。采用分库分表的存储方式,能够实现业务数据的扩展存储,降低每个数据表中的数据量,从而提高业务数据的读写效率。Among them, the commodity code modulo is a routing strategy of sub-database and sub-table. When the data volume of commodities corresponding to various types of business is relatively large and the inventory of commodities is relatively large, if commodity data of various types of businesses are stored in a database and table, the performance of the database will be limited. The storage method of sub-database and sub-table can realize the extended storage of business data, reduce the amount of data in each data table, and improve the read-write efficiency of business data.
在一实施例中,上述S204之前,还包括步骤:读取配置文件,从配置文件中提取各第一子类代码的配置参数;将配置参数加载到前端的配置组件中,以通过配置组件展示配置参数;当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数。In one embodiment, before the above S204, it also includes the steps of: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, so as to be displayed by the configuration component Configuration parameters; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
在该实施例中,在前端的维护界面设置配置组件,配置组件用于显示不同功能模块的平台参数和业态参数。具体地,业务管理系统中存储有配置文件,配置文件中包含各第一子类代码的配置参数。可以是,研发人员针对不同功能模块开发各第一子类代码,各第一子类代码中包含配置参数。此时,研发人员将配置参数设置到配置文件中。业务管理系统的服务器从配置文件中提取各第一子类代码的配置参数并将配置参数加载到前端的配置组件中以通过配置组件展示配置参数。此时,配置参数也即是配置组件中展示的平台参数和业态参数。例如,服务器动态读取配置文件中的配置参数。后台控制层通过SCM(软件配置管理)文件读取前端框架,并将服务器读取到的配置参数返回到后台视图层,前端页面从后台视图层的配置参数加载到对应配置组件中,实现配置参数的灵活增减。   In this embodiment, a configuration component is set on the maintenance interface of the front end, and the configuration component is used to display platform parameters and format parameters of different functional modules. Specifically, a configuration file is stored in the service management system, and the configuration file includes configuration parameters of each first subclass code. It may be that the R&D personnel develop each first subclass code for different functional modules, and each first subclass code includes configuration parameters. At this point, the R&D personnel set the configuration parameters into the configuration file. The server of the service management system extracts the configuration parameters of each first subclass code from the configuration file and loads the configuration parameters into the configuration component of the front end to display the configuration parameters through the configuration component. At this point, the configuration parameters are also the platform parameters and format parameters displayed in the configuration component. For example, the server dynamically reads configuration parameters from configuration files. The background control layer reads the front-end framework through the SCM (software configuration management) file, and returns the configuration parameters read by the server to the background view layer. The front-end page loads the configuration parameters of the background view layer into the corresponding configuration components to realize the configuration parameters. flexible increase or decrease. 
具体地,业务管理系统中的业态和平台分别通过2个不同的KEY(标识号)进行定义,该定义表示全系统所有的业态和平台的范围。第一代码中各第一子类代码代表不同的功能模块。各个不同的功能模块再通过功能模块对应的KEY确定上述系统全局定义中业态和平台的某些范围,也即是功能模块对应的KEY表示各个不同功能模块所支持的平台和业态,此结果将直接展示在前端的管理端对应功能的维护界面中。Specifically, the formats and platforms in the business management system are respectively defined by two different KEYs (identification numbers), and the definitions represent the scope of all formats and platforms in the entire system. Each of the first subclass codes in the first code represents different functional modules. Each different functional module determines certain scopes of the format and platform in the global system definition above through the KEY corresponding to the functional module, that is, the KEY corresponding to the functional module indicates the platform and format supported by each functional module, and the result will be directly It is displayed in the maintenance interface of the corresponding function of the front-end management side.
当业务需要增加或者减少某种平台或者业态时,对应的所具有配置权限的人员可以在通过维护界面在系统定义中随时进行调整,调整后系统将会立即生效,调整轨迹将会记录到操作日志中。业务在管理界面进行维护完成后点击提交,平台参数和业态参数的数据将会传递到后端。后端的服务器实现第一代码,从而对前端的平台参数和业态参数执行对应的业务数据处理。When the business needs to increase or decrease a certain platform or format, the corresponding personnel with configuration authority can make adjustments at any time in the system definition through the maintenance interface. After the adjustment, the system will take effect immediately, and the adjustment track will be recorded in the operation log. middle. After the business is maintained on the management interface, click Submit, and the data of platform parameters and business format parameters will be transmitted to the backend. The back-end server implements the first code, so as to perform corresponding business data processing on the front-end platform parameters and business format parameters.
目前系统支持的平台有:零售连锁平台,B2C易购平台,B2B政企平台,有货平台,天猫平台,对公平台,达令加,当当,零售云,电器合伙人。通过业务管理系统中配置项CHANNEL_CONFIG定义多个平台,各个不同功能模块对应的支持平台范围通过FC_CHANNEL_CONFIG定义,多个定义之间通过英文逗号分隔。The platforms currently supported by the system are: retail chain platform, B2C e-commerce platform, B2B government-enterprise platform, Youhuo platform, Tmall platform, public platform, Darlingka, Dangdang, retail cloud, and electrical partner. Multiple platforms are defined by the configuration item CHANNEL_CONFIG in the business management system. The supported platform range corresponding to each different function module is defined by FC_CHANNEL_CONFIG, and multiple definitions are separated by English commas.
目前系统支持的业态有:电器,超市,红孩子,极物,体育,万达百货,科技公司,体育装备,售后公司,小店,迪亚天天,家乐福,香港,海外购跨境贸易,海外购一般贸易,有货,拼购。通过业务管理系统中配置项THRY_CONFIG定义多个业务,各个不同功能模块对应的业态范围通过FC_BUSINESS_UNIT_CONFIG定义,多个定义之间通过英文逗号分隔。The formats currently supported by the system are: electrical appliances, supermarkets, Red Kids, Jiwu, sports, Wanda Department Store, technology companies, sports equipment, after-sales companies, small stores, Dia Tiantian, Carrefour, Hong Kong, overseas purchases, cross-border trade, overseas purchases General trade, in stock, buy together. Multiple businesses are defined through the configuration item THRY_CONFIG in the business management system. The business scope corresponding to each different function module is defined through FC_BUSINESS_UNIT_CONFIG, and multiple definitions are separated by English commas.
因此,前端的维护界面所能维护的平台和业态范围并不是固定的,通过业务管理系统中对应功能模块配置对应平台和业态范围并进行展示。业务管理系统通过前端可配置化的配置组件以及后端服务器的第一代码,实现了动态配置化的多类型业务的业务处理,避免代码的重复开发,快速实现具有相同管理规范的不同平台和业态的管理端的业务数据处理。Therefore, the platforms and business formats that can be maintained by the front-end maintenance interface are not fixed. The corresponding platforms and business formats are configured and displayed through the corresponding functional modules in the business management system. Through the front-end configurable configuration components and the first code of the back-end server, the business management system realizes the dynamic configuration of multi-type business business processing, avoids repeated code development, and quickly realizes different platforms and formats with the same management specifications. business data processing on the management side.
在一实施例中,上述的当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数,包括:当通过前端检测到配置组件中的配置参数被触发时,对触发配置参数的用户的用户权限以及触发的配置参数进行验证处理;当验证出用户权限符合第一预设条件且触发的配置参数符合第二预设条件时,将配置参数作为接收到的业务参数。In one embodiment, when the front-end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front-end detects that the configuration parameter in the configuration component is triggered, Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
具体地,对前端触发的配置参数进行数据校验。数据校验的方式为:对用户的用户权限进行校验,当用户权限符合第一预设条件时用户权限校验成功。第一预设条件可以是业务管理系统中设置的可触发配置参数的一个或多个用户的用户权限。对触发的配置参数进行校验。触发的配置参数满足第二预设条件时触发的配置参数校验成功。第二预设条件可以是业务管理系统中设置的用户权限对应的可触发的配置参数。Specifically, data verification is performed on the configuration parameters triggered by the front end. The method of data verification is: verifying the user authority of the user, and the user authority verification succeeds when the user authority meets the first preset condition. The first preset condition may be user rights of one or more users set in the service management system that can trigger configuration parameters. Verify the triggered configuration parameters. The triggered configuration parameter is verified successfully when the triggered configuration parameter satisfies the second preset condition. The second preset condition may be a triggerable configuration parameter corresponding to the user authority set in the service management system.
数据校验通过后将会被保存在待审批表中同时生成审批流,被触发的配置参数包含平台字段和业态字段。此时,平台字段和业态字段会被作为业务参数传递到审批流配置中,审批流配置中的流程配置逻辑将会根据对应业务参数流转到对应的审批人员节点上,实现不同平台和业态的业务由不同的岗位人员进行审批。当终审通过后数据落入生效表中开始生效并通过下发接口将生效数据下发给下游系统。After the data verification is passed, it will be saved in the pending approval table and the approval flow will be generated. The triggered configuration parameters include the platform field and the format field. At this point, the platform field and the format field will be passed to the approval flow configuration as business parameters, and the process configuration logic in the approval flow configuration will be transferred to the corresponding approver node according to the corresponding business parameters to realize the business of different platforms and formats. Approved by different positions. After the final review is passed, the data falls into the effective table and becomes effective, and the effective data is sent to the downstream system through the delivery interface.
针对上述各实施例所述的一种多类型业务的业务处理方法,以下给出一具体使用场景,该使用场景可参见图3所示的流程图。For the service processing method of the multi-type service described in the above embodiments, a specific usage scenario is given below. For the usage scenario, reference may be made to the flowchart shown in FIG. 3 .
该使用场景中,多类型业务为多种类型的用于定价的业务。多类型业务的业务数据处理为多种类型业务的定价审批流程中的业务数据处理。In this usage scenario, multiple types of services are multiple types of services used for pricing. The business data processing of the multi-type business is the business data processing in the pricing approval process of the multi-type business.
以下列举系统中有货手工定价的功能,对其整个实现过程进行详细阐述:The following lists the functions of manual pricing of goods in the system, and elaborates the entire implementation process in detail:
有货的手工定价的最初业务需求只有维护有货平台的电器手工价,考虑到价格定价的后期发展模式逐步趋于多平台和多业态化的特性,采用本申请的一种多类型业务的业务处理方法,把有货的手工定价做成了可扩展的组件化定价。具体从以下几个方面进行改进,以实现有货的手工定价的可扩展的组件化定价:The initial business requirement of manual pricing on stock is to maintain the manual price of electrical appliances on the stock platform. Considering that the later development model of price pricing tends to be multi-platform and multi-format, a multi-type business of this application is adopted. The processing method turns the in-stock manual pricing into an extensible componentized pricing. Specifically, improvements are made in the following aspects to achieve scalable componentized pricing for in-stock manual pricing:
在数据库的设计方面:预留了定价过程中可能用到的常用属性,如商品编码、供应商、城市、库位等,对常用字段做了冗余,特别是预留了平台和业态字段。In terms of database design: common attributes that may be used in the pricing process are reserved, such as commodity code, supplier, city, location, etc., and common fields are redundant, especially the platform and format fields are reserved.
在系统架构方面:采用Spring的MVC模式,将模型层和业务层进行剥离,单独的Controller层负责处理前端页面的请求,Service层负责处理业务逻辑,Dao层负责数据库的操作,FlowService层负责处理审批流程,SendService层负责数据下发,Ftl层负责数据展示。In terms of system architecture: Spring's MVC mode is adopted to separate the model layer and business layer. The separate Controller layer is responsible for processing front-end page requests, the Service layer is responsible for processing business logic, the Dao layer is responsible for database operations, and the FlowService layer is responsible for processing approvals Process, the SendService layer is responsible for data delivery, and the Ftl layer is responsible for data display.
在后台审批流的代码建设方面:对于创建、提交、审核、生效、下发、展示的整个过程做成了一套流程代码,不同功能模块的代码处理不同的业务逻辑,将功能和代码分层做了很好的剥离,对于代码中的业务参数传递并没有写死,而是做了可扩展的实体传参,方便后续的业务参数的扩展。In the code construction of the background approval flow: a set of process codes is made for the entire process of creation, submission, review, validation, distribution, and display. The codes of different functional modules handle different business logic, and the functions and codes are layered. It has done a good stripping. The business parameter transfer in the code is not hard-coded, but an extensible entity parameter transfer is made to facilitate the expansion of subsequent business parameters.
审批流程配置方面:所有流程配置都是通过流程模板传递过来的业务参数判断走哪套流程分支,并没有直接将流程配死,根据不同流程分支将审批流流转到对应的岗位人员节点上。Approval process configuration: All process configurations use the business parameters passed from the process template to determine which set of process branches to go to, and do not directly match the process, and transfer the approval flow to the corresponding post personnel node according to different process branches.
前端的维护界面方面:所能维护的平台和业态范围并不是固定的,都是通过系统中对应功能模块配置的范围读取并展示。Front-end maintenance interface: The range of platforms and formats that can be maintained is not fixed, but is read and displayed through the range of the corresponding function module configuration in the system.
具体地,动态实现平台和业态的读取过程,刚开始业务只需要有货平台的电器手工定价,首先需要在系统中将CHANNEL_CONFIG配置项配置成系统所涉及的所有平台,其次将在系统中将配置项THRY_CONFIG配置成系统所涉及的所有业态,然后在系统中将配置项FC_CHANNEL_CONFIG配置成有货平台,最后将配置项FC_BUSINESS_UNIT_CONFIG配置成电器,完成以上配置后,打开系统登录到有货手工定价的维护界面,即可支持维护有货平台的电器业态的手工定价。Specifically, to dynamically realize the reading process of platforms and formats, at the beginning of the business, you only need to manually price the electrical appliances of the available platforms. First, you need to configure the CHANNEL_CONFIG configuration item in the system to all the platforms involved in the system. The configuration item THRY_CONFIG is configured as all the formats involved in the system, and then the configuration item FC_CHANNEL_CONFIG is configured as an in-stock platform in the system, and finally the configuration item FC_BUSINESS_UNIT_CONFIG is configured as an electrical appliance. After completing the above configuration, open the system and log in to the maintenance of in-stock manual pricing. interface, you can support manual pricing of electrical appliance formats that maintain the stock platform.
后续业务又陆续提出了有货定价功能需要支持零售云定价、对公定价,业态需要支持超市、红孩子、极物、体育、海外购、售后。新增的这些需求跟之前的有货电器定价并无太大业务区别,只是管理人员不同,此时通过修改系统中的配置项FC_CHANNEL_CONFIG和FC_BUSINESS_UNIT_CONFIG增加业务新提出的平台和业态即可支持,并没有新的开发工作增加。The follow-up business has successively proposed that the in-stock pricing function needs to support retail cloud pricing and public pricing, and the business format needs to support supermarkets, red children, polar objects, sports, overseas purchases, and after-sales. These new requirements are not much different from the previous pricing of in-stock electrical appliances, but the management personnel are different. At this time, by modifying the configuration items FC_CHANNEL_CONFIG and FC_BUSINESS_UNIT_CONFIG in the system, the newly proposed platform and format can be supported. New development work is added.
有货电器定价初始开发人天为20人天,涉及代码行数3500余行,如果不是因为支持可配置化的平台和业态定价,按照业务每新增一个平台和业态都进行重新开发或者改造至少需要开发5人天,外加测试对每个功能点进行全面回归测试,耗费的人天更多,但是通过配置化实现后,并没有任何的开发工作量,测试也只是做下新增需求的主流程回归即可,大大减少了代码的重复性,提升了代码利用率,同时也降低了在原有代码基础上进行改造的风险。The initial developer-day price of Yuhuo Electric Appliances is 20 person-days, involving more than 3,500 lines of code. If it is not for the support of configurable platform and format pricing, each new platform and format will be re-developed or transformed according to the business at least It takes 5 man-days to develop, plus testing to conduct a comprehensive regression test for each function point, which consumes more man-days. However, after the configuration is implemented, there is no development workload, and testing is only the main task of adding new requirements. The process can be returned, which greatly reduces the duplication of code, improves the utilization of code, and reduces the risk of transforming on the basis of the original code.
因此,通过在系统中提供一套动态配置化的方式形成一套公用的定价组件,降低需求研发周期,提升代码可扩展性和易用性,降低代码改动风险和代码重复率,提升开发人员的研发效率。Therefore, by providing a set of dynamic configuration methods in the system to form a set of common pricing components, the demand development cycle can be reduced, the code scalability and ease of use can be improved, the risk of code changes and code duplication rates can be reduced, and developers' experience can be improved. R&D efficiency.
应该理解的是,虽然流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart are displayed in sequence according to the arrows, these steps are not necessarily executed in sequence according to the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
在一个实施例中,如图4所示,提供了一种多类型业务的业务处理装置,该装置包括读取模块402和处理模块404。读取模块402,用于读取多种类型业务的第一代码,第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理;处理模块404,用于当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。In one embodiment, as shown in FIG. 4 , a service processing apparatus for multiple types of services is provided, and the apparatus includes a reading module 402 and a processing module 404 . The reading module 402 is used to read the first codes of various types of services, the first codes include parent class codes and each first subclass code inherited from the parent class codes, and the parent class codes are used to be implemented and adopted by the runtime. The same processing process performs business process processing for each type of business in multiple types of business, each first subclass code contains configuration parameters, and each first subclass code is used to implement business data processing for each type of business when it is run; the processing module 404, for running the first code when receiving the service parameters of any type of service among the multiple types of services, and passing the service parameters to the first code, so that when the first code is run, the processing of any type of service is implemented according to the same processing flow. One type of business performs business process processing, and after matching business parameters with configuration parameters, business data processing is performed for any type of business.
在其中一个实施例中,父类代码中还设置有扩展接口,扩展接口用于实现父类代码中子类方法的代码重写以得到父类代码的第二子类代码,第二子类代码用于被运行时实现对扩展业务进行业务数据处理,多种类型业务中不包含扩展业务。In one of the embodiments, the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, the second subclass code It is used to process the business data of the extended business at runtime, and the extended business is not included in the various types of business.
在其中一个实施例中,一种多类型业务的业务处理装置还包括接收模块,用于读取多种类型业务的参数传递的第二代码,采用第二代码接收业务参数;其中,第二代码中设置有用于实现参数传递的传参方法,传参方法中设置实体对象,实体对象用于接收任一类型业务的业务参数。In one of the embodiments, a service processing apparatus for multiple types of services further includes a receiving module, configured to read a second code transmitted by parameters of multiple types of services, and use the second code to receive service parameters; wherein, the second code A parameter-passing method for implementing parameter transfer is set in the parameter-passing method, and an entity object is set in the parameter-passing method, and the entity object is used to receive business parameters of any type of business.
在其中一个实施例中,业务参数包括第一平台参数和第一业态参数,配置参数包括第二平台参数和第二业态参数,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将第一平台参数和第一业态参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理,且第一代码被运行时实现分别将第一平台参数与第二平台参数进行匹配以及将第一业态参数与第二业态参数进行匹配并根据匹配结果对任一类型业务进行业务数据处理。In one of the embodiments, the business parameters include first platform parameters and first business parameters, the configuration parameters include second platform parameters and second business parameters, and the business parameters are passed to the first code so that the first code is executed when the first code is executed. To implement business process processing for any type of business according to the same processing flow and to perform business data processing for any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code, so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first The business type parameters are matched with the second business type parameters, and business data processing is performed on any type of business according to the matching result.
在其中一个实施例中,一种多类型业务的业务处理装置还包括存储模块,用于将多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且各数据表采用配置参数作为业务数据的标识。将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码以使得实现目标第一子类代码时根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In one of the embodiments, a service processing apparatus for multiple types of services further includes a storage module for storing the service data of each type of services in multiple types of services in sub-databases and sub-tables to obtain data stored in multiple databases. A plurality of data tables, each data table is used to record business data of various types of business, and each data table uses configuration parameters as the identifier of the business data. After matching the business parameters with the configuration parameters, perform business data processing on any type of business, including: matching the business parameters with the configuration parameters, determining the target first subclass code from the first subclass codes according to the matching result, and running The target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
在其中一个实施例中,一种多类型业务的业务处理装置还包括配置模块,用于读取配置文件,从配置文件中提取各第一子类代码的配置参数;将配置参数加载到前端的配置组件中,以通过配置组件展示配置参数;当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数。In one of the embodiments, a service processing apparatus for multiple types of services further includes a configuration module for reading a configuration file, extracting configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the front-end In the configuration component, the configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
在其中一个实施例中,当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数,包括:当通过前端检测到配置组件中的配置参数被触发时,对触发配置参数的用户的用户权限以及触发的配置参数进行验证处理;当验证出用户权限符合第一预设条件且触发的配置参数符合第二预设条件时,将配置参数作为接收到的业务参数。In one of the embodiments, when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered Perform verification processing on the user authority of the user who triggered the configuration parameter and the triggered configuration parameter; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter .
关于一种多类型业务的业务处理装置的具体限定可以参见上文中对于一种多类型业务的业务处理方法的限定,在此不再赘述。上述一种多类型业务的业务处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For a specific definition of a service processing apparatus for a multi-type service, reference may be made to the above definition of a service processing method for a multi-type service, which will not be repeated here. Each module in the above-mentioned service processing apparatus for multiple types of services may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是支持上述业务管理系统的服务器,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部终端通讯连接以接收外部终端发送的业务参数。该计算机程序被处理器执行时以实现一种多类型业务的业务处理方法。In one embodiment, a computer device is provided, and the computer device may be a server supporting the above-mentioned service management system, and its internal structure diagram may be as shown in FIG. 5 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer equipment is used for communicating with the external terminal to receive service parameters sent by the external terminal. The computer program, when executed by the processor, implements a service processing method for multiple types of services.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:读取多种类型业务的第一代码,第一代码中包含父类代码和继承于父类代码的各第一子类代码,父类代码用于被运行时实现采用同一处理流程对多类型业务中各类型业务进行业务流程处理,各第一子类代码中包含配置参数且各第一子类代码用于被运行时实现对各类型业务进行业务数据处理;当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when executing the computer program: reading multiple types of services The first code, the first code includes the parent class code and each first subclass code inherited from the parent class code, and the parent class code is used to implement the same processing flow for each type of business in the multi-type business when it is run. Process processing, each first subclass code contains configuration parameters and each first subclass code is used to implement business data processing for various types of services when running; when receiving business parameters of any type of business among multiple types of services When the first code is run, the business parameters are passed to the first code, so that when the first code is run, the business process of any type of business can be processed according to the same processing flow, and the business parameters and configuration parameters are matched. One type of business conducts business data processing.
在一个实施例中,父类代码中还设置有扩展接口,扩展接口用于实现父类代码中子类方法的代码重写以得到父类代码的第二子类代码,第二子类代码用于被运行时实现对扩展业务进行业务数据处理,多种类型业务中不包含扩展业务。In one embodiment, the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:读取多种类型业务的参数传递的第二代码,采用第二代码接收业务参数;其中,第二代码中设置有用于实现参数传递的传参方法,传参方法中设置实体对象,实体对象用于接收任一类型业务的业务参数。In one embodiment, when the processor executes the computer program, the following steps are further implemented: reading the second codes for parameter transmission of multiple types of services, and using the second codes to receive service parameters; wherein the second codes are provided with parameters for implementing The passed parameter method, the entity object is set in the parameter pass method, and the entity object is used to receive business parameters of any type of business.
在一个实施例中,业务参数包括第一平台参数和第一业态参数,配置参数包括第二平台参数和第二业态参数;将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将第一平台参数和第一业态参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理,且第一代码被运行时实现分别将第一平台参数与第二平台参数进行匹配以及将第一业态参数与第二业态参数进行匹配并根据匹配结果对任一类型业务进行业务数据处理。In one embodiment, the business parameters include first platform parameters and first business parameters, and the configuration parameters include second platform parameters and second business parameters; the business parameters are passed to the first code, so that the first code is implemented at runtime Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code , so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first format The parameters are matched with the second format parameters, and business data processing is performed on any type of business according to the matching result.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:将多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且各数据表采用配置参数作为业务数据的标识。将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码以使得实现目标第一子类代码时根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In one embodiment, the processor further implements the following steps when executing the computer program: storing business data of various types of services in multiple types of services in sub-databases and sub-tables to obtain multiple data tables stored in multiple databases, each of which is stored in multiple databases. The data table is used to record the business data of various types of business, and each data table adopts the configuration parameter as the identifier of the business data. After matching the business parameters with the configuration parameters, perform business data processing on any type of business, including: matching the business parameters with the configuration parameters, determining the target first subclass code from the first subclass codes according to the matching result, and running The target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:读取配置文件,从配置文件中提取各第一子类代码的配置参数;将配置参数加载到前端的配置组件中,以通过配置组件展示配置参数;当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数。In one embodiment, when the processor executes the computer program, the following steps are further implemented: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end to pass The configuration component displays the configuration parameters; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
在一个实施例中,当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数,包括:当通过前端检测到配置组件中的配置参数被触发时,对触发配置参数的用户的用户权限以及触发的配置参数进行验证处理;当验证出用户权限符合第一预设条件且触发的配置参数符合第二预设条件时,将配置参数作为接收到的业务参数。In one embodiment, when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered The user authority of the user who configures the parameter and the triggered configuration parameter are verified; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:当接收到多种类型业务中任一类型业务的业务参数时,运行第一代码,将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: when receiving service parameters of any type of service among multiple types of services , run the first code, and pass the business parameters to the first code, so that when the first code is run, it can process the business process of any type of business according to the same processing flow and match the business parameters with the configuration parameters. Type business for business data processing.
在一个实施例中,父类代码中还设置有扩展接口,扩展接口用于实现父类代码中子类方法的代码重写以得到父类代码的第二子类代码,第二子类代码用于被运行时实现对扩展业务进行业务数据处理,多种类型业务中不包含扩展业务。In one embodiment, the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of the subclass method in the parent class code to obtain the second subclass code of the parent class code, and the second subclass code uses It implements business data processing for extended services when it is running, and extended services are not included in various types of services.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:读取多种类型业务的参数传递的第二代码,采用第二代码接收业务参数;其中,第二代码中设置有用于实现参数传递的传参方法,传参方法中设置实体对象,实体对象用于接收任一类型业务的业务参数。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: reading the second codes transmitted by parameters of multiple types of services, and using the second codes to receive service parameters; The parameter-passing method of parameter passing, the entity object is set in the parameter-passing method, and the entity object is used to receive business parameters of any type of business.
在一个实施例中,业务参数包括第一平台参数和第一业态参数,配置参数包括第二平台参数和第二业态参数;将业务参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理且将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将第一平台参数和第一业态参数传递到第一代码,以使得第一代码被运行时实现按照同一处理流程对任一类型业务进行业务流程处理,且第一代码被运行时实现分别将第一平台参数与第二平台参数进行匹配以及将第一业态参数与第二业态参数进行匹配并根据匹配结果对任一类型业务进行业务数据处理。In one embodiment, the business parameters include first platform parameters and first business parameters, and the configuration parameters include second platform parameters and second business parameters; the business parameters are passed to the first code, so that the first code is implemented at runtime Perform business process processing on any type of business according to the same processing flow, and perform business data processing on any type of business after matching the business parameters with the configuration parameters, including: passing the first platform parameters and the first format parameters to the first code , so that when the first code is run, it implements business process processing for any type of business according to the same processing flow, and when the first code is run, it implements the matching of the first platform parameters with the second platform parameters and the first format The parameters are matched with the second format parameters, and business data processing is performed on any type of business according to the matching result.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且各数据表采用配置参数作为业务数据的标识。将业务参数与配置参数进行匹配后对任一类型业务进行业务数据处理,包括:将业务参数与配置参数进行匹配,根据匹配结果从各第一子类代码中确定目标第一子类代码,运行目标第一子类代码以使得实现目标第一子类代码时根据匹配参数从存储的多个数据表中提取任一类型业务的业务数据进行进行业务数据处理。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the business data of each type of business among the multiple types of business is stored in sub-databases and sub-tables to obtain multiple data tables stored in multiple databases, Each data table is used to record business data of various types of business, and each data table adopts configuration parameters as the identification of the business data. After matching the business parameters with the configuration parameters, perform business data processing on any type of business, including: matching the business parameters with the configuration parameters, determining the target first subclass code from the first subclass codes according to the matching result, and running The target first subclass code is used to extract business data of any type of business from a plurality of stored data tables according to matching parameters to perform business data processing when the target first subclass code is implemented.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:读取配置文件,从配置文件中提取各第一子类代码的配置参数;将配置参数加载到前端的配置组件中,以通过配置组件展示配置参数;当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: reading the configuration file, and extracting the configuration parameters of each first subclass code from the configuration file; loading the configuration parameters into the configuration component of the front end, to The configuration parameters are displayed through the configuration component; when the front-end detects that the configuration parameters in the configuration component are triggered, the configuration parameters are used as the received business parameters.
在一个实施例中,当通过前端检测到配置组件中的配置参数被触发时,将配置参数作为接收到的业务参数,包括:当通过前端检测到配置组件中的配置参数被触发时,对触发配置参数的用户的用户权限以及触发的配置参数进行验证处理;当验证出用户权限符合第一预设条件且触发的配置参数符合第二预设条件时,将配置参数作为接收到的业务参数。In one embodiment, when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, including: when the front end detects that the configuration parameter in the configuration component is triggered The user authority of the user who configures the parameter and the triggered configuration parameter are verified; when it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM) and so on.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

  1. 一种多类型业务的业务处理方法,所述方法包括:A business processing method for multiple types of business, the method comprising:
    读取多种类型业务的第一代码,所述第一代码中包含父类代码和继承于所述父类代码的各第一子类代码,所述父类代码用于被运行时实现采用同一处理流程对所述多类型业务中各类型业务进行业务流程处理,所述各第一子类代码中包含配置参数且所述各第一子类代码用于被运行时实现对所述各类型业务进行业务数据处理;Read the first code of multiple types of services, the first code includes parent class code and each first subclass code inherited from the parent class code, and the parent class code is used to implement the same The processing flow performs business process processing on each type of business in the multi-type business, and each first subclass code includes configuration parameters and each first subclass code is used to implement the various types of services when running. conduct business data processing;
    当接收到所述多种类型业务中任一类型业务的业务参数时,运行所述第一代码,将所述业务参数传递到所述第一代码,以使得所述第一代码被运行时实现按照所述同一处理流程对所述任一类型业务进行业务流程处理且将所述业务参数与所述配置参数进行匹配后对所述任一类型业务进行业务数据处理。When a service parameter of any type of service among the multiple types of services is received, the first code is run, and the service parameter is passed to the first code, so that the first code is executed when the first code is executed. Perform business process processing on the any type of service according to the same processing process, and perform service data processing on the any type of service after matching the service parameters with the configuration parameters.
  2. 根据权利要求1所述的方法,其特征在于,所述父类代码中还设置有扩展接口,所述扩展接口用于实现所述父类代码中子类方法的代码重写以得到所述父类代码的第二子类代码,所述第二子类代码用于被运行时实现对扩展业务进行业务数据处理,所述多种类型业务中不包含所述扩展业务。The method according to claim 1, wherein the parent class code is further provided with an extension interface, and the extension interface is used to implement code rewriting of a subclass method in the parent class code to obtain the parent class code. The second subclass code of the class code, the second subclass code is used by the runtime to implement business data processing for the extended service, and the extended service is not included in the multiple types of services.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    读取所述多种类型业务的参数传递的第二代码,采用所述第二代码接收所述业务参数;reading the second codes transmitted by the parameters of the multiple types of services, and using the second codes to receive the service parameters;
    其中,所述第二代码中设置有用于实现所述参数传递的传参方法,所述传参方法中设置实体对象,所述实体对象用于接收所述任一类型业务的业务参数。Wherein, the second code is provided with a parameter passing method for realizing the parameter transfer, and an entity object is set in the parameter passing method, and the entity object is used to receive the service parameters of any type of service.
  4. 根据权利要求1所述的方法,其特征在于,所述业务参数包括第一平台参数和第一业态参数,所述配置参数包括第二平台参数和第二业态参数,所述将所述业务参数传递到所述第一代码,以使得所述第一代码被运行时实现按照所述同一处理流程对所述任一类型业务进行业务流程处理且将所述业务参数与所述配置参数进行匹配后对所述任一类型业务进行业务数据处理,包括:The method according to claim 1, wherein the service parameters include a first platform parameter and a first format parameter, the configuration parameter includes a second platform parameter and a second format parameter, and the is passed to the first code, so that when the first code is run, the business process of any type of business is processed according to the same processing flow and after the business parameters and the configuration parameters are matched Perform business data processing on any type of business, including:
    将所述第一平台参数和所述第一业态参数传递到所述第一代码,以使得所述第一代码被运行时实现按照所述同一处理流程对所述任一类型业务进行业务流程处理,且所述第一代码被运行时实现分别将所述第一平台参数与所述第二平台参数进行匹配以及将所述第一业态参数与所述第二业态参数进行匹配并根据匹配结果对所述任一类型业务进行业务数据处理。Passing the first platform parameter and the first format parameter to the first code, so that when the first code is run, the business process processing of the any type of business is implemented according to the same processing flow , and when the first code is run, the first platform parameters are matched with the second platform parameters, the first format parameters and the second format parameters are matched, and the matching results are matched according to the matching results. The business of any type performs business data processing.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    将所述多种类型业务中各类型业务的业务数据进行分库分表存储,得到存储在多个数据库中的多个数据表,各数据表用于记录各类型业务的业务数据且所述各数据表采用所述配置参数作为所述业务数据的标识;The business data of each type of business in the multiple types of business is stored in sub-databases and sub-tables, and multiple data tables stored in multiple databases are obtained, and each data table is used to record the business data of each type of business and the The data table adopts the configuration parameter as the identifier of the service data;
    所述将所述业务参数与所述配置参数进行匹配后对所述任一类型业务进行业务数据处理,包括:The performing business data processing on any type of business after matching the business parameters with the configuration parameters includes:
    将所述业务参数与所述配置参数进行匹配,根据匹配结果从所述各第一子类代码中确定目标第一子类代码,运行所述目标第一子类代码以使得实现所述目标第一子类代码时根据所述匹配参数从存储的所述多个数据表中提取所述任一类型业务的业务数据进行进行业务数据处理。Match the business parameters with the configuration parameters, determine the target first subclass code from the first subclass codes according to the matching result, and run the target first subclass code to achieve the target first subclass code. When a subclass code is used, the business data of any type of business is extracted from the plurality of stored data tables according to the matching parameter to perform business data processing.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    读取配置文件,从所述配置文件中提取所述各第一子类代码的配置参数;reading the configuration file, and extracting the configuration parameters of the first subclass codes from the configuration file;
    将所述配置参数加载到前端的配置组件中,以通过所述配置组件展示所述配置参数;Loading the configuration parameters into the configuration component of the front end, so as to display the configuration parameters through the configuration component;
    当通过所述前端检测到所述配置组件中的所述配置参数被触发时,将所述配置参数作为接收到的所述业务参数。When the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter.
  7. 根据权利要求6所述的方法,其特征在于,所述当通过所述前端检测到所述配置组件中的所述配置参数被触发时,将所述配置参数作为接收到的所述业务参数,包括:The method according to claim 6, wherein when the front end detects that the configuration parameter in the configuration component is triggered, the configuration parameter is used as the received service parameter, include:
    当通过所述前端检测到所述配置组件中的所述配置参数被触发时,对触发所述配置参数的用户的用户权限以及触发的所述配置参数进行验证处理;When detecting that the configuration parameter in the configuration component is triggered by the front end, verify the user authority of the user who triggered the configuration parameter and the triggered configuration parameter;
    当验证出所述用户权限符合第一预设条件且所述触发的所述配置参数符合第二预设条件时,将所述配置参数作为接收到的所述业务参数。When it is verified that the user authority meets the first preset condition and the triggered configuration parameter meets the second preset condition, the configuration parameter is used as the received service parameter.
  8. 一种多类型业务的业务处理装置,其特征在于,所述装置包括:A service processing device for multiple types of services, characterized in that the device comprises:
    读取模块,用于读取多种类型业务的第一代码,所述第一代码中包含父类代码和继承于所述父类代码的各第一子类代码,所述父类代码用于被运行时实现采用同一处理流程对所述多类型业务中各类型业务进行业务流程处理,所述各第一子类代码中包含配置参数且所述各第一子类代码用于被运行时实现对所述各类型业务进行业务数据处理;The reading module is used to read the first codes of various types of services, the first codes include parent class codes and each first subclass code inherited from the parent class codes, and the parent class codes are used for The run-time implementation uses the same processing flow to perform business process processing on each type of business in the multi-type business, and the first subclass codes include configuration parameters and the first subclass codes are used for the run-time implementation. Perform business data processing on the various types of business;
    处理模块,用于当接收到所述多种类型业务中任一类型业务的业务参数时,运行所述第一代码,将所述业务参数传递到所述第一代码,以使得所述第一代码被运行时实现按照所述同一处理流程对所述任一类型业务进行业务流程处理且将所述业务参数与所述配置参数进行匹配后对所述任一类型业务进行业务数据处理。a processing module, configured to run the first code when receiving service parameters of any type of service among the multiple types of services, and pass the service parameters to the first code, so that the first code When the code is run, it implements business process processing for the any type of business according to the same processing flow, and performs business data processing on the any type of business after matching the business parameters with the configuration parameters.
  9. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。A computer device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, any one of claims 1 to 7 is implemented the steps of the method.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
PCT/CN2021/131754 2021-03-26 2021-11-19 Service processing method for multiple types of services, computer device, and storage medium WO2022199076A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110323698.0A CN113032398B (en) 2021-03-26 2021-03-26 Service processing method, computer equipment and storage medium for multi-type service
CN202110323698.0 2021-03-26

Publications (1)

Publication Number Publication Date
WO2022199076A1 true WO2022199076A1 (en) 2022-09-29

Family

ID=76474370

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/131754 WO2022199076A1 (en) 2021-03-26 2021-11-19 Service processing method for multiple types of services, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN113032398B (en)
WO (1) WO2022199076A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117236762A (en) * 2023-09-18 2023-12-15 长沙银行股份有限公司 Service-based software development workload assessment method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032398B (en) * 2021-03-26 2022-12-13 苏宁易购集团股份有限公司 Service processing method, computer equipment and storage medium for multi-type service
CN115759723A (en) * 2023-01-03 2023-03-07 苏州万店掌网络科技有限公司 Approval process execution method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN110688111A (en) * 2019-09-25 2020-01-14 深圳乐信软件技术有限公司 Configuration method, device, server and storage medium of business process
CN110765102A (en) * 2019-09-25 2020-02-07 苏宁云计算有限公司 Service data processing method and device, computer equipment and storage medium
CN113032398A (en) * 2021-03-26 2021-06-25 苏宁易购集团股份有限公司 Service processing method, computer device and storage medium for multi-type service

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445556B (en) * 2016-10-18 2019-08-30 中国银行股份有限公司 A kind of visual code generation method and system
CN107145354A (en) * 2017-05-04 2017-09-08 武汉斗鱼网络科技有限公司 Software frame and its construction method, electric terminal and readable storage medium storing program for executing
CN110288324A (en) * 2019-06-28 2019-09-27 深圳前海微众银行股份有限公司 A kind of generation of service code executes method and device
CN112035443B (en) * 2020-09-02 2023-07-07 携程计算机技术(上海)有限公司 Big data execution method, system, equipment and storage medium based on Linux platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN110688111A (en) * 2019-09-25 2020-01-14 深圳乐信软件技术有限公司 Configuration method, device, server and storage medium of business process
CN110765102A (en) * 2019-09-25 2020-02-07 苏宁云计算有限公司 Service data processing method and device, computer equipment and storage medium
CN113032398A (en) * 2021-03-26 2021-06-25 苏宁易购集团股份有限公司 Service processing method, computer device and storage medium for multi-type service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Analysis of Java Development Problems (18): How to Effectively Reduce Duplicated Code", LINKAI.LIFE, CN, pages 1 - 11, XP009539993, Retrieved from the Internet <URL:http://linkai.life/java-qa-reduce-duplicated-codes/> *
ANONYMOUS: "Call Different Implementation Classes according to Different Parameter Values", CSDN, 9 June 2020 (2020-06-09), pages 1 - 5, XP055970529, Retrieved from the Internet <URL:https://blog.csdn.net/sdmanooo/article/details/106635980> [retrieved on 20221012] *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117236762A (en) * 2023-09-18 2023-12-15 长沙银行股份有限公司 Service-based software development workload assessment method and device

Also Published As

Publication number Publication date
CN113032398B (en) 2022-12-13
CN113032398A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
WO2022199076A1 (en) Service processing method for multiple types of services, computer device, and storage medium
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
CN110121727B (en) Method and system for providing authenticated, auditable and immutable input for intelligent contracts
US7035786B1 (en) System and method for multi-phase system development with predictive modeling
TWI768163B (en) Method and device for generating smart contracts
US20190188706A1 (en) Transference tracking
US20040167765A1 (en) System and method for improving predictive modeling of an information system
US11887037B2 (en) Generating and applying a prediction model based on blockchain data
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
WO2020192141A1 (en) Method and device for simulating interface, computer apparatus, and storage medium
CN111695805B (en) Intelligent contract model construction method and system for legal contracts
CN113641591B (en) Test case generation method and device and test method and device
CN109361628A (en) Message assemble method, device, computer equipment and storage medium
CN113408008B (en) Data processing method, device, equipment and medium
US20230146197A1 (en) Data reuse computing architecture
WO2019033741A1 (en) Investment commodity resource processing method, device, storage medium and computer apparatus
US8447641B1 (en) System and method for automatically enrolling buyers into a network
WO2021073096A1 (en) Resource data transfer method and device, and blockchain system
WO2019183544A1 (en) System and method for the verification and visualization of subcomponents in a product
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
CN111047322A (en) Intelligent contract deployment method and device based on block chain and hardware equipment
WO2019233454A1 (en) Chain code upgrading method and device
CN114138577B (en) TPC-H test method and device, computer equipment and storage medium
CN111414406A (en) Method and system for identifying same user in different channel transactions
CN115168205A (en) Automatic testing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21932684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21932684

Country of ref document: EP

Kind code of ref document: A1