CN116774999A - Supervision task processing method and device and electronic equipment - Google Patents

Supervision task processing method and device and electronic equipment Download PDF

Info

Publication number
CN116774999A
CN116774999A CN202310761986.3A CN202310761986A CN116774999A CN 116774999 A CN116774999 A CN 116774999A CN 202310761986 A CN202310761986 A CN 202310761986A CN 116774999 A CN116774999 A CN 116774999A
Authority
CN
China
Prior art keywords
supervision
target
code block
processing
task
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.)
Pending
Application number
CN202310761986.3A
Other languages
Chinese (zh)
Inventor
王颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310761986.3A priority Critical patent/CN116774999A/en
Publication of CN116774999A publication Critical patent/CN116774999A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a supervision task processing method and device and electronic equipment, which can be used in the financial field or other fields. The method comprises the following steps: receiving a supervision task sent by a supervision server, acquiring a configuration field in the supervision task, and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and determining a target processing chain according to the at least one supervision subtask, wherein the target processing chain comprises at least one preset target code block, each target code block comprises codes for realizing the supervision subtask, the execution sequence of each target code block corresponds to the execution sequence of each supervision subtask, and the supervision codes corresponding to the supervision task are generated according to the target code blocks, the execution sequence of each target code block and the configuration information contained in the target processing chain. The method of the application does not need code personnel to reprogram each supervision task, reduces the workload of the code personnel and improves the development efficiency.

Description

Supervision task processing method and device and electronic equipment
Technical Field
The present application relates to the field of finance, and in particular, to a method and an apparatus for processing a supervisory task, and an electronic device.
Background
With the development of the economic level, the financial industry is getting stronger and more standardized for supervision of the financial industry.
In the prior art, there may be multiple supervision demands, and for each supervision demand, a supervision task may be determined first, and then a code person is required to reprogram the supervision task to obtain a supervision code corresponding to the supervision task.
However, the same subtasks may be included between the supervisory tasks, the timeliness required by the supervisory tasks is different, the time reserved by some supervisory tasks is shorter, if each supervisory task needs to be reprogrammed by a code person, the workload of the code person is increased, the development efficiency is reduced, and the timeliness of the supervisory tasks is also affected.
Disclosure of Invention
The application provides a supervision task processing method, a supervision task processing device and electronic equipment, which are used for solving the problems of increasing the workload of code personnel and reducing the development efficiency.
In a first aspect, the present application provides a method for processing a supervisory task, which is applied to a processing server in a banking system, where the banking system is used for implementing different financial services, and the processing server is in communication connection with the supervisory server; the supervision server is used for supervising all financial services in the banking system, and the method comprises the following steps:
Receiving a supervision task sent by a supervision server;
acquiring a configuration field in the supervision task, and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and the configuration field comprises at least one of a reporting frequency, a reporting form, a reporting main body and a receiving department;
determining a target processing chain according to the at least one supervision subtask, wherein the target processing chain comprises at least one preset finished target code block, each target code block comprises codes for realizing the supervision subtask, and the execution sequence of each target code block corresponds to the execution sequence of each supervision subtask;
and generating the supervision codes corresponding to the supervision tasks according to the target code blocks, the execution sequence of each target code block and the configuration information contained in the target processing chain.
In a second aspect, the present application provides a supervisory task processing apparatus, applied to a processing server in a banking system, where the banking system is configured to implement different financial services, and the processing server is in communication connection with a supervisory server; the supervision server is used for supervising each financial business in the banking system, and comprises:
The receiving module is used for receiving the supervision task sent by the supervision server;
the processing module is used for acquiring a configuration field in the supervision task and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and the configuration field comprises at least one of a reporting frequency, a reporting form, a reporting main body and a receiving department;
the processing module is further configured to determine a target processing chain according to the at least one supervision subtask, where the target processing chain includes at least one target code block that is preset and completed, and each target code block includes a code for implementing the supervision subtask, and an execution sequence of each target code block corresponds to an execution sequence of each supervision subtask;
the processing module is further configured to generate a supervision code corresponding to the supervision task according to the target code blocks, the execution sequence of each target code block, and the configuration information, which are included in the target processing chain.
In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory to implement the method as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when executed by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the first aspect above.
After the scheme is adopted, the supervisory task comprising at least one supervisory subtask can be received firstly, then a target processing chain can be determined according to the at least one supervisory subtask, wherein the target processing chain comprises at least one target code block, each target code block is preset and completed, each target code block comprises codes for realizing the supervisory subtask, the execution sequence of each target code block corresponds to the execution sequence of each supervisory subtask, configuration information can be generated according to configuration fields in the supervisory task, supervisory codes corresponding to the supervisory task can be generated according to the target code blocks, the execution sequence of each target code block and the configuration information contained in the target processing chain, the supervisory codes corresponding to the supervisory task can be generated by predefining the code blocks corresponding to different supervisory subtasks, then when a new task is received, the target processing chain comprising different code blocks is determined according to the execution sequence of the subtask and the subtask, configuration information for configuring the code blocks can be generated according to the configuration fields in the supervisory task, and then the corresponding supervisory code can be directly generated according to the target processing sequence and the corresponding supervisory task, the efficiency of each supervisory task can be reduced, and the efficiency of each supervisory task can be directly improved, and the performance of a supervisory task can be directly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of an architecture of an application system of a supervisory task processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a supervisory task processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a supervisory task processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a supervisory task processing device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the method and the device for processing the supervisory task of the present application can be used in the financial field, and can also be used in any field other than the financial field, and the application field of the method and the device for processing the supervisory task of the present application is not limited.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be capable of including other sequential examples in addition to those illustrated or described. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, the related regulatory authorities have increasingly highlighted regulatory requirements for the financial industry, and the regulatory requirements for different businesses in the financial industry (e.g., asset businesses, liability businesses, intermediate businesses, etc.) are also different. For each supervision requirement, a supervision task can be determined first, then a code person is required to reprogram the supervision task to obtain a supervision code corresponding to the supervision task, and supervision of financial services can be realized through the code. However, each supervision task may include one or more same subtasks, and different supervision tasks have different requirements on timeliness, some supervision tasks have shorter reserved time, and some supervision tasks have longer reserved time, if each supervision task needs a code personnel to reprogram, the workload of the code personnel is greatly increased, the development efficiency is reduced, and meanwhile, for tasks with higher inefficacy requirements, the timeliness and the completion effect of the supervision tasks are likely to be seriously affected because the quality of the tasks which cannot be completed on time or are completed is lower.
Based on the technical problems, the method and the device have the advantages that the code blocks corresponding to different supervision subtasks are predefined, then when a new supervision task is received, the target processing chains containing different code blocks are determined according to the subtasks contained in the supervision task and the execution sequence of the subtasks, the configuration information for configuring the code blocks can be generated according to the configuration fields in the supervision task, and then the supervision codes corresponding to the supervision task can be directly generated according to the target processing chains and the configuration information, so that a code person is not required to reprogram each supervision task, the workload of the code person is reduced, the development efficiency is improved, and meanwhile, the technical effects of timeliness and quality requirements of each supervision task can be met.
The application provides a supervision task processing method, which aims to solve the technical problems in the prior art.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an application system of a supervisory task processing method according to an embodiment of the present application, where, as shown in fig. 1, the application system may include: the processing server 101 and the supervision server 102, the processing server 101 is communicatively connected to the supervision server 102.
In addition, the processing server 101 may be applied in a banking system for implementing different financial services (e.g., an asset service, a liability service, an intermediate service, etc.), and the supervision server 102 is used for supervising each financial service in the banking system. Further, the supervision server 102 may send the supervision task to the processing server 101 at regular time or in real time, and after receiving the supervision task, the processing server 101 may generate configuration information according to a configuration field in the supervision task. The processing server 101 may further determine a target processing chain according to each supervision subtask in the supervision task, and then generate a supervision code corresponding to the supervision task according to the target code blocks included in the target processing chain, the execution sequence of each target code block, and the configuration information. The code can be used for realizing the supervision of financial business later, and the supervision process meets the supervision requirement of the relevant supervision department. By way of example, the administration of loan transactions in property transactions in units of days may be accomplished by administration codes corresponding to administration tasks, e.g., administration of loan amounts in units of days to meet the relevant loan requirements.
The technical scheme of the application is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 is a flow chart of a supervisory task processing method according to an embodiment of the present application, where the method according to the embodiment may be executed by a processing server 101, that is, the method may be applied to a processing server in a banking system, where the banking system is used to implement different financial services, and the processing server is communicatively connected to the supervisory server; the supervision server is used for supervising each financial business in the banking system. As shown in fig. 2, the method of the present embodiment may include:
s201: and receiving the supervision task sent by the supervision server.
In this embodiment, in order to protect the security of the financial transaction of the user, the supervision department may supervise each financial transaction in the banking system, thereby improving the security of each financial transaction.
Further, the supervision department can specify the supervision requirement according to the related information, then the supervision requirement can be converted into a corresponding supervision task in the supervision server, and the supervision task is sent to the processing server in a timing or real-time manner, so that the processing server can realize the supervision task.
By way of example, the administration task may be to administer loan transactions in property transactions in units of days or months, avoiding the amount of the loan transactions exceeding a preset amount threshold, and ensuring the transaction security of the user.
S202: and acquiring a configuration field in the supervision task, and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and the configuration field comprises at least one of a reporting frequency, a reporting form, a reporting main body and a receiving department.
In this embodiment, after the processing server receives the supervisory task, configuration information may be generated according to a configuration field in the supervisory task, and then a code block corresponding to the supervisory subtask may be directly configured according to the configuration information, so as to obtain a code conforming to the supervisory task.
In addition, the configuration field may be a field commonly used in the supervisory task, and specific contents corresponding to the same configuration field may be different in different supervisory tasks, so after the supervisory task is received, configuration information may be generated according to the configuration field in the supervisory task, and then a code block corresponding to the supervisory subtask may be configured according to the configuration information, so as to obtain a code corresponding to the supervisory task.
Further, when the configuration field in the supervisory task is obtained, a pre-stored configuration field table can be obtained first, then the fields in the supervisory task and the fields in the configuration field table are matched one by one, if the matching is successful, the configuration field is obtained, if the matching is failed, the matching field is discarded, and subsequently, the configuration information can be generated according to the successfully matched configuration field.
The configuration field table is predefined, and specific fields contained in the configuration field table can be set according to the customization of the actual application scene, and are generally fields with wider application. For example, it may be a report frequency (one hour, one day, one week, half month, one month, or the like), a report form (file form or message form), a report subject (whether my bank or financial business data of a specific bank), a receiving section (different regulatory section), or the like.
In addition, the configuration field may also include a configuration file name, a format in which the file is generated, whether the file needs to be compressed, whether encryption is needed, a stream path of the file, a range of source data, whether retries are supported, the number of times retries can be supported, and the like.
S203: and determining a target processing chain according to the at least one supervision subtask, wherein the target processing chain comprises at least one preset finished target code block, each target code block comprises codes for realizing the supervision subtask, and the execution sequence of each target code block corresponds to the execution sequence of each supervision subtask.
In this embodiment, the supervisory task may include one or more supervisory subtasks, different supervisory subtasks may implement different sub-processes, and all the sub-processes may implement the supervisory task together.
Further, after determining the supervisory subtasks included in the supervisory task, a target processing chain for determining the target code blocks corresponding to each supervisory subtask and the execution order of the target code blocks may be determined according to the supervisory subtasks. Each target code block may include a code for implementing a supervision subtask, and may implement a supervision subtask, where the code blocks are preset, and specific settings of the code blocks may be customized according to an actual application scenario, which will not be discussed in detail herein.
Further, the determining the target processing chain according to the at least one supervision subtask may include:
if a processing chain meeting preset conditions exists in a preset processing chain library, determining the processing chain meeting the preset conditions as a target processing chain, wherein the preset conditions are that code blocks contained in the processing chain correspond to each supervision subtask, and the execution sequence of each code block is consistent with the execution sequence of each supervision subtask.
Furthermore, the method may further comprise:
and if the processing chain library does not have the processing chain meeting the preset condition, determining target code blocks corresponding to the supervision subtasks from a preset code block library, wherein the code block library comprises at least one of a monitoring code block, a data processing code block, a file processing code block and a transmitting code block.
And determining the execution sequence of each target code block according to the execution sequence of each supervision subtask.
And determining a target processing chain according to the target code blocks corresponding to the supervision subtasks and the execution sequence of the target code blocks.
Specifically, the processing chain library is preset according to an actual application scenario, and the processing chains in the processing chain library may include different code blocks and execution sequences of the different code blocks, but the number of the processing chains in the processing chain library is limited, and there may be a situation that the processing chains required by the supervision task are not in the processing chain library, so that it is required to determine whether the processing chains in the processing chain library exist, and then perform subsequent processing according to a determination result.
Alternatively, if the processing chain library includes a processing chain that satisfies a preset condition, the processing chain that satisfies the preset condition may be determined as the target processing chain. The preset condition may be that the code blocks included in the processing chain correspond to each supervision subtask (i.e., the code blocks included in the processing chain may implement each supervision subtask separately), and the execution sequence of each code block is consistent with the execution sequence of each supervision subtask.
In addition, a data chain identifier can be configured in the supervision task, and then the data chain needed by the supervision task is judged to be contained in the processing chain library according to the data chain identifier.
Optionally, if the processing chain library does not include a processing chain that satisfies the preset condition, it may be that the code blocks included do not satisfy the preset condition, or that the execution sequence of the code blocks does not satisfy the preset condition, or neither of them does not satisfy the preset condition, then the target code blocks corresponding to each of the supervisory subtasks may be determined from the preset code block library, then the execution sequence of each of the target code blocks is determined according to the execution sequence of each of the supervisory subtasks, and the target processing chain is determined according to the execution sequence of each of the target code blocks corresponding to each of the supervisory subtasks and each of the target code blocks.
In addition, the code block library can be preset according to the actual application scene and can contain different code blocks, and each code block can realize one supervision subtask. For example, the code block library may include monitoring code blocks, data processing code blocks, file processing code blocks, and transmitting code blocks. The monitoring code block is used for monitoring the implementation process of each task sub-flow and controlling circulation. The data processing code block is used for realizing the processes of acquiring financial related business data and the like. The file processing code blocks are used to enable further processing of the data acquired by the data processing code blocks, e.g. encryption, compression, etc. The code sending block is used for realizing the processes of reporting the data after further processing and the like.
In addition, after determining the target processing chain according to the target code blocks corresponding to the supervision subtasks and the execution sequence of the target code blocks, the method may further include:
and storing the target processing chain to obtain an updated processing chain library.
Specifically, after the new target processing chain is generated, the new target processing chain can be updated to the processing chain library, so that the processing chain library is expanded, and the richness of the processing chain library is improved.
S204: and generating a supervision code corresponding to the supervision task according to the target code blocks contained in the target processing chain, the execution sequence of each target code block and the configuration information.
In this embodiment, after determining the target processing chain and the configuration information, the supervisory code corresponding to the supervisory task may be generated according to the target code blocks included in the target processing chain, the execution order of the target code blocks, and the configuration information. The supervision task can be realized through the supervision codes corresponding to the supervision task, and the supervision of each financial business in the banking system can be realized.
In addition, the target code block can be stored in the cloud server, after the target processing chain and the configuration information are determined, the target code block of the cloud server can be directly called according to the target processing chain when the supervision task is realized, relevant information in the target code block is updated according to the configuration information, the supervision task is further realized, the target code block of the cloud server is directly called, the target code block is not required to be stored locally, and the local hardware storage space is saved. When the regulatory authorities modify regulatory requirements (e.g., modify the reporting frequency of certain reporting from daily reporting to hourly reporting), the regulatory tasks can be accomplished by modifying the reporting frequency in the configuration information without recompiling the code, reducing the workload of code personnel.
After the scheme is adopted, the supervision task comprising at least one supervision subtask and sent by the supervision server can be received first, then the target processing chain can be determined according to the at least one supervision subtask, wherein the target processing chain comprises at least one target code block, each target code block is preset and completed, each target code block comprises codes for realizing the supervision subtask, the execution sequence of each target code block corresponds to the execution sequence of each supervision subtask, configuration information can be generated according to configuration fields in the supervision task, supervision codes corresponding to the supervision tasks are generated according to the target code blocks, the execution sequence of each target code block and the configuration information contained in the target processing chain, the code blocks corresponding to different supervision subtasks are defined in advance, then when a new supervision task is received, the target processing chain comprising different code blocks is determined according to the execution sequence of the subtask and the subtask, configuration information for configuring the code blocks can be generated according to the configuration fields in the supervision task, and then the configuration information can be directly generated according to the target processing chain and the configuration information, the corresponding supervision codes do not need to be generated, the performance of each supervision task is improved, the performance of a new supervision task is not required, and the performance of a personnel is improved.
The examples of the present specification also provide some specific embodiments of the method based on the method of fig. 2, which is described below.
In another embodiment, the target code block includes a data processing code block, a file processing code block, and a sending code block, and an execution sequence of the target code block is that the data processing code block, the file processing code block, and the sending code block are executed in sequence, and after the generating the supervisory code corresponding to the supervisory task according to the execution sequence of the target code block, each target code block, and the configuration information included in the target processing chain, the method further includes:
acquiring target business data matched with the configuration information from business data through the data processing code block, wherein the business data are data generated by executed financial businesses and are used for representing the execution conditions of the financial businesses;
and carrying out compression processing and/or encryption processing on the target service data through the file processing code block, and storing the processed target service data to a preset path.
And processing the target service data at the preset path through the sending code block to obtain a service message, and sending the service message to the supervision server.
In this embodiment, different supervisory tasks may require different target code blocks, and the execution order of each target code block may be different, and if the target code block includes a data processing code block, a file processing code block, and a transmission code block, and the execution order of the target code block is to execute the data processing code block, the file processing code block, and the transmission code block in order, the supervisory task may be implemented by the data processing code block, the file processing code block, and the transmission code block.
Further, target service data matched with the configuration information can be obtained from service data through a data processing code block, compression processing and/or encryption processing are carried out on the target service data through a file processing code block, the target service data in a file form is obtained, and the target service data in the file form is stored in a preset path. The target service data at the preset path can be processed through the code sending block to obtain a service message, the service message is sent to the supervision server according to the reporting frequency contained in the configuration information, after the supervision server receives the service message, whether the service data are compliant or not can be determined according to the service message, and subsequent operations are executed according to the determination result.
In addition, the target code block may not include a file processing code block, that is, the target code block includes only a data processing code block and a transmitting code block, and the execution sequence of the target code block is that the data processing code block and the transmitting code block are sequentially executed, that is, after the target service data matched with the configuration information is obtained from the service data through the data processing code block, the target service data may be processed through the transmitting code block to obtain a service message, and the service message is transmitted to the supervision server according to the reporting frequency included in the configuration information.
Fig. 3 is a schematic diagram of a supervisory task processing method according to an embodiment of the present application, where, as shown in fig. 3, the method in this embodiment may include: after receiving the supervisory task sent by the supervisory server and generating the supervisory code according to the supervisory task, executing the supervisory code to realize the supervisory task, wherein the specific execution process may be: determining a reporting task according to the reporting frequency in the configuration information, calling a data processing code block according to the reporting task, acquiring target service data matched with the configuration information from service data through the data processing code block, judging whether the target service data needs to be generated into a file, if so, calling the file processing code block, compressing and encrypting the target service data through the file processing code block to obtain target service data in a file form, and storing the target service data in the file form to a preset path. And then, a sending code block can be called, target service data at a preset path is processed through the sending code block, a service message is obtained, and the service message is sent to a supervision server according to the reporting frequency contained in the configuration information. If the target service data does not need to be generated into a file, a sending code block can be called, the target service data at the preset path is processed through the sending code block, a service message is obtained, and the service message is sent to the supervision server according to the reporting frequency contained in the configuration information.
In addition, in the process of calling the sending code block to send the service message to the supervision server, whether the service message is successfully sent to the supervision server or not can be judged, if the service message is not successfully sent to the supervision server, and the number of times of retransmission is lower than a preset number of times threshold, the sending code block can be called again, and the service message is sent to the supervision server through the sending code block. If the service message is successfully sent to the supervision server, a message sending success prompt can be generated.
Furthermore, in another embodiment, the target code block further includes a monitor code block, and the method may further include:
and acquiring the task state of the supervision task through the monitoring code block, and determining the target code block to be executed according to the task state and the execution sequence of each target code block corresponding to the supervision task.
And calling the target code block to be executed, and changing the task state after the target code block to be executed is executed.
In this embodiment, the object code block may further include a monitoring code block, configured to monitor execution conditions of each supervisory subtask and control circulation among the supervisory subtasks.
Further, the supervisory task may correspond to a task state, and with execution of the supervisory subtask, the task state corresponding to the supervisory task is updated correspondingly. For example, when the supervisory task is not executed, the state of the supervisory task may be set to an initialized state. When the monitoring task executes to complete the first monitoring subtask, the state of the monitoring task can be set to be a processing state when the monitoring subtask corresponding to the data processing code block is processed. The monitoring code blocks can monitor the task state of the supervision task in real time, determine the target code blocks to be executed according to the task state and the execution sequence of each target code block corresponding to the supervision task, and execute the target code blocks to be executed.
In addition, when determining the target code blocks to be executed according to the task state and the execution sequence of each target code block corresponding to the supervisory task, the target code blocks after execution is determined according to the task state, and then the next code block of the target code blocks after execution is determined according to the execution sequence of each target code block, namely the target code blocks to be executed.
In addition, the task state of the supervisory task can be changed after the execution of the target code block to be executed is completed.
Furthermore, the method may further comprise:
and acquiring an object code block with execution failure through the monitoring code block, wherein the task state of the supervision task corresponding to the object code block with execution failure is an abnormal state.
Re-executing the target code block with the execution failure or re-executing the supervision task of the abnormal state.
Specifically, in the execution process of the target code block, the execution of the target code block may fail due to network jitter or other reasons, and then the task state of the supervisory task corresponding to the failed execution target code block may be set to be an abnormal state. The monitoring module can periodically patrol, and after detecting the supervision task with the abnormal task state, the monitoring module can re-execute the target code block (i.e. the breakpoint running mode) with failed execution in the supervision task, thereby improving the execution efficiency. The supervision task in the abnormal state can be executed again, namely all code blocks in the supervision task in the abnormal state are executed (namely, the full-scale rerun mode), so that the accuracy of the data executing process is ensured. In addition, the execution can be started from the data processing code block when the data is changed; if the file forwarding fails, processing can be directly started from a file forwarding breakpoint; if the report fails due to network jitter, the report result can be directly retransmitted.
In sum, the automatic failure retry and the breakpoint running of different code blocks can be supported by monitoring the code blocks, so that the waste of resources is reduced, and the realization efficiency of the supervision task is further improved.
In another embodiment, the supervisory task is to supervise a local loan service in a unit of day, and send service data corresponding to the loan service to a target supervisory department in a file form, where subtasks included in the supervisory task are a data processing subtask, a file processing subtask, and a sending subtask. The configuration information in the supervision task is that the reporting frequency is in a unit of days, the reporting form is in a file form, the reporting subject is a local loan service, and the receiving department is a target supervision department.
The data processing subtask is used for acquiring target business data corresponding to the local loan business from pre-stored business data; the file processing subtask is used for carrying out compression processing and/or encryption processing on the target service data and storing the processed target service data into a preset path; the sending subtask is used for processing the target service data at the preset path to obtain a service message, and sending the service message to the target supervision department at regular time according to the reporting frequency.
In this embodiment, the supervision task is to supervise the loan service in the property service in units of days, and send the service data corresponding to the loan service to the target supervision department in the form of a file. The method includes that the amount of loan business is prevented from exceeding a preset amount threshold, the supervision task can be sent to the processing server through the supervision server, the processing server can acquire a configuration field in the supervision task after receiving the supervision task, and the configuration field can comprise a reporting frequency (namely, in days), a reporting form (namely, in a file form), a reporting main body (namely, loan business data of my bank) and a receiving department (namely, a target supervision department) by way of example, and configuration information is generated according to the configuration field. And determining the execution sequence of the subtasks and the subtasks included in the supervisory task, for example, the subtasks may include a data processing subtask (for acquiring target service data corresponding to a loan service from pre-stored service data), a file processing subtask (for performing compression processing and/or encryption processing on the target service data and storing the processed target service data to a preset path), and a transmitting subtask (for processing the target service data at the preset path to obtain a service message and transmitting the service message to the supervisory server), and the execution sequence of the subtasks is the data processing subtask, the file processing subtask and the transmitting subtask in sequence, and then the target processing chain may be determined from a processing chain library according to the execution sequence of the data processing subtask, the file processing subtask, the transmitting subtask and each subtask, where the target processing chain includes three target code blocks, which are respectively a data processing code block corresponding to the data processing subtask, a file processing code block corresponding to the file processing subtask, and a transmitting code block corresponding to the transmitting subtask, and the execution sequence of the target processing chain includes three target code blocks, file processing code blocks and a file processing code block. The supervisory code corresponding to the supervisory task may then be determined based on the configuration information, the processing code blocks, the file processing code blocks, and the order of execution of the sending code blocks and the target code blocks.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the method, which is applied to a processing server in a banking system, wherein the banking system is used for realizing different financial services, the processing server is in communication connection with a supervision server, and the supervision server is used for supervising all financial services in the banking system. Fig. 4 is a schematic structural diagram of a supervisory task processing device according to an embodiment of the present application, where, as shown in fig. 4, the device in this embodiment may include:
the receiving module 401 is configured to receive a supervisory task sent by a supervisory server.
A processing module 402, configured to obtain a configuration field in the supervisory task, and generate configuration information according to the configuration field, where the supervisory task includes at least one supervisory subtask, and the configuration field includes at least one of a reporting frequency, a reporting form, a reporting body, and a receiving department;
the processing module 402 is further configured to determine a target processing chain according to the at least one supervision subtask, where the target processing chain includes at least one target code block that is preset and completed, and each target code block includes a code for implementing the supervision subtask, and an execution sequence of each target code block corresponds to an execution sequence of each supervision subtask.
In this embodiment, the processing module 402 is further configured to:
if a processing chain meeting preset conditions exists in a preset processing chain library, determining the processing chain meeting the preset conditions as a target processing chain, wherein the preset conditions are that code blocks contained in the processing chain correspond to each supervision subtask, and the execution sequence of each code block is consistent with the execution sequence of each supervision subtask.
Furthermore, the processing module 402 is further configured to:
and if the processing chain library does not have the processing chain meeting the preset condition, determining target code blocks corresponding to the supervision subtasks from a preset code block library, wherein the code block library comprises at least one of a monitoring code block, a data processing code block, a file processing code block and a transmitting code block.
And determining the execution sequence of each target code block according to the execution sequence of each supervision subtask.
And determining a target processing chain according to the target code blocks corresponding to the supervision subtasks and the execution sequence of the target code blocks.
The processing module 402 is further configured to generate a supervision code corresponding to the supervision task according to the target code blocks included in the target processing chain, an execution sequence of each target code block, and the configuration information.
In another embodiment, the object code blocks include a data processing code block, a file processing code block, and a transmission code block, and the execution sequence of the object code blocks is that the data processing code block, the file processing code block, and the transmission code block are sequentially executed, and the processing module 402 is further configured to:
and acquiring target business data matched with the configuration information from business data through the data processing code block, wherein the business data are data generated by executed financial businesses and are used for representing the execution condition of the financial businesses.
And carrying out compression processing and/or encryption processing on the target service data through the file processing code block, and storing the processed target service data to a preset path.
And processing the target service data at the preset path through the sending code block to obtain a service message, and sending the service message to the supervision server.
Furthermore, in another embodiment, the object code block further includes a monitor code block, and the processing module 402 is further configured to:
and acquiring the task state of the supervision task through the monitoring code block, and determining the target code block to be executed according to the task state and the execution sequence of each target code block corresponding to the supervision task.
And calling the target code block to be executed, and changing the task state after the target code block to be executed is executed.
Furthermore, the processing module 402 is further configured to:
and acquiring an object code block with execution failure through the monitoring code block, wherein the task state of the supervision task corresponding to the object code block with execution failure is an abnormal state.
Re-executing the target code block with the execution failure or re-executing the supervision task of the abnormal state.
In addition, in another embodiment, the supervision task is to supervise the loan service in units of days, and send service data corresponding to the loan service to the target supervision department in a file form, and subtasks included in the supervision task are a data processing subtask, a file processing subtask and a sending subtask.
The data processing subtasks are used for acquiring target business data corresponding to loan business from pre-stored business data; the file processing subtask is used for carrying out compression processing and/or encryption processing on the target service data and storing the processed target service data into a preset path; the sending subtask is used for processing the target service data at the preset path to obtain a service message, and sending the service message to the target supervision department at regular time according to the reporting frequency.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 5, the apparatus 500 provided in this embodiment includes: a processor 501, and a memory communicatively coupled to the processor. The processor 501 and the memory 502 are connected by a bus 503.
In a specific implementation, the processor 501 executes computer-executable instructions stored in the memory 502, so that the processor 501 performs the method in the above method embodiment.
The specific implementation process of the processor 501 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 5, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the method for processing the supervision task in the embodiment of the method is realized.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program realizes the supervision task processing method when being executed by a processor.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. The supervision task processing method is characterized by being applied to a processing server in a banking system, wherein the banking system is used for realizing different financial services, and the processing server is in communication connection with a supervision server; the supervision server is used for supervising all financial services in the banking system, and the method comprises the following steps:
receiving a supervision task sent by a supervision server;
Acquiring a configuration field in the supervision task, and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and the configuration field comprises at least one of a reporting frequency, a reporting form, a reporting main body and a receiving department;
determining a target processing chain according to the at least one supervision subtask, wherein the target processing chain comprises at least one preset finished target code block, each target code block comprises codes for realizing the supervision subtask, and the execution sequence of each target code block corresponds to the execution sequence of each supervision subtask;
and generating the supervision codes corresponding to the supervision tasks according to the target code blocks, the execution sequence of each target code block and the configuration information contained in the target processing chain.
2. The method of claim 1, wherein said determining a target processing chain from said at least one policing subtask comprises:
if a processing chain meeting preset conditions exists in a preset processing chain library, determining the processing chain meeting the preset conditions as a target processing chain, wherein the preset conditions are that code blocks contained in the processing chain correspond to each supervision subtask, and the execution sequence of each code block is consistent with the execution sequence of each supervision subtask.
3. The method as recited in claim 2, further comprising:
if the processing chain library does not have a processing chain meeting the preset condition, determining target code blocks corresponding to the supervision subtasks from a preset code block library, wherein the code block library comprises at least one of a monitoring code block, a data processing code block, a file processing code block and a transmitting code block;
determining the execution sequence of each target code block according to the execution sequence of each supervision subtask;
and determining a target processing chain according to the target code blocks corresponding to the supervision subtasks and the execution sequence of the target code blocks.
4. A method according to any one of claims 1 to 3, wherein the object code blocks comprise a data processing code block, a file processing code block and a transmission code block, the object code blocks being executed in the order in which the data processing code block, the file processing code block and the transmission code block are executed in sequence,
after generating the supervisory code corresponding to the supervisory task according to the target code blocks, the execution sequence of each target code block and the configuration information, the method further includes:
Acquiring target business data matched with the configuration information from business data through the data processing code block, wherein the business data are data generated by executed financial businesses and are used for representing the execution conditions of the financial businesses;
the target service data is subjected to compression processing and/or encryption processing through the file processing code block, and the processed target service data is stored into a preset path;
and processing the target service data at the preset path through the sending code block to obtain a service message, and sending the service message to the supervision server.
5. The method of claim 4, wherein the target code block further comprises a monitor code block, the method further comprising:
acquiring a task state of a supervisory task through the supervisory code block, and determining an object code block to be executed according to the task state and an execution sequence of each object code block corresponding to the supervisory task;
and calling the target code block to be executed, and changing the task state after the target code block to be executed is executed.
6. The method of claim 5, wherein the method further comprises:
Acquiring an object code block with execution failure through the monitoring code block, wherein the task state of the supervision task corresponding to the object code block with execution failure is an abnormal state;
re-executing the target code block with the execution failure or re-executing the supervision task of the abnormal state.
7. A method according to any one of claims 1-3, wherein the supervisory task is to supervise local loan traffic in units of days and send traffic data corresponding to the loan traffic to a target supervisory department in the form of a file, and the subtasks included in the supervisory task are a data processing subtask, a file processing subtask and a sending subtask;
the configuration information in the supervision task is that the reporting frequency is in a unit of days, the reporting form is in a file form, the reporting main body is a local loan service, and the receiving department is a target supervision department;
the data processing subtask is used for acquiring target business data corresponding to the local loan business from pre-stored business data; the file processing subtask is used for carrying out compression processing and/or encryption processing on the target service data and storing the processed target service data into a preset path; the sending subtask is used for processing the target service data at the preset path to obtain a service message, and sending the service message to the target supervision department at regular time according to the reporting frequency.
8. The supervisory task processing device is characterized by being applied to a processing server in a banking system, wherein the banking system is used for realizing different financial services, and the processing server is in communication connection with a supervisory server; the supervision server is used for supervising each financial business in the banking system, and comprises:
the receiving module is used for receiving the supervision task sent by the supervision server;
the processing module is used for acquiring a configuration field in the supervision task and generating configuration information according to the configuration field, wherein the supervision task comprises at least one supervision subtask, and the configuration field comprises at least one of a reporting frequency, a reporting form, a reporting main body and a receiving department;
the processing module is further configured to determine a target processing chain according to the at least one supervision subtask, where the target processing chain includes at least one target code block that is preset and completed, and each target code block includes a code for implementing the supervision subtask, and an execution sequence of each target code block corresponds to an execution sequence of each supervision subtask;
the processing module is further configured to generate a supervision code corresponding to the supervision task according to the target code blocks, the execution sequence of each target code block, and the configuration information, which are included in the target processing chain.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202310761986.3A 2023-06-26 2023-06-26 Supervision task processing method and device and electronic equipment Pending CN116774999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310761986.3A CN116774999A (en) 2023-06-26 2023-06-26 Supervision task processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310761986.3A CN116774999A (en) 2023-06-26 2023-06-26 Supervision task processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116774999A true CN116774999A (en) 2023-09-19

Family

ID=88007795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310761986.3A Pending CN116774999A (en) 2023-06-26 2023-06-26 Supervision task processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116774999A (en)

Similar Documents

Publication Publication Date Title
CN110827032B (en) Intelligent wind control decision method and system and service processing method and system
CN111245900B (en) Distributed message sending processing system and processing method thereof
CN107038645B (en) Service processing method, device and system and server
CN112866282B (en) Method and device for verifying time information in block chain
CN111861439B (en) Cross-border money transfer transaction method, terminal, electronic equipment and storage medium
CN110033280A (en) Pay anti-fluttering method and device
CN113344523A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN116993523A (en) Configurable account checking method, device, equipment and storage medium
CN116774999A (en) Supervision task processing method and device and electronic equipment
CN111651494A (en) Data processing method, device, equipment and computer readable storage medium
CN115983991A (en) Flow adjusting method, device, equipment and medium
CN111192034B (en) Method and device for processing service request data
CN110852864A (en) Method and device for processing digital resource amount and storage medium
CN111080084A (en) Credit investigation management method, device and storage medium based on block chain
CN112965986B (en) Service consistency processing method, device, equipment and storage medium
CN114189934B (en) Repeated paging determining method, device, equipment and medium
CN113485930B (en) Business process verification method, device, computer system and readable storage medium
CN114285929B (en) Identification method, equipment and storage medium for malicious anti-receiving user
CN114816681B (en) Insurance business data processing method and device, electronic equipment and storage medium
CN115564553A (en) Method, device and equipment for correcting resource scheduling record and storage medium
CN108876570B (en) Electronic device, method for processing abnormal fund problem and storage medium
US20230106705A1 (en) System and method for real-time processing of resource transfers
CN117172909A (en) Reminding file processing method and device, storage medium and electronic equipment
CN113110974A (en) Method and device for updating transaction state in thread monitoring and cross-bank transaction
CN117455469A (en) Resource processing method and device, storage medium and electronic equipment

Legal Events

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