Code generation method and device, equipment, storage medium and computer program

Through the method of generating code, a code module is automatically generated to monitor abnormal business data of the treasurer system fund payment system, which solves the problem of professional and technical personnel in the existing technology that requires code modification, and achieves the effect of rapid response and reduction of maintenance costs.

CN120029599APending Publication Date: 2025-05-23CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411906566.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, monitoring the abnormality of the fund payment business data of the treasurer system requires professional and technical personnel to modify the code and redeploy the system, resulting in a long response time and high maintenance costs.

Method used

A method of generating code is provided, including generating a code to obtain a payment table address, a code to determine whether the payment table meets the warning conditions, and a code to send an alert content if the warning conditions are met. This method automatically generates a code module and warns the payment table data abnormalities of the fund payment service in the treasurer system based on the control project name configured by the user.

Benefits of technology

It enables monitoring of abnormal fund payment business data of the treasurer system without manual modification of the code by professional and technical personnel, reducing response time and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029599A_ABST
    Figure CN120029599A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a code generation method and device, equipment, a storage medium and a computer program, and the method comprises the steps: generating a code for obtaining a payment table from an address of the payment table corresponding to a fund payment service in a judicial library system according to a set frequency; according to the control item name, generating a code for determining whether the payment table meets an early warning condition; and generating a code for sending the early warning content to the set communication address through the set communication mode if the early warning condition is determined to be met. According to the code generation method provided by the invention, the module formed by the automatically generated codes can perform early warning on the data exception of the payment table of the fund payment service in the judicial library system according to the control item name configured by the user, so that the code for editing and monitoring the data exception of the fund payment service of the judicial library system is solved; problems of long response time and high maintenance cost caused by code modification and system redeployment by professional technicians in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment, storage medium and computer program for generating code. Background Art

[0002] The treasury system is a group-level application system, mainly used for centralized fund management and information centralization of enterprise groups, with the goal of improving fund operation efficiency, reducing fund costs, and preventing and controlling fund risks. At present, in order to monitor whether various data of fund payment business in the treasury system are abnormal, specialized programmers are required to edit the code, which is often difficult to quickly adapt to changes in business rules. When business needs change, professional technicians are required to modify the code and redeploy the system, which may result in longer response time and higher maintenance costs. Summary of the invention

[0003] The present invention provides a method, device, equipment, storage medium and computer program for generating codes, which solve the problem that when editing the code for monitoring abnormal fund payment business data of a treasury system, professional technicians are required to modify the code and redeploy the system, resulting in a long response time and high maintenance cost.

[0004] In a first aspect, the present invention provides a method for generating codes, including: generating a code for obtaining a payment table from the address of the payment table corresponding to the fund payment business in a treasury system at a set frequency; generating a code for determining whether the payment table meets a warning condition based on a control item name; and generating a code for sending the warning content to a set communication address through a set communication method if it is determined that the warning condition is met.

[0005] In some embodiments, based on the control item name, a code is generated to determine whether the payment table meets the warning condition, including: generating code for completing the following steps: extracting the first data in the first field corresponding to the control item name from the payment table; determining whether the first data meets the warning condition.

[0006] In some embodiments, determining whether the first data satisfies the warning condition includes: determining whether the first data contains a predetermined character, and if so, determining that the warning condition is satisfied; or, if not, determining that the warning condition is satisfied.

[0007] In some embodiments, determining whether the first data satisfies the warning condition includes: comparing the values ​​in the first data with set thresholds respectively, and if the predetermined relationship is not satisfied, determining that the warning condition is satisfied.

[0008] In some embodiments, determining whether the first data meets the warning condition includes: processing the first data according to a first algorithm corresponding to the control project name to obtain second data; determining whether the second data meets the warning condition, and if it is determined that the warning condition is met, then determining that the first data meets the warning condition.

[0009] In some embodiments, based on the control item name, a code is generated to determine whether the payment table meets the warning condition, including: generating code for completing the following steps: based on the control item name, extracting all payment records that meet the preset condition from the second field of the payment table as the third data; determining whether the third data meets the warning condition.

[0010] In some embodiments, determining whether the third data meets the warning condition includes: processing the third data according to the second algorithm corresponding to the control project name to obtain fourth data; determining whether the fourth data meets the warning condition, and if it is determined that the warning condition is met, then determining that the third data meets the warning condition.

[0011] In a second aspect, the present invention provides a device for generating code, including: a first generation module, used to generate a code for obtaining a payment table from the address of the payment table corresponding to the fund payment business in the treasury system according to a set frequency; a second generation module, used to generate a code for determining whether the payment table meets the warning condition according to the control project name; a third generation module, used to generate a code for sending the warning content to the set communication address through a set communication method if it is determined that the warning condition is met. In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory, the processor executes the computer program to implement the steps of any of the above-mentioned methods for generating code.

[0012] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-mentioned methods for generating codes.

[0013] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which implements the steps of any of the above-mentioned methods for generating codes when executed by a processor.

[0014] The method for generating codes provided by the present invention, the module composed of automatically generated codes can issue an early warning for data anomalies in the payment table of the fund payment business in the treasury system according to the control item name configured by the user, thereby solving the problem that the code for editing and monitoring the data anomalies of the fund payment business of the treasury system needs professional technicians to modify the code and redeploy the system, resulting in a long response time and high maintenance cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The present invention will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0016] Figure 1 is a flowchart of a method for generating code provided in an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of the structure of a device for generating code provided in an embodiment of the present application;

[0018] Figure 3 An example of a software interface for applying the code generation method of the embodiment of the present application;

[0019] Figure 4 Another software interface example for applying the code generation method of the embodiment of the present application;

[0020] Figure 5 Another software interface example for applying the code generation method of the embodiment of the present application;

[0021] Figure 6 The present invention is an operational flow chart of a method for generating codes according to an embodiment of the present application.

[0022] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, and to fully understand and implement how the present invention applies technical means to solve technical problems and achieve the corresponding technical effects, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. The embodiments of the present application and the various features in the embodiments can be combined with each other without conflict, and the technical schemes formed are all within the scope of protection of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] Hereinafter, the technical solution of the present application will be described in conjunction with specific embodiments.

[0027] Figure 1 : is a flow chart of the method for generating code provided by the embodiment of the present application. Figure 1 As shown, in the technical solution of this embodiment, a method for generating a code is provided, and the method includes the following steps S101 to S103:

[0028] Step S101, generating a code for obtaining a payment table from the address of the payment table corresponding to the fund payment business in the treasury system according to a set frequency.

[0029] Specifically, the payment table usually contains multiple payment records, each payment record contains multiple fields, and the fields contained in the payment table may include but are not limited to the following fields: "paying account", "receiving account", "unit", "amount", "date". Each field of a payment record contains corresponding information.

[0030] The application scenario of the embodiment of the present application is a treasury system, which is used to automatically generate modular code for monitoring whether the data in the payment table of fund payment is abnormal. The payment table of the fund payment business can be obtained from a fixed address. The frequency of monitoring (i.e., the set frequency) is user-configurable.

[0031] Step S102: Generate a code for determining whether the payment table meets the warning condition according to the control item name.

[0032] The names of the control items correspond to the warning conditions. According to the classification of warning conditions, the methods of this application can be divided into the following categories:

[0033] 1. Abnormal values ​​of a single field

[0034] In some embodiments, based on the control item name, a code is generated to determine whether the payment table meets the warning condition, including: generating code for completing the following steps: extracting the first data in the first field corresponding to the control item name from the payment table; determining whether the first data meets the warning condition.

[0035] The code generated by the embodiment of the present application can extract the data of a field from the payment table to determine whether there is an abnormality, which can effectively reduce the amount of data required to monitor for determining an abnormality and improve monitoring efficiency.

[0036] Specifically, the names of control items may include but are not limited to the number of payments (transactions), the amount of a single payment (RMB), the cumulative amount of payments (RMB), sensitive words, whether the counterparty is on the blacklist, whether it is an extra-budgetary expenditure, account limit (RMB), overdue accounts receivable warning, etc.

[0037] The warning conditions corresponding to single-field anomalies may include but are not limited to the following three:

[0038] 1. A single field contains sensitive words or does not contain sensitive words

[0039] In some embodiments, determining whether the first data satisfies the warning condition comprises the following steps: determining whether the first data contains a predetermined character, and if so, determining that the warning condition is satisfied; or, if not, determining that the warning condition is satisfied.

[0040] Specifically, the predetermined character can be configured by the user or obtained from the treasury system. It can be a single character or a set of multiple characters. The field corresponding to the first data can be the "unit" field of the payment table. The early warning condition can be that sensitive words are included or the counterparty is on the blacklist. The first field can also be a "receiving account". According to the relevant information of the treasury system, it is determined whether there is an abnormality in the "receiving account" in the payment record.

[0041] The code generated by the embodiment of the present application can control the project name to select the corresponding field, determine whether it contains predetermined characters, and can be used to more conveniently automatically generate code to monitor whether the payment table contains sensitive words.

[0042] 2. One or more values ​​in a single field are abnormal

[0043] In some embodiments, determining whether the first data satisfies the warning condition comprises the following steps: comparing the values ​​in the first data with set thresholds respectively, and if the predetermined relationship is not satisfied, determining that the warning condition is satisfied.

[0044] Specifically, the predetermined relationship may be, but is not limited to, one of the following relationships: greater than, less than, equal to, greater than or equal to, less than or equal to. The predetermined relationship may be fixed or set by the user. In practical applications, it may be used to determine whether a single payment amount is too large (exceeding a set threshold) or too small (less than a set threshold), etc.

[0045] The code generated by the embodiment of the present application can compare each data in a field in the payment table using a set threshold, thereby making it more convenient to determine whether each value in the monitored payment table is abnormal.

[0046] 3. Multiple values ​​in a single field work together to cause anomalies

[0047] In some embodiments, determining whether the first data meets the warning condition includes the following steps: processing the first data according to a first algorithm corresponding to the control project name to obtain second data; determining whether the second data meets the warning condition, and if it is determined that the warning condition is met, determining that the first data meets the warning condition.

[0048] Specifically, the first algorithm can be one or more of the following, but not limited to, summing, averaging, maximum value, and minimum value. The algorithm using summing can be used to determine whether the total payment amount (second data) is too large (exceeding a predetermined threshold) or too small (less than the budget amount). The first algorithm corresponds to the name of the control item, for example, the cumulative payment amount (yuan), the number of payments (transactions), and whether it is an extra-budgetary expenditure, corresponding to the first algorithm of summing. Among them, to determine whether it is an extra-budgetary expenditure, the budget amount can be obtained from a specific address of the treasury system, and then the total payment amount can be compared with it.

[0049] The method for generating codes implemented in the present application pre-processes multiple data of a field through an algorithm, and then analyzes whether the pre-processed data is abnormal, thereby being able to more conveniently monitor whether the impact of multiple values ​​causes abnormalities.

[0050] The code generated by the embodiment of the present application can not only be used to determine the abnormality of single-field data, but also combine the data of at least two fields to determine whether there is an abnormality.

[0051] 2. The payment records that meet the constraint conditions in one field can be divided into the following two types if the values ​​in other fields are abnormal:

[0052] 1. Determine the payment records that meet the constraint conditions and have one or more abnormal values ​​in another field.

[0053] In some embodiments, based on the control item name, a code is generated to determine whether a payment table meets the warning conditions, including the following steps: Generate code for completing the following steps: Based on the control item name, extract all payment records that meet the preset conditions from the second field of the payment table as the third data; Determine whether the third data meets the warning conditions.

[0054] The embodiment of the present application is used to extract payment records that meet specific conditions in a field, and then further determine whether these payment records meet the warning conditions. For example, to determine whether the payment amount in a single month exceeds the maximum limit of a single payment, all payment records of a certain company name can be extracted in the "unit" field, and then the values ​​of the "amount" fields of these payment records are compared with the set maximum single payment amount of the company.

[0055] The code generated by the embodiment of the present application can extract payment records that meet the conditions and then determine whether these payment records are abnormal. It can more specifically monitor whether each value in the payment records that meet the constraint conditions is abnormal.

[0056] 2. The payment records that meet the constraints obtained have multiple values ​​in another field that work together to cause an exception

[0057] In some embodiments, determining whether the third data meets the warning condition includes the following steps: processing the third data according to the second algorithm corresponding to the control project name to obtain fourth data; determining whether the fourth data meets the warning condition, and if it is determined that the warning condition is met, then determining that the third data meets the warning condition.

[0058] Specifically, the second algorithm may be one of the algorithms corresponding to the first algorithm described above. The method of the embodiment of the present application may have, but is not limited to, the following applications.

[0059] (1) Determine whether monthly expenditure is abnormal

[0060] The code generated by the embodiment of the present application can obtain all payment records of a specific month in the "Date" field, and then sum the values ​​of the "Amount" field in the payment records to determine whether the total amount is abnormal.

[0061] (2) Determine whether expenditures on specific units are abnormal

[0062] The code generated by the embodiment of the present application can obtain the total payment amount of a unit. First, the payment record for the specific unit is obtained from the "unit" field, and then the value of the "amount" field in the payment record is summed to determine whether the total amount is abnormal.

[0063] (3) Determine whether expenditures in a specific time period exceed the budget

[0064] The code generated by the embodiment of the present application can obtain all payment records of a specific time period (configurable by the user) based on the "Date" field, and then sum up the values ​​of the "Amount" field in all payment records, and compare them with the budget amount obtained from the treasury system to determine whether the budget is exceeded.

[0065] Step S103, generating a code for sending the warning content to a set communication address through a set communication method if it is determined that the warning condition is met.

[0066] Specifically, the communication method may be one or more of the following communication methods, but is not limited to: QQ, SMS, email, WeChat, OA (Office Automation). The communication address corresponds to the communication method. For example, the communication address of QQ is the QQ number, and the communication address of WeChat is the WeChat number. The timing of sending the warning content may be to send it immediately when it is determined that the warning conditions are met, or it may be sent at a scheduled time. The warning content may be the relevant situation of the payment record that meets the warning conditions. For example, if the warning condition is to contain sensitive words, the warning content may include abnormal sensitive words, relevant information of the payment record where the sensitive words appear, date, unit, amount, etc.

[0067] For another example, the warning condition is that the value is greater than a certain threshold, and the warning content may include the abnormal value, relevant information of the payment record with the abnormal value, date, unit, amount, etc.

[0068] The method for generating codes provided by the present invention, the module composed of automatically generated codes can issue an early warning for data anomalies in the payment table of the fund payment business in the treasury system according to the control item name configured by the user, thereby solving the problem that the code for editing and monitoring the data anomalies of the fund payment business of the treasury system needs professional technicians to modify the code and redeploy the system, resulting in a long response time and high maintenance cost.

[0069] In practical applications, after all codes are generated using the method of the embodiment of the present application, the modules consisting of the generated codes can be saved and named for easy calling.

[0070] Figure 2 is a schematic diagram of the structure of the device for generating code provided in the embodiment of the present application, such as Figure 2 As shown, in the technical solution of this embodiment, a device 200 for generating code is provided, and the device 200 includes the following modules:

[0071] The first generating module 201 is used to generate a code for obtaining a payment table from the address of the payment table corresponding to the fund payment business in the treasury system according to a set frequency;

[0072] The second generating module 202 is used to generate a code for determining whether the payment table meets the warning condition according to the control item name;

[0073] The third generating module 203 is used to generate a code for sending the warning content to the set communication address through the set communication method if it is determined that the warning condition is met.

[0074] In some embodiments, the second generation module 202 is specifically used to: generate code for completing the following steps: extracting the first data in the first field corresponding to the control item name from the payment table; and determining whether the first data meets the warning condition.

[0075] In some embodiments, the second generating module 202 is specifically used to determine whether the first data contains a predetermined character, and if so, determine that the warning condition is met.

[0076] In some embodiments, the second generating module 202 is specifically used to compare the values ​​in the first data with the set thresholds respectively, and if the predetermined relationship is not satisfied, determine that the warning condition is satisfied.

[0077] In some embodiments, the second generation module 202 is specifically used to: process the first data according to the first algorithm corresponding to the control project name to obtain the second data; determine whether the second data meets the warning condition, and if it is determined that the warning condition is met, determine that the first data meets the warning condition.

[0078] In some embodiments, the second generation module 202 is specifically used to: generate code for completing the following steps: extract all payment records that meet the preset conditions from the second field of the payment table according to the control item name as the third data; determine whether the third data meets the warning conditions.

[0079] In some embodiments, the second generation module 202 is specifically used to: process the third data according to the second algorithm corresponding to the control project name to obtain fourth data; determine whether the fourth data meets the warning condition, and if it is determined that the warning condition is met, determine that the third data meets the warning condition.

[0080] The following is an example of how a user operates the software interface of an embodiment of the present application.

[0081] Figure 3 An example of a software interface for applying the code generation method of the embodiment of the present application.

[0082] The user interface includes the fields in the following table, along with related information about the fields.

[0083] Table 1 Figure 3 Page Field Descriptions

[0084]

[0085]

[0086] The name of this interface is "Risk Warning Configuration-Query Page", which is used to retrieve, create, modify and submit software modules composed of codes generated by the method of the embodiment of the present application. Among them, the "Warning Rule Name" under the "Query Label" is a software module that can be generated by the method of generating code using the embodiment of the present application. For the sake of distinction, the name of the warning rule can be customized. The "Warning Rule Name" in the "Query Label" is used to query the status of the software module of this name as controlled or uncontrolled. Control means that the software module is in an enabled state and is used for warnings; uncontrolled means vice versa. Under the "Query" label, you can add new software modules, modify existing software modules, or submit software modules to the treasury system. The page fields are described as follows:

[0087] [Add]: Click the [Add] button to enter the warning method configuration-settings page and maintain risk warning details.

[0088] [Modify]: Select the added row and click [Modify] to modify the selected row data.

[0089] [Submit]: After editing, click the [Submit] button to save the maintained data.

[0090] Figure 4 The present invention provides another software interface example for applying the method for generating codes according to the embodiment of the present application.

[0091] The user interface includes the fields in the following table, along with related information about the fields.

[0092] Table 2 Figure 4 Page Field Descriptions

[0093]

[0094]

[0095] The name of this interface is the Warning Mode Configuration - Settings Page. You can click Figure 3 Click the Add button to enter.

[0096] The business type corresponding to the embodiment of the present application is fund payment, and the organizational structure is the name of the company using the software module of the embodiment of the present application. If the treasury system is applied to a group company, the head office can monitor whether there are any abnormalities in the fund payments of its subsidiaries. Different companies have different address locations for storing payment tables in the treasury system. The organizational structure is configured, and the payment table of the corresponding company can be selected for monitoring. "Control item" corresponds to the "control item" in the embodiment of the present application. Select different "control items" and you can select the corresponding "value" and "condition". "Value" is the "set threshold" in the embodiment of the present application, and "condition" is the "predetermined relationship".

[0097] Figure 5 Another software interface example of the method for generating code using the embodiment of the present application.

[0098] The user interface includes the fields in the following table, along with related information about the fields.

[0099] Table 3 Figure 5 Page Field Descriptions

[0100]

[0101] This interface is used to configure the communication method for sending warning content. Among them, "warning method" is the "communication method", "email / mobile phone" is used to configure the "communication address", and "warning content" is the "warning content" in the embodiment of this application.

[0102] Figure 6 This is an operation flow chart of the method for generating codes according to an embodiment of the present application. The flow chart is used to generate a new software module for monitoring abnormal fund payments by using the method for generating codes according to the present application.

[0103] The user operation is mainly divided into three steps: warning information configuration, warning mode configuration and warning module activation. Figure 3 Select Add on the interface, then enter Figure 4 The interface is completed Figure 6 Configure the warning information in , then enter Figure 5 The interface is completed Figure 6 The warning mode configuration is generated, and the software module is finally Figure 3 The interface is completed Figure 6 The early warning module is enabled.

[0104] In the technical solution of this embodiment, a computer device is provided, including a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the implementation method of the method for generating code in any of the above embodiments.

[0105] In the technical solution of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of implementing the method for generating code in any of the above embodiments are implemented.

[0106] In the technical solution of this embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the implementation method of any one of the methods for generating codes in the above embodiments.

[0107] The processor may include, but is not limited to, one or more processors or microprocessors, etc. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the implementation method in the above embodiments.

[0108] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the computer-readable storage medium may include, but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, register, computer storage medium (such as hard disk, floppy disk, solid state disk, removable disk, CDROM, DVDROM, Blu-ray disc, etc.). The computer-readable storage medium may also store at least one computer executable program / instruction, and the computer executable program / instruction is, for example, a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory, etc.

[0109] The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, the non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed. In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and an input / output device (e.g., a keyboard, a mouse, a speaker, etc.). The processor may communicate with external devices via the I / O bus via a wired or wireless network.

[0110] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0111] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0112] It should be noted that, in the present invention, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element limited by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0113] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.

Claims

1. A method for generating a code, characterized in that: include: Generate a code for obtaining the payment table corresponding to the fund payment business in the treasury system from the address of the payment table according to the set frequency; generating, based on the control item name, a code for determining whether the payment table satisfies the early warning condition; If it is determined that the warning condition is met, a code is generated to send the warning content to the set communication address through the set communication method.

2. The method according to claim 1, characterized in that The step of generating a code for determining whether the payment table meets the early warning condition according to the control item name includes: Generate code to complete the following steps: Extracting first data in a first field corresponding to the control item name from the payment table; Determine whether the first data meets the warning condition.

3. The method according to claim 2, characterized in that The determining whether the first data meets the warning condition includes: Determine whether the first data contains a predetermined character, and if so, determine that the warning condition is satisfied; or, if not, determine that the warning condition is satisfied.

4. The method according to claim 2, characterized in that: The determining whether the first data meets the warning condition includes: The values ​​in the first data are compared with the set thresholds respectively, and if the predetermined relationship is not satisfied, it is determined that the warning condition is satisfied.

5. The method according to claim 2, characterized in that: The determining whether the first data meets the warning condition includes: Processing the first data according to a first algorithm corresponding to the control item name to obtain second data; Determine whether the second data satisfies the warning condition; if it is determined that the second data satisfies the warning condition, determine whether the first data satisfies the warning condition.

6. The method according to claim 1, characterized in that The step of generating a code for determining whether the payment table meets the early warning condition according to the control item name includes: Generate code to complete the following steps: According to the control item name, extract all payment records that meet the preset conditions from the second field of the payment table as the third data; It is determined whether the third data satisfies the warning condition.

7. The method according to claim 6, characterized in that Determining whether the third data meets the warning condition includes: Processing the third data according to a second algorithm corresponding to the control item name to obtain fourth data; It is determined whether the fourth data meets the warning condition. If it is determined that the fourth data meets the warning condition, it is determined that the third data meets the warning condition.

8. A device for generating a code, characterized in that: include: A first generating module, used for generating a code for obtaining the payment table from the address of the payment table corresponding to the fund payment business in the treasury system according to a set frequency; A second generating module, for generating a code for determining whether the payment table meets the early warning condition according to the control item name; The third generating module is used to generate a code for sending the warning content to the set communication address through the set communication method if it is determined that the warning condition is met.

9. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method for generating code according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for generating code according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for generating code according to any one of claims 1 to 7 are implemented.