CN109584036B - Object calculation method and device, electronic equipment and computer-readable storage medium - Google Patents
Object calculation method and device, electronic equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN109584036B CN109584036B CN201811185370.1A CN201811185370A CN109584036B CN 109584036 B CN109584036 B CN 109584036B CN 201811185370 A CN201811185370 A CN 201811185370A CN 109584036 B CN109584036 B CN 109584036B
- Authority
- CN
- China
- Prior art keywords
- calculation
- value
- target
- historical
- time unit
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Complex Calculations (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及数据计算技术领域,具体涉及一种对象计算方法、装置、电子设备及计算机可读存储介质。Embodiments of the present invention relate to the technical field of data computing, and specifically relate to an object computing method, device, electronic equipment, and computer-readable storage medium.
背景技术Background technique
随着数据技术以及金融业务的发展,衍生出了多种存款、贷款、理财等金融业务的计息方式,比如:活期、定期、协定、等本等息、多形态贷款等等,业务模式的丰富使得计息规则变得越来越复杂。为了应对全责发生制的记账需求,每天需要对于所有的数据进行当日计提利息,在这种情况下,如何在保证利息计算准确的前提下,提高计算效率、快速计算出海量用户利息数据是一个亟需解决的问题。现有技术中常用的计息方法是积数计息法和逐笔计息法,上述计息方法在应对多个利率分段的场景时,需要进行递归计算,最后才能得到完整的利息计算结果,显然,这对于周期较长的利息计算场景,计算性能会大打折扣;为了提高计算性能,还可采用每日利息法,即将每日产生的利息固化下来,再对每日利息求和得到利息总额,这种计息方法虽然在一定程度上解决了计算性能问题,但每日利息尾差的累加会影响计算的准确性。With the development of data technology and financial business, a variety of interest calculation methods for financial business such as deposits, loans, and wealth management have been derived, such as: demand deposit, fixed term, agreement, equal principal and interest, multi-form loans, etc., the business model Enrichment makes the interest calculation rules more and more complicated. In order to meet the bookkeeping requirements of the full liability accrual system, it is necessary to accrue interest on the day for all data every day. In this case, how to improve calculation efficiency and quickly calculate massive user interest data on the premise of ensuring accurate interest calculation is an urgent problem to be solved. The commonly used interest calculation methods in the prior art are the cumulative interest calculation method and the transaction-by-tick interest calculation method. When the above interest calculation methods deal with the scene of multiple interest rate segments, recursive calculations are required before the complete interest calculation results can be obtained. , obviously, for the interest calculation scenario with a long period, the calculation performance will be greatly reduced; in order to improve the calculation performance, the daily interest method can also be used, that is, the interest generated every day is solidified, and then the daily interest is summed to obtain the interest The total amount, although this interest calculation method solves the calculation performance problem to a certain extent, the accumulation of the daily interest tail difference will affect the accuracy of the calculation.
发明内容Contents of the invention
本发明实施例提供一种对象计算方法、装置、电子设备及计算机可读存储介质。Embodiments of the present invention provide an object computing method, device, electronic equipment, and computer-readable storage medium.
第一方面,本发明实施例中提供了一种对象计算方法。In a first aspect, an object computing method is provided in an embodiment of the present invention.
具体的,所述对象计算方法,包括:Specifically, the object calculation method includes:
获取历史对象计算参数集合,其中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值;Obtain a set of calculation parameters for historical objects, wherein the set of calculation parameters for historical objects includes: the calculation base value of the historical object, the equivalent value of the historical object calculation, the calculation coefficient of the historical object, and the first historical object value of the previous calculation time unit;
判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;Judging whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, and determining the target object calculation basis value and the target object calculation equivalent value of the target calculation time unit according to the judgment result;
根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值。The target object value is calculated according to the target object calculation equivalent value and the object calculation coefficient of the target calculation time unit.
结合第一方面,本发明实施例在第一方面的第一种实现方式中,所述历史对象计算等价值为所述历史对象计算基础值与历史对象计算系数相同的历史计算时间单位持续数量的乘积。With reference to the first aspect, in the first implementation manner of the first aspect of the embodiment of the present invention, the equivalent value of the historical object calculation is the continuous number of historical calculation time units whose basic value of the historical object calculation is the same as the historical object calculation coefficient product.
结合第一方面和第一方面的第一种实现方式,本发明实施例在第一方面的第二种实现方式中,所述判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值,包括:In combination with the first aspect and the first implementation manner of the first aspect, in the second implementation manner of the first aspect in the embodiment of the present invention, the determination of whether the object calculation coefficient of the target calculation time unit and the historical object calculation coefficient The same, and determine the target object calculation base value and target object calculation equivalent value of the target calculation time unit according to the judgment result, including:
判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同;Judging whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, the historical object calculation base value is determined as the target object calculation base value, and the historical object calculation equivalent value and the The sum of the target object calculation base values is determined to calculate an equivalent value for said target object;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, the historical object calculation basis value is determined as the target object calculation basis value, and the target object calculation basis value is determined as The target object calculates an equivalent value.
结合第一方面、第一方面的第一种实现方式和第一方面的第二种实现方式,本公开在第一方面的第三种实现方式中,所述根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值,包括:In combination with the first aspect, the first implementation of the first aspect, and the second implementation of the first aspect, in the third implementation of the first aspect of the present disclosure, the calculation of the equivalent value and The object calculation coefficient of the target calculation time unit is calculated to obtain the target object value, including:
将所述目标对象计算等价值和目标计算时间单位的对象计算系数相乘;Multiplying the target object calculation equivalent value by the object calculation coefficient of the target calculation time unit;
将得到的乘积确认为目标对象值。Confirm the resulting product as the target object value.
结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式和第一方面的第三种实现方式,本公开在第一方面的第四种实现方式中,还包括:In combination with the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, and the third implementation of the first aspect, in the fourth implementation of the first aspect, the present disclosure also includes include:
根据所述判断结果计算并输出对象累计值。An object cumulative value is calculated and output based on the judgment result.
结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式、第一方面的第三种实现方式和第一方面的第四种实现方式,本公开在第一方面的第五种实现方式中,所述根据所述判断结果计算并输出对象累计值,包括:Combining the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, the third implementation of the first aspect and the fourth implementation of the first aspect, the present disclosure is based on the first In the fifth implementation manner of the aspect, the calculating and outputting the cumulative value of the object according to the judgment result includes:
获取所述前一计算时间单位之前的第二历史对象值;Obtaining a second history object value before the previous calculation time unit;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,计算所述目标对象值与所述第二历史对象值的和,并将得到的和值作为所述对象累计值输出;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, calculate the sum of the target object value and the second historical object value, and use the obtained sum value as the object cumulative value output;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述第二历史对象值更新为所述第一历史对象值与所述第二历史对象值的和,并将所述目标对象值与更新后的所述第二历史对象值的和值作为所述对象累计值输出。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, updating the second historical object value to the sum of the first historical object value and the second historical object value, and output the sum of the target object value and the updated second historical object value as the object accumulation value.
第二方面,本发明实施例中提供了一种对象计算装置。In a second aspect, an object computing device is provided in an embodiment of the present invention.
具体的,所述对象计算装置,包括:Specifically, the object computing device includes:
获取模块,被配置为获取历史对象计算参数集合,其中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值;An acquisition module configured to acquire a set of historical object calculation parameters, wherein the historical object calculation parameter set includes: the historical object calculation base value of the previous calculation time unit, the historical object calculation equivalent value, the historical object calculation coefficient, and the first history object value;
确定模块,被配置为判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;The determination module is configured to judge whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, and determine the target object calculation base value and the target object calculation equivalent value of the target calculation time unit according to the judgment result;
计算模块,被配置为根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值。The calculation module is configured to calculate the target object value according to the target object calculation equivalent value and the object calculation coefficient of the target calculation time unit.
结合第二方面,本发明实施例在第二方面的第一种实现方式中,所述历史对象计算等价值为所述历史对象计算基础值与历史对象计算系数相同的历史计算时间单位持续数量的乘积。With reference to the second aspect, in the first implementation manner of the second aspect of the embodiment of the present invention, the equivalent value of the historical object calculation is the continuous number of historical calculation time units whose basic value of the historical object calculation is the same as the historical object calculation coefficient product.
结合第二方面和第二方面的第一种实现方式,本发明实施例在第二方面的第二种实现方式中,所述确定模块被配置为:With reference to the second aspect and the first implementation manner of the second aspect, in the embodiment of the present invention, in the second implementation manner of the second aspect, the determination module is configured to:
判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同;Judging whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, the historical object calculation base value is determined as the target object calculation base value, and the historical object calculation equivalent value and the The sum of the target object calculation base values is determined to calculate an equivalent value for said target object;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, the historical object calculation basis value is determined as the target object calculation basis value, and the target object calculation basis value is determined as The target object calculates an equivalent value.
结合第二方面、第二方面的第一种实现方式和第二方面的第二种实现方式,本公开在第二方面的第三种实现方式中,根据计算模块包括:Combining the second aspect, the first implementation of the second aspect, and the second implementation of the second aspect, in the third implementation of the second aspect of the present disclosure, according to the calculation module, it includes:
计算子模块,被配置为将所述目标对象计算等价值和目标计算时间单位的对象计算系数相乘;The calculation sub-module is configured to multiply the target object calculation equivalent value by the object calculation coefficient of the target calculation time unit;
确认子模块,被配置为将得到的乘积确认为目标对象值。A validation sub-module configured to validate the resulting product as a target object value.
结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式和第二方面的第三种实现方式,本公开在第二方面的第四种实现方式中,还包括:In combination with the second aspect, the first implementation of the second aspect, the second implementation of the second aspect, and the third implementation of the second aspect, in the fourth implementation of the second aspect, the present disclosure also includes include:
输出模块,被配置为根据所述判断结果计算并输出对象累计值。An output module configured to calculate and output an object accumulation value according to the judgment result.
结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式、第二方面的第三种实现方式和第二方面的第四种实现方式,本公开在第二方面的第五种实现方式中,所述输出模块被配置为:Combining the second aspect, the first implementation of the second aspect, the second implementation of the second aspect, the third implementation of the second aspect and the fourth implementation of the second aspect, the present disclosure is in the second In the fifth implementation manner of the aspect, the output module is configured as:
获取所述前一计算时间单位之前的第二历史对象值;Obtaining a second history object value before the previous calculation time unit;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,计算所述目标对象值与所述第二历史对象值的和,并将得到的和值作为所述对象累计值输出;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, calculate the sum of the target object value and the second historical object value, and use the obtained sum value as the object cumulative value output;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述第二历史对象值更新为所述第一历史对象值与所述第二历史对象值的和,并将所述目标对象值与更新后的所述第二历史对象值的和值作为所述对象累计值输出。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, updating the second historical object value to the sum of the first historical object value and the second historical object value, and output the sum of the target object value and the updated second historical object value as the object cumulative value.
第三方面,本发明实施例提供了一种电子设备,包括存储器和处理器,所述存储器用于存储一条或多条支持对象计算装置执行上述第一方面中对象计算方法的计算机指令,所述处理器被配置为用于执行所述存储器中存储的计算机指令。所述对象计算装置还可以包括通信接口,用于对象计算装置与其他设备或通信网络通信。In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory is used to store one or more computer instructions that support the object computing device to execute the object computing method in the first aspect above, the The processor is configured to execute computer instructions stored in said memory. The object computing device may further include a communication interface for the object computing device to communicate with other devices or a communication network.
第四方面,本发明实施例提供了一种计算机可读存储介质,用于存储对象计算装置所用的计算机指令,其包含用于执行上述第一方面中对象计算方法为对象计算装置所涉及的计算机指令。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer instructions used by an object computing device, which includes a computer for performing the object computing method in the above first aspect as the object computing device instruction.
本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:
上述技术方案根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据,从而使得不同利率对应的利息能够相对独立,避免重复计算。该技术方案能够在保证计算准确性的前提下,有效降低利息等对象数据计算的复杂性,提升计算性能,提高计算效率,同时还能够节省计算时间和计算资源。The above technical solution splits the calculation of interest and other object data according to the change of interest rate, that is, calculates the object data by adopting the method of interest rate segmentation and solidification, so that the interest corresponding to different interest rates can be relatively independent and avoid double calculation. The technical solution can effectively reduce the complexity of calculation of object data such as interest on the premise of ensuring calculation accuracy, improve calculation performance, improve calculation efficiency, and save calculation time and resources at the same time.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明实施例。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and are not intended to limit the embodiments of the present invention.
附图说明Description of drawings
结合附图,通过以下非限制性实施方式的详细描述,本发明实施例的其它特征、目的和优点将变得更加明显。在附图中:Other features, objects and advantages of the embodiments of the present invention will become more apparent through the following detailed description of the non-limiting embodiments in conjunction with the accompanying drawings. In the attached picture:
图1示出根据本发明一实施方式的对象计算方法的流程图;FIG. 1 shows a flowchart of an object calculation method according to an embodiment of the present invention;
图2示出根据图1所示实施方式的对象计算方法的步骤S103的流程图;FIG. 2 shows a flow chart of step S103 of the object calculation method according to the embodiment shown in FIG. 1;
图3示出根据本发明另一实施方式的对象计算方法的流程图;FIG. 3 shows a flowchart of an object calculation method according to another embodiment of the present invention;
图4示出根据本发明一实施方式的对象计算装置的结构框图;Fig. 4 shows a structural block diagram of an object computing device according to an embodiment of the present invention;
图5示出根据图4所示实施方式的对象计算装置的计算模块403的结构框图;FIG. 5 shows a structural block diagram of the
图6示出根据本发明另一实施方式的对象计算装置的结构框图;FIG. 6 shows a structural block diagram of an object computing device according to another embodiment of the present invention;
图7示出根据本发明一实施方式的电子设备的结构框图;FIG. 7 shows a structural block diagram of an electronic device according to an embodiment of the present invention;
图8是适于用来实现根据本发明一实施方式的对象计算方法的计算机系统的结构示意图。FIG. 8 is a schematic structural diagram of a computer system suitable for implementing the object computing method according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中,将参考附图详细描述本发明实施例的示例性实施方式,以使本领域技术人员可容易地实现它们。此外,为了清楚起见,在附图中省略了与描述示例性实施方式无关的部分。Hereinafter, exemplary embodiments of embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily realize them. Also, for clarity, parts not related to describing the exemplary embodiments are omitted in the drawings.
在本发明实施例中,应理解,诸如“包括”或“具有”等的术语旨在指示本说明书中所公开的特征、数字、步骤、行为、部件、部分或其组合的存在,并且不欲排除一个或多个其他特征、数字、步骤、行为、部件、部分或其组合存在或被添加的可能性。In the embodiments of the present invention, it should be understood that terms such as "comprising" or "having" are intended to indicate the presence of features, numbers, steps, acts, components, parts or combinations thereof disclosed in this specification, and are not intended to The possibility that one or more other features, numbers, steps, acts, parts, parts or combinations thereof exist or be added is excluded.
另外还需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明实施例。In addition, it should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.
本发明实施例提供的技术方案根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据,从而使得不同利率对应的利息能够相对独立,避免重复计算。该技术方案能够在保证计算准确性的前提下,有效降低利息等对象数据计算的复杂性,提升计算性能,提高计算效率,同时还能够节省计算时间和计算资源。The technical solution provided by the embodiment of the present invention splits the calculation of interest and other object data according to the change of interest rate, that is, the interest rate is segmented and solidified to calculate the object data, so that the interest corresponding to different interest rates can be relatively independent and avoid double calculation . The technical solution can effectively reduce the complexity of calculation of object data such as interest on the premise of ensuring calculation accuracy, improve calculation performance, improve calculation efficiency, and save calculation time and resources at the same time.
图1示出根据本发明一实施方式的对象计算方法的流程图,如图1所示,所述对象计算方法包括以下步骤S101-S103:Fig. 1 shows a flowchart of an object calculation method according to an embodiment of the present invention. As shown in Fig. 1, the object calculation method includes the following steps S101-S103:
在步骤S101中,获取历史对象计算参数集合;In step S101, obtain a historical object calculation parameter set;
在步骤S102中,判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;In step S102, judge whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, and determine the target object calculation basis value and the target object calculation equivalent value of the target calculation time unit according to the judgment result;
在步骤S103中,根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值。In step S103, the target object value is calculated according to the target object calculation equivalent value and the object calculation coefficient of the target calculation time unit.
上文提及,随着数据技术以及金融业务的发展,衍生出了多种存款、贷款、理财等金融业务的计息方式,比如:活期、定期、协定、等本等息、多形态贷款等等,业务模式的丰富使得计息规则变得越来越复杂。为了应对全责发生制的记账需求,每天需要对于所有的数据进行当日计提利息,在这种情况下,如何在保证利息计算准确的前提下,提高计算效率、快速计算出海量用户利息数据是一个亟需解决的问题。而现有技术中常用的计息方法或者计算性能欠佳,或者计算准确性欠佳,均无法满足实际应用的需要。As mentioned above, with the development of data technology and financial services, a variety of interest calculation methods for financial services such as deposits, loans, and wealth management have been derived, such as: current demand, fixed term, agreement, equal principal and interest, multi-form loans, etc. etc. The richness of business models makes the rules of interest calculation more and more complicated. In order to meet the bookkeeping requirements of the full liability accrual system, it is necessary to accrue interest on the day for all data every day. In this case, how to improve calculation efficiency and quickly calculate massive user interest data on the premise of ensuring accurate interest calculation is an urgent problem to be solved. However, the commonly used interest calculation methods in the prior art either have poor calculation performance or poor calculation accuracy, and cannot meet the needs of practical applications.
考虑到上述问题,在该实施方式中,提出一种对象计算方法,该方法根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据,从而使得不同利率对应的利息能够相对独立,避免重复计算。该技术方案能够在保证计算准确性的前提下,有效降低利息等对象数据计算的复杂性,提升计算性能,提高计算效率,同时还能够节省计算时间和计算资源。Considering the above problems, in this embodiment, an object calculation method is proposed, which divides the calculation of interest and other object data according to the change of interest rate, that is, calculates the object data by adopting the method of interest rate segmentation and solidification, so that The interest corresponding to different interest rates can be relatively independent to avoid double calculation. The technical solution can effectively reduce the complexity of calculation of object data such as interest on the premise of ensuring calculation accuracy, improve calculation performance, improve calculation efficiency, and save calculation time and resources at the same time.
其中,所述对象指的是利息或者其他存在计算系数以及累积计算的对象。Wherein, the object refers to interest or other objects that have calculation coefficients and cumulative calculations.
在本实施例的一个可选实现方式中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值。其中,所述计算时间单位指的是对象计算所使用的时间单位,比如日、周、月等等,为了便于理解,下文中以日作为计算时间单位对于本发明进行进一步的解释和说明。In an optional implementation of this embodiment, the historical object calculation parameter set includes: the historical object calculation base value, the historical object calculation equivalent value, the historical object calculation coefficient, and the first historical object value of the previous calculation time unit. Wherein, the calculation time unit refers to the time unit used for object calculation, such as day, week, month, etc. For ease of understanding, the present invention will be further explained and described below using day as the calculation time unit.
其中,所述对象计算基础值指的是产生对象数据的基础数据值;所述对象计算等价值指的是为了方便对象的计算,对于所述对象计算基础值进行一定的计算或换算得到的一个等价值;所述对象计算系数指的是利率等对于对象数据起到决定性作用的系数数据。Wherein, the object calculation basic value refers to the basic data value that generates the object data; the object calculation equivalent value refers to a certain calculation or conversion of the object calculation basic value for the convenience of object calculation. Equivalent value; the object calculation coefficient refers to the coefficient data such as interest rate that plays a decisive role in the object data.
比如,某一客户在某一金融机构存了1万元,存期为1年,存款时约定的年利率为5%,虽然客户有可能只关心1年后他能拿到多少的利息,但是对于金融机构来说,为了完善资金管理,需要每日计算该客户的存款所产生的利息。在该例的利息计算中,所述对象计算基础值就是1万元,所述对象计算系数就是日利率0.137‰,即年利率5%除以一年的总天数365。另外,为了方便利息的计算,每天还将对象计算基础值乘以起息总天数得到的值,或者将前一计算时间单位的历史对象计算等价值与当前计算日目标对象计算基础值的和作为对象计算等价值来计算每天的利息,即得到所述对象计算等价值后,就可以直接将其直接与日利率相乘,得到每天的利息,比如在上述示例中,第一天的对象计算基础值为1万元,起息总天数为1,第一天的对象计算等价值为第一天的对象计算基础值乘以起息总天数等于1万元,第一天的对象计算系数为0.137‰,则第一天的利息值为1万元乘以0.137‰等于1.37元;第二天的对象计算基础值仍为1万元,起息总天数为2,第二天的对象计算等价值为第二天的对象计算基础值乘以起息总天数等于2万元,第二天的对象计算系数不变,仍为0.137‰,则第二天的利息值为2万元乘以0.137‰等于2.74元;第三天的对象计算基础值仍为1万元,起息总天数为3,第三天的对象计算等价值为第三天的对象计算基础值乘以起息总天数等于3万元,第三天的对象计算系数不变,仍为0.137‰,则第三天的利息值为3万元乘以0.137‰等于4.11元,以此类推,即可得到该客户每天获得的利息值。For example, a customer deposits 10,000 yuan in a financial institution with a deposit period of 1 year, and the agreed annual interest rate is 5%. Although the customer may only care about how much interest he can get after 1 year, but For financial institutions, in order to improve fund management, it is necessary to calculate the interest generated by the customer's deposit on a daily basis. In the interest calculation of this example, the calculation base value of the object is 10,000 yuan, and the calculation coefficient of the object is the daily interest rate of 0.137‰, that is, the annual interest rate of 5% divided by the total number of days in a year is 365. In addition, in order to facilitate the calculation of interest, the value obtained by multiplying the calculation base value of the object by the total number of days of value starting every day, or the sum of the calculation equivalent value of the historical object of the previous calculation time unit and the calculation base value of the target object on the current calculation day is taken as The object calculates the equivalent value to calculate the daily interest, that is, after obtaining the object calculation equivalent value, it can be directly multiplied by the daily interest rate to obtain the daily interest. For example, in the above example, the object calculation basis of the first day The value is 10,000 yuan, the total number of days of value starting is 1, and the equivalent value of the object calculation on the first day is the object calculation base value of the first day multiplied by the total number of days of starting value is equal to 10,000 yuan, and the object calculation coefficient of the first day is 0.137 ‰, the interest value on the first day is 10,000 yuan multiplied by 0.137‰, which is equal to 1.37 yuan; the object calculation base value on the second day is still 10,000 yuan, the total number of days of interest is 2, and the object calculation equivalent value on the second day Multiplying the basic value of the object on the second day by the total number of days of starting interest is equal to 20,000 yuan, and the calculation coefficient of the object on the second day remains unchanged at 0.137‰, so the interest value of the next day is 20,000 yuan multiplied by 0.137‰ It is equal to 2.74 yuan; the base calculation value of the object on the third day is still 10,000 yuan, and the total number of days to start the interest rate is 3. RMB 10,000, the object calculation coefficient on the third day remains unchanged, which is still 0.137‰, then the interest value on the third day is 30,000 yuan multiplied by 0.137‰, which is equal to 4.11 yuan, and so on, to get the daily interest of the customer value.
其中,所述目标计算时间单位指的是当前要计算对象数据所在的时间,比如当前日、当前周或者当前月。Wherein, the target calculation time unit refers to the time at which the object data is currently to be calculated, such as the current day, current week or current month.
在本实施例的一个可选实现方式中,所述步骤S102,即判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值的步骤,包括以下步骤:In an optional implementation of this embodiment, the step S102 is to determine whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, and determine the target object calculation coefficient of the target calculation time unit according to the judgment result. The steps for calculating the equivalent value of the base value and the target object include the following steps:
判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同;Judging whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, the historical object calculation base value is determined as the target object calculation base value, and the historical object calculation equivalent value and the The sum of the target object calculation base values is determined to calculate an equivalent value for said target object;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, the historical object calculation basis value is determined as the target object calculation basis value, and the target object calculation basis value is determined as The target object calculates an equivalent value.
上文提及,目前金融业务模式的丰富带来了各种各样的计息规则,比如为了吸引客户,有些金融机构推出了前期利息提高的存款规则,比如,对于一年期的存款来说,前两个月即前60天的年利率为8%,后10个月即后305天的年利率为5%,甚至存期内出现更多次的利率变化,比如前两个月即前60天的年利率为8%,中间两个月即中间60天的年利率为6%,后8个月即后245天的年利率为5%。对于这样的利率浮动计息规则,现有技术中常用的计息方法或者计算性能欠佳,或者计算准确性欠佳,均无法满足实际应用的需要。因此,为了简化利息的计算,避免不必要的重复累积,提高计算效率,在该实施方式中,根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据。As mentioned above, the richness of the current financial business model has brought about various interest calculation rules. For example, in order to attract customers, some financial institutions have introduced deposit rules with higher interest rates in the early stage. For example, for one-year deposits , the annual interest rate for the first two months is 8% for the first 60 days, the annual interest rate for the next 10 months is 5% for the next 305 days, and even more interest rate changes occur during the deposit period, such as the first two months The annual interest rate for the 60 days is 8%, the annual interest rate for the middle two months is 6% for the middle 60 days, and the annual interest rate for the last 8 months is 5% for the last 245 days. For such floating rate calculation rules, the commonly used interest calculation methods in the prior art either have poor calculation performance or poor calculation accuracy, which cannot meet the needs of practical applications. Therefore, in order to simplify the calculation of interest, avoid unnecessary repeated accumulation, and improve calculation efficiency, in this embodiment, the calculation of object data such as interest is split according to the change of interest rate, that is, the interest rate is calculated in a segmented and solidified way object data.
具体地,首先判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,即判断当前计算日与前一计算日的利率是否相同;若相同,则认为可将目标计算时间单位与前一计算时间单位合并进行计算,可继续按照对象计算等价值累计、对象计算等价值与对象计算系数相乘的方式来得到对象值,即此时,可将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;但若不相同,则需要将目标计算时间单位与前一计算时间单位分开进行计算,此时,将历史计算得到的利息值设置为是一个已得到的固化利息值,然后将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值,即使目标对象计算等价值恢复为对象计算基础值,重新开始新一轮利率基准的计算。Specifically, first judge whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, that is, determine whether the interest rate of the current calculation day and the previous calculation day are the same; The previous calculation time unit is combined for calculation, and the object value can be obtained by accumulating the equivalent value of the object calculation and multiplying the equivalent value of the object calculation by the object calculation coefficient, that is, at this time, the basic value of the historical object calculation can be determined as The target object calculation base value, the sum of the historical object calculation equivalent value and the target object calculation base value is determined as the target object calculation equivalent value; but if they are not the same, the target calculation time unit needs to be compared with the previous One calculation time unit is calculated separately. At this time, the interest value obtained by historical calculation is set as an obtained solidified interest value, and then the calculation basis value of the historical object is determined as the calculation basis value of the target object. The calculation base value of the target object is determined as the calculation equivalent value of the target object, even if the calculation equivalent value of the target object is restored to the object calculation base value, a new round of calculation of the interest rate benchmark is restarted.
在本实施例的一个可选实现方式中,如图2所示,所述步骤S103,即根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值的步骤,包括以下步骤S201-S202:In an optional implementation of this embodiment, as shown in FIG. 2, the step S103, that is, the step of calculating the target object value according to the target object calculation equivalent value and the object calculation coefficient of the target calculation time unit, includes The following steps S201-S202:
在步骤S201中,将所述目标对象计算等价值和目标计算时间单位的对象计算系数相乘;In step S201, the target object calculation equivalent value is multiplied by the object calculation coefficient of the target calculation time unit;
在步骤S202中,将得到的乘积确认为目标对象值。In step S202, the obtained product is confirmed as the target object value.
在该实施方式中,将确认得到的目标对象计算等价值与目标计算时间单位的对象计算系数相乘,即可得到目标计算时间单位的目标对象值。In this embodiment, the target object value of the target calculation time unit can be obtained by multiplying the confirmed target object calculation equivalent value by the target calculation coefficient of the target calculation time unit.
在本实施例的一个可选实现方式中,所述方法还包括根据所述判断结果计算并输出对象累计值的步骤,即如图3所示,所述方法包括以下步骤S301-S304:In an optional implementation of this embodiment, the method further includes the step of calculating and outputting the cumulative value of the object according to the judgment result, that is, as shown in Figure 3, the method includes the following steps S301-S304:
在步骤S301中,获取历史对象计算参数集合,其中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值;In step S301, a historical object calculation parameter set is obtained, wherein the historical object calculation parameter set includes: the historical object calculation basic value of the previous calculation time unit, the historical object calculation equivalent value, the historical object calculation coefficient and the first historical object value;
在步骤S302中,判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;In step S302, judge whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, and determine the target object calculation basis value and the target object calculation equivalent value of the target calculation time unit according to the judgment result;
在步骤S303中,根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值;In step S303, the target object value is calculated according to the target object calculation equivalent value and the object calculation coefficient of the target calculation time unit;
在步骤S304中,根据所述判断结果计算并输出对象累计值。In step S304, the target cumulative value is calculated and output according to the judgment result.
在该实施方式中,为了便于金融机构的数据统计或者便于客户的数据留存,还计算并输出对象累计值,即截止至目标计算时间单位所获得的对象值的累计值。In this embodiment, in order to facilitate the financial institution's data statistics or the customer's data retention, the cumulative value of the object is also calculated and output, that is, the cumulative value of the object value obtained up to the target calculation time unit.
在本实施例的一个可选实现方式中,所述步骤S304,即根据所述判断结果计算并输出对象累计值的步骤,包括以下步骤:In an optional implementation of this embodiment, the step S304, that is, the step of calculating and outputting the cumulative value of the object according to the judgment result, includes the following steps:
获取所述前一计算时间单位之前的第二历史对象值;Obtaining a second history object value before the previous calculation time unit;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,计算所述目标对象值与所述第二历史对象值的和,并将得到的和值作为所述对象累计值输出;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, calculate the sum of the target object value and the second historical object value, and use the obtained sum value as the object cumulative value output;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述第二历史对象值更新为所述第一历史对象值与所述第二历史对象值的和,并将所述目标对象值与更新后的所述第二历史对象值的和值作为所述对象累计值输出。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, updating the second historical object value to the sum of the first historical object value and the second historical object value, and output the sum of the target object value and the updated second historical object value as the object accumulation value.
在该实施方式中,为了对于对象值进行有效累计,首先获取所述前一计算时间单位之前得到的第二历史对象值,然后判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,若相同,则将计算得到的目标对象值与第二历史对象值相加作为对象累计值输出;若不相同,则先将第一历史对象值与第二历史对象值的和作为新的第二历史对象值,再将目标对象值与新的第二历史对象值的和作为对象累计值输出。In this embodiment, in order to effectively accumulate the object value, first obtain the second historical object value obtained before the previous calculation time unit, and then judge whether the object calculation coefficient of the target calculation time unit and the historical object calculation coefficient The same, if they are the same, add the calculated target object value and the second historical object value as the cumulative object value output; if not, first use the sum of the first historical object value and the second historical object value as a new The second historical object value, and then output the sum of the target object value and the new second historical object value as the object cumulative value.
其中,所述第二历史对象值指的是所述前一计算时间单位之前得到的固化利息值,若所述前一计算时间单位之前的利率值没有变动,则所述第二历史对象值为零,若所述前一计算时间单位之前利率值发生过变动,则所述第二历史对象值为之前得到的固化利息值,而该固化利息值为之前每一利率所持续时间段内所产生的利息之和。Wherein, the second historical object value refers to the solidified interest value obtained before the previous calculation time unit. If the interest rate value before the previous calculation time unit has not changed, the second historical object value is Zero, if the interest rate value has changed before the previous calculation time unit, then the second historical object value is the previously obtained fixed interest value, and the fixed interest value is generated within the duration of each previous interest rate the sum of interest.
以上文示例为例,某一客户在某一金融机构存了1万元,存期为1年,存款时约定前60天的年利率为8%,即日利率为0.219‰,中间60天的年利率为6%,即日利率为0.164‰,后245天的年利率为5%,即日利率为0.137‰。那么前60天中每天的利息为当天对象计算等价值乘以当天的日利率0.219‰,其中,当天对象计算等价值等于当天的对象计算基础值乘以起息天数;第60天,该客户获得的利息为第60天的对象计算等价值60万元乘以日利率0.219‰等于131.5元。Taking the above example as an example, a customer has deposited 10,000 yuan in a financial institution with a deposit period of 1 year. The annual interest rate for the first 60 days of the deposit is 8%, the daily interest rate is 0.219‰, and the annual interest rate for the middle 60 days is The interest rate is 6%, the daily interest rate is 0.164‰, the annual interest rate for the next 245 days is 5%, and the daily interest rate is 0.137‰. Then the interest for each day in the first 60 days is calculated by the equivalent value of the object of the current day multiplied by the daily interest rate of 0.219‰, among which, the equivalent value of the object calculated by the current day is equal to the basic value of the object calculated on the current day multiplied by the number of days of interest; on the 60th day, the customer gets The interest calculated for the object on the 60th day is equivalent to 600,000 yuan multiplied by the daily interest rate of 0.219‰, which equals 131.5 yuan.
第61天,对象计算系数发生了变化,由0.219‰变为了0.164‰,此时,为了简化利息的计算,避免不必要的重复累积,采取分段计算利息的方式,即将前60天获得的利息131.5元作为固化利息值先留存起来,将第61天作为下一利率分段的第一个起息日来计算,此时,第61天的对象计算基础值不变,仍为1万元,但第61天的对象计算等价值就不再是对象计算基础值乘以起息总天数61了,而是回归第一个起息日的初始值,即等于对象计算基础值1万元,第61天的对象计算系数变为了0.164‰,那么第61天所获得的利息为第61天的对象计算等价值1万元乘以第61天的对象计算系数0.164‰等于1.64元;第二个利率的最后一天,即第120天,该客户获得的利息为第二个利率阶段的第60天的对象计算等价值60万元乘以第二个日利率0.164‰等于98.63元。On the 61st day, the object calculation coefficient has changed from 0.219‰ to 0.164‰. At this time, in order to simplify the calculation of interest and avoid unnecessary repeated accumulation, the method of calculating interest in stages is adopted, that is, the interest obtained in the previous 60 days 131.5 yuan is reserved as the fixed interest value first, and the 61st day is calculated as the first value date of the next interest rate segment. At this time, the object calculation basis value on the 61st day remains unchanged, which is still 10,000 yuan. However, the equivalent value of the object calculation on the 61st day is no longer the basic value of the object calculation multiplied by the total number of days of value 61, but returns to the initial value of the first value date, which is equal to the basic value of the object calculation of 10,000 yuan. The calculation coefficient of the object on the 61st day has changed to 0.164‰, so the interest obtained on the 61st day is the equivalent value of 10,000 yuan multiplied by the calculation coefficient of the object on the 61st day of 0.164‰, which is equal to 1.64 yuan; the second interest rate On the last day, that is, the 120th day, the interest obtained by the customer is equivalent to 600,000 yuan multiplied by the second daily interest rate of 0.164‰, equal to 98.63 yuan.
第121天,对象计算系数又发生了变化,由0.164‰变为了0.137‰,与上文处理方式类似,将中间60天获得的利息98.63元与前60天获得的利息131.5元相加,将得到的利息和值230.13元作为新的固化利息值继续留存,将第121天作为下一利率分段的第一个起息日来计算,此时,第121天的对象计算基础值不变,仍为1万元,第121天的对象计算等价值又回归第一个起息日的初始值,即等于对象计算基础值1万元,第121天的对象计算系数变为了0.137‰,那么第121天所获得的利息为第121天的对象计算等价值1万元乘以第121天的对象计算系数0.137‰等于1.37元。第121天至第365天的对象计算系数都没有变化,这样就可以按照上文所描述的固定对象计算系数处理方法计算利息值,那么第365天所获得的利息为第365天的对象计算等价值245万元乘以第365天的对象计算系数0.137‰等于335.6元,最后将第三个利率对应的利息值335.6元与之前留存起来的固化利息值230.13元相加,即可得到该客户在上述浮动利率约定下所获得的总利息值565.73元。On the 121st day, the calculation coefficient of the object has changed again, from 0.164‰ to 0.137‰. Similar to the above processing method, add the interest obtained in the middle 60 days of 98.63 yuan to the interest obtained in the first 60 days of 131.5 yuan, and you will get The interest sum value of 230.13 yuan will continue to be retained as the new fixed interest value, and the 121st day will be calculated as the first value date of the next interest rate segment. is 10,000 yuan, the calculated equivalent value of the object on the 121st day returns to the initial value of the first value date, which is equal to the basic value of the object calculated at 10,000 yuan, and the calculation coefficient of the object on the 121st day becomes 0.137‰, then the 121st day The interest obtained on the first day is the object calculation equivalent value of 10,000 yuan on the 121st day multiplied by the object calculation coefficient 0.137‰ on the 121st day, which is equal to 1.37 yuan. The object calculation coefficients from the 121st day to the 365th day have not changed, so that the interest value can be calculated according to the fixed object calculation coefficient processing method described above, then the interest obtained on the 365th day is the object calculation on the 365th day, etc. The value of 2.45 million yuan multiplied by the object calculation coefficient 0.137‰ on the 365th day is equal to 335.6 yuan. Finally, add the interest value corresponding to the third interest rate of 335.6 yuan to the fixed interest value of 230.13 yuan saved before, and you can get the customer’s The total interest value obtained under the above floating interest rate agreement is 565.73 yuan.
上例对于存期内利率发生两次变化的情况下利息的计算进行了说明,对于存期内利率发生多次变化的情况,可以对应类似进行利息的计算,本发明在此不再赘述。The above example illustrates the calculation of interest when the interest rate changes twice during the deposit period. For the case of multiple changes in the interest rate during the deposit period, similar interest calculations can be performed accordingly, and the present invention will not repeat them here.
在本实施例的一个可选实现方式中,所述方法在步骤S102之前还包括以下步骤:In an optional implementation manner of this embodiment, the method further includes the following steps before step S102:
获取目标计算时间单位的对象计算系数;Obtain the object calculation coefficient of the target calculation time unit;
对于所述目标计算时间单位的对象计算系数和历史对象计算参数集合中的各个参数进行预处理的步骤。A step of preprocessing the object calculation coefficient of the target calculation time unit and each parameter in the historical object calculation parameter set.
考虑到所述目标计算时间单位的对象计算系数和历史对象计算参数集合中的各个参数可能来源于不同的平台或不同的系统,这些数据的格式不尽相同,为了提高数据处理、利息计算的工作效率,需要对于获得的数据根据实际应用的需要进行去噪、归一化和/或格式转换处理,即在本实施例的一个可选实现方式中,所述预处理可包括以下处理中的一种或多种:去噪、归一化和格式转换。Considering that the object calculation coefficient of the target calculation time unit and each parameter in the historical object calculation parameter set may come from different platforms or different systems, the format of these data is not the same, in order to improve the work of data processing and interest calculation Efficiency, it is necessary to perform denoising, normalization and/or format conversion processing on the obtained data according to the needs of actual applications, that is, in an optional implementation of this embodiment, the preprocessing may include one of the following processing One or more of: denoising, normalization, and format conversion.
在本实施例的一个可选实现方式中,所述方法在步骤S103之后还包括输出目标对象值的步骤。In an optional implementation manner of this embodiment, the method further includes a step of outputting a target object value after step S103.
考虑到目标对象值可被不同业务方应用或展示,因此,在该步骤中,可根据不同业务方的需要对于所述目标对象值的显示形式进行修改然后再输出,比如可将所述目标对象值放置于不同的数据模板中输出给不同的业务方。Considering that the target object value can be applied or displayed by different business parties, in this step, the display form of the target object value can be modified according to the needs of different business parties and then output, for example, the target object can be Values are placed in different data templates and output to different business parties.
下述为本发明装置实施例,可以用于执行本发明方法实施例。The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention.
图4示出根据本发明一实施方式的对象计算装置的结构框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部,具体可实现为平台侧。如图4所示,所述对象计算装置包括:FIG. 4 shows a structural block diagram of an object computing device according to an embodiment of the present invention. The device can be implemented as part or all of an electronic device through software, hardware or a combination of the two, and can be specifically implemented as a platform side. As shown in Figure 4, the object computing device includes:
获取模块401,被配置为获取历史对象计算参数集合;The obtaining
确定模块402,被配置为判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;The
计算模块403,被配置为根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值。The
上文提及,随着数据技术以及金融业务的发展,衍生出了多种存款、贷款、理财等金融业务的计息方式,比如:活期、定期、协定、等本等息、多形态贷款等等,业务模式的丰富使得计息规则变得越来越复杂。为了应对全责发生制的记账需求,每天需要对于所有的数据进行当日计提利息,在这种情况下,如何在保证利息计算准确的前提下,提高计算效率、快速计算出海量用户利息数据是一个亟需解决的问题。而现有技术中常用的计息方法或者计算性能欠佳,或者计算准确性欠佳,均无法满足实际应用的需要。As mentioned above, with the development of data technology and financial services, a variety of interest calculation methods for financial services such as deposits, loans, and wealth management have been derived, such as: current demand, fixed term, agreement, equal principal and interest, multi-form loans, etc. etc. The richness of business models makes the rules of interest calculation more and more complicated. In order to meet the bookkeeping requirements of the full liability accrual system, it is necessary to accrue interest on the day for all data every day. In this case, how to improve calculation efficiency and quickly calculate massive user interest data on the premise of ensuring accurate interest calculation is an urgent problem to be solved. However, the commonly used interest calculation methods in the prior art either have poor calculation performance or poor calculation accuracy, and cannot meet the needs of practical applications.
考虑到上述问题,在该实施方式中,提出一种对象计算装置,该装置根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据,从而使得不同利率对应的利息能够相对独立,避免重复计算。该技术方案能够在保证计算准确性的前提下,有效降低利息等对象数据计算的复杂性,提升计算性能,提高计算效率,同时还能够节省计算时间和计算资源。Considering the above problems, in this embodiment, an object calculation device is proposed, which splits the calculation of interest and other object data according to the change of interest rate, that is, calculates the object data by adopting the method of interest rate segmentation and solidification, so that The interest corresponding to different interest rates can be relatively independent to avoid double calculation. The technical solution can effectively reduce the complexity of calculation of object data such as interest on the premise of ensuring calculation accuracy, improve calculation performance, improve calculation efficiency, and save calculation time and resources at the same time.
其中,所述对象指的是利息或者其他存在计算系数以及累积计算的对象。Wherein, the object refers to interest or other objects that have calculation coefficients and cumulative calculations.
在本实施例的一个可选实现方式中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值。其中,所述计算时间单位指的是对象计算所使用的时间单位,比如日、周、月等等,为了便于理解,下文中以日作为计算时间单位对于本发明进行进一步的解释和说明。In an optional implementation of this embodiment, the historical object calculation parameter set includes: the historical object calculation base value, the historical object calculation equivalent value, the historical object calculation coefficient, and the first historical object value of the previous calculation time unit. Wherein, the calculation time unit refers to the time unit used for object calculation, such as day, week, month, etc. For ease of understanding, the present invention will be further explained and described below using day as the calculation time unit.
其中,所述对象计算基础值指的是产生对象数据的基础数据值;所述对象计算等价值指的是为了方便对象的计算,对于所述对象计算基础值进行一定的计算或换算得到的一个等价值;所述对象计算系数指的是利率等对于对象数据起到决定性作用的系数数据。Wherein, the object calculation basic value refers to the basic data value that generates the object data; the object calculation equivalent value refers to a certain calculation or conversion of the object calculation basic value for the convenience of object calculation. Equivalent value; the object calculation coefficient refers to the coefficient data such as interest rate that plays a decisive role in the object data.
比如,某一客户在某一金融机构存了1万元,存期为1年,存款时约定的年利率为5%,虽然客户有可能只关心1年后他能拿到多少的利息,但是对于金融机构来说,为了完善资金管理,需要每日计算该客户的存款所产生的利息。在该例的利息计算中,所述对象计算基础值就是1万元,所述对象计算系数就是日利率0.137‰,即年利率5%除以一年的总天数365。另外,为了方便利息的计算,每天还将对象计算基础值乘以起息总天数得到的值,或者将前一计算时间单位的历史对象计算等价值与当前计算日目标对象计算基础值的和作为对象计算等价值来计算每天的利息,即得到所述对象计算等价值后,就可以直接将其直接与日利率相乘,得到每天的利息,比如在上述示例中,第一天的对象计算基础值为1万元,起息总天数为1,第一天的对象计算等价值为第一天的对象计算基础值乘以起息总天数等于1万元,第一天的对象计算系数为0.137‰,则第一天的利息值为1万元乘以0.137‰等于1.37元;第二天的对象计算基础值仍为1万元,起息总天数为2,第二天的对象计算等价值为第二天的对象计算基础值乘以起息总天数等于2万元,第二天的对象计算系数不变,仍为0.137‰,则第二天的利息值为2万元乘以0.137‰等于2.74元;第三天的对象计算基础值仍为1万元,起息总天数为3,第三天的对象计算等价值为第三天的对象计算基础值乘以起息总天数等于3万元,第三天的对象计算系数不变,仍为0.137‰,则第三天的利息值为3万元乘以0.137‰等于4.11元,以此类推,即可得到该客户每天获得的利息值。For example, a customer deposits 10,000 yuan in a financial institution with a deposit period of 1 year, and the agreed annual interest rate is 5%. Although the customer may only care about how much interest he can get after 1 year, but For financial institutions, in order to improve fund management, it is necessary to calculate the interest generated by the customer's deposit on a daily basis. In the interest calculation of this example, the calculation base value of the object is 10,000 yuan, and the calculation coefficient of the object is the daily interest rate of 0.137‰, that is, the annual interest rate of 5% divided by the total number of days in a year is 365. In addition, in order to facilitate the calculation of interest, the value obtained by multiplying the calculation base value of the object by the total number of days of value starting every day, or the sum of the calculation equivalent value of the historical object of the previous calculation time unit and the calculation base value of the target object on the current calculation day is taken as The object calculates the equivalent value to calculate the daily interest, that is, after obtaining the object calculation equivalent value, it can be directly multiplied by the daily interest rate to obtain the daily interest. For example, in the above example, the object calculation basis of the first day The value is 10,000 yuan, the total number of days of value starting is 1, and the equivalent value of the object calculation on the first day is the object calculation base value of the first day multiplied by the total number of days of starting value is equal to 10,000 yuan, and the object calculation coefficient of the first day is 0.137 ‰, the interest value on the first day is 10,000 yuan multiplied by 0.137‰, which is equal to 1.37 yuan; the object calculation base value on the second day is still 10,000 yuan, the total number of days of interest is 2, and the object calculation equivalent value on the second day Multiplying the basic value of the object on the second day by the total number of days of starting interest is equal to 20,000 yuan, and the calculation coefficient of the object on the second day remains unchanged at 0.137‰, so the interest value of the next day is 20,000 yuan multiplied by 0.137‰ It is equal to 2.74 yuan; the base calculation value of the object on the third day is still 10,000 yuan, and the total number of days to start the interest rate is 3. RMB 10,000, the object calculation coefficient on the third day remains unchanged, which is still 0.137‰, then the interest value on the third day is 30,000 yuan multiplied by 0.137‰, which is equal to 4.11 yuan, and so on, to get the daily interest of the customer value.
其中,所述目标计算时间单位指的是当前要计算对象数据所在的时间,比如当前日、当前周或者当前月。Wherein, the target calculation time unit refers to the time at which the object data is currently to be calculated, such as the current day, current week or current month.
在本实施例的一个可选实现方式中,所述确定模块402被配置为:In an optional implementation manner of this embodiment, the determining
判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同;Judging whether the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, the historical object calculation base value is determined as the target object calculation base value, and the historical object calculation equivalent value and the The sum of the target object calculation base values is determined to calculate an equivalent value for said target object;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, the historical object calculation basis value is determined as the target object calculation basis value, and the target object calculation basis value is determined as The target object calculates an equivalent value.
上文提及,目前金融业务模式的丰富带来了各种各样的计息规则,比如为了吸引客户,有些金融机构推出了前期利息提高的存款规则,比如,对于一年期的存款来说,前两个月即前60天的年利率为8%,后10个月即后305天的年利率为5%,甚至存期内出现更多次的利率变化,比如前两个月即前60天的年利率为8%,中间两个月即中间60天的年利率为6%,后8个月即后245天的年利率为5%。对于这样的利率浮动计息规则,现有技术中常用的计息方法或者计算性能欠佳,或者计算准确性欠佳,均无法满足实际应用的需要。因此,为了简化利息的计算,避免不必要的重复累积,提高计算效率,在该实施方式中,根据利率的变化对于利息等对象数据的计算进行拆分,即采用利率分段固化的方式来计算对象数据。As mentioned above, the richness of the current financial business model has brought about various interest calculation rules. For example, in order to attract customers, some financial institutions have introduced deposit rules with higher interest rates in the early stage. For example, for one-year deposits , the annual interest rate for the first two months is 8% for the first 60 days, the annual interest rate for the next 10 months is 5% for the next 305 days, and even more interest rate changes occur during the deposit period, such as the first two months The annual interest rate for the 60 days is 8%, the annual interest rate for the middle two months is 6% for the middle 60 days, and the annual interest rate for the last 8 months is 5% for the last 245 days. For such floating rate calculation rules, the commonly used interest calculation methods in the prior art either have poor calculation performance or poor calculation accuracy, which cannot meet the needs of practical applications. Therefore, in order to simplify the calculation of interest, avoid unnecessary repeated accumulation, and improve calculation efficiency, in this embodiment, the calculation of object data such as interest is split according to the change of interest rate, that is, the interest rate is calculated in a segmented and solidified way object data.
具体地,确定模块402判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,即判断当前计算日与前一计算日的利率是否相同;若相同,则认为可将目标计算时间单位与前一计算时间单位合并进行计算,可继续按照对象计算等价值累计、对象计算等价值与对象计算系数相乘的方式来得到对象值,即此时,可将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述历史对象计算等价值与所述目标对象计算基础值的和确定为所述目标对象计算等价值;但若不相同,则需要将目标计算时间单位与前一计算时间单位分开进行计算,此时,将历史计算得到的利息值设置为是一个已得到的固化利息值,然后将所述历史对象计算基础值确定为所述目标对象计算基础值,将所述目标对象计算基础值确定为所述目标对象计算等价值,即使目标对象计算等价值恢复为对象计算基础值,重新开始新一轮利率基准的计算。Specifically, the
在本实施例的一个可选实现方式中,如图5所示,所述计算模块403包括:In an optional implementation of this embodiment, as shown in FIG. 5, the
计算子模块501,被配置为将所述目标对象计算等价值和目标计算时间单位的对象计算系数相乘;The
确认子模块502,被配置为将得到的乘积确认为目标对象值。The
在该实施方式中,将确认得到的目标对象计算等价值与目标计算时间单位的对象计算系数相乘,即可得到目标计算时间单位的目标对象值。In this embodiment, the target object value of the target calculation time unit can be obtained by multiplying the confirmed target object calculation equivalent value by the target calculation coefficient of the target calculation time unit.
在本实施例的一个可选实现方式中,所述装置还包括根据所述判断结果计算并输出对象累计值的部分,即如图6所示,所述装置包括:In an optional implementation of this embodiment, the device further includes a part that calculates and outputs the cumulative value of the object according to the judgment result, that is, as shown in Figure 6, the device includes:
获取模块601,被配置为获取历史对象计算参数集合,其中,所述历史对象计算参数集合包括:前一计算时间单位的历史对象计算基础值、历史对象计算等价值、历史对象计算系数和第一历史对象值;The acquiring
确定模块602,被配置为判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,并根据判断结果确定目标计算时间单位的目标对象计算基础值和目标对象计算等价值;The
计算模块603,被配置为根据所述目标对象计算等价值和目标计算时间单位的对象计算系数计算得到目标对象值;The
输出模块604,被配置为根据所述判断结果计算并输出对象累计值。The
在该实施方式中,为了便于金融机构的数据统计或者便于客户的数据留存,还设置有输出模块604计算并输出对象累计值,即截止至目标计算时间单位所获得的对象值的累计值。In this embodiment, in order to facilitate data statistics of financial institutions or customer data retention, an
在本实施例的一个可选实现方式中,所述输出模块604被配置为:In an optional implementation manner of this embodiment, the
获取所述前一计算时间单位之前的第二历史对象值;Obtaining a second history object value before the previous calculation time unit;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数相同时,计算所述目标对象值与所述第二历史对象值的和,并将得到的和值作为所述对象累计值输出;When the object calculation coefficient of the target calculation time unit is the same as the historical object calculation coefficient, calculate the sum of the target object value and the second historical object value, and use the obtained sum value as the object cumulative value output;
当所述目标计算时间单位的对象计算系数与所述历史对象计算系数不相同时,将所述第二历史对象值更新为所述第一历史对象值与所述第二历史对象值的和,并将所述目标对象值与更新后的所述第二历史对象值的和值作为所述对象累计值输出。When the object calculation coefficient of the target calculation time unit is different from the historical object calculation coefficient, updating the second historical object value to the sum of the first historical object value and the second historical object value, and output the sum of the target object value and the updated second historical object value as the object accumulation value.
在该实施方式中,为了对于对象值进行有效累计,所述输出模块604首先获取所述前一计算时间单位之前得到的第二历史对象值,然后判断目标计算时间单位的对象计算系数与所述历史对象计算系数是否相同,若相同,则将计算得到的目标对象值与第二历史对象值相加作为对象累计值输出;若不相同,则先将第一历史对象值与第二历史对象值的和作为新的第二历史对象值,再将目标对象值与新的第二历史对象值的和作为对象累计值输出。In this embodiment, in order to effectively accumulate the object value, the
其中,所述第二历史对象值指的是所述前一计算时间单位之前得到的固化利息值,若所述前一计算时间单位之前的利率值没有变动,则所述第二历史对象值为零,若所述前一计算时间单位之前利率值发生过变动,则所述第二历史对象值为之前得到的固化利息值,而该固化利息值为之前每一利率所持续时间段内所产生的利息之和。Wherein, the second historical object value refers to the solidified interest value obtained before the previous calculation time unit. If the interest rate value before the previous calculation time unit has not changed, the second historical object value is Zero, if the interest rate value has changed before the previous calculation time unit, then the second historical object value is the previously obtained fixed interest value, and the fixed interest value is generated within the duration of each previous interest rate the sum of interest.
以上文示例为例,某一客户在某一金融机构存了1万元,存期为1年,存款时约定前60天的年利率为8%,即日利率为0.219‰,中间60天的年利率为6%,即日利率为0.164‰,后245天的年利率为5%,即日利率为0.137‰。那么前60天中每天的利息为当天对象计算等价值乘以当天的日利率0.219‰,其中,当天对象计算等价值等于当天的对象计算基础值乘以起息天数;第60天,该客户获得的利息为第60天的对象计算等价值60万元乘以日利率0.219‰等于131.5元。Taking the above example as an example, a customer has deposited 10,000 yuan in a financial institution with a deposit period of 1 year. The annual interest rate for the first 60 days of the deposit is 8%, the daily interest rate is 0.219‰, and the annual interest rate for the middle 60 days is The interest rate is 6%, the daily interest rate is 0.164‰, the annual interest rate for the next 245 days is 5%, and the daily interest rate is 0.137‰. Then the interest for each day in the first 60 days is calculated by the equivalent value of the object of the current day multiplied by the daily interest rate of 0.219‰, among which, the equivalent value of the object calculated by the current day is equal to the basic value of the object calculated on the current day multiplied by the number of days of interest; on the 60th day, the customer gets The interest calculated for the object on the 60th day is equivalent to 600,000 yuan multiplied by the daily interest rate of 0.219‰, which equals 131.5 yuan.
第61天,对象计算系数发生了变化,由0.219‰变为了0.164‰,此时,为了简化利息的计算,避免不必要的重复累积,采取分段计算利息的方式,即将前60天获得的利息131.5元作为固化利息值先留存起来,将第61天作为下一利率分段的第一个起息日来计算,此时,第61天的对象计算基础值不变,仍为1万元,但第61天的对象计算等价值就不再是对象计算基础值乘以起息总天数61了,而是回归第一个起息日的初始值,即等于对象计算基础值1万元,第61天的对象计算系数变为了0.164‰,那么第61天所获得的利息为第61天的对象计算等价值1万元乘以第61天的对象计算系数0.164‰等于1.64元;第二个利率的最后一天,即第120天,该客户获得的利息为第二个利率阶段的第60天的对象计算等价值60万元乘以第二个日利率0.164‰等于98.63元。On the 61st day, the object calculation coefficient has changed from 0.219‰ to 0.164‰. At this time, in order to simplify the calculation of interest and avoid unnecessary repeated accumulation, the method of calculating interest in stages is adopted, that is, the interest obtained in the previous 60 days 131.5 yuan is reserved as the fixed interest value first, and the 61st day is calculated as the first value date of the next interest rate segment. At this time, the object calculation basis value on the 61st day remains unchanged, which is still 10,000 yuan. However, the equivalent value of the object calculation on the 61st day is no longer the basic value of the object calculation multiplied by the total number of days of value 61, but returns to the initial value of the first value date, which is equal to the basic value of the object calculation of 10,000 yuan. The calculation coefficient of the object on the 61st day has changed to 0.164‰, so the interest obtained on the 61st day is the equivalent value of 10,000 yuan multiplied by the calculation coefficient of the object on the 61st day of 0.164‰, which is equal to 1.64 yuan; the second interest rate On the last day, that is, the 120th day, the interest obtained by the customer is equivalent to 600,000 yuan multiplied by the second daily interest rate of 0.164‰, equal to 98.63 yuan.
第121天,对象计算系数又发生了变化,由0.164‰变为了0.137‰,与上文处理方式类似,将中间60天获得的利息98.63元与前60天获得的利息131.5元相加,将得到的利息和值230.13元作为新的固化利息值继续留存,将第121天作为下一利率分段的第一个起息日来计算,此时,第121天的对象计算基础值不变,仍为1万元,第121天的对象计算等价值又回归第一个起息日的初始值,即等于对象计算基础值1万元,第121天的对象计算系数变为了0.137‰,那么第121天所获得的利息为第121天的对象计算等价值1万元乘以第121天的对象计算系数0.137‰等于1.37元。第121天至第365天的对象计算系数都没有变化,这样就可以按照上文所描述的固定对象计算系数处理方式计算利息值,那么第365天所获得的利息为第365天的对象计算等价值245万元乘以第365天的对象计算系数0.137‰等于335.6元,最后将第三个利率对应的利息值335.6元与之前留存起来的固化利息值230.13元相加,即可得到该客户在上述浮动利率约定下所获得的总利息值565.73元。On the 121st day, the calculation coefficient of the object has changed again, from 0.164‰ to 0.137‰. Similar to the above processing method, add the interest obtained in the middle 60 days of 98.63 yuan to the interest obtained in the first 60 days of 131.5 yuan, and you will get The interest sum value of 230.13 yuan will continue to be retained as the new fixed interest value, and the 121st day will be calculated as the first value date of the next interest rate segment. is 10,000 yuan, the calculated equivalent value of the object on the 121st day returns to the initial value of the first value date, which is equal to the basic value of the object calculated at 10,000 yuan, and the calculation coefficient of the object on the 121st day becomes 0.137‰, then the 121st day The interest obtained on the first day is the object calculation equivalent value of 10,000 yuan on the 121st day multiplied by the object calculation coefficient 0.137‰ on the 121st day, which is equal to 1.37 yuan. The object calculation coefficients from the 121st day to the 365th day have not changed, so that the interest value can be calculated according to the fixed object calculation coefficient processing method described above, then the interest obtained on the 365th day is the object calculation on the 365th day, etc. The value of 2.45 million yuan multiplied by the object calculation coefficient 0.137‰ on the 365th day is equal to 335.6 yuan. Finally, add the interest value corresponding to the third interest rate of 335.6 yuan to the fixed interest value of 230.13 yuan saved before, and you can get the customer’s The total interest value obtained under the above floating interest rate agreement is 565.73 yuan.
上例对于存期内利率发生两次变化的情况下利息的计算进行了说明,对于存期内利率发生多次变化的情况,可以对应类似进行利息的计算,本发明在此不再赘述。The above example illustrates the calculation of interest when the interest rate changes twice during the deposit period. For the case of multiple changes in the interest rate during the deposit period, similar interest calculations can be performed accordingly, and the present invention will not repeat them here.
在本实施例的一个可选实现方式中,所述装置在还可包括:In an optional implementation manner of this embodiment, the device may further include:
对象计算系数获取模块,被配置为获取目标计算时间单位的对象计算系数;The object calculation coefficient acquisition module is configured to acquire the object calculation coefficient of the target calculation time unit;
预处理模块,被配置为对于所述目标计算时间单位的对象计算系数和历史对象计算参数集合中的各个参数进行预处理。The preprocessing module is configured to perform preprocessing on each parameter in the object calculation coefficient of the target calculation time unit and the historical object calculation parameter set.
考虑到所述目标计算时间单位的对象计算系数和历史对象计算参数集合中的各个参数可能来源于不同的平台或不同的系统,这些数据的格式不尽相同,为了提高数据处理、利息计算的工作效率,需要对于获得的数据根据实际应用的需要进行去噪、归一化和/或格式转换处理,即在本实施例的一个可选实现方式中,所述预处理可包括以下处理中的一种或多种:去噪、归一化和格式转换。Considering that the object calculation coefficient of the target calculation time unit and each parameter in the historical object calculation parameter set may come from different platforms or different systems, the format of these data is not the same, in order to improve the work of data processing and interest calculation Efficiency, it is necessary to perform denoising, normalization and/or format conversion processing on the obtained data according to the needs of actual applications, that is, in an optional implementation of this embodiment, the preprocessing may include one of the following processing One or more of: denoising, normalization, and format conversion.
在本实施例的一个可选实现方式中,所述装置还可包括目标对象值输出模块,被配置为输出目标对象值。In an optional implementation manner of this embodiment, the device may further include a target object value output module configured to output the target object value.
考虑到目标对象值可被不同业务方应用或展示,因此,所述目标对象值输出模块可根据不同业务方的需要对于所述目标对象值的显示形式进行修改然后再输出,比如可将所述目标对象值放置于不同的数据模板中输出给不同的业务方。Considering that the target object value can be applied or displayed by different business parties, the target object value output module can modify and then output the display form of the target object value according to the needs of different business parties, for example, the The target object value is placed in different data templates and output to different business parties.
本发明实施例还公开了一种电子设备,图7示出根据本发明一实施方式的电子设备的结构框图,如图7所示,所述电子设备700包括存储器701和处理器702;其中,The embodiment of the present invention also discloses an electronic device. FIG. 7 shows a structural block diagram of an electronic device according to an embodiment of the present invention. As shown in FIG. 7, the
所述存储器701用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器702执行以实现上述任一方法步骤。The
图8适于用来实现根据本发明实施方式的对象计算方法的计算机系统的结构示意图。FIG. 8 is a structural schematic diagram of a computer system suitable for implementing the object computing method according to the embodiment of the present invention.
如图8所示,计算机系统800包括中央处理单元(CPU)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储部分808加载到随机访问存储器(RAM)803中的程序而执行上述实施方式中的各种处理。在RAM803中,还存储有系统800操作所需的各种程序和数据。CPU801、ROM802以及RAM803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8 , a
以下部件连接至I/O接口805:包括键盘、鼠标等的输入部分806;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分807;包括硬盘等的存储部分808;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分809。通信部分809经由诸如因特网的网络执行通信处理。驱动器810也根据需要连接至I/O接口805。可拆卸介质811,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器810上,以便于从其上读出的计算机程序根据需要被安装入存储部分808。The following components are connected to the I/O interface 805: an
特别地,根据本发明的实施方式,上文描述的方法可以被实现为计算机软件程序。例如,本发明的实施方式包括一种计算机程序产品,其包括有形地包含在及其可读介质上的计算机程序,所述计算机程序包含用于执行所述对象计算方法的程序代码。在这样的实施方式中,该计算机程序可以通过通信部分809从网络上被下载和安装,和/或从可拆卸介质811被安装。In particular, according to an embodiment of the present invention, the methods described above may be implemented as a computer software program. For example, the embodiments of the present invention include a computer program product including a computer program tangibly embodied on its readable medium, the computer program including program code for executing the object computing method. In such an embodiment, the computer program may be downloaded and installed from a network via the
附图中的流程图和框图,图示了按照本发明各种实施方式的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,路程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a roadmap or block diagram may represent a module, program segment, or part of code that contains one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本发明实施方式中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present invention may be implemented by software or by hardware. The described units or modules may also be set in the processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
作为另一方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施方式中所述装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,所述程序被一个或者一个以上的处理器用来执行描述于本发明实施例的方法。As another aspect, an embodiment of the present invention also provides a computer-readable storage medium, which may be the computer-readable storage medium contained in the device described in the above implementation manner; or may exist independently , a computer-readable storage medium not incorporated into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present invention.
以上描述仅为本发明的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本发明实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本发明实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present invention and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) the embodiments of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811185370.1A CN109584036B (en) | 2018-10-11 | 2018-10-11 | Object calculation method and device, electronic equipment and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811185370.1A CN109584036B (en) | 2018-10-11 | 2018-10-11 | Object calculation method and device, electronic equipment and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109584036A CN109584036A (en) | 2019-04-05 |
| CN109584036B true CN109584036B (en) | 2023-03-07 |
Family
ID=65920340
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811185370.1A Expired - Fee Related CN109584036B (en) | 2018-10-11 | 2018-10-11 | Object calculation method and device, electronic equipment and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109584036B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111429251A (en) * | 2020-03-17 | 2020-07-17 | 中国建设银行股份有限公司 | Method and device for processing data under multiple modes |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8156027B1 (en) * | 2001-04-16 | 2012-04-10 | Interactive Data Pricing And Reference Data, Inc. | Fair-value pricing of a financial asset |
| JP2003006432A (en) * | 2001-06-20 | 2003-01-10 | Bank Of Tokyo-Mitsubishi Ltd | Price calculating method for interest swap including prepayment risk, program, and recording medium |
| US8577791B2 (en) * | 2007-03-23 | 2013-11-05 | Sap Ag | System and computer program for modeling and pricing loan products |
| US8239308B2 (en) * | 2009-12-29 | 2012-08-07 | Chicago Mercantile Exchange, Inc. | Clearing system that determines margin requirements for financial portfolios |
| JP5205548B1 (en) * | 2012-12-27 | 2013-06-05 | 新日鉄住金ソリューションズ株式会社 | Information processing apparatus, information processing method, and program |
| JP6310697B2 (en) * | 2013-12-26 | 2018-04-11 | 株式会社日立システムズ | Transaction history data analysis system and transaction history data analysis method |
| CN103985052A (en) * | 2014-05-29 | 2014-08-13 | 中国农业银行股份有限公司 | Interest settlement system and method |
| US10282781B2 (en) * | 2015-07-09 | 2019-05-07 | Federal Housing Finance Agency | Data analytics database and platform system and method |
| CN105844519A (en) * | 2016-06-07 | 2016-08-10 | 中国银行股份有限公司 | Dynamic business processing method and device |
| CN107909465A (en) * | 2017-11-03 | 2018-04-13 | 中国银行股份有限公司 | A kind of method of calibration and device of cash in banks account interest |
| CN108520460A (en) * | 2018-03-26 | 2018-09-11 | 平安普惠企业管理有限公司 | Business datum calculates processing method, device, computer equipment and storage medium |
| CN108595685B (en) * | 2018-05-04 | 2021-06-15 | 北京顶象技术有限公司 | Data processing method and device |
-
2018
- 2018-10-11 CN CN201811185370.1A patent/CN109584036B/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN109584036A (en) | 2019-04-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110020773A (en) | A kind of data processing method, equipment and computer-readable medium | |
| TW202008251A (en) | Payment instrument recommendation method and apparatus, device, and computer readable storage medium | |
| CN113034183A (en) | Pricing processing method and device, electronic equipment and storage medium | |
| CN108446935A (en) | Method for managing resource, device, electronic equipment and computer readable storage medium | |
| CN108846525A (en) | Dealing amount of foreign exchange prediction technique and device | |
| CN109584036B (en) | Object calculation method and device, electronic equipment and computer-readable storage medium | |
| CN112035681A (en) | Credit card rate information determination method and device based on knowledge graph | |
| JP6005034B2 (en) | Demand adjustment formulation device and terminal device | |
| CN109447781A (en) | Interest meter mentions method, apparatus, electronic equipment and computer readable storage medium | |
| US20180060887A1 (en) | Brand equity prediction | |
| CN116151943A (en) | Interest data acquisition method and device for financial products in mobile phone bank | |
| CN115564133A (en) | Data prediction method and device, electronic equipment and storage medium | |
| CN113592263A (en) | Resource return increment prediction method and device based on dynamic resource return increase ratio | |
| CN110148044B (en) | Method and device for setting buffering threshold for accounting | |
| CN111768249A (en) | A kind of work platform task price estimation method and system | |
| CN118014618A (en) | Method and system for calculating user response power and revenue in virtual power plant scenario | |
| CN116644277B (en) | Interactive data cleaning method and device and computer equipment | |
| TW202009846A (en) | Floating income calculation method, apparatus and device, and computer-readable storage medium | |
| CN117314620A (en) | Service data calculation method, device, electronic equipment and storage medium | |
| CN107507030A (en) | The method and apparatus of information prediction | |
| CN113762672B (en) | A method and device for generating business data, and storage medium | |
| CN120952935A (en) | A method, apparatus, electronic device, and storage medium for controlling interest rate risk. | |
| CN109711943B (en) | Order counting method, device and system | |
| CN120543295A (en) | Information processing method, device, electronic device and storage medium | |
| CN117764696A (en) | Valuation method, device, electronic 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 | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200922 Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant after: Advanced innovation technology Co.,Ltd. Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands Applicant before: Alibaba Group Holding Ltd. Effective date of registration: 20200922 Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant after: Innovative advanced technology Co.,Ltd. Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant before: Advanced innovation technology Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230307 |