CN110442587B - Service information upgrading method and terminal equipment - Google Patents

Service information upgrading method and terminal equipment Download PDF

Info

Publication number
CN110442587B
CN110442587B CN201910603426.9A CN201910603426A CN110442587B CN 110442587 B CN110442587 B CN 110442587B CN 201910603426 A CN201910603426 A CN 201910603426A CN 110442587 B CN110442587 B CN 110442587B
Authority
CN
China
Prior art keywords
service
information
target
configuration
upgraded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910603426.9A
Other languages
Chinese (zh)
Other versions
CN110442587A (en
Inventor
刘佩佩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201910603426.9A priority Critical patent/CN110442587B/en
Publication of CN110442587A publication Critical patent/CN110442587A/en
Application granted granted Critical
Publication of CN110442587B publication Critical patent/CN110442587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

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

Abstract

The invention is applicable to the technical field of computer application, and provides a service information upgrading method, terminal equipment and a computer readable storage medium, comprising the following steps: the method comprises the steps of determining the service to be upgraded, obtaining the service information of the service to be upgraded, determining the upgrading project of the service to be upgraded, obtaining the target information of the upgrading project from the service information, generating a configuration formula according to the target information and a preset configuration algorithm table, finally calculating the numerical value of the upgrading project according to the configuration formula, writing the numerical value of the upgrading project into the service information of the service to be upgraded, avoiding repeated analysis of the service logic of codes, and realizing quick application change and application expansion on the basis of improving the development efficiency, wherein the requirements on the development personnel are low, and the development cost is low.

Description

Service information upgrading method and terminal equipment
Technical Field
The present invention relates to the field of computer applications, and in particular, to a service information upgrading method, a terminal device, and a computer readable storage medium.
Background
In many application systems of companies, there are some short-term services, and these services also need to be improved and upgraded correspondingly with the demands of the companies. At present, the service changes with responsibility every year, the background can upgrade the original service again, and development is performed based on the original service, because the previous service logic is stored by an oracle database technology and is realized by using an installation package configuration file technology, the service logic is complex in many cases, the running speed of a service program or application software is slow, codes are scattered, and the codes are inconvenient to view or maintain later. Especially when the supervision requirement, the product type or the product function become more, the later development needs to imitate the previous service logic to develop, and the service is required to be upgraded and optimized, but many previous service logics are complex, codes are scattered and difficult to be generalized and optimized, and the problem of low service information upgrading efficiency is caused.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a service information upgrading method, a terminal device, and a computer readable storage medium, so as to solve the problem of low service information upgrading efficiency in the prior art.
A first aspect of an embodiment of the present invention provides a service information upgrading method, including:
acquiring service information and upgrading information of a service to be upgraded, which are sent by a user terminal;
determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information;
calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system.
A second aspect of an embodiment of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring service information and upgrading information of a service to be upgraded, which are sent by a user terminal;
determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information;
calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system.
A third aspect of an embodiment of the present invention provides a terminal device, including:
the first acquisition unit is used for acquiring service information and upgrading information of a service to be upgraded, which are sent by the user terminal;
the second acquisition unit is used for determining target business items to be upgraded in the business to be upgraded according to the upgrading information, and acquiring target information corresponding to the target business items from the business information;
the query unit is used for calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
and the writing unit is used for calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system.
A fourth aspect of an embodiment of the invention provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
Compared with the prior art, the embodiment of the invention has the beneficial effects that:
according to the embodiment of the invention, the service to be upgraded is determined, the service information of the service to be upgraded is obtained, the upgrading project of the service to be upgraded is determined, the target information of the upgrading project is obtained from the service information, the configuration formula is generated according to the target information and the preset configuration algorithm table, finally, the numerical value of the upgrading project is calculated according to the configuration formula, and the numerical value of the upgrading project is written into the service information of the service to be upgraded, so that repeated analysis of the service logic of codes is avoided, the requirements on the development personnel are low, the development cost is low, the maintenance cost is low, and the application change and the application expansion can be realized rapidly on the basis of improving the development efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a service information upgrading method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a service information upgrading method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a service information upgrading method according to a first embodiment of the present invention. In this embodiment, the execution body of the service information upgrading method is a terminal. The terminal comprises, but is not limited to, a mobile terminal such as a smart phone, a tablet computer, a wearable device and the like, and can also be a desktop computer and the like. The service information upgrading method as shown in the figure may include the following steps:
S101: and acquiring service information and upgrading information of the service to be upgraded, which are sent by the user terminal.
In many business systems of companies, business personnel or users can process various business data through the business system, but in many cases, management personnel modify or upgrade information such as business processing modes, processes and the like according to user requirements, so that the business processing modes in the business system often need to be upgraded according to business changes.
The service information and the upgrade information of the service to be upgraded sent by the user terminal are firstly obtained, wherein the service to be upgraded is used for representing the service which is determined by the user terminal and needs to be upgraded, and because the service period of the service is only one year in many times, after the service period of one year expires, the service condition of the service needs to be upgraded and the like, in this case, the service to be upgraded is determined by the user terminal according to the operation condition and the user service condition of each service.
Specifically, determining the service to be upgraded may be that a developer determines a service identifier of the service to be upgraded currently, and after determining the service identifier of the service to be upgraded, acquiring service information of the service to be upgraded. The service information may include: the age, sex, business period, payment period, year of the service subject, or the presence or absence of social security, etc., are not limited herein.
The service information in this embodiment is used to indicate information such as a service amount and a processing channel of a service, and is not limited herein. The upgrade information is used to represent information of a target service item to be upgraded in the service, and may include information of a changed or target service item to be upgraded. For example, the amount of a certain risk of pregnancy is increased from one thousand to ten thousand, and the information is upgrade information, where the upgrade information is used to upgrade service information. After receiving the service information and the upgrade information of the service to be upgraded sent by the user terminal, the data processing terminal updates and upgrades the service information of the service to be upgraded according to the service information and the upgrade information.
S102: and determining target business items to be upgraded in the business to be upgraded according to the upgrading information, and acquiring target information corresponding to the target business items from the business information.
In this embodiment, the upgrade information is used to upgrade the service information, and we obtain the target information of the target service item from the service information by determining the target service item to be upgraded in the service to be upgraded according to the upgrade information.
It should be noted that, the target information of the target service item in the embodiment includes the service information to be upgraded in the service to be upgraded, for example, the number of various payment amounts or payment modes related in the service, and the target information corresponding to the target service item is obtained from the service by determining the target service item to be upgraded in the service to be upgraded according to the upgrade information.
Each service to be upgraded comprises a plurality of service items to be upgraded, for example, when the service is marketed for a period of time, corresponding adjustment needs to be made according to the requirement of a user or the change of user information, wherein the adjustment object can be the calculation of the service charge of the user or the cash value of the service to be upgraded. The method comprises the steps of determining a target service item to be upgraded in a service to be upgraded according to the obtained upgrading information, obtaining the service amount as the service amount, and obtaining the service amount information from the service information of the service to be upgraded, so that an initial value of the target service item to be upgraded in the service to be upgraded, namely the target information, can be determined, and the type and the configuration formula of the service to be upgraded can be determined according to the initial value.
Specifically, when the upgrade item of the service to be upgraded is a service fee, it is necessary to determine the customer rate by using the age, sex, service period or payment period of the person to be serviced as dimensions. Thus we acquire the target information associated with the upgrade project from the business information, wherein the target information is the age, sex, business period or payment period of the person being business.
When short insurance in an insurance application system is upgraded in the insurance industry, each product has cash value when an upgrade item preset for the short insurance to be upgraded is cash value, and the popular speaking is that a customer returns money to the customer when the customer returns the insurance, and the cash value is included. The calculation is needed through the premium and the less-than-expiration net premium time conversion ratio, so that the target information related to the calculation of the cash value is obtained from the insurance information, wherein the target information is the premium and the less-expiration net premium time conversion ratio.
S103: and calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information.
In this embodiment, a configuration algorithm table is preset, which includes a calculation method of item values for various types of service items. The generation mode of the configuration algorithm table can be used for generating the configuration algorithm corresponding to each service item according to the historical service information by firstly acquiring the historical service information and generating the configuration algorithm table according to each configuration algorithm.
Further, the configuration algorithm table may be specifically divided into several directions, since each product is developed with business cost and cash value. The service cost of each product is controlled by a collocation formula, and then the service cost of the product can be obtained by directly reading a collocation algorithm table, and the cash value is also obtained by the collocation algorithm.
The configuration formula matched with the target information can be queried through the configuration algorithm table. After the target information is acquired, a configuration formula matched with the target information is queried in a configuration algorithm table according to the target information.
Specifically, the header element in the present embodiment is used to represent the data name of the data amount involved in calculation for each configuration algorithm in the configuration algorithm table. When the configuration formula is matched, firstly calculating the similarity between the target information and the header element in the configuration algorithm table, namely calculating the similarity between the target information and the data name in the configuration algorithm table, identifying the header element with the maximum similarity as the element participating in the configuration formula, and then generating the configuration formula according to the header element and the operation mode in the configuration algorithm table. The specific formula generation mode may be that the operation relation among the header elements is determined by a calculation method of the service items in the configuration algorithm table, and finally, the configuration formula is generated according to the header elements and the operation relation.
S104: and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system.
After the configuration formula is determined, calculating a target service item value of a target service item according to the configuration formula and target information, and writing the target service item value into service information of the service to be upgraded so as to upgrade and update the service information. After the configuration formula is determined, calculating the value corresponding to the upgrade item according to the configuration formula corresponding to different upgrade items, and writing the value corresponding to the upgrade item into the service information of the service to be upgraded.
In this embodiment, the writing of the target service item value into the service information may be to set a new data writing area for writing the calculated new target service item value into the area, so that the original data is retained, the newly generated data can be recorded, and the later inquiry and recovery of the historical data are prevented.
By carrying out configuration development on the service to be upgraded, the service logic of repeated analysis codes is avoided, the requirements on developers are low, the development cost is low, the maintenance cost is low, the application change and the application expansion can be rapidly realized on the basis of improving the development efficiency, and the software development is completely realized by taking the service as the center instead of taking the developer as the center.
According to the scheme, the service information and the upgrading information of the service to be upgraded, which are sent by the user terminal, are obtained; determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information; calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system. The method comprises the steps of determining the service to be upgraded, obtaining the service information of the service to be upgraded, determining the upgrading project of the service to be upgraded, obtaining the target information of the upgrading project from the service information, generating a configuration formula according to the target information and a preset configuration algorithm table, finally calculating the numerical value of the upgrading project according to the configuration formula, writing the numerical value of the upgrading project into the service information of the service to be upgraded, avoiding repeated analysis of the service logic of codes, and realizing quick application change and application expansion on the basis of improving the development efficiency, wherein the requirements on the development personnel are low, and the development cost is low.
Referring to fig. 2, fig. 2 is a flowchart of a service information upgrading method according to a second embodiment of the present invention. In this embodiment, the execution body of the service information upgrading method is a terminal. The terminal comprises, but is not limited to, a mobile terminal such as a smart phone, a tablet computer, a wearable device and the like, and can also be a desktop computer and the like. The service information upgrading method as shown in the figure may include the following steps:
s201: and acquiring service information and upgrading information of the service to be upgraded, which are sent by the user terminal.
In this embodiment, the implementation manner of S201 is identical to that of S101 in the embodiment corresponding to fig. 1, and specific reference may be made to the description related to S101 in the embodiment corresponding to fig. 1, which is not repeated here.
S202: and determining target business items to be upgraded in the business to be upgraded according to the upgrading information, and acquiring target information corresponding to the target business items from the business information.
In this embodiment, the implementation manner of S202 is identical to that of S102 in the embodiment corresponding to fig. 1, and specific reference may be made to the description related to S102 in the embodiment corresponding to fig. 1, which is not repeated here.
S203: acquiring historical service information of each service; the historical service information comprises service amount and rate of the service.
In this embodiment, a configuration algorithm table is preset, and is used to determine a current calculation mode of service information through the configuration algorithm table. When the configuration algorithm table is constructed, firstly, the historical service information of each service needs to be acquired, and the historical service information in this embodiment may include the service quota and the rate of the service.
In practical application, the service amount is used for representing that the applicant and the service company agree on the application, but the current application rule of the service company is met, and the agreed service amount is specified on the service bill. I.e., the amount explicitly noted on the policy, the service amount is a payable amount of the service that can be taken, the basic service amount of some of the service terms is consistent with the service amount, and the service amount of some of the terms is calculated in units of the basic service amount. The rate refers to a rate at which the fee is paid. Such as the rate of the business industry refers to the ratio of the amount the applicant pays to the business person to the amount the business person bears reimbursement. And also refers to the fee charged by the phone in a billing unit.
In addition to the service amount and rate as the history service information, other service information may be used, which is not limited herein.
S204: generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service; the service item includes a service charge for the service.
After the service quota and the rate of the service are obtained, generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of the service. Among other things, the configuration algorithm can be specifically divided into several directions, since each product development is business-cost and cash-worth. The service cost of each product is controlled by a collocation formula, and then the service cost of the product can be obtained by directly reading a collocation algorithm table, and the cash value is calculated by the collocation algorithm.
In this embodiment, the service item is used to represent the name of the service information that needs to be calculated in the service, and may be information such as service cost, which is not limited herein.
S2041: and determining the service type of the service according to the historical service information of the service and a preset service type dividing standard.
In this embodiment, a service type dividing standard is preset, which is used to divide service types of different services for different historical service information. Illustratively, in the insurance industry, insurance categories are classified according to the nature, purpose, object and insurance legal requirements, history habits, and the like of insurance operations. International classification of insurance business has no fixed principle and unified standard, and each country usually adopts different classification methods according to respective needs. The dividing method is divided into two major categories, namely human insurance and damage insurance according to whether the insurance target is human or object. The insured person pays insurance money due to disability, death or incapacitation of diseases or accidents, and the senior retirement or the expiration of the insurance contract is personal insurance, including death insurance, survival insurance, annuity insurance, pension insurance and the like; the property or benefit is damaged by disasters and accidents, economic compensation is given, and damage insurance is realized, and the damage insurance comprises property insurance, responsibility insurance, guarantee insurance, credit insurance and the like.
The service types of the service in this embodiment may include a credit type and a share type, where the credit type is used to represent a service type for paying a service fee according to a credit, and the share type is used to represent a service type for paying a service fee according to a share of a user purchase service.
S2042: and determining a service charge calculation formula of the service according to the service type of the service.
In this embodiment, different service types of different services correspond to different service cost calculation formulas, so as to ensure that the service of each service type has a correct and reasonable service item value calculation mode.
Further, step S2042 may specifically include the steps of:
and if the service type is a credit type service, the service cost of the service is the product of the credit and the rate of the service.
And if the service type is the part type service, the service cost of the service is the product of the part of the service and the rate.
Specifically, the quota is selected when the client makes an insurance, the service quota is defined in the company itself, and the rate is defined in the company service department. Detailed rate: the customer rate is determined by taking the age, sex, business period, payment period, year of insurance, social security and the like of the person to be serviced as dimensions. The dimensions of each product are different. Previous development patterns were performed in a single product development approach, which resulted in code redundancy. Now find the formula of intercommunication before the product, so can reduce the call time greatly, also can more convenient maintenance code.
When determining the service cost formula of the number-of-parts product formula, the service cost is the product of the number of parts of the service and the rate. The final service charge can be obtained by multiplying the number of copies purchased by the customer by the rate. Since each product is of cash value, the popular term is that the money returned to the customer includes cash value when the customer is in return for the insurance. When the cash value formula is determined, the updated cash price is also obtained in a mode of configuring an algorithm table as the service cost, and then reading is called. I.e. as long as the present price of the product is also configured by the algorithm formula.
In practical applications, the service is generally only the unexpired net service cost, so the cash value is equal to the unexpired net service cost. The value of the unexpired net service charge is equal to the product among the service charge, the unexpired net service charge time conversion ratio, the ET coefficient and the unexpired net service charge R coefficient, wherein the Et coefficient is determined by a service company according to the related dimension of dangerous seeds, and the R coefficient is determined according to the selected payment type of a customer.
S2043: and generating configuration algorithms corresponding to the service fees of different service types according to the service amount, the rate and the calculation formula of the service.
After determining the service charge calculation formula corresponding to each service type, we generate service charge configuration algorithms corresponding to different types of service information according to the service amount, rate and calculation formula of the service. The configuration algorithm may include a business fee formula, a cash value formula, etc., without limitation. When determining the service cost formula, the service cost can be divided into a credit type algorithm formula and a number of parts type product formula.
S205: constructing a configuration algorithm table according to each configuration algorithm; the configuration algorithm table is used for generating a configuration formula to calculate the item value of each business item of the business.
After determining the service cost configuration algorithm corresponding to the service information of different service types, we construct a configuration algorithm table according to each configuration algorithm to generate a configuration formula through the configuration algorithm table so as to calculate the item value of each service item in the service.
The configuration algorithm table in this embodiment includes a configuration algorithm of each service item of each service type, and is used to determine a calculation mode of the service item of each type of risk through the configuration algorithm table, so as to determine an item value.
S206: and calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information.
After the target information is obtained, the header elements matched with the target information are queried in a preset configuration algorithm table, and a configuration formula is generated according to the header elements matched with the target information.
Further, step S206 may specifically include steps S2061 to S2062:
s2061: and calculating the cosine distance between the target information and the header element of the configuration algorithm table as the similarity.
The target information in this embodiment is used to represent information of a target service item to be upgraded in the service, where the information may include information such as a credit. After determining the target information to be upgraded, namely determining the original information corresponding to the target item, the target business value corresponding to the target item needs to be calculated through a configuration formula.
When determining the matched collocation formula according to the target information, the collocation formula matched with the target information is determined by calculating the similarity between the target information and the header element of the collocation algorithm table. The similarity calculation method in this embodiment may be to obtain header elements of the configuration algorithm table first, and determine a configuration formula in the configuration algorithm table that is most matched with the target information by calculating the similarity between the header elements and the target information. A specific way of calculating the similarity may be to calculate the cosine distance between the two to determine, without limitation.
S2062: and determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information.
After the similarity between the target information and the header elements in the configuration algorithm table is obtained through calculation, the similarity is ordered according to the sequence from high to low, the header element with the largest similarity is determined to be the target element, and a formula corresponding to the target element is determined in the configuration algorithm table to be a configured formula matched with the target information, so that the target service item value of the target service item is obtained through calculation through the configured formula and the target information.
S207: and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system.
In this embodiment, the implementation manner of S207 is identical to that of S104 in the embodiment corresponding to fig. 1, and specific reference may be made to the description related to S104 in the embodiment corresponding to fig. 1, which is not repeated here.
According to the scheme, the service information and the upgrading information of the service to be upgraded, which are sent by the user terminal, are obtained; determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information; acquiring historical service information of each service; the historical service information comprises service amount and rate of the service; generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service; the service items comprise service cost and payment modes of the service; constructing a configuration algorithm table according to each configuration algorithm; the configuration algorithm table is used for generating a configuration formula to calculate the item value of each business item of the business. Calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system. The numerical value of the upgrade project is calculated according to the collocation formula, and the numerical value of the upgrade project is written into the service information of the service to be upgraded, so that repeated analysis of the service logic of the code is avoided, the requirements on the developer are low, the development cost is low, the maintenance cost is low, and the application change and the application expansion can be realized rapidly on the basis of improving the development efficiency.
Referring to fig. 3, fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention. The terminal device includes units for executing the steps in the embodiments corresponding to fig. 1 to 2. Refer specifically to the related descriptions in the respective embodiments of fig. 1-2. For convenience of explanation, only the portions related to the present embodiment are shown. The terminal device 300 of the present embodiment includes:
a first obtaining unit 301, configured to obtain service information and upgrade information of a service to be upgraded sent by a user terminal;
a second obtaining unit 302, configured to determine a target service item to be upgraded in the service to be upgraded according to the upgrade information, and obtain target information corresponding to the target service item from the service information;
a query unit 303, configured to calculate a similarity between the target information and header elements in a preset configuration algorithm table, determine header elements matched with the target information according to the similarity, and generate a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
and the writing unit 304 is configured to calculate a target service item value of the target service item according to the configuration formula and the target information, write the target service item value into the service information to be upgraded, and synchronize the service information after upgrading to a storage node in a preset distributed system.
Further, the terminal device may further include:
a third acquiring unit, configured to acquire historical service information of each service; the historical service information comprises service amount and rate of the service;
the generating unit is used for generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service; the service item comprises service cost of the service;
the construction unit is used for constructing a configuration algorithm table according to each configuration algorithm; the configuration algorithm table is used for generating a configuration formula to calculate the item value of each business item of the business.
Further, the generating unit may include:
the type determining unit is used for determining the service type of the service according to the historical service information of the service and a preset service type dividing standard;
the formula determining unit is used for determining a service cost calculation formula of the service according to the service type of the service;
and the algorithm generating unit is used for generating configuration algorithms corresponding to the service fees of different service types according to the service amount, the rate and the calculation formula of the service.
Further, the formula determining unit may include:
a quota formula unit, configured to, if the service type is a quota service, determine that a service cost of the service is a product of a quota and a rate of the service;
and the number formula unit is used for judging whether the service type is the number type service or not, and if so, judging that the service cost of the service is the product of the number of the service and the rate.
According to the scheme, the service information and the upgrading information of the service to be upgraded, which are sent by the user terminal, are obtained; determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information; calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; and calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system. The method comprises the steps of determining the service to be upgraded, obtaining the service information of the service to be upgraded, determining the upgrading project of the service to be upgraded, obtaining the target information of the upgrading project from the service information, generating a configuration formula according to the target information and a preset configuration algorithm table, finally calculating the numerical value of the upgrading project according to the configuration formula, writing the numerical value of the upgrading project into the service information of the service to be upgraded, avoiding repeated analysis of the service logic of codes, and realizing quick application change and application expansion on the basis of improving the development efficiency, wherein the requirements on the development personnel are low, and the development cost is low.
Fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in the memory 41 and executable on the processor 40. The steps of the various embodiments of the business information upgrade method described above, such as steps 101 through 104 shown in fig. 1, are implemented by the processor 40 when executing the computer program 42. Alternatively, the processor 40 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the units 301 to 304 shown in fig. 3, when executing the computer program 42.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 42 in the terminal device 4.
The terminal device 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 4 and does not constitute a limitation of the terminal device 4, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card, FC), or the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (6)

1. A method for upgrading service information, comprising:
acquiring service information and upgrading information of a service to be upgraded, which are sent by a user terminal;
determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information;
calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system;
before the table head elements matched according to the target information generate a configuration formula, the method comprises the following steps:
acquiring historical service information of each service; the historical service information comprises service amount and rate of the service;
Generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service;
constructing a configuration algorithm table according to each configuration algorithm; the configuration algorithm table is used for generating a configuration formula to calculate the item value of each service item of the service; the configuration algorithm table comprises a header element for representing the name of each business item;
the calculating the similarity between the target information and the header elements in the preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information, wherein the configuration formula comprises the following steps:
calculating the cosine distance between the target information and the header element of the configuration algorithm table as the similarity;
and determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information.
2. The service information upgrading method according to claim 1, wherein the service item includes a service fee; the generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service includes:
Determining the service type of the service according to the historical service information of the service and a preset service type dividing standard;
determining a service charge calculation formula of the service according to the service type of the service;
and generating configuration algorithms corresponding to the service fees of different service types according to the service amount, the rate and the calculation formula of the service.
3. The service information upgrading method according to claim 2, wherein the service type includes a credit type service and a number of copies type service; the determining a service charge calculation formula of the service according to the service type of the service comprises the following steps:
if the service type is a credit type service, the service cost of the service is the product of the credit and the rate of the service;
and if the service type is the part type service, the service cost of the service is the product of the part of the service and the rate.
4. A terminal device comprising a memory and a processor, said memory storing a computer program executable on said processor, characterized in that said processor, when executing said computer program, performs the steps of:
Acquiring service information and upgrading information of a service to be upgraded, which are sent by a user terminal;
determining a target service item to be upgraded in the service to be upgraded according to the upgrading information, and acquiring target information corresponding to the target service item from the service information;
calculating the similarity between the target information and the header elements in a preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information; the header element is used for representing elements participating in algorithm calculation in the configuration algorithm table;
calculating a target service item value of the target service item according to the configuration formula and the target information, writing the target service item value into the service information to be upgraded, and synchronizing the upgraded service information to a storage node in a preset distributed system;
wherein before generating the configuration formula according to the type of the target information and a preset configuration algorithm table, the method further comprises:
acquiring historical service information of each service; the historical service information comprises service amount and rate of the service;
Generating a configuration algorithm corresponding to each service item in the service according to the service quota and the rate of any service; the service item comprises service cost of the service;
constructing a configuration algorithm table according to each configuration algorithm; the configuration algorithm table is used for generating a configuration formula to calculate the item value of each service item of the service;
the calculating the similarity between the target information and the header elements in the preset configuration algorithm table, determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information, wherein the configuration formula comprises the following steps:
calculating the cosine distance between the target information and the header element of the configuration algorithm table as the similarity;
and determining the header elements matched with the target information according to the similarity, and generating a configuration formula according to the header elements matched with the target information.
5. A terminal device, characterized in that the terminal device is arranged to implement the steps of the method according to any of claims 1 to 3.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 3.
CN201910603426.9A 2019-07-05 2019-07-05 Service information upgrading method and terminal equipment Active CN110442587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910603426.9A CN110442587B (en) 2019-07-05 2019-07-05 Service information upgrading method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910603426.9A CN110442587B (en) 2019-07-05 2019-07-05 Service information upgrading method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110442587A CN110442587A (en) 2019-11-12
CN110442587B true CN110442587B (en) 2023-11-24

Family

ID=68429380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910603426.9A Active CN110442587B (en) 2019-07-05 2019-07-05 Service information upgrading method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110442587B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771930A (en) * 2008-12-26 2010-07-07 中国移动通信集团公司 User terminal, software hosting business management system and management method
CN109657177A (en) * 2018-10-31 2019-04-19 深圳壹账通智能科技有限公司 The generation method of the page, device, storage medium and computer equipment after upgrading
CN109710294A (en) * 2019-03-06 2019-05-03 苏州浪潮智能科技有限公司 A kind of system version upgrade method, device, equipment and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095283A1 (en) * 2013-09-27 2015-04-02 Microsoft Corporation Master schema shared across multiple tenants with dynamic update

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771930A (en) * 2008-12-26 2010-07-07 中国移动通信集团公司 User terminal, software hosting business management system and management method
CN109657177A (en) * 2018-10-31 2019-04-19 深圳壹账通智能科技有限公司 The generation method of the page, device, storage medium and computer equipment after upgrading
CN109710294A (en) * 2019-03-06 2019-05-03 苏州浪潮智能科技有限公司 A kind of system version upgrade method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN110442587A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
WO2021174945A1 (en) Data cost calculation method, system, computer device, and storage medium
CN112364004B (en) Data warehouse-based policy data processing method, device and storage medium
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN111178830B (en) Cost accounting method, cost accounting device, computer equipment and storage medium
CN112598289B (en) Index configuration method, system, computer device and computer readable storage medium
CN107656955B (en) Repayment data batch reporting method and device
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
CN112016914B (en) Resource control and fund control method, device and equipment
CN112488845A (en) Method and device for screening insurance clients, electronic equipment and storage medium
CN112163962A (en) Method and device for model training and business wind control
CN112905677A (en) Data processing method and device, service processing system and computer equipment
CN111091471A (en) Insurance claim settlement method, device, equipment and storage medium
CN111930350B (en) Calculation template-based fine calculation model establishment method
CN111242779B (en) Financial data characteristic selection and prediction method, device, equipment and storage medium
CN110991992B (en) Processing method and device of business process information, storage medium and electronic equipment
US11593830B2 (en) Loyalty coin miner for customized blockchain based customer loyalty program
CN110442587B (en) Service information upgrading method and terminal equipment
CN109035033B (en) Information processing method and terminal for reduced-protection service
CN108985946B (en) Processing method of policy and server
US9652766B1 (en) Managing data stored in memory locations having size limitations
CN115130756A (en) Online service management method and device, electronic equipment and storage medium
US8719374B1 (en) Accessing large data stores over a communications network
CN113449232A (en) Data processing method, device, equipment and storage medium
CN111273893A (en) Financial data processing method and device, computer equipment and storage medium
CN114048230B (en) Service data processing method, device, equipment and storage medium

Legal Events

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