资源处理系统、方法、服务器和存储介质Resource processing system, method, server and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年07月24日提交中国专利局,申请号为2017106080821,申请名称为“资源处理系统和方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. JP-A--------------
技术领域Technical field
本申请涉及一种资源处理系统、方法、服务器和存储介质。The application relates to a resource processing system, method, server and storage medium.
背景技术Background technique
随着生活水平的提高,保险和投资产品在生活中也越来越常见。保险和投资产品都是一种用来规划人身财务和利益保障的工具,用户不仅可以通过购买保险和投资产品获取自身利益的保障,还可以争取更大的利益。As living standards improve, insurance and investment products are becoming more common in life. Insurance and investment products are tools used to plan personal finances and benefits. Users can not only get insurance for their insurance and investment products, but also get more benefits.
对于保险和投资产品的供应商来说,为了能够保证用户的利益,往往需要事先对资源进行储备,以防出现突发事件。通常来说,业务管理系统会根据库存的资源按照一定比例进行储备,在对资源处理的时候也只是通过单一的平台来进行处理。然而,发明人意识到,产品和市场都是在不断发生变动的,因此仅仅根据资源比例来储备资源并不能适应所有情况。同时在单一平台中进行处理,在面对庞大数据量时,极易造成错误,降低了数据的准确性。For insurance and investment product suppliers, in order to ensure the interests of users, it is often necessary to reserve resources in advance to prevent emergencies. Generally speaking, the business management system will reserve according to a certain proportion of the resources in the inventory, and only deal with the resources through a single platform. However, the inventors realized that products and markets are constantly changing, so simply storing resources based on the proportion of resources does not fit all situations. At the same time, processing in a single platform, in the face of huge data volume, it is easy to cause errors and reduce the accuracy of the data.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种资源处理系统、方法、服务器和存储介质。In accordance with various embodiments disclosed herein, a resource processing system, method, server, and storage medium are provided.
一种资源处理系统,包括:A resource processing system comprising:
资源服务器,用于接收处理服务器发送的资源获取请求,根据所述资源 获取请求获取资源数据,并将所述资源数据发送至所述处理服务器;a resource server, configured to receive a resource acquisition request sent by the processing server, acquire resource data according to the resource acquisition request, and send the resource data to the processing server;
处理服务器,用于向资源服务器发送资源获取请求,接收资源服务器发送的资源数据,并根据所述资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器,所述预设数据模型是根据历史资源数据所建立的;及a processing server, configured to send a resource acquisition request to the resource server, receive resource data sent by the resource server, acquire resource reserve data according to the resource data and a preset data model, and send the resource reserve data to the report server, where The preset data model is based on historical resource data; and
报表服务器,用于接收处理服务器发送的资源储备数据,根据所述资源储备数据生成储备数据报表。The report server is configured to receive resource reserve data sent by the processing server, and generate a reserve data report according to the resource reserve data.
一种资源处理方法,包括:A resource processing method, including:
通过处理服务器向资源服务器发送资源获取请求;Sending a resource acquisition request to the resource server by the processing server;
通过所述资源服务器接收所述处理服务器发送的所述资源获取请求,根据所述资源获取请求获取资源数据,并将所述资源数据发送至所述处理服务器;Receiving, by the resource server, the resource acquisition request sent by the processing server, acquiring resource data according to the resource acquisition request, and sending the resource data to the processing server;
通过所述处理服务器接收所述资源服务器发送的所述资源数据,并根据所述资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器,所述预设数据模型是根据历史资源数据所建立的;及Receiving, by the processing server, the resource data sent by the resource server, acquiring resource reserve data according to the resource data and a preset data model, and sending the resource reserve data to a report server, where the preset data is The model is based on historical resource data; and
通过所述报表服务器接收所述处理服务器发送的所述资源储备数据,根据所述资源储备数据生成储备数据报表。Receiving, by the report server, the resource reserve data sent by the processing server, and generating a reserve data report according to the resource reserve data.
一种服务器,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A server comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the following step:
通过处理服务器向资源服务器发送资源获取请求;Sending a resource acquisition request to the resource server by the processing server;
通过所述资源服务器接收所述处理服务器发送的所述资源获取请求,根据所述资源获取请求获取资源数据,并将所述资源数据发送至所述处理服务器;Receiving, by the resource server, the resource acquisition request sent by the processing server, acquiring resource data according to the resource acquisition request, and sending the resource data to the processing server;
通过所述处理服务器接收所述资源服务器发送的所述资源数据,并根据所述资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器,所述预设数据模型是根据历史资源数据所建立的;及Receiving, by the processing server, the resource data sent by the resource server, acquiring resource reserve data according to the resource data and a preset data model, and sending the resource reserve data to a report server, where the preset data is The model is based on historical resource data; and
通过所述报表服务器接收所述处理服务器发送的所述资源储备数据,根据所述资源储备数据生成储备数据报表。Receiving, by the report server, the resource reserve data sent by the processing server, and generating a reserve data report according to the resource reserve data.
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
通过处理服务器向资源服务器发送资源获取请求;Sending a resource acquisition request to the resource server by the processing server;
通过所述资源服务器接收所述处理服务器发送的所述资源获取请求,根据所述资源获取请求获取资源数据,并将所述资源数据发送至所述处理服务器;Receiving, by the resource server, the resource acquisition request sent by the processing server, acquiring resource data according to the resource acquisition request, and sending the resource data to the processing server;
通过所述处理服务器接收所述资源服务器发送的所述资源数据,并根据所述资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器,所述预设数据模型是根据历史资源数据所建立的;及Receiving, by the processing server, the resource data sent by the resource server, acquiring resource reserve data according to the resource data and a preset data model, and sending the resource reserve data to a report server, where the preset data is The model is based on historical resource data; and
通过所述报表服务器接收所述处理服务器发送的所述资源储备数据,根据所述资源储备数据生成储备数据报表。Receiving, by the report server, the resource reserve data sent by the processing server, and generating a reserve data report according to the resource reserve data.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为根据一个或多个实施例中资源处理系统的系统架构图;1 is a system architecture diagram of a resource processing system in accordance with one or more embodiments;
图2为根据一个或多个实施例中服务器的内部结构示意图;2 is a schematic diagram of an internal structure of a server in accordance with one or more embodiments;
图3为根据一个或多个实施例中资源处理系统的时序图;3 is a timing diagram of a resource processing system in accordance with one or more embodiments;
图4为另一个实施例中资源处理系统的时序图;4 is a timing diagram of a resource processing system in another embodiment;
图5为根据一个或多个实施例中资源处理方法的流程图。FIG. 5 is a flow diagram of a resource processing method in accordance with one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
图1为一个实施例中资源处理系统的系统架构图。如图1所示,该系统架构图包括资源服务器102、处理服务器104和报表服务器106。处理服务器104发送资源获取请求至资源服务器102。资源服务器102接收处理服务器104发送的资源获取请求,根据所述资源获取请求获取资源数据,并将所述资源数据发送至所述处理服务器104。处理服务器104接收资源服务器102发送的资源数据,并根据所述资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器106。报表服务器106接收处理服务器发送的资源储备数据,根据所述资源储备数据生成储备数据报表。可以理解的是,本申请提供的实施例中,资源服务器102、处理服务器104和报表服务器106是指用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。1 is a system architecture diagram of a resource processing system in an embodiment. As shown in FIG. 1, the system architecture diagram includes a resource server 102, a processing server 104, and a report server 106. The processing server 104 sends a resource acquisition request to the resource server 102. The resource server 102 receives the resource acquisition request sent by the processing server 104, acquires the resource data according to the resource acquisition request, and transmits the resource data to the processing server 104. The processing server 104 receives the resource data sent by the resource server 102, and acquires resource reserve data according to the resource data and the preset data model, and sends the resource reserve data to the report server 106. The report server 106 receives the resource reserve data sent by the processing server, and generates a reserve data report according to the resource reserve data. It can be understood that, in the embodiment provided by the present application, the resource server 102, the processing server 104, and the report server 106 refer to a device for providing a computing service in response to a service request, and may be, for example, one or more computers.
图2为一个实施例中服务器的内部结构示意图。如图2所示,该服务器包括通过系统总线连接的处理器、存储器和网络接口。该计算机设备的存储器包括非易失性存储介质、内存储器。该服务器的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中存储有资源数据,该计算机可读指令被处理器执行时实现适用于服务器的一种资源处理方法。该服务器的处理器用于提供计算和控制能力,支撑整个服务器的运行。该服务器的内存储器为非易失性存储介质中的实现资源处理方法的资源处理装置的运行提 供环境。该服务器的网络接口用于据以与外部的终端通过网络连接通信,比如接收终端发送的资源处理请求以及向终端返回资源处理结果等。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。可以理解的是,图2中所示的服务器,适用于图1中所示的资源服务器102、处理服务器104和报表服务器106中的任意一个服务器。2 is a schematic diagram showing the internal structure of a server in an embodiment. As shown in Figure 2, the server includes a processor, memory, and network interface connected by a system bus. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium of the server stores an operating system, a database, and computer readable instructions. The database stores resource data, and the computer readable instructions are executed by the processor to implement a resource processing method suitable for the server. The server's processor is used to provide computing and control capabilities that support the operation of the entire server. The internal memory of the server provides an environment for the operation of the resource processing device implementing the resource processing method in the non-volatile storage medium. The network interface of the server is used to communicate with an external terminal through a network connection, such as receiving a resource processing request sent by the terminal and returning a resource processing result to the terminal. The server can be implemented with a stand-alone server or a server cluster consisting of multiple servers. Those skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements. It can be understood that the server shown in FIG. 2 is applicable to any one of the resource server 102, the processing server 104, and the report server 106 shown in FIG. 1.
图3为一个实施例中资源处理系统的时序图。如图3所示,该资源处理系统包括资源服务器302、处理服务器304和报表服务器306。3 is a timing diagram of a resource processing system in one embodiment. As shown in FIG. 3, the resource processing system includes a resource server 302, a processing server 304, and a report server 306.
资源服务器302,用于接收处理服务器304发送的资源获取请求,根据资源获取请求获取资源数据,并将资源数据发送至处理服务器304。The resource server 302 is configured to receive the resource acquisition request sent by the processing server 304, acquire the resource data according to the resource acquisition request, and send the resource data to the processing server 304.
在本申请提供的实施例中,资源数据是指保险和投资产品在将资源进行投资的过程中所产生的相关数据。例如,资源数据可以是指在利用资源进行投资后所产生的资源增量,还可以是指利用资源进行投资后需要对投资人结算的利息。一般地,资源数据可以包括资源编号、投资额度、投资时间、资源状态等信息。In the embodiments provided by the present application, resource data refers to relevant data generated by insurance and investment products in the process of investing resources. For example, the resource data may refer to the increment of resources generated after the investment is made by using the resources, and may also refer to the interest that needs to be settled to the investor after the investment is made by using the resources. Generally, the resource data may include information such as a resource number, an investment amount, an investment time, and a resource status.
在本申请提供的实施例中,资源获取请求是指用于获取资源数据的请求,资源获取请求中可以但不限于包括请求发送时间、资源数据标识、请求发送标识、请求接收标识、资源数据存储地址、获取的数据量等内容。可以理解的是,资源获取请求可以包括基础数据获取请求和业务管理数据获取请求。In the embodiment provided by the present application, the resource acquisition request refers to a request for acquiring resource data, and the resource acquisition request may include, but is not limited to, a request sending time, a resource data identifier, a request sending identifier, a request receiving identifier, and a resource data storage. The address, the amount of data obtained, and so on. It can be understood that the resource acquisition request may include a basic data acquisition request and a service management data acquisition request.
资源服务器会将保险和投资产品运作过程中产生的资源数据进行存储。具体地,资源服务器可以以表格文件的形式将资源数据进行存储。表格文件是指以表格形式存储资源数据的文件,例如表格文件可以是excel文件、数据库文件等形式的文件。当资源服务器接收到资源获取请求时,资源服务器根据资源获取请求中的资源数据存储地址获取资源数据文件,根据资源数据标识和获取的数据量获取对应的资源数据,并将获取的资源数据发送至处理服 务器。The resource server stores the resource data generated during the operation of the insurance and investment products. Specifically, the resource server may store the resource data in the form of a form file. A form file refers to a file that stores resource data in a form of a table. For example, the form file may be a file in the form of an excel file or a database file. When the resource server receives the resource acquisition request, the resource server acquires the resource data file according to the resource data storage address in the resource acquisition request, acquires the corresponding resource data according to the resource data identifier and the acquired data amount, and sends the acquired resource data to the resource data file. Process the server.
处理服务器304,用于向资源服务器302发送资源获取请求,接收资源服务器302发送的资源数据,并根据资源数据和预设数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器306。The processing server 304 is configured to send a resource acquisition request to the resource server 302, receive resource data sent by the resource server 302, and obtain resource reserve data according to the resource data and the preset data model, and send the resource reserve data to the report server 306. .
在本申请提供的实施例中,处理服务器是指可以提供高速运算和存储能力的计算机系统,能够提供强大的数据处理能力。例如,处理服务器可以是能够提供强大数据处理能力的hadoop平台。当满足预设的任务触发条件时,处理服务器就会触发获取资源数据的任务,开启获取资源数据的任务,并向资源服务器发起资源获取请求。例如,处理服务器可以每个月1号触发获取资源数据的任务,并向存储服务器发起资源获取请求。另外,还可以是由用户手动触发获取资源数据的任务。In the embodiments provided herein, the processing server refers to a computer system that can provide high speed computing and storage capabilities, capable of providing powerful data processing capabilities. For example, the processing server can be a hadoop platform that provides powerful data processing capabilities. When the preset task triggering condition is met, the processing server triggers the task of acquiring the resource data, starts the task of acquiring the resource data, and initiates the resource acquisition request to the resource server. For example, the processing server may trigger the task of acquiring resource data every month and initiate a resource acquisition request to the storage server. In addition, it may also be a task of manually triggering acquisition of resource data by a user.
在其中一个实施例中,资源服务器包括基础数据服务器和业务管理服务器,处理服务器用于发送基础数据获取请求至基础服务器,接收基础服务器根据所述基础数据获取请求发送的基础数据;处理服务器还用于发送业务管理数据获取请求至业务管理服务器,接收业务管理服务器根据所述业务管理数据获取请求发送的业务管理数据。In one embodiment, the resource server includes a basic data server and a service management server, and the processing server is configured to send a basic data acquisition request to the basic server, and receive basic data sent by the basic server according to the basic data acquisition request; And sending the service management data acquisition request to the service management server, and receiving the service management data sent by the service management server according to the service management data acquisition request.
资源储备数据是指为了能够保证用户的利益和产品的有效运作,而对资源进行储备的过程中所产生的相关数据。处理服务器根据资源数据和预设数据模型获取资源储备数据,预设数据模型是指预先设置的用于获取资源储备数据的模型。在本申请提供的实施例中,预设数据模型是根据历史资源数据所建立的,历史资源数据是指在当前建立模型的时刻之前所产生的资源数据。The resource reserve data refers to the relevant data generated in the process of reserve resources in order to ensure the user's interests and the effective operation of the products. The processing server acquires resource reserve data according to the resource data and the preset data model, and the preset data model refers to a preset model for acquiring resource reserve data. In the embodiment provided by the present application, the preset data model is established according to historical resource data, and the historical resource data refers to resource data generated before the moment when the model is currently established.
报表服务器306,用于接收处理服务器发送的资源储备数据,根据所述资源储备数据生成储备数据报表。The report server 306 is configured to receive resource reserve data sent by the processing server, and generate a reserve data report according to the resource reserve data.
在本申请提供的实施例中,报表服务器用于根据资源储备数据生成储备数据报表。生成的数据报表按照一定的规律将资源储备数据进行展示,这样可以清楚地展示所有保险和投资产品在投资过程中的资源储备的情况。In the embodiment provided by the present application, the report server is configured to generate a reserve data report based on the resource reserve data. The generated data report shows the resource reserve data according to certain rules, so that the resource reserves of all insurance and investment products in the investment process can be clearly displayed.
上述资源处理方法,通过不同的服务器去获取资源数据,而并不是通过 单一的服务器去获取,这样在面对庞大的数据量时,可以将一个服务器的压力分散开来,提高了数据处理的效率,并降低了数据处理的错误率。同时,根据获取的资源数据和预设数据模型去获取资源储备数据,该预设数据模型是根据历史资源数据进行建立得到的,而不是根据固定的数据模型去获取的资源储备数据,这样在数据发生变动时,可以及时修改模型,使得到的资源储备数据产生相应的变化,这样获取的资源储备数据更加地准确。The above resource processing method acquires resource data through different servers, and is not obtained through a single server, so that when a large amount of data is faced, the pressure of one server can be dispersed, and the efficiency of data processing is improved. And reduce the error rate of data processing. At the same time, according to the acquired resource data and the preset data model, the resource reserve data is obtained, and the preset data model is established according to the historical resource data, instead of the resource reserve data obtained according to the fixed data model, so that the data is When a change occurs, the model can be modified in time to make corresponding changes in the resource reserve data, so that the obtained resource reserve data is more accurate.
图4为另一个实施例中资源处理系统的时序图。如图4所示,该资源处理系统包括业务服务器402、业务管理服务器404、基础服务器406、处理服务器408和报表服务器410。4 is a timing diagram of a resource processing system in another embodiment. As shown in FIG. 4, the resource processing system includes a service server 402, a service management server 404, a base server 406, a processing server 408, and a report server 410.
业务服务器402,用于接收业务管理服务器404发送的业务数据获取请求,根据业务数据获取请求获取业务数据,并将业务数据发送至业务管理服务器404。The service server 402 is configured to receive the service data acquisition request sent by the service management server 404, obtain the service data according to the service data acquisition request, and send the service data to the service management server 404.
在本申请提供的实施例中,资源数据可以包括基础数据和业务管理数据。基础数据是指保险和投资账户对应的基础信息,基础数据一般是固定不变的,例如基础数据可以是指保单编号、保单类型、客户姓名、客户联系方式等信息。业务管理数据是指用于在投资过程中管理投资账户以其变动过程的相关数据,例如业务管理数据可以是指投资利息、投资管理费、投资年费等信息。业务管理数据可以根据业务数据进行获取,业务数据是指保险和投资产品在投资过程中,投资的资源在变动过程中所产生的相关数据,例如业务数据可以是指投资金额、投资收益等数据。In the embodiments provided by the present application, the resource data may include basic data and service management data. The basic data refers to the basic information corresponding to the insurance and investment accounts. The basic data is generally fixed. For example, the basic data may refer to information such as policy number, policy type, customer name, and customer contact information. Business management data refers to relevant data used to manage the investment account in the process of investment, for example, business management data can refer to investment interest, investment management fees, investment annual fees and other information. Business management data can be obtained according to business data. The business data refers to the relevant data generated by the investment and investment products in the process of investment. The business data can refer to the investment amount and investment income.
具体地,业务服务器中存储着业务数据,当业务服务器接收到业务管理服务器发送的业务数据获取请求时,业务服务器会根据该业务数据获取请求获取业务数据,并将该业务数据发送至业务管理服务器。Specifically, the service server stores the service data. When the service server receives the service data acquisition request sent by the service management server, the service server acquires the service data according to the service data acquisition request, and sends the service data to the service management server. .
业务管理服务器404,用于接收处理服务器408发送的业务管理数据获取请求,根据业务管理数据获取请求生成业务数据获取请求,发送业务数据获取请求至业务服务器402,接收业务服务器402发送的业务数据,根据业务数据获取业务管理数据,并将业务管理数据发送至处理服务器408。The service management server 404 is configured to receive the service management data acquisition request sent by the processing server 408, generate a service data acquisition request according to the service management data acquisition request, send the service data acquisition request to the service server 402, and receive the service data sent by the service server 402. The business management data is acquired based on the business data, and the business management data is sent to the processing server 408.
在本申请提供的实施例中,业务管理数据获取请求中包含业务管理数据标签,当业务管理服务器接收到业务管理数据获取请求时,业务管理服务器会根据业务管理数据标签获取生成这些业务管理数据所需的业务数据所对应的业务数据标签,并根据这些业务数据标签生成业务数据获取请求。In the embodiment provided by the present application, the service management data acquisition request includes a service management data label. When the service management server receives the service management data acquisition request, the service management server obtains the service management data according to the service management data label. A service data tag corresponding to the required service data, and a service data acquisition request is generated according to the service data tag.
在其中一个实施例中,资源服务器包括基础服务器和业务管理服务器,在保险和投资产品的运作过程中,基础服务器用于将基础数据进行存储,业务管理数据用于将业务管理数据进行存储。该资源处理系统还包括业务服务器,业务服务器用于将业务数据进行存储。In one embodiment, the resource server includes a base server and a service management server. During the operation of the insurance and investment products, the base server is used to store the basic data, and the service management data is used to store the business management data. The resource processing system further includes a service server, and the service server is configured to store the service data.
基础服务器406,用于接收处理服务器408发送的基础数据获取请求,根据基础数据获取请求获取基础数据,并将基础数据发送至处理服务器408。The base server 406 is configured to receive a basic data acquisition request sent by the processing server 408, acquire basic data according to the basic data acquisition request, and send the basic data to the processing server 408.
具体地,基础服务器用于接收处理服务器发送的基础数据获取请求,根据基础数据获取请求获取基础数据,并将基础数据发送至处理服务器;业务管理服务器用于接收处理服务器发送的业务管理数据获取请求,根据业务管理数据获取请求生成业务数据获取请求,发送业务数据获取请求至业务服务器,接收业务服务器发送的业务数据,根据业务数据获取业务管理数据,并将业务管理数据发送至处理服务器。Specifically, the basic server is configured to receive a basic data acquisition request sent by the processing server, acquire basic data according to the basic data acquisition request, and send the basic data to the processing server; the service management server is configured to receive the service management data acquisition request sent by the processing server. And generating a service data acquisition request according to the service management data acquisition request, sending the service data acquisition request to the service server, receiving the service data sent by the service server, acquiring the service management data according to the service data, and sending the service management data to the processing server.
处理服务器408,用于向基础服务器406发送基础数据获取请求,接收基础服务器406发送的基础数据;向业务管理服务器404发送业务管理数据获取请求,接收业务管理服务器404发送的业务管理数据;根据基础数据、业务管理数据和预设数据模型获取资源储备数据,并将资源储备数据发送至报表服务器410。The processing server 408 is configured to send a basic data acquisition request to the basic server 406, receive the basic data sent by the basic server 406, send a service management data acquisition request to the service management server 404, and receive the service management data sent by the service management server 404; The data, the business management data, and the preset data model acquire resource reserve data, and send the resource reserve data to the report server 410.
在本申请提供的实施例中,处理服务器可以定时向资源服务器发送资源获取请求,接收资源服务器发送的资源数据,并根据所述资源数据和第一数据模型获取资源储备数据,并将所述资源储备数据发送至报表服务器。In an embodiment provided by the present application, the processing server may periodically send a resource acquisition request to the resource server, receive resource data sent by the resource server, and acquire resource reserve data according to the resource data and the first data model, and the resource is obtained. The reserve data is sent to the report server.
在本申请提供的其他实施例中,处理服务器用于向资源服务器发送资源获取请求,接收资源服务器发送的资源数据,若所述资源数据满足预设条件,则根据所述资源数据和第二数据模型获取资源储备数据,并将所述资源储备 数据发送至报表服务器。In other embodiments provided by the present application, the processing server is configured to send a resource acquisition request to the resource server, and receive resource data sent by the resource server, and if the resource data meets a preset condition, according to the resource data and the second data. The model obtains resource reserve data and sends the resource reserve data to the report server.
具体地,资源数据是指保险和投资产品在将资源进行投资的过程中所产生的相关数据。该资源数据可以反映保险和投资产品在投资过程中资源的变动情况,例如资源在某一个月中增长的情况。预设条件可以但不限于是预先根据资源数据的增长量而设置的条件。例如,对于保险和投资产品来说,会每天统计一次资源的增长量,若当前统计的资源相比上一次统计的资源的增长或下降的幅度超过一定值,就根据当前统计资源数据和第二数据模型来获取资源储备数据。Specifically, resource data refers to relevant data generated by insurance and investment products in the process of investing resources. This resource data can reflect changes in the resources of insurance and investment products in the investment process, such as the growth of resources over a certain month. The preset condition may be, but is not limited to, a condition set in advance according to the amount of increase in the resource data. For example, for insurance and investment products, the amount of resource growth is counted every day. If the current statistical resource exceeds a certain value compared to the last statistical increase or decrease, the current statistical resource data and the second Data model to obtain resource reserve data.
举例来说,第一数据模型和第二数据模型可以分别为如下模型:For example, the first data model and the second data model can be respectively the following models:
第一数据模型为:The first data model is:
当月资源存储数据=上个月资源存储数据+当月储备数据增量;Monthly resource storage data = last month resource storage data + current month reserve data increment;
当月储备数据增量=当月投资收益–当月结算利息–当月公司利差;Increment of reserve data for the current month = investment income for the month – interest settled for the month – company spread for the month;
当月投资收益=当月贷方资源-当月借方资源;Investment income of the month = credit resources of the month - borrowing resources of the current month;
资源数据包括上个月资源储备数据、当月贷方资源、当月借方资源、当月结算利息、当月公司利差。上个月资源存储数据是指上个月获取的资源存储数据,当月储备数据增量是指当前计算资源储备数据的增量值,当月投资收益是指当前月份用于投资的资源所产生的收益,当月结算利息是指当前月份向购买保险或投资产品的用户所结算的利息,当月保险或投资供应商利用资源进行投资所产生的收益与投资成本的差额。Resource data includes last month's resource reserve data, current month's credit resources, current month's borrower resources, current month settlement interest, and current company spreads. Last month, the resource storage data refers to the resource storage data obtained in the previous month. The monthly reserve data increment refers to the incremental value of the current computing resource reserve data. The monthly investment income refers to the income generated by the resources used for investment in the current month. The interest settled in the current month refers to the interest settled by the user who purchased the insurance or investment products in the current month, and the difference between the income generated by the insurance or the investment provider using the resources for investment in the current month and the investment cost.
第二数据模型:Second data model:
当前资源存储数据=保单账户价值*max(结算利率,投资收益率)*min(1,剩余保险天数/365)Current resource storage data = policy account value * max (settlement rate, investment rate of return) * min (1, remaining insurance days / 365)
资源数据包括保单账户价值、结算利率、投资收益率和剩余保险天数。保单账户价值是指估计的保单账户的价值,结算利率是指对某一保险账户所结算的利息的比例,投资收益率是指用于投资的资源所产生的收益的比例,剩余保险天数是指保单账户所对应的剩余的保险有效天数。Resource data includes policy account value, settlement rate, return on investment, and remaining insurance days. The policy account value refers to the value of the estimated policy account. The settlement interest rate refers to the proportion of interest settled on an insurance account. The investment return rate refers to the proportion of the income generated by the resources used for investment. The remaining insurance days refers to the ratio of the remaining insurance days. The remaining insurance effective days corresponding to the policy account.
报表服务器410,用于接收处理服务器408发送的资源储备数据,根据 资源储备数据生成储备数据报表。The report server 410 is configured to receive resource reserve data sent by the processing server 408, and generate a reserve data report according to the resource reserve data.
在本申请提供的实施例中,生成的数据报表按照一定规律将资源储备数据进行展示,数据报表可以以一种以特定形式进行存储。例如数据报表可以是表格、饼状图、柱状图、曲线图等形式存储的文件,通过表格、饼状图、柱状图、曲线图等形式反应了保险和投资产品的资源储备情况。In the embodiment provided by the present application, the generated data report displays the resource reserve data according to a certain rule, and the data report can be stored in a specific form. For example, data reports can be stored in the form of tables, pie charts, histograms, graphs, etc., reflecting the resource reserves of insurance and investment products in the form of tables, pie charts, histograms, and graphs.
在本申请提供的实施例中,报表服务器主要用于存储数据报表,该数据报表保存存储在报表服务器中的预设报表存储地址中,通过该预设报表存储地址就可以获取该数据报表。用户可以通过用户终端输入数据报表查询指令,用户终端接收到数据报表查询指令后向报表服务器发送数据报表查询请求。报表服务器根据该数据报表查询请求查询并返回对应的数据报表至用户终端,用户终端再将该数据报表进行显示。In the embodiment provided by the present application, the report server is mainly used to store a data report, and the data report is stored in a preset report storage address stored in the report server, and the data report can be obtained by using the preset report storage address. The user can input a data report query instruction through the user terminal, and the user terminal sends a data report query request to the report server after receiving the data report query instruction. The report server queries and requests the corresponding data report to the user terminal according to the data report query request, and the user terminal displays the data report.
具体地,数据报表查询指令可以是触控操作、物理按键的按压操作、语音控制操作或对用户终端的晃动操作等触发操作。触控操作有触摸点击操作、触摸长按操作、触摸滑动操作、多点触控操作等,触摸长按操作是超过预设时长的触摸按压操作。用户终端可以以网页附件的形式将数据报表进行显示,用户直接在用户终端的网页上点击报表下载按钮,就可以获取该数据报表。Specifically, the data report query instruction may be a touch operation, a pressing operation of a physical button, a voice control operation, or a shaking operation on a user terminal. The touch operation has a touch click operation, a touch long press operation, a touch slide operation, a multi-touch operation, and the like, and the touch long press operation is a touch press operation exceeding a preset duration. The user terminal can display the data report in the form of a webpage attachment, and the user can directly obtain the data report by clicking the report download button on the webpage of the user terminal.
上述资源处理系统,通过不同的服务器去获取资源数据,而并不是通过单一的服务器去获取,这样在面对庞大的数据量时,可以将一个服务器的压力分散开来,提高了数据处理的效率,并降低了数据处理的错误率。同时,根据获取的资源数据和预设数据模型去获取资源储备数据,该预设数据模型是根据历史资源数据来建立得到的,而不是根据固定的数据模型去获取资源储备数据,这样在数据发生变动时,可以及时修改模型,使得到的资源储备数据产生相应的变化,这样获取的资源储备数据更加地准确。并针对不同的情况,采用不同的数据模型获取资源增长数据,进一步提高了获取的资源储备数据的准确率。The above resource processing system acquires resource data through different servers, and does not acquire through a single server, so that when a large amount of data is faced, the pressure of one server can be dispersed, and the efficiency of data processing is improved. And reduce the error rate of data processing. At the same time, according to the acquired resource data and the preset data model, the resource reserve data is obtained, and the preset data model is established according to the historical resource data, instead of acquiring the resource reserve data according to the fixed data model, so that the data occurs. When the change is made, the model can be modified in time to make corresponding changes in the resource reserve data, so that the obtained resource reserve data is more accurate. According to different situations, different data models are used to obtain resource growth data, which further improves the accuracy of the acquired resource reserve data.
图5为一个实施例中资源处理方法的流程图。如图5所示,该资源处理方法包括步骤S502至步骤S508。FIG. 5 is a flow chart of a resource processing method in an embodiment. As shown in FIG. 5, the resource processing method includes steps S502 to S508.
步骤S502,通过处理服务器向资源服务器发送资源获取请求。Step S502, the resource acquisition request is sent to the resource server by the processing server.
在其中一个实施例中,通过处理服务器向资源服务器发送资源获取请求包括:通过处理服务器向基础服务器发送基础数据获取请求,并通过处理服务器向业务管理服务器发送业务管理数据获取请求。In one embodiment, sending the resource acquisition request to the resource server by the processing server includes: sending, by the processing server, a basic data acquisition request to the basic server, and sending a service management data acquisition request to the service management server by the processing server.
步骤S504,通过资源服务器接收处理服务器发送的资源获取请求,根据资源获取请求获取资源数据,并将资源数据发送至处理服务器。Step S504: The resource server receives the resource acquisition request sent by the processing server, acquires the resource data according to the resource acquisition request, and sends the resource data to the processing server.
在本申请提供的实施例中,通过资源服务器接收处理服务器发送的资源获取请求,根据资源获取请求获取资源数据,并将资源数据发送至处理服务器包括:通过基础服务器接收处理服务器发送的基础数据获取请求,根据基础数据获取请求获取基础数据,并将基础数据发送至处理服务器;以及通过业务服务器接收处理服务器发送的业务管理数据获取请求,根据业务管理数据获取请求获取业务管理数据,并将业务管理数据发送至处理服务器。In the embodiment provided by the present application, receiving, by the resource server, the resource acquisition request sent by the processing server, acquiring the resource data according to the resource acquisition request, and sending the resource data to the processing server includes: receiving, by using the basic server, the basic data obtained by the processing server. The request acquires the basic data according to the basic data acquisition request, and sends the basic data to the processing server; and receives the service management data acquisition request sent by the processing server through the service server, acquires the service management data according to the service management data acquisition request, and manages the service The data is sent to the processing server.
在其中一个实施例中,该资源获取方法还包括:通过业务管理服务器根据业务管理数据获取请求生成业务数据获取请求,并发送业务数据获取请求至业务服务器;通过业务服务器接收业务管理服务器发送的业务数据获取请求,根据业务数据获取请求获取业务数据,并将业务数据发送至业务管理服务器;通过业务管理服务器接收业务服务器发送的业务数据,根据业务数据获取业务管理数据,并将业务管理数据发送至处理服务器。In one embodiment, the resource obtaining method further includes: generating, by the service management server, a service data acquisition request according to the service management data acquisition request, and sending the service data acquisition request to the service server; and receiving, by the service server, the service sent by the service management server The data acquisition request acquires the service data according to the service data acquisition request, and sends the service data to the service management server; receives the service data sent by the service server through the service management server, acquires the service management data according to the service data, and sends the service management data to the Process the server.
步骤S506,通过处理服务器接收资源服务器发送的资源数据,并根据资源数据和预设数据模型获取资源储备数据,并将资源储备数据发送至报表服务器,其中预设数据模型是根据历史资源数据所建立的。Step S506: The resource data sent by the resource server is received by the processing server, and the resource reserve data is obtained according to the resource data and the preset data model, and the resource reserve data is sent to the report server, where the preset data model is established according to the historical resource data. of.
在其中一个实施例中,通过处理服务器向资源服务器发送资源获取请求包括:通过处理服务器定时向资源服务器发送资源获取请求;通过处理服务器接收资源服务器发送的资源数据,并根据资源数据和预设数据模型获取资源储备数据,并将资源储备数据发送至报表服务器包括:通过处理服务器接收资源服务器发送的资源数据,并根据资源数据和第一数据模型获取资源储备数据,并将资源储备数据发送至报表服务器。In one embodiment, the sending, by the processing server, the resource acquisition request to the resource server includes: sending, by the processing server, a resource acquisition request to the resource server; receiving, by the processing server, the resource data sent by the resource server, and according to the resource data and the preset data. The acquiring the resource reserve data by the model and sending the resource reserve data to the report server comprises: receiving the resource data sent by the resource server by the processing server, acquiring the resource reserve data according to the resource data and the first data model, and sending the resource reserve data to the report. server.
在其中一个实施例中,通过处理服务器接收资源服务器发送的资源数据,并根据资源数据和预设数据模型获取资源储备数据,并将资源储备数据发送至报表服务器包括:通过处理服务器接收资源服务器发送的资源数据,若资源数据满足预设条件,则根据资源数据和第二数据模型获取资源储备数据,并将资源储备数据发送至报表服务器。In one embodiment, the resource data sent by the resource server is received by the processing server, and the resource reserve data is obtained according to the resource data and the preset data model, and the resource reserve data is sent to the report server, including: sending, by the processing server, the resource server The resource data, if the resource data meets the preset condition, acquires the resource reserve data according to the resource data and the second data model, and sends the resource reserve data to the report server.
步骤S508,通过报表服务器接收处理服务器发送的资源储备数据,根据资源储备数据生成储备数据报表。Step S508, receiving, by the report server, resource reserve data sent by the processing server, and generating a reserve data report according to the resource reserve data.
上述资源处理系统方法,通过不同的服务器去获取资源数据,而并不是通过单一的服务器去获取,这样在面对庞大的数据量时,可以将一个服务器的压力分散开来,降低了数据处理的错误率。同时,根据获取的资源数据和预设数据模型去获取资源储备数据,该预设数据模型是根据历史资源数据来建立得到的,而不是根据固定的数据模型去获取资源储备数据,这样在数据发生变动时,可以及时修改模型,使得到的资源储备数据产生相应的变化,这样获取的资源储备数据更加地准确。应该理解的是,虽然图5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。The resource processing system method described above acquires resource data through different servers, and is not obtained by a single server, so that when a large amount of data is faced, the pressure of one server can be dispersed, and the data processing is reduced. Error rate. At the same time, according to the acquired resource data and the preset data model, the resource reserve data is obtained, and the preset data model is established according to the historical resource data, instead of acquiring the resource reserve data according to the fixed data model, so that the data occurs. When the change is made, the model can be modified in time to make corresponding changes in the resource reserve data, so that the obtained resource reserve data is more accurate. It should be understood that although the various steps in the flowchart of FIG. 5 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIG. 5 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
一种服务器,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的资源处理方法的步骤。A server comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by one or more processors, cause one or more processors to implement any one of the embodiments of the present application The steps of the resource processing method provided in the example.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的资源处理方法的步骤。One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application The steps of the resource processing method provided.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.