Data processing method, device, electronic device and computer readable storage medium
By automatically obtaining transaction record information from the folder of the current shift and updating the folder of the next shift, the problem of low manual handover efficiency in financial institutions is solved, automatic handover is achieved, and efficiency and stability are improved.
Patent Information
- Application Number
- CN202111350978.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-11-15
AI Technical Summary
In the prior art, financial institutions manually complete the handover process between the current shift and the next shift, resulting in inefficient handover.
By obtaining transaction record information from the preset folder of the current shift, the profit information and purchase and sale difference information of the current shift are automatically determined, and the folder of the next shift is updated to achieve automatic handover.
It improves handover efficiency, avoids errors and instability of manual verification, and realizes an automated handover process.
Smart Images

Figure CN114049088B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data processing method, device, electronic device and computer-readable storage medium. Background Art
[0002] When banks and other financial institutions conduct foreign exchange trading, foreign exchange settlement and sale, or precious metal trading, since the trading market usually operates uninterruptedly throughout the day, financial institutions need to use multiple shifts to conduct related transactions in foreign currencies or precious metals. For example, shift 1 manages transactions from 00:00 to 7:59 Beijing time, shift 2 manages transactions from 8:00 to 15:59 Beijing time, and shift 3 manages transactions from 16:00 to 23:59 Beijing time.
[0003] In addition, when the current shift is handed over to the next shift, financial institutions usually need to confirm the relevant transaction information of the current shift first, such as the profit and loss information of the current shift, the difference between the purchase amount and the sale amount of the traded items, and then hand over to the next shift. Among them, these relevant transaction information are important reference data that affect the performance of the corresponding traders of the current shift.
[0004] However, in the existing handover process, financial institutions usually use manual verification to confirm the relevant transaction information of the current shift. The entire verification process cannot be automatically and effectively controlled, which reduces the handover efficiency. Summary of the invention
[0005] The embodiments of the present invention provide a data processing method, device, electronic device and computer-readable storage medium to at least solve the problem of poor handover efficiency in the prior art of manually completing the handover process between the current shift and the next shift.
[0006] According to one aspect of an embodiment of the present invention, a data processing method is provided, the method comprising: obtaining transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, wherein different shifts correspond to at least one different preset folder, and determining first type information and second type information corresponding to the current shift based on the transaction record information, thereby updating at least one preset folder corresponding to the next shift based on the first type information and the second type information.
[0007] Furthermore, the data processing method also includes: the first type of information is used to represent the profit information or loss information corresponding to the current shift, and the second type of information is used to represent the difference between the purchase amount and the sale amount of at least one item corresponding to the current shift.
[0008] Furthermore, the data processing method also includes: before obtaining transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, receiving a request instruction, wherein the request instruction carries at least identification information of the first object, and determining the first permission of the first object based on the identification information, thereby generating a handover instruction when it is detected that the first permission includes at least the operation permission of at least one preset folder corresponding to the current shift.
[0009] Furthermore, the data processing method also includes: before updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information, detecting whether the first value corresponding to the second type of information of the current shift is less than a preset threshold, and generating a handover confirmation instruction when the first value is less than the preset threshold, wherein the handover confirmation instruction is used to determine the handover object of the next shift.
[0010] Furthermore, the data processing method also includes: when the first value is less than a preset threshold, after generating a handover confirmation instruction, determining the second permission of the second object, wherein the second object is the object receiving the handover confirmation instruction, and when it is detected that the second permission includes at least the operation permission of at least one preset folder corresponding to the next shift, updating at least one preset folder corresponding to the next shift according to the first type information and the second type information.
[0011] Furthermore, the data processing method also includes: when the type of at least one item is the first type, updating the second type information corresponding to the first type of item to at least one preset folder corresponding to the next shift.
[0012] Furthermore, the data processing method also includes: when the type of at least one item is the second type, obtaining the transaction price of the second type item at the current moment, wherein the transaction price represents the transaction ratio between the first type item and the second type item, and calculating the product of the second numerical value corresponding to the second type information corresponding to the second type item and the transaction price to generate a first calculation result, thereby updating the first calculation result to at least one preset folder corresponding to the next shift.
[0013] Furthermore, the data processing method also includes: determining a third type of information of at least one item based on the purchase amount and sale amount of the at least one item in the current shift, wherein the third type of information is used to characterize the completed profit information or completed loss information of the at least one item; determining a fourth type of information of at least one item based on the purchase amount, sale amount and transaction price of the at least one item in the current shift, wherein the fourth type of information is used to characterize the total profit information or total loss information of the at least one item, and then calculating the difference between a fourth numerical value corresponding to the fourth type of information and a third numerical value corresponding to the third type of information, to generate a second calculation result, wherein the second calculation result is used to characterize the unfinished profit information or unfinished loss information of the at least one item transaction.
[0014] Furthermore, the data processing method also includes: obtaining fifth type information, wherein the fifth type information is used to characterize the handover status when the current shift is handed over to the next shift, and storing the fifth type information in the target file.
[0015] According to another aspect of an embodiment of the present invention, a data processing device is also provided, including: an acquisition module, used to acquire transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, wherein different shifts correspond to at least one different preset folder; a determination module, used to determine the first type of information and the second type of information corresponding to the current shift based on the transaction record information; an update module, used to update at least one preset folder corresponding to the next shift based on the first type of information and the second type of information.
[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned data processing method when it is run.
[0017] According to another aspect of an embodiment of the present invention, an electronic device is also provided, characterized in that the electronic device includes one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the programs are configured to execute the above-mentioned data processing method when running.
[0018] In an embodiment of the present invention, the transaction record information corresponding to the current shift is stored in at least one preset folder corresponding to the current shift, and the transaction record information corresponding to the current shift is obtained from at least one preset folder corresponding to the current shift, wherein different shifts correspond to at least one different preset folder, and the first type of information and the second type of information corresponding to the current shift are determined according to the transaction record information, thereby updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information.
[0019] In the above process, since the transaction record information will be stored in at least one preset folder corresponding to the current shift when each transaction occurs, and different shifts correspond to different at least one preset folder, therefore, when the current shift needs to be handed over, the transaction record information corresponding to the current shift can be automatically obtained from at least one preset folder corresponding to the current shift, and then the relevant transaction information corresponding to the current shift, that is, the first type of information and the second type of information, can be determined. This process does not require manual verification, which improves the handover efficiency. In addition, based on the first type of information and the second type of information, at least one preset folder of the next shift is updated, so that the relevant transaction information of the current shift can be automatically handed over to the next shift, further improving the handover efficiency and avoiding the instability of manual handover.
[0020] It can be seen that the solution provided in the present application achieves the purpose of automatically completing the handover process between the current shift and the next shift, thereby realizing the effect of improving the handover efficiency, and further solving the problem of poor handover efficiency in the prior art of manually completing the handover process between the current shift and the next shift. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0022] Figure 1 is a flow chart of an optional data processing method according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of an optional data processing method according to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of an optional data processing method according to an embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of an optional data processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] 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.
[0028] Example 1
[0029] According to an embodiment of the present invention, a data processing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] It should be noted that in this embodiment, electronic devices can be used as the execution subject of the data processing method in this embodiment, wherein the electronic devices include but are not limited to: notebook computers, desktop computers, smart tablet computers, smart phones and other devices.
[0031] Figure 1 is a flow chart of an optional data processing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0032] Step S102, obtaining transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift.
[0033] In an optional embodiment, different shifts correspond to different at least one preset folder. Wherein, when there are multiple shifts, each shift will have its own corresponding at least one preset folder, and each time a trader in the current shift makes a transaction, the electronic device will obtain the transaction record information of the transaction through the market data collection interface, and store it in at least one preset folder corresponding to the current shift, where the market data collection interface can be a program interface connected to an external trading software, used to obtain the latest market data and prices, and the market data at least includes the transaction record information performed by the trader on the external trading software.
[0034] Optionally, there may be multiple preset folders corresponding to the current shift, wherein the electronic device may store the transaction record information in different preset folders according to the type of transaction item. For example, when the transaction item is Euro, the electronic device stores the transaction record information related to Euro in preset file 1, and when the transaction item is Japanese Yen, the electronic device stores the transaction record information related to Euro in preset file 2. It should be noted that the transaction item may be other items, not limited to currency. For example, the transaction item may also be precious metals such as gold and silver, or other items such as oil and stocks. In addition, the electronic device may also store the transaction record information in different preset folders according to the different traders in the current shift. For example, the transaction record information operated by trader A is stored in preset folder A, and the transaction record information operated by trader B is stored in preset folder B. It should be noted that even if a shift may correspond to multiple preset folders, the preset folders corresponding to different shifts are different. For example, if the preset folders corresponding to the current shift may be preset folder 1, preset folder 2, and preset folder 3, the preset folders corresponding to other shifts will not be preset folder 1, preset folder 2, and preset folder 3.
[0035] In the above process, since the electronic device will store the transaction record information in at least one preset folder corresponding to the current shift when each transaction occurs, the electronic device can automatically obtain the transaction record information corresponding to the current shift without manual statistics, thereby achieving the effect of improving handover efficiency.
[0036] Step S104, determining the first type of information and the second type of information corresponding to the current shift according to the transaction record information.
[0037] In an optional embodiment, the first type of information is used to characterize the profit information or loss information corresponding to the current shift, wherein the first type of information includes at least: the total profit information or total loss information of at least one item, the completed profit information or completed loss information of at least one item, and the uncompleted profit information or uncompleted loss information of at least one item. In addition, the second type of information characterizes the difference between the purchase amount and the sale amount of at least one item corresponding to the current shift. For example, in the currency transaction of a financial institution, the US dollar can be used as the local currency in the transaction process, and the currency other than the US dollar can be used as the foreign currency in the transaction process, and the purchase amount of the currency and the sale amount of the currency are defined as exposure. Therefore, when at least one item is US dollars, euros or Hong Kong dollars, the corresponding local currency exposure is the difference between the purchase amount of the US dollar and the sale amount of the US dollar, and the corresponding foreign currency exposure is the difference between the purchase amount of the euro and the sale amount of the euro, and the difference between the purchase amount of the Hong Kong dollar and the sale amount of the Hong Kong dollar, wherein the foreign currency exposure and the local currency exposure are the second type of information.
[0038] Furthermore, based on the transaction record information, the electronic device can obtain the first type of information and the second type of information through calculation, and display them on a display device, thereby facilitating traders to view them in real time in order to make the next transaction decision.
[0039] It should be noted that in the above process, relevant transaction information of the current shift can be calculated based on the transaction record information without manual verification, thereby avoiding the risk of errors that may occur during manual calculation and helping to improve handover efficiency.
[0040] Step S106: updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information.
[0041] In an optional embodiment, at least one preset folder corresponding to the next shift is different from at least one preset folder corresponding to the current shift. In addition, when the electronic device updates at least one preset folder corresponding to the next shift, it can selectively select the first type of information and the second type of information that need to be handed over to the next shift for updating. For example, the unfinished profit information or unfinished loss information of at least one item in the current shift is added and calculated, and the calculation result is updated to at least one preset folder corresponding to the next shift. The total profit information or total loss information of at least one item in the current shift and the completed profit information or completed loss information of at least one item do not need to be updated to the at least one preset folder corresponding to the next shift.
[0042] It should be noted that in the above process, since the electronic device can update at least one preset folder for the next shift based on the first type of information and the second type of information, it can automatically hand over the relevant transaction information of the current shift to the next shift, thereby further improving the handover efficiency and avoiding the instability of manual handover.
[0043] Based on the scheme defined by steps S102 to S106, it can be known that in an embodiment of the present invention, the transaction record information corresponding to the current shift is stored in at least one preset folder corresponding to the current shift, and the transaction record information corresponding to the current shift is obtained from at least one preset folder corresponding to the current shift, wherein different shifts correspond to at least one different preset folder, and the first type of information and the second type of information corresponding to the current shift are determined according to the transaction record information, so as to update at least one preset folder corresponding to the next shift according to the first type of information and the second type of information.
[0044] It is easy to notice that in the above process, since the electronic device will store the transaction record information in at least one preset folder corresponding to the current shift when each transaction occurs, and different shifts correspond to at least one different preset folder, therefore, when the current shift needs to be handed over, the electronic device can automatically obtain the transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, and then determine the relevant transaction information corresponding to the current shift, that is, the first type of information and the second type of information. This process does not require manual verification, and achieves the effect of improving the handover efficiency. In addition, since the electronic device can also update at least one preset folder of the next shift based on the first type of information and the second type of information, that is, the relevant transaction information of the current shift is automatically handed over to the next shift, thereby further improving the handover efficiency and avoiding the instability of manual handover.
[0045] It can be seen that the solution provided by the present application achieves the purpose of automatically recovering the data in the database when an exception occurs in the main transaction, thereby avoiding a large amount of manual data modification and saving labor costs, and further solves the problem of inconsistent data in the database caused by the inability to automatically recover data if an exception occurs in the main transaction after the code is migrated from the host to the distributed platform.
[0046] In an optional embodiment, before obtaining transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, the electronic device may receive a request instruction, wherein the request instruction carries at least identification information of a first object, and determines a first permission of the first object based on the identification information, thereby generating a handover instruction when it is detected that the first permission includes at least operation permissions of at least one preset folder corresponding to the current shift.
[0047] Optionally, the first object mentioned above can be a trader of the current shift. When the current shift needs to be handed over, the trader of the current shift initiates a handover application. At this time, the electronic device will generate a request instruction based on the handover application, wherein the request instruction carries at least the identification information of the first object. For example, when the trader of the current shift initiates the handover application, fingerprint recognition or face recognition is required, and the request instruction generated by the electronic device will carry the fingerprint or face identification information accordingly. Furthermore, the electronic device can authenticate the first permission of the first object based on the identification information, and detect whether the first permission includes the operation permission of at least one preset folder corresponding to the current shift. If it does, the electronic device generates a handover instruction and proceeds to the next step. If it does not, a prompt message is generated to inform the first object that the permission is insufficient or the verification fails.
[0048] It should be noted that, in the above process, by configuring the first permission and verifying the permission of the first object of the preset folder corresponding to the current shift, the risk of information leakage can be effectively prevented, thereby achieving the effect of improving the security of the handover process.
[0049] In an optional embodiment, before the electronic device updates at least one preset folder corresponding to the next shift based on the first type of information and the second type of information, it will detect whether the first value corresponding to the second type of information of the current shift is less than a preset threshold, and generate a handover confirmation instruction when the first value is less than the preset threshold, wherein the handover confirmation instruction is used to determine the handover object of the next shift.
[0050] Optionally, when at least one item is US dollars, the corresponding second type of information is the difference between the US dollar purchase amount and the US dollar sales amount. If the preset threshold is set to US$1 million, the electronic device will only continue to generate a handover confirmation instruction when it detects that the difference between the US dollar purchase amount and the US dollar sales amount of the current shift is less than US$1 million. If the difference between the US dollar purchase amount and the US dollar sales amount of the current shift is greater than or equal to US$1 million, it means that the current shift does not meet the risk control requirements during the handover process, and the electronic device will not generate a handover confirmation instruction, and the trader of the current shift needs to continue to process the transaction.
[0051] It should be noted that, in the above process, by setting a preset threshold, the risk of fund loss during handover can be effectively reduced, thereby achieving the effect of improving fund security.
[0052] In an optional embodiment, when the first value is less than a preset threshold, the electronic device will also determine the second permission of the second object after generating a handover confirmation instruction, wherein the second object is the object receiving the handover confirmation instruction, and when it is detected that the second permission includes at least the operation permission of at least one preset folder corresponding to the next shift, the electronic device will update the at least one preset folder corresponding to the next shift according to the first type information and the second type information.
[0053] Optionally, after generating the handover confirmation instruction, the electronic device sends the handover confirmation instruction to the second object, wherein the second object may be a trader of the next shift. In addition, after the second object receives the handover confirmation instruction, the electronic device will also detect whether the second object has the operation authority of at least one folder corresponding to the successor shift. If it is confirmed that the second object has the operation authority of at least one folder corresponding to the successor shift, after the second object confirms the handover, the electronic device updates at least one preset folder corresponding to the next shift according to the first type information and the second type information.
[0054] It should be noted that, in the above process, by verifying the second permission of the second object, the risk in the handover process can be effectively controlled.
[0055] In an optional embodiment, after the second object confirms the handover, the electronic device will update at least one preset folder corresponding to the next shift according to the second type information of the current shift, wherein when the type of at least one item is the first type, the electronic device will update the second type information corresponding to the first type of item to at least one preset folder corresponding to the next shift. When the type of at least one item is the second type, the transaction price of the second type of item at the current moment is obtained, wherein the transaction price represents the transaction ratio of the first type of item to the second type of item, and the product of the second value corresponding to the second type information corresponding to the second type of item and the transaction price is calculated to generate a first calculation result, and then the first calculation result is updated to at least one preset folder corresponding to the next shift.
[0056] Optionally, taking the example of a financial institution conducting foreign exchange transactions, at least one item is a currency, wherein the U.S. dollar is the local currency in foreign exchange transactions, and other non-U.S. dollar and non-RMB currencies are foreign currencies in foreign exchange transactions, such as the euro, Hong Kong dollar, and Japanese yen. Foreign exchange transactions are usually transactions of foreign currencies against the U.S. dollar, such as the euro / dollar. In addition, during foreign exchange transactions, the purchase amount of a currency and the sale amount of a currency are usually defined as exposure. For example, Table 1 shows an exposure situation at the handover of a current shift:
[0057] Table 1
[0058]
[0059] Alternatively, foreign currency exposure can be determined as follows:
[0060] Foreign currency exposure = foreign currency purchase amount - foreign currency sale amount.
[0061] The local currency exposure can be determined as follows:
[0062] Local currency exposure = local currency purchase amount - local currency sale amount.
[0063] Optionally, as shown in Table 1, in the foreign exchange transaction of euro / dollar in the current shift, the selling amount of euro is 8000 and the buying amount is 10000, then the foreign currency exposure corresponding to euro is -2000; the selling amount of dollar is 12000 and the buying amount is 9000, then the local currency exposure corresponding to dollar is -3000. The calculation process of foreign exchange transaction of USD / HKD and JPY / USD is the same as that of foreign exchange transaction of EUR / USD, which will not be described in detail here. Since the second type of information is used to characterize the difference between the buying amount and the selling amount of at least one item corresponding to the current shift, in foreign exchange transaction, exposure is the second type of information.
[0064] Furthermore, in foreign exchange transactions, when at least one item is a foreign currency, the electronic device directly updates the foreign currency exposure of the current shift to at least one preset folder corresponding to the next shift to generate the foreign currency exposure of the next shift, and when at least one item is a local currency, the electronic device obtains the current currency exchange rate through the market data collection interface, and calculates the local currency exposure of the next shift according to the following formula, and then updates it to at least one preset folder corresponding to the next shift:
[0065] The local currency exposure of the next flight = the foreign currency exposure of the current flight * the exchange rate [foreign currency | local currency].
[0066] Among them, Table 2 is based on the exposure of the next flight generated according to Table 1, assuming that the current prices of EUR / USD, USD / HKD, and JPY / USD are 1.2, 8, and 1.15 respectively:
[0067] Table 2
[0068]
[0069] Through the above process, the electronic device can update at least one preset folder of the next shift according to the second type information of the current shift, thereby handing over the second type information of the current shift to the next shift and improving the handover efficiency.
[0070] In an optional embodiment, the electronic device may determine a third type of information of at least one item based on the purchase amount and the sale amount of the at least one item in the current shift, wherein the third type of information is used to characterize the completed profit information or the completed loss information of the at least one item, and determine a fourth type of information of the at least one item based on the purchase amount, the sale amount and the transaction price of the at least one item in the current shift, wherein the fourth type of information is used to characterize the total profit information or the total loss information of the at least one item, thereby calculating the difference between a fourth numerical value corresponding to the fourth type of information and a third numerical value corresponding to the third type of information, and generating a second calculation result, wherein the second calculation result is used to characterize the unfinished profit information or the unfinished loss information of the at least one item transaction.
[0071] Optionally, still taking the example of a financial institution conducting foreign exchange transactions, the completed profit information or completed loss information of each currency exposure can be expressed by realized profit and loss, the total profit information or total loss information can be expressed by total profit and loss, and the uncompleted profit information or uncompleted loss information can be expressed by unrealized profit and loss. Among them, the realized profit and loss can be determined by the following formula:
[0072] Realized profit or loss = MIN (foreign currency purchase amount, foreign currency sale amount) * (local currency purchase amount / foreign currency sale amount - local currency sale amount / foreign currency purchase amount).
[0073] The total profit and loss can be determined as follows:
[0074] Total profit and loss = (foreign currency purchase amount - foreign currency sale amount) * exchange rate [foreign currency | local currency] + local currency purchase amount - local currency sale amount.
[0075] Unrealized profit and loss can be determined by the following formula:
[0076] Unrealized profit and loss = total profit and loss - realized profit and loss.
[0077] Assume that the three transactions in Table 3 occurred during the current shift:
[0078] Table 3
[0079]
[0080] The exposure in the current shift is shown in Table 4:
[0081] Table 4
[0082] Currency Pairs Foreign currency purchase amount Foreign currency sales amount Foreign currency exposure Amount of local currency purchased Amount of sales in local currency Local currency exposure EUR / USD 2500 4000 -1500 5000 3000 2000 USD / HKD 0 700 -700 100 0 100
[0083] Optionally, if the current real-time price of EUR / USD is 1.1, then the realized profit and loss of EUR / USD in the current shift is:
[0084] min(|4000|,|2500|)*(|5000 / 4000|-|3000 / 2500|)=125; total profit and loss is: (2500-4000)*1.1+5000-3000=750; unrealized profit and loss is: 750-125=625.
[0085] If the current real-time price of USD / HKD is 7.5, then the realized profit and loss of USD / HKD for this flight is: min(|-700|,|0|)*(|100 / -700|-|0 / 0|)=0, the total profit and loss is: (0-700)*(1 / 7.5)+(100-0)=6.67, and the unrealized profit and loss is 6.67-0=6.67.
[0086] Furthermore, the electronic device may also sum the profit information or loss information of all currency exposures of the current shift to obtain the total profit information or loss information of the current shift. For example, based on the content of Table 4, the total realized profit and loss of the current shift is 125+0=125, the total profit and loss is 750+6.67=756.67, and the unrealized profit and loss is 625+6.67=631.67. In addition, when updating at least one preset folder corresponding to the next shift, the electronic device may convert all unrealized profit and loss into all realized profit and loss.
[0087] Through the above process, the electronic device can update at least one preset folder of the next shift according to the first type of information of the current shift, thereby handing over the first type of information of the current shift to the next shift and improving the handover efficiency.
[0088] In an optional embodiment, the electronic device may also obtain fifth type information, wherein the fifth type information is used to characterize the handover status when the current shift is handed over to the next shift, and store the fifth type information in the target file.
[0089] Optionally, the fifth type of information includes at least: current shift identification, next shift identification, first object identity information, second object identity information, handover application time, and handover confirmation time. The electronic device can read the fifth type of information from the target file at any time so that the staff can check the handover status.
[0090] In addition, the electronic device can also store the first type of information and the second type of information of the current shift in the target file at each handover, and calculate the profit information or loss information of the current shift within the preset time length based on the first type of information and the second type of information according to the preset time length, thereby realizing the performance evaluation of the trader corresponding to the current shift.
[0091] Figure 2is a flow chart of an optional data processing method according to an embodiment of the present invention. Figure 2 As shown, after a transaction occurs, the electronic device stores the transaction record information in at least one preset folder corresponding to the current shift, and the specific location can be the item table in at least one preset folder, which is used for item management of the current shift. When a handover is required, the electronic device generates the first type of information and the second type of information of the current shift according to the transaction record information in the item table, and stores them in the handover item table. In addition, after the handover is completed, the electronic device also generates the fifth type of information and stores it in the handover status information table, wherein the handover status information table and the handover item table are both located in the target file.
[0092] From the above content, it can be seen that the solution provided in the embodiment of the present application can not only improve the handover efficiency, but also record the handover status and the profit or loss information of each shift, which is conducive to handover management and achieves the effect of reducing labor costs.
[0093] in addition, Figure 3 FIG. 4 shows a flow chart of an optional data processing method according to an embodiment of the present invention. Figure 3 As shown, when the first trader in shift 1 initiates a shift handover, the electronic device will determine the authority of the first trader in order to verify whether the first trader is a trader in the current shift, and then determine whether the status of the current shift meets the risk control requirements through a preset threshold. After confirming that there is no risk, the second trader in the next shift will review and confirm. At this time, the electronic device will determine the authority of the second trader in order to verify whether the second trader is a trader in the next shift. After confirming that there is no error, the electronic device will calculate the profit information or loss information based on the transaction record information of the item and complete the handover.
[0094] In the above process, since the electronic device will store the transaction record information in at least one preset folder corresponding to the current shift when each transaction occurs, and different shifts correspond to at least one different preset folder, therefore, when the current shift needs to be handed over, the electronic device can automatically obtain the transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, and then determine the relevant transaction information corresponding to the current shift, that is, the first type of information and the second type of information. This process does not require manual verification, and achieves the effect of improving the handover efficiency. In addition, since the electronic device can also update at least one preset folder of the next shift based on the first type of information and the second type of information, that is, the relevant transaction information of the current shift is automatically handed over to the next shift, thereby further improving the handover efficiency and avoiding the instability of manual handover.
[0095] Example 2
[0096] According to an embodiment of the present invention, there is also provided an embodiment of a data processing device, wherein: Figure 4 is a schematic diagram of an optional data processing device according to an embodiment of the present invention, such as Figure 4 As shown, the processing device includes: an acquisition module 401, a determination module 403 and an update module 405.
[0097] Among them, the acquisition module 401 is used to obtain the transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, wherein different shifts correspond to at least one different preset folder; the determination module 403 is used to determine the first type of information and the second type of information corresponding to the current shift according to the transaction record information; the update module 405 is used to update at least one preset folder corresponding to the next shift according to the first type of information and the second type of information.
[0098] It should be noted that the acquisition module 401, determination module 403 and update module 405 correspond to steps S102 to S106 in the above embodiment, and the examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment 1.
[0099] Optionally, the first type of information is used to represent the profit information or loss information corresponding to the current shift, and the second type of information is used to represent the difference between the purchase amount and the sale amount of at least one item corresponding to the current shift.
[0100] Optionally, the data processing device further includes: a receiving module, a first determining module, and a generating module. The receiving module is used to receive a request instruction, wherein the request instruction carries at least identification information of the first object; the first determining module is used to determine the first permission of the first object according to the identification information; and the generating module is used to generate a handover instruction when it is detected that the first permission includes at least the operation permission of at least one preset folder corresponding to the current shift.
[0101] Optionally, the data processing device further includes: a detection module and a first generation module. The detection module is used to detect whether the first value corresponding to the second type of information of the current shift is less than a preset threshold value; the first generation module is used to generate a handover confirmation instruction when the first value is less than the preset threshold value, wherein the handover confirmation instruction is used to determine the handover object of the next shift to be handed over.
[0102] Optionally, the data processing device further includes: a second determination module and a first acquisition module. The second determination module is used to determine the second permission of the second object, wherein the second object is the object receiving the handover confirmation instruction; the first acquisition module is used to acquire the transaction record information corresponding to the current shift from the at least one preset folder corresponding to the current shift when it is detected that the second permission includes at least the operation permission of at least one preset folder corresponding to the next shift.
[0103] Optionally, the above-mentioned updating module also includes: a first updating module, which is used to update the second type information corresponding to the first type of items to at least one preset folder corresponding to the next shift when the type of at least one item is the first type.
[0104] Optionally, the update module further includes: a second acquisition module, a calculation module and a second update module, wherein the second acquisition module is used to obtain the transaction price of the second type of item at the current moment when the type of at least one item is the second type, wherein the transaction price represents the transaction ratio between the first type of item and the second type of item; the calculation module is used to calculate the product of the second numerical value corresponding to the second type information corresponding to the second type of item and the transaction price to generate a first calculation result; the second update module is used to update the first calculation result to at least one preset folder corresponding to the next shift.
[0105] Optionally, the above-mentioned determination module further includes: a third determination module, a fourth determination module and a first calculation module. The third determination module is used to determine the third type of information of at least one item based on the purchase amount and the sale amount of the at least one item in the current shift, wherein the third type of information is used to characterize the completed profit information or the completed loss information of the at least one item; the fourth determination module is used to determine the fourth type of information of at least one item based on the purchase amount, the sale amount and the transaction price of the at least one item in the current shift, wherein the fourth type of information is used to characterize the total profit information or the total loss information of the at least one item; the first calculation module is used to calculate the difference between the fourth value corresponding to the fourth type of information and the third value corresponding to the third type of information, and generate a second calculation result, wherein the second calculation result is used to characterize the unfinished profit information or the unfinished loss information of the at least one item transaction.
[0106] Optionally, the update module further includes: a third acquisition module and a storage module. The third acquisition module is used to acquire the fifth type of information, wherein the fifth type of information is used to characterize the handover status when the current shift is handed over to the next shift; and the storage module is used to store the fifth type of information in the target file.
[0107] Example 3
[0108] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned data processing method when it is run.
[0109] Example 4
[0110] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned data processing method when running.
[0111] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0112] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0117] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that: include: Acquire transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, wherein different shifts correspond to different at least one preset folder; Determine the first type of information and the second type of information corresponding to the current shift according to the transaction record information, wherein the first type of information is used to represent the profit information or loss information corresponding to the current shift, and the second type of information is used to represent the difference between the purchase amount and the sale amount of at least one item corresponding to the current shift; Updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information at least includes: When the type of the at least one item is the first type, the second type information corresponding to the first type of item is updated to at least one preset folder corresponding to the next shift, When the type of the at least one item is the second type, a transaction price of the item of the second type at a current moment is obtained, wherein the transaction price represents a transaction ratio between the item of the first type and the item of the second type. calculating the product of the second value corresponding to the second type of information corresponding to the second type of item and the transaction price to generate a first calculation result, The first calculation result is updated to at least one preset folder corresponding to the next shift.
2. The method according to claim 1, characterized in that Before acquiring the transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, the method further includes: Receiving a request instruction, wherein the request instruction carries at least identification information of the first object; Determine a first permission of the first object according to the identification information; When it is detected that the first authority at least includes the operation authority of at least one preset folder corresponding to the current shift, a handover instruction is generated.
3. The method according to claim 1, characterized in that Before updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information, the method further includes: Detecting whether a first value corresponding to the second type of information of the current shift is less than a preset threshold; When the first value is less than the preset threshold, a handover confirmation instruction is generated, wherein the handover confirmation instruction is used to determine the handover object of the next shift.
4. The method according to claim 3, characterized in that When the first value is less than the preset threshold, after generating the handover confirmation instruction, the method includes: Determining a second permission of a second object, wherein the second object is an object that receives the handover confirmation instruction; When it is detected that the second permission includes at least the operation permission of at least one preset folder corresponding to the next shift, at least one preset folder corresponding to the next shift is updated according to the first type information and the second type information.
5. The method according to claim 1, characterized in that When determining the first type of information and the second type of information corresponding to the current shift according to the transaction record information, the method further includes: Determining third type information of the at least one item according to the purchase amount and the sale amount of the at least one item in the current shift, wherein the third type information is used to represent completed profit information or completed loss information of the at least one item; Determine fourth type information of the at least one item according to the purchase amount, the sale amount and the transaction price of the at least one item in the current shift, wherein the fourth type information is used to represent total profit information or total loss information of the at least one item; Calculate the difference between a fourth numerical value corresponding to the fourth type of information and a third numerical value corresponding to the third type of information to generate a second calculation result, wherein the second calculation result is used to characterize the uncompleted profit information or uncompleted loss information of the at least one item transaction.
6. The method according to claim 1, characterized in that When updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information, the method further includes: Acquire fifth type of information, wherein the fifth type of information is used to characterize a handover status when the current shift is handed over to the next shift; The fifth type of information is stored in a target file.
7. A data processing device, characterized in that: include: An acquisition module, used for acquiring transaction record information corresponding to the current shift from at least one preset folder corresponding to the current shift, wherein different shifts correspond to different at least one preset folder; a determination module, configured to determine first type information and second type information corresponding to the current shift according to the transaction record information, wherein the first type information is used to represent profit information or loss information corresponding to the current shift, and the second type information is used to represent the difference between a purchase amount and a sale amount of at least one item corresponding to the current shift; An updating module, used for updating at least one preset folder corresponding to the next shift according to the first type of information and the second type of information, the updating module at least comprising: a first updating module, configured to update the second type information corresponding to the first type of items to at least one preset folder corresponding to the next shift when the type of the at least one item is the first type; a second acquisition module, a calculation module and a second update module, wherein the second acquisition module is used to obtain the transaction price of the second type of item at the current moment when the type of the at least one item is the second type, the transaction price representing the transaction ratio of the first type of item to the second type of item when the item is traded; the calculation module is used to calculate the product of a second numerical value corresponding to the second type information corresponding to the second type of item and the transaction price to generate a first calculation result; and the second update module is used to update the first calculation result to at least one preset folder corresponding to the next shift.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the data processing method described in any one of claims 1 to 6 when executed.
9. An electronic device, characterized in that: The electronic device comprises one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the data processing method described in any one of claims 1 to 6 when run.
Citation Information
Patent Citations
File processing method and device, equipment and storage medium
CN114785769A