CN112950370A - Service processing method, device, equipment and storage medium - Google Patents

Service processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112950370A
CN112950370A CN202110213792.0A CN202110213792A CN112950370A CN 112950370 A CN112950370 A CN 112950370A CN 202110213792 A CN202110213792 A CN 202110213792A CN 112950370 A CN112950370 A CN 112950370A
Authority
CN
China
Prior art keywords
service
file
preset
processed
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110213792.0A
Other languages
Chinese (zh)
Inventor
夏杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN202110213792.0A priority Critical patent/CN112950370A/en
Publication of CN112950370A publication Critical patent/CN112950370A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a service processing method, a device, equipment and a storage medium, which relate to the technical field of data transmission, and the method comprises the following steps: when a service processing instruction is received, determining a to-be-processed service corresponding to the service processing instruction; searching a corresponding reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; acquiring a target file corresponding to a service to be processed from a preset server based on a target reading interface; and executing the business operation according to the target file to obtain a business file, and feeding back the business file to a preset server based on the reading interface. When the business operation is executed, the corresponding reading interface is called to obtain the relevant file according to the specific processing business, so that the flexible reading of the file is realized, and the process optimization of the business execution is realized. And a single service is used as a configuration object, so that the services are isolated from each other, when an error occurs in reading, other services cannot be influenced, and the overall stability of the system is improved.

Description

Service processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a service.
Background
In banking, a business system needs to read and write thousands of files every day, and a large amount of file interaction needs to be performed among subsystems. With the increase of traffic, efficient traffic processing is a continuously pursued goal. As a basic flow of service processing, the flexibility of file transmission can accelerate the process of service processing. Therefore, how to improve the flexibility of file transmission in the service processing is an urgent technical problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a service processing method, a service processing device, service processing equipment and a storage medium, and aims to solve the technical problem that the flexibility of file transmission in service processing is not high in the prior art.
In order to achieve the above object, the present invention provides a service processing method, which includes the following steps:
when a service processing instruction is received, determining a to-be-processed service corresponding to the service processing instruction;
searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface;
acquiring a target file corresponding to a service to be processed from a preset server based on a target reading interface;
and executing the business operation according to the target file to obtain a business file, and feeding back the business file to a preset server based on the target reading interface.
Optionally, based on the target reading interface, obtaining a target file corresponding to the service to be processed from a preset server, including:
acquiring path information corresponding to a service to be processed;
traversing the data under the path information based on the remote reading interface, and judging whether file data exists in the traversed data;
and if the file data exists, downloading the file data to a local directory to obtain the target file.
Optionally, the executing the service operation according to the target file to obtain the service file, and feeding back the service file to the preset server based on the target reading interface includes:
reading a target file in a local directory to obtain a file to be processed;
analyzing the file to be processed to obtain analyzed data, and merging the data with the same file name in the analyzed data to obtain the data to be processed;
and generating a service file according to the data to be processed, and uploading the service file to a preset server based on a remote reading interface.
Optionally, based on the target reading interface, obtaining a target file corresponding to the service to be processed from a preset server, including:
acquiring path information corresponding to a service to be processed;
mounting data under the path information based on the hanging reading interface to obtain mapping data;
and reading the mapping data to obtain a target file.
Optionally, the executing the service operation according to the target file to obtain the service file, and feeding back the service file to the preset server based on the target reading interface includes:
analyzing the target file to obtain analysis data;
merging the data with the same file name in the analyzed data to obtain data to be processed;
and generating a service file according to the data to be processed, and storing the service file into a preset directory in a preset server based on the hanging reading interface.
Optionally, searching for a corresponding target reading interface from the preset reading interfaces according to the service to be processed and the preset configuration table, including:
acquiring service operation information from a preset operation memory, and judging whether a service to be processed is in operation or not according to the service operation information;
when the service to be processed is not in operation, searching corresponding identification information from a preset configuration table according to the service to be processed;
and searching a corresponding target reading interface from the preset reading interfaces according to the identification information.
Optionally, before searching for the corresponding target reading interface from the preset reading interface according to the service to be processed and the preset configuration table, the method further includes:
when a configuration modification instruction is received, determining an interface to be adjusted and a service to be adjusted according to the configuration modification instruction;
determining identification information corresponding to an interface to be adjusted according to a preset interface information table;
modifying a preset configuration table according to the identification information and the service to be adjusted to obtain a configuration correction table;
correspondingly, searching a corresponding reading interface from the preset reading interfaces according to the service to be processed and the preset configuration table comprises:
and searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and the configuration correction table.
In addition, to achieve the above object, the present invention further provides a service processing apparatus, including:
the receiving module is used for determining the to-be-processed service corresponding to the service processing instruction when the service processing instruction is received;
the selection module is used for determining a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface;
the reading module is used for acquiring a target file corresponding to the service to be processed from a preset server based on a target reading interface;
and the execution module is used for executing the business operation according to the target file, acquiring the business file and feeding the business file back to the preset server based on the target reading interface.
In addition, to achieve the above object, the present invention further provides a service processing device, where the service processing device includes: a memory, a processor and a business processing program stored on the memory and executable on the processor, the business processing program when executed by the processor implementing the steps of the business processing method as above.
In addition, in order to achieve the above object, the present invention further provides a storage medium, on which a service processing program is stored, and the service processing program, when executed by a processor, implements the steps of the service processing method as above.
In the invention, when a service processing instruction is received, a to-be-processed service corresponding to the service processing instruction is determined; searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; acquiring a target file corresponding to a service to be processed from a preset server based on a target reading interface; and executing the business operation according to the target file to obtain a business file, and feeding back the business file to a preset server based on the target reading interface. When the business operation is executed, the corresponding reading interface is called to obtain the relevant file according to the specific processing business, so that the flexible reading of the file is realized, and the process optimization of the business execution is realized. And a single service is used as a configuration object, so that the services are isolated from each other, when an error occurs in reading, other services cannot be influenced, and the overall stability of the system is improved.
Drawings
Fig. 1 is a schematic structural diagram of a service processing device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a service processing method according to the present invention;
fig. 3 is a flowchart illustrating a service processing method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a service processing method according to a third embodiment of the present invention;
fig. 5 is a block diagram of a first embodiment of a service processing apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a service processing device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the service processing device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of business processing apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in FIG. 1, memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a service processing program.
In the service processing device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting user equipment; the service processing device calls the service processing program stored in the memory 1005 through the processor 1001, and executes the service processing method provided by the embodiment of the present invention.
Based on the above hardware structure, an embodiment of the service processing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the service processing method according to the present invention.
In a first embodiment, the service processing method includes the following steps:
step S10: and when receiving the service processing instruction, determining the to-be-processed service corresponding to the service processing instruction.
It should be understood that the main execution body of this embodiment is the service processing device, the service processing device has functions of data processing, data communication, program operation, and the like, and the service processing device may be a computer device such as a computer or a server. And after receiving the service processing instruction, the service execution system acquires a corresponding basic data file based on the service processing instruction so as to execute a corresponding service process. Of course, other devices with similar functions may be used, and the present embodiment is not limited thereto.
It should be noted that the service processing instruction refers to an instruction for triggering a related service in the service execution system. Taking TA (Transfer Agent) service as an example, the service processing instruction may be a transaction settlement instruction, which is used to trigger a settlement service for transaction data generated by a transaction account on the same day. Generally, the business processing instruction is initiated by a system administrator or is initiated by an execution system at regular time according to a set time condition.
It can be understood that the service to be processed refers to a specific service corresponding to the service processing instruction, and the execution system may determine the service to be processed according to the originating point of the service processing instruction. The execution system can be provided with a plurality of service modules, each module corresponds to different services, and can also be used for initiating a service processing instruction. If the TA module initiates a service processing instruction, the corresponding service to be processed is the TA service.
In this embodiment, the service processing instruction may further carry a service identifier for identifying a service type, where the service identifier may be a preset service number; for example: service a corresponds to service identity 001, service B corresponds to service identity 002, and service C corresponds to service identity 003. In a specific implementation, step S10 may specifically be: when a service processing instruction is received, acquiring a service identifier in the service processing instruction; determining a corresponding service to be processed from a preset service comparison table according to the service identifier; the preset service table includes the corresponding relationship between each service to be processed and each service identifier.
Step S20: searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface.
In the embodiment, in order to improve the flexibility of reading the file, the execution system provides a plurality of preset reading interfaces for each service. When the execution system executes different services, different reading interfaces can be adopted to read the basic data file, so that the efficiency of service processing is improved. The preset reading interface comprises a remote reading interface and a hanging reading interface; the remote reading interface is an LFS interface, and the hanging reading interface is a GFS interface.
It should be noted that the GFS interface is a preset data reading interface based on a data mounting form; the LFS interface is a preset remote data reading interface, and can realize data reading across a machine room. The system administrator can set a default reading interface for each service to be processed and write the configuration information into a preset configuration table. When the to-be-processed service corresponding to the service processing instruction is determined, the preset configuration data can be read from the preset configuration table, so that the corresponding reading interface is confirmed.
For example, if the file reading interface of the original TA service is a GFS interface. The administrator can modify the preset configuration table in advance, and set the file reading interface corresponding to the TA service as the LFS interface. When the modified TA service needs to be executed, the execution system reads the file by using the LFS interface. In addition, if the execution system adopts the LFS interface to read the file, an error occurs. The system administrator can also set the corresponding file reading interface back to the GFS interface, so that the back-off is fast and the execution flow of other services is not influenced.
It should be understood that in the execution system, the traffic data flow is large, and each traffic flow relates to a file reading process. The problems of large workload, easy influence on normal operation of services and low system stability exist in the overall adjustment of the file reading mode of the system. Therefore, the embodiment starts from an individual service, and configures a file reading mode for each service individually, so that each service operates independently without influence, and even if a single service has a problem, other services cannot be influenced, thereby improving the stability of the system. When executing each service, the execution system can realize the parallel of the LFS mode and the GFS mode.
Step S30: and acquiring a target file corresponding to the service to be processed from a preset server based on the target reading interface.
It should be noted that the preset server is a file management server. The transaction data is typically stored in a file form in a file management server, forming a base data file. In addition, for convenience of unified management, the basic data files of different services have different storage spaces, and the storage spaces are usually fixed.
In this embodiment, in order to ensure that the execution system can read the same file regardless of which read interface is used, the file system used in the bottom layer is the same for the LFS interface or the GFS interface (for example, the directory 192.168.1.1/wls/sky/yyymmdd is remote).
The target file is a basic data file required by the service type during processing; for example, if the service type is TA service, the target file may be a transaction data file or the like. The preset server is a server for storing the transaction data file, and a file management system can be carried on the preset server to manage the transaction data file.
Step S40: and executing the business operation according to the target file to obtain a business file, and feeding back the business file to a preset server based on the target reading interface.
After the execution system acquires the target file, the execution system can execute the relevant business operation to complete the corresponding business process. The service file is a file generated after the service operation is performed, such as summarized data.
Taking the TA service as an example, after the execution system acquires the transaction data file, analyzing the transaction data and generating a corresponding TA file; and feeding back the TA file to finish the service processing. The TA file may contain settlement data of the corresponding service: such as transaction amount, etc. Generating the TA file according to the data to be processed refers to settling the transaction data according to a preset service processing rule, and generating the TA file according to the settlement data. For example, account A is counted for transaction amounts within 8:00 to 17:00 of the day to obtain a total transaction amount. Of course, the business process may also be other business processes. The present solution is not limited in this regard.
In the first embodiment, when a service processing instruction is received, a to-be-processed service corresponding to the service processing instruction is determined; searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; acquiring a target file corresponding to a service to be processed from a preset server based on a target reading interface; and executing the business operation according to the target file to obtain a business file, and feeding back the business file to a preset server based on the target reading interface. In this embodiment, when the service operation is executed, the corresponding reading interface is called according to the specific processing service to obtain the relevant file, so that flexible reading of the file is realized, and process optimization of service execution is realized. And a single service is used as a configuration object, so that the services are isolated from each other, when an error occurs in reading, other services cannot be influenced, and the overall stability of the system is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the service processing method according to the present invention, and the second embodiment of the service processing method according to the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, step S30 includes:
step S301: and acquiring path information corresponding to the service to be processed.
It is understood that the path information refers to the storage address of the basic data file in the file management server; for example, namespace, path:/wls/wls 81/lbf/file/upload/17/yyyyyMMdd/. The file management server stores the business related data and stores the data in a file form. And when the execution server executes the relevant business process, acquiring the basic data file from the file management server according to the path information.
According to the first embodiment, in order to facilitate uniform management, the basic data files of different services have different storage spaces, and the storage spaces are usually fixed. Therefore, the path information that each service needs to access during execution is also fixed. When the execution system executes the service flow, the corresponding path information can be directly obtained from the preset configuration information.
Step S302: and traversing the data under the path information based on the remote reading interface, and judging whether file data exists in the traversed data.
It should be noted that the remote reading interface is an LFS interface, and the LFS interface can realize remote reading of data. And the execution system accesses the remote file management server through the corresponding path information so as to read the corresponding file. During reading, whether related files exist in the corresponding path or not needs to be judged; so as to feed back the flow information.
Step S303: and if the file data exists, downloading the file data to a local directory to obtain the target file.
It is understood that, if file data exists, the corresponding file data is downloaded to the local directory for operation. If the file data does not exist, feeding back 'no data' information to the system management to determine the subsequent process.
Based on the remote reading interface, the specific steps of step S40 are: and reading the target file in the local directory to obtain a file to be processed. And analyzing the file to be processed to obtain analyzed data, and combining the data with the same file name in the analyzed data to obtain the data to be processed. And generating a service file according to the data to be processed, and uploading the service file to the preset server based on a remote reading interface.
The transaction data file may include transaction data such as transaction time, transaction account, transaction amount, and the like. In the above step, analyzing the file to be processed to obtain the analysis data refers to reading the data in the file to be processed to obtain the transaction data in the transaction data file. For a specific business process, reference may be made to the contents of the first embodiment.
In the second embodiment, step S30 may further include:
step S301: and acquiring path information corresponding to the service to be processed.
In order to ensure that the correct file can be read, the file system used at the bottom layer is the same for the LFS interface or the GFS interface. Therefore, the way of confirming the path information can be referred to the above.
Step S304: and mounting the data under the path information based on the hanging reading interface to obtain mapping data.
It should be noted that the hook reading interface is a GFS interface, and the GFS interface can read and operate the hook data. Therefore, if a corresponding basic data file is to be acquired based on the GFS interface and a service operation is to be performed, it is necessary to ensure that the file management server has been correctly mounted to the service processing device. Of course, this operation may be done in advance by a system administrator.
Step S305: and reading the mapping data to obtain a target file.
It is understood that after the data mount is completed, the execution server may obtain the mapping file of the file management system and may operate on the mapping file. The file system in the file management system can feed back the mapping file to the execution system, and when the execution system executes the operation on the mapping file, the data in the file system is correspondingly and directly operated, so that the execution system can directly read the mapping data to obtain the target file.
Hooking the reading interface, wherein the step S40 specifically comprises the following steps: analyzing the target file to obtain analysis data; merging the data with the same file name in the analyzed data to obtain data to be processed; and generating a service file according to the data to be processed, and storing the service file to a preset directory in the preset server based on an articulated reading interface.
In this embodiment, when performing a business operation on a read basic data file based on the GFS interface, the specific flow is substantially the same as the steps involved in performing the business operation based on the LFS interface, and therefore, the above-mentioned contents can be referred to for related matters.
As can be seen from the above, although the LFS-based interface and the GFS-based interface involve different file reading processes, the similarity between the service execution processes is high. Therefore, when the system is modified, the required work is not large, so that the development workload is reduced, and the probability of problems occurring when the system is adjusted is also reduced to a certain extent.
In the second embodiment, the execution system may use the LFS interface to read the file related to the service processing in a remote reading manner, or use the GFS interface to directly read the file related to the service processing in a data mounting manner, so that the file reading process in the service processing process is more flexible. Meanwhile, the processing logics of the two modes are similar, even if the execution system switches different reading interfaces to read, the processing logics are not large when the business processing is specifically executed, so that the development workload is reduced, and the risk of switching the reading interfaces is reduced to a certain extent.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the service processing method according to the present invention, and the third embodiment of the service processing method according to the present invention is proposed based on the first embodiment and the second embodiment. The present embodiment is explained based on the first embodiment.
In the third embodiment, step S20 includes:
step S201: and acquiring service operation information from a preset operation memory, and judging whether the service to be processed is in operation or not according to the service operation information.
It should be noted that the service operation information includes information of services being executed in the execution system. Which may be a corresponding service identification, or a service name. If the service operation information contains the service identifier of a certain service, it indicates that the service is being executed. For example, if the service identifier corresponding to the TA service is 010, if the service operation information includes the service identifier 010, it indicates that the TA service is being executed.
In order to avoid interface collision, when a service processing instruction is received, it is also necessary to determine whether the same type of service is running. For the same service, it may be initiated for different accounts, so there may be service processing instructions of the same service type at the same time.
Step S202: and when the service to be processed is not in operation, searching corresponding identification information from a preset configuration table according to the service to be processed.
It should be noted that the preset configuration table has identification information for identifying the interface corresponding to each service. For example, in the present embodiment, the reading interface employs both a GFS interface and an LFS interface. Thus, the content in the configuration information may be: service 1, identity a, service 2; identification A; service 3, identity B.
Step S203: and searching a corresponding target reading interface from the preset reading interfaces according to the identification information.
It will be appreciated that after the identification information is determined, the corresponding read interface may be determined. For example, in the present embodiment, with the LFS interface as the preferred interface, the identification information may include ON and OFF; wherein ON corresponds to LFS interface and OFF corresponds to GFS interface. If the identifier a corresponding to the service 1 is ON, it indicates that the reading interface corresponding to the service 1 is an LFS interface.
In addition, in order to ensure the flexibility of the file reading process in the business processing, the embodiment can also modify the configuration table and adjust the reading interface corresponding to each business. For example, the identification information corresponding to the service 3 is modified from OFF to ON.
In specific implementation, when a configuration modification instruction is received, determining an interface to be adjusted and a service to be adjusted according to the configuration modification instruction; determining identification information corresponding to an interface to be adjusted according to a preset interface information table; and modifying a preset configuration table according to the identification information and the service to be adjusted to obtain a configuration correction table.
It should be noted that, the configuration modification instruction may include relevant fields for identifying the interface to be adjusted and the service to be adjusted. When receiving the configuration modification instruction, the relevant fields can be extracted from the configuration modification instruction so as to determine the interface to be adjusted and the service to be adjusted. For example, the configuration modification instruction includes "service 1" and "ON" fields, where service 1 may be the number 001, etc. The configuration instruction indicates that the reading interface corresponding to the service 1 needs to be modified from the GFS interface to the LFS interface.
It should be noted that, when the preset configuration table is modified, it is also necessary to determine whether the corresponding service flow is in progress, so as to avoid an error of the currently running service flow, and the specific determination method refers to the foregoing. After the modification is successful, a configuration correction table is obtained, and accordingly, the step S20 needs to be adjusted as follows: and searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and the configuration correction table.
In the third embodiment, a preset configuration table is used to set the reading interface corresponding to each service, so as to adjust the reading interface. And when the relevant processing of the preset configuration table is involved, the information of the operated service in the execution system is firstly inquired, so that the influence on the operated service is avoided, and the stability of the system is improved.
In addition, an embodiment of the present invention further provides a storage medium, where a service processing program is stored on the storage medium, and the service processing program, when executed by a processor, implements the steps of the service processing method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 5, fig. 5 is a block diagram of a first embodiment of the service processing apparatus according to the present invention.
In this embodiment, the service processing apparatus includes:
the receiving module 10 is configured to determine, when receiving the service processing instruction, a to-be-processed service corresponding to the service processing instruction.
A selecting module 20, configured to search a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface.
The reading module 30 is configured to obtain a target file corresponding to the service to be processed from a preset server based on the target reading interface.
And the execution module 40 is configured to execute the service operation according to the target file, obtain the service file, and feed back the service file to the preset server based on the target reading interface.
In this embodiment, when receiving a service processing instruction, a receiving module determines a to-be-processed service corresponding to the service processing instruction; the selection module searches a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the reading module acquires a target file corresponding to the service to be processed from a preset server based on a target reading interface; and the execution module executes the business operation according to the target file to obtain a business file, and feeds the business file back to the preset server based on the target reading interface. In this embodiment, when the service operation is executed, the corresponding reading interface is called according to the specific processing service to obtain the relevant file, so that flexible reading of the file is realized, and process optimization of service execution is realized. And a single service is used as a configuration object, so that the services are isolated from each other, when an error occurs in reading, other services cannot be influenced, and the overall stability of the system is improved.
In an embodiment, the reading module 30 is further configured to obtain path information corresponding to the service to be processed; traversing the data under the path information based on the remote reading interface, and judging whether file data exists in the traversed data; and if the file data exists, downloading the file data to a local directory to obtain the target file.
In an embodiment, the execution module 40 is further configured to read a target file in the local directory, and obtain a file to be processed; analyzing the file to be processed to obtain analyzed data, and merging the data with the same file name in the analyzed data to obtain the data to be processed; and generating a service file according to the data to be processed, and uploading the service file to a preset server based on a remote reading interface.
In an embodiment, the reading module 30 is further configured to obtain path information corresponding to the service to be processed; mounting data under the path information based on the hanging reading interface to obtain mapping data; and reading the mapping data to obtain a target file.
In an embodiment, the execution module 40 is further configured to parse the target file to obtain parsed data; merging the data with the same file name in the analyzed data to obtain data to be processed; and generating a service file according to the data to be processed, and storing the service file into a preset directory in a preset server based on the hanging reading interface.
In an embodiment, the selecting module 20 is further configured to obtain service operation information from a preset operation memory, and determine whether a service to be processed is in operation according to the service operation information; when the service to be processed is not in operation, searching corresponding identification information from a preset configuration table according to the service to be processed; and searching a corresponding target reading interface from the preset reading interfaces according to the identification information.
In an embodiment, the service processing apparatus further includes a modification module; the correction module is used for determining an interface to be adjusted and a service to be adjusted according to the configuration modification instruction when the configuration modification instruction is received; determining identification information corresponding to an interface to be adjusted according to a preset interface information table; and modifying the preset configuration table according to the identification information and the service to be adjusted to obtain a configuration correction table. Correspondingly, the selecting module 20 is further configured to determine a corresponding target reading interface from the preset reading interfaces according to the service to be processed and the configuration correction table.
Other embodiments or specific implementation manners of the service processing apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A service processing method is characterized in that the service processing method comprises the following steps:
when a service processing instruction is received, determining a to-be-processed service corresponding to the service processing instruction;
searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface;
acquiring a target file corresponding to the service to be processed from a preset server based on the target reading interface;
and executing service operation according to the target file to obtain a service file, and feeding back the service file to the preset server based on the target reading interface.
2. The service processing method according to claim 1, wherein the obtaining a target file corresponding to the service to be processed from a preset server based on the target reading interface comprises:
acquiring path information corresponding to the service to be processed;
traversing the data under the path information based on the remote reading interface, and judging whether file data exists in the traversed data;
and if the file data exists, downloading the file data to a local directory to obtain a target file.
3. The service processing method according to claim 2, wherein the performing a service operation according to the target file, obtaining a service file, and feeding back the service file to the preset server based on the target reading interface comprises:
reading the target file in the local directory to obtain a file to be processed;
analyzing the file to be processed to obtain analyzed data, and combining the data with the same file name in the analyzed data to obtain the data to be processed;
and generating a service file according to the data to be processed, and uploading the service file to the preset server based on the remote reading interface.
4. The service processing method according to claim 1, wherein the obtaining a target file corresponding to the service to be processed from a preset server based on the target reading interface comprises:
acquiring path information corresponding to the service to be processed;
mounting the data under the path information based on a hanging reading interface to obtain mapping data;
and reading the mapping data to obtain a target file.
5. The service processing method according to claim 4, wherein said performing a service operation according to the target file, obtaining a service file, and feeding back the service file to the preset server based on the target reading interface comprises:
analyzing the target file to obtain analysis data;
merging the data with the same file name in the analyzed data to obtain data to be processed;
and generating a service file according to the data to be processed, and storing the service file into a preset directory in the preset server based on the hanging reading interface.
6. The service processing method according to any one of claims 1 to 5, wherein said searching for a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table comprises:
acquiring service operation information from a preset operation memory, and judging whether the service to be processed is in operation or not according to the service operation information;
when the service to be processed is not in operation, searching corresponding identification information from a preset configuration table according to the service to be processed;
and searching a corresponding target reading interface from preset reading interfaces according to the identification information.
7. The service processing method according to claim 6, wherein before searching for the corresponding target reading interface from the preset reading interfaces according to the service to be processed and the preset configuration table, the method further comprises:
when a configuration modification instruction is received, determining an interface to be adjusted and a service to be adjusted according to the configuration modification instruction;
determining identification information corresponding to the interface to be adjusted according to a preset interface information table;
modifying a preset configuration table according to the identification information and the service to be adjusted to obtain a configuration modification table;
correspondingly, the determining a corresponding target reading interface from preset reading interfaces according to the service to be processed and a preset configuration table includes:
and searching a corresponding target reading interface from preset reading interfaces according to the service to be processed and the configuration correction table.
8. A service processing apparatus, characterized in that the service processing apparatus comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for determining a to-be-processed service corresponding to a service processing instruction when the service processing instruction is received;
the selecting module is used for determining a corresponding reading interface from preset reading interfaces according to the service to be processed and a preset configuration table; the preset reading interface comprises a remote reading interface and a hanging reading interface;
the reading module is used for acquiring a target file corresponding to the service to be processed from a preset server based on the reading interface;
and the execution module is used for executing business operation according to the target file, obtaining a business file and feeding back the business file to the preset server based on the target reading interface.
9. A service processing device, characterized in that the service processing device comprises: memory, a processor and a business processing program stored on the memory and executable on the processor, the business processing program when executed by the processor implementing the steps of the business processing method according to any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a service processing program, which when executed by a processor implements the steps of the service processing method according to any one of claims 1 to 7.
CN202110213792.0A 2021-02-25 2021-02-25 Service processing method, device, equipment and storage medium Pending CN112950370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110213792.0A CN112950370A (en) 2021-02-25 2021-02-25 Service processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110213792.0A CN112950370A (en) 2021-02-25 2021-02-25 Service processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112950370A true CN112950370A (en) 2021-06-11

Family

ID=76246305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110213792.0A Pending CN112950370A (en) 2021-02-25 2021-02-25 Service processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112950370A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277206A (en) * 2022-07-28 2022-11-01 通号智慧城市研究设计院有限公司 Data processing method and server

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853254A (en) * 2009-03-31 2010-10-06 国际商业机器公司 Method and device for mounting file or catalogue to local or remote host
CN101877158A (en) * 2010-03-23 2010-11-03 苏州德融嘉信信用管理技术有限公司 Front service platform of bank and operation processing method thereof
CN102377738A (en) * 2010-08-13 2012-03-14 捷达世软件(深圳)有限公司 Process integration server and method for realizing system integration by utilizing process integration server
CN107590076A (en) * 2017-09-22 2018-01-16 北京奇艺世纪科技有限公司 Obtain method, the method and device in generation business datum source of business datum
CN108196879A (en) * 2018-01-09 2018-06-22 平安科技(深圳)有限公司 Method for processing business, device, equipment and computer readable storage medium
CN108234670A (en) * 2018-01-31 2018-06-29 北京中安智达科技有限公司 A kind of distributed remote call method based on zookeeper and netty
CN109635019A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium
CN110276678A (en) * 2019-04-26 2019-09-24 武汉众邦银行股份有限公司 Service push method, equipment, storage medium and device
CN110458688A (en) * 2019-07-17 2019-11-15 阿里巴巴集团控股有限公司 A kind of method for processing business, device and equipment
CN110795395A (en) * 2018-07-31 2020-02-14 阿里巴巴集团控股有限公司 File deployment system and file deployment method
CN111193716A (en) * 2019-12-11 2020-05-22 未鲲(上海)科技服务有限公司 Service data calling method and device, computer equipment and storage medium
CN111459575A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Call request processing method and device and computer storage medium
CN111694865A (en) * 2020-06-02 2020-09-22 中国工商银行股份有限公司 Four-layer structure data acquisition method and device based on distributed system
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
CN111984719A (en) * 2020-08-31 2020-11-24 平安医疗健康管理股份有限公司 Data calling method, device, equipment and storage medium based on data source
CN112003922A (en) * 2020-08-18 2020-11-27 杭州指令集智能科技有限公司 Data transmission method and device
CN112328419A (en) * 2020-11-27 2021-02-05 北京字节跳动网络技术有限公司 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment
CN112346794A (en) * 2020-10-21 2021-02-09 深圳鼎盛电脑科技有限公司 Interface calling method, device, equipment and medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853254A (en) * 2009-03-31 2010-10-06 国际商业机器公司 Method and device for mounting file or catalogue to local or remote host
CN101877158A (en) * 2010-03-23 2010-11-03 苏州德融嘉信信用管理技术有限公司 Front service platform of bank and operation processing method thereof
CN102377738A (en) * 2010-08-13 2012-03-14 捷达世软件(深圳)有限公司 Process integration server and method for realizing system integration by utilizing process integration server
CN107590076A (en) * 2017-09-22 2018-01-16 北京奇艺世纪科技有限公司 Obtain method, the method and device in generation business datum source of business datum
CN108196879A (en) * 2018-01-09 2018-06-22 平安科技(深圳)有限公司 Method for processing business, device, equipment and computer readable storage medium
CN108234670A (en) * 2018-01-31 2018-06-29 北京中安智达科技有限公司 A kind of distributed remote call method based on zookeeper and netty
CN110795395A (en) * 2018-07-31 2020-02-14 阿里巴巴集团控股有限公司 File deployment system and file deployment method
CN109635019A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
CN110276678A (en) * 2019-04-26 2019-09-24 武汉众邦银行股份有限公司 Service push method, equipment, storage medium and device
CN110458688A (en) * 2019-07-17 2019-11-15 阿里巴巴集团控股有限公司 A kind of method for processing business, device and equipment
CN111193716A (en) * 2019-12-11 2020-05-22 未鲲(上海)科技服务有限公司 Service data calling method and device, computer equipment and storage medium
CN111459575A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Call request processing method and device and computer storage medium
CN111694865A (en) * 2020-06-02 2020-09-22 中国工商银行股份有限公司 Four-layer structure data acquisition method and device based on distributed system
CN112003922A (en) * 2020-08-18 2020-11-27 杭州指令集智能科技有限公司 Data transmission method and device
CN111984719A (en) * 2020-08-31 2020-11-24 平安医疗健康管理股份有限公司 Data calling method, device, equipment and storage medium based on data source
CN112346794A (en) * 2020-10-21 2021-02-09 深圳鼎盛电脑科技有限公司 Interface calling method, device, equipment and medium
CN112328419A (en) * 2020-11-27 2021-02-05 北京字节跳动网络技术有限公司 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HONGHAO GAO等: "An Approach to Data Consistency Checking for the Dynamic Replacement of Service Process", IEEE ACCESS *
吴翔: "面向线上支付平台的分布式微服务架构研究", 南京邮电大学 *
张震伟;马雁云;: "基于超元数据缓存的高速数据访问系统", 广东通信技术, no. 09 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277206A (en) * 2022-07-28 2022-11-01 通号智慧城市研究设计院有限公司 Data processing method and server
CN115277206B (en) * 2022-07-28 2023-09-05 通号智慧城市研究设计院有限公司 Data processing method and server

Similar Documents

Publication Publication Date Title
EP3333704B1 (en) Method and apparatus for repairing kernel vulnerability
CN108027741B (en) File processing method, device, terminal and storage medium based on patch upgrade
EP2989543B1 (en) Method and device for updating client
CN102830989B (en) Reader provides method, reader and the terminal of service
CN110968331B (en) Method and device for running application program
CN109829287A (en) Api interface permission access method, equipment, storage medium and device
CN111404990A (en) File transmission method, device, client and storage medium
CN106873970B (en) Installation method and device of operating system
CN110990339B (en) File read-write method, device and platform for distributed storage and readable storage medium
CN110968478A (en) Log collection method, server and computer storage medium
CN113553218A (en) Method for cloning and backing up real machine based on cloud mobile phone, terminal device and storage medium
CN111143023A (en) Resource changing method and device, equipment and storage medium
CN112579202A (en) Method, device, equipment and storage medium for editing service program of Windows system
CN112950370A (en) Service processing method, device, equipment and storage medium
CN111290773A (en) System upgrading method, device and readable storage medium
CN113254089B (en) System boot method correction method, device, equipment and storage medium
CN110609710B (en) Android system starting speed control method, intelligent device and storage medium
US20060037013A1 (en) Program update apparatus, method, and medium
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN110852603B (en) High-throughput wind control data processing method, device, equipment and storage medium
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN110502574B (en) Cross-system information synchronization method, user equipment, storage medium and device
CN110765125B (en) Method and device for storing data
CN109445698B (en) Method and device for querying multi-chip flash state and computer readable storage medium
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method

Legal Events

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