CN110851287A - Data processing method, device and computer readable storage medium - Google Patents

Data processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN110851287A
CN110851287A CN201910913407.6A CN201910913407A CN110851287A CN 110851287 A CN110851287 A CN 110851287A CN 201910913407 A CN201910913407 A CN 201910913407A CN 110851287 A CN110851287 A CN 110851287A
Authority
CN
China
Prior art keywords
layer
data
service
data link
service request
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
CN201910913407.6A
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910913407.6A priority Critical patent/CN110851287A/en
Publication of CN110851287A publication Critical patent/CN110851287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Abstract

The invention provides a data processing method, a data processing device and a computer readable storage medium, wherein the method comprises the following steps: the method comprises the steps that a shell layer receives a service request of a user, the shell layer calls a service layer, the service layer processes the service request to generate a processing result, the service layer calls a data link layer, the data link layer modifies field attributes of the data link layer according to the processing result, the data link layer calls a data access layer, the data access layer accesses a data table in a database, and the data access layer modifies the data table according to the modified field attributes. The data processing method of the invention reduces the coupling between the service layer and the data access layer, and can avoid modifying a plurality of codes of the service layer and the data link layer when the content of the data table in the database is changed according to the service request, thereby improving the development efficiency.

Description

Data processing method, device and computer readable storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data processing method and apparatus, and a computer-readable storage medium.
Background
A program outer shell layer (also called an interface layer and a presentation layer), a service layer (also called a service logic layer) and a data access layer. The shell layer mainly refers to an interface interacting with a user and is used for receiving data input by the user and displaying the processed data required by the user; the service layer is a bridge between the shell layer and the data access layer and is used for realizing service logic, and the service logic specifically comprises: validation, computation, business rules, etc.; the data access layer is a main operator of the database, mainly realizes the addition, deletion, modification and searching of data, can submit the data stored in the database to the service layer, and simultaneously saves the data processed by the service layer to the database.
In the use process of the program with the three-layer framework, the outer shell layer calls the service layer downwards, the service layer calls the data access layer downwards, and the data access layer accesses the database to realize the operation of the data in the database. However, in the existing three-layer architecture, the interface layer, the service layer and the data access layer have high coupling, and the development efficiency is reduced.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a data processing method, apparatus and computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data processing method, which is applied to a data processing system, where the data processing system includes an outer shell layer, a service layer, a data link layer, and a data access layer, which are sequentially connected in a communication manner, and the method includes:
the shell layer receives a service request of a user;
the shell layer calls the service layer, and the service layer processes the service request to generate a processing result;
the service layer calls the data link layer, and the data link layer modifies the field attribute of the data link layer according to the processing result;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database;
and the data access layer modifies the data table according to the modified field attribute.
Optionally, the data link layer includes a plurality of data links, the service layer invokes the data link layer, and the data link layer modifies the field attribute of the data link layer according to the processing result, including:
the service layer inquires a target link corresponding to the data table in the data link layer according to the data table corresponding to the service request;
and the data link layer modifies the field attribute of the target link according to the processing result.
Optionally, the data processing system further includes a service layer, the service layer is in communication connection with the shell layer and the service layer respectively, the service request includes a common service request and a private service request, and after the shell layer receives a service request of a user, the method further includes:
the shell layer calls the service layer, and the service layer processes the common service request to generate a first processing result;
the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result;
the data link layer modifies the field attribute of the data link layer according to the processing result, and the method comprises the following steps:
and the data link layer modifies the field attribute of the data link layer according to the first processing result and the second processing result, or the data link layer modifies the field attribute of the data link layer according to the second processing result.
Optionally, the common service request includes a verification service request, and after the shell layer calls the service layer to process the common service request and generates a first processing result, the method further includes:
the service layer judges whether the first processing result meets a preset condition or not;
the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result, including:
and under the condition that the first processing result meets the preset condition, the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result.
Optionally, the method further comprises:
the data link layer judges whether a class corresponding to the service request in the data access layer is instantiated or not;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database, and the method comprises the following steps:
and under the condition that the class corresponding to the service request in the data access layer is instantiated, the data link layer calls the instance of the class corresponding to the service request in the data access layer, and the data access layer accesses a data table in a database according to the instance of the class.
Optionally, after the data link layer determines whether a class corresponding to the service request in the data access layer has been instantiated, the method further includes:
when the class corresponding to the service request in the data access layer is not instantiated, the class corresponding to the service request is instantiated by the data link layer;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database, and the method comprises the following steps:
and the data link layer calls an instance of a class corresponding to the service request in the data access layer, and the data access layer accesses a data table in a database according to the instance of the class.
Optionally, after the data access layer modifies the data table according to the modified field attribute, the method further includes:
the data access layer acquires the modified data table;
the data access layer sends the modified data table to the data link layer;
the data link layer sends the modified data table to the service layer;
and the business layer sends the modified data table to the shell layer for a user to view.
The embodiment of the invention also discloses a data processing device, which comprises: the system comprises an outer shell layer, a service layer, a data link layer and a data access layer which are in communication connection in sequence;
the shell layer is used for receiving a service request of a user and calling the service layer;
the service layer is used for processing the service request, generating a processing result and calling the data link layer;
the data link layer is used for modifying the field attribute of the data link layer according to the processing result and calling the data access layer;
and the data access layer is used for accessing a data table in the database and modifying the data table according to the modified field attribute.
Optionally, the data link layer includes a plurality of data links, and the service layer is configured to:
according to a data table corresponding to the service request, inquiring a target link corresponding to the data table in the data link layer;
the data link layer is to:
and modifying the field attribute of the target link according to the processing result.
Optionally, the data processing system further includes a service layer, the service layer is in communication connection with the shell layer and the service layer respectively, the service request includes a common service request and a private service request, and the shell layer is configured to:
calling the service layer, and processing the common service request by the service layer to generate a first processing result;
the service layer is configured to:
calling the service layer, and processing the private service request by the service layer to generate a second processing result;
the data link layer is to:
and modifying the field attribute of the data link layer according to the first processing result and the second processing result, or modifying the field attribute of the data link layer by the data link layer according to the second processing result.
Optionally, the common service request includes an authentication service request, and the service layer is configured to:
judging whether the first processing result meets a preset condition or not;
calling the service layer under the condition that the first processing result meets the preset condition;
the service layer is used for:
and processing the private service request to generate a second processing result.
Optionally, the data link layer is configured to:
judging whether a class corresponding to the service request in the data access layer is instantiated or not;
calling an instance of a class corresponding to the service request in the data access layer under the condition that the class corresponding to the service request in the data access layer is instantiated;
the data access layer is to:
data tables in a database are accessed according to the instances of the classes.
Optionally, the data link layer is configured to:
the data access layer is used for instantiating the class corresponding to the service request under the condition that the class corresponding to the service request is not instantiated;
calling an instance of a class corresponding to the service request in the data access layer;
the data access layer is to:
data tables in a database are accessed according to the instances of the classes.
Optionally, the data access layer is configured to:
acquiring the modified data table;
sending the modified data table to the data link layer;
the data link layer is to:
sending the modified data table to the service layer;
the service layer is used for:
and sending the modified data table to the shell layer for a user to view.
The embodiment of the invention also discloses a data processing device, which comprises:
one or more processors; and
one or more computer-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a data processing method according to any one of the embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program to enable a processor to execute the data processing method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
in the data processing method provided by the embodiment of the invention, a service request of a user is received through the shell layer, the shell layer calls the service layer, the service layer processes the service request to generate a processing result, the service layer calls the data link layer, the data link layer modifies the field attribute of the data link layer according to the processing result, the data link layer calls the data access layer, the data access layer accesses the data table in the database, and the data access layer modifies the data table according to the modified field attribute. By using the data processing method of the embodiment of the invention, because the data link layer is added, when the content of the data table in the database is changed according to the service request, the data link corresponding to the data table is found in the data link layer, and the field of the data table is modified in a mode of modifying the field attribute of the corresponding data link layer, so that only one code of the link corresponding to the data link layer is modified, the data table can be operated when other service requests related to the content change of the data table are executed, the coupling between the data access layer and the service layer is reduced, the modification of multiple codes of the service layer and the data link layer is avoided, and the development efficiency is improved.
Drawings
FIG. 1 is a flow chart of steps of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another data processing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the use process of the existing program with the three-layer architecture, the outer shell layer calls the service layer downwards, the service layer calls the data access layer downwards, and the data access layer accesses the database to realize the operation of data in the database. However, in the existing three-layer architecture, the interface layer, the service layer, and the data access layer have high coupling, different functions may use the same code, which causes code redundancy, and after a database field is modified, the code corresponding to the service layer is also modified, and a plurality of places need to be modified, for example, the codes corresponding to operations such as adding, deleting, modifying, checking, and the like, all need to be modified correspondingly, which reduces development efficiency.
Based on the defects of the related technologies, one of the core concepts of the embodiments of the present invention is provided, in which a service layer is added between an outer shell layer and a service layer, some common functions in the service layer are abstracted and encapsulated, and a data link layer is added between the service layer and a data access layer, so that only codes of the data link layer need to be modified after database fields are modified, and multiple code modifications of the service layer are avoided, thereby solving the problems of high coupling, high code redundancy and low development efficiency among the current program layers.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a data processing method according to an embodiment of the present invention, where the method may be applied to a data processing system, where the data processing system includes an outer shell layer, a service layer, a data link layer, and a data access layer, which are sequentially connected in a communication manner, and the method may specifically include the following steps:
step S101, the shell layer receives a service request of a user.
In this embodiment, the shell layer mainly functions to display data and receive data transmitted by a user, and may provide an interactive operation interface for system operation of a website, and application modes of the shell layer are common, such as Windows and Web pages.
In this embodiment, the service request represents an operation request for the user database, for example, an operation request such as adding a certain product description to a visual link, deleting a certain product description, or modifying a certain product description, where the visual link is a program application.
And step S102, the shell layer calls the service layer, and the service layer processes the service request to generate a processing result.
In this embodiment, the service layer is a code layer of various services. And performing logic processing according to service request data input by a user, and realizing functions of data verification, calculation, service rules and the like.
In this embodiment, the processing result indicates a result obtained after the service layer processes the service request according to the service logic. For example, when the service request includes a validity verification for the user, the processing result may be that the user is valid or invalid, and when the service request includes an actual operation instruction for adding a product description field in the data table.
Step S103, the service layer calls the data link layer, and the data link layer modifies the field attribute of the data link layer according to the processing result.
In this embodiment, the data link layer is a layer between the service layer and the data access layer, and the addition of the link layer can independently add, delete, modify, and view each table without selecting a corresponding table to declare each time of calling. Specifically, each data table in the database corresponds to one data link, the data link layer finds the data link corresponding to the data table in the data link layer according to the data table corresponding to the service request, and then modifies the field attribute of the corresponding data link according to the processing result, and the addition, deletion, modification and check methods of the data link layer all use common field attributes, so that no matter whether field description or field description is added or modified in the data table of the database, only one code in the corresponding data link needs to be modified, that is, a code corresponding to the field attribute, thereby avoiding that a plurality of codes related to modified contents in the service layer need to be modified when operations such as addition, deletion, modification, check and the like are performed on the database in the prior art.
Illustratively, the service processed by the service layer is to add a product description in a certain data table, and only the corresponding data table needs to be found after a link layer is newly added, and the content of the product description is added in the field attribute of the data link corresponding to the data table, and the code corresponding to the methods of adding, deleting, modifying, checking and the like of the data link does not need to be modified, because all the operations of adding, deleting, modifying, checking and the like of the service request can share the modified field attribute. In the prior art, codes corresponding to the method for adding the product description need to be modified at the service layer, so that the product description is added in the data table, and codes corresponding to the methods for adding and deleting the product description, modifying the product description, inquiring the product description and the like need to be modified at the service layer, so that the operations of deleting, modifying, viewing and the like the content of the field of the product description in the data table can be completed when the next service request is received.
And step S104, the data link layer calls the data access layer, and the data access layer accesses a data table in a database.
In this embodiment, the data access layer is a layer connected to the database, and accesses files in the database during a job to perform operations of reading and saving data in the database, such as operations of adding, deleting, modifying, and viewing data in the database.
And step S105, the data access layer modifies the data table according to the modified field attribute.
In this embodiment, each data table in the database corresponds to a link in the data link layer, a field in the data table corresponds to a field attribute in the link, and after the data link layer modifies the field attribute, the data access layer can modify the field in the corresponding data table according to the modified field attribute.
In this embodiment, after receiving a service request of a user, the shell layer invokes the service layer to process the service request to generate a processing result, the service layer invokes the data link layer, the data link layer modifies the field attribute of the data link layer according to the processing result, the data link layer invokes the data access layer to access the data table in the database, and the data access layer modifies the data table according to the modified field attribute. By using the data processing method of the embodiment of the invention, because the data link layer is added, when the content of the data table in the database is changed according to the service request, the data link corresponding to the data table is found in the data link layer, and the field of the data table is modified in a mode of modifying the field attribute of the corresponding data link layer, so that only one code of the link corresponding to the data link layer is modified, the data table can be operated when other service requests related to the content change of the data table are executed, the coupling between the data access layer and the service layer is reduced, the modification of multiple codes of the service layer and the data link layer is avoided, and the development efficiency is improved.
In the embodiment of the present invention, the data link layer may include a plurality of data links, that is, the data link layer is formed by a plurality of data links. In step S103 of the method shown in fig. 1, the service layer invokes the data link layer, and the data link layer modifies the field attribute of the data link layer according to the processing result, which may specifically include the following sub-steps:
and step S1031, the service layer queries a target link corresponding to the data table in the data link layer according to the data table corresponding to the service request.
And a substep S1032, modifying the field attribute of the target link by the data link layer according to the processing result.
In this embodiment, the data link layer is formed by a plurality of data links, a corresponding relationship between a data link and a data table and a corresponding relationship between a data table and a service request are pre-established, and one service request corresponds to one data table and one data link at the same time, so that the service layer can search the corresponding data table and the corresponding target link according to the service request input by the user. The fields in the data table correspond to field attributes of the data link.
In the process of executing step S1031 and step S1032, the data link layer is composed of a plurality of data links, each data link corresponds to one data table, so that each data link in the data link layer encapsulates the operation of the corresponding data table, and the data access layer does not need to separately process a single table, thereby reducing the coupling of the data layer.
In addition, in order to be able to show the modified data table to the user for viewing after the content of the data table is modified, the following steps can be further executed:
step S1061, the data access layer obtains the modified data table.
Step S1062, the data access layer sends the modified data table to the data link layer.
Step S1063, the data link layer sends the modified data table to the service layer.
Step S1064, the service layer sends the modified data table to the shell layer for the user to view.
By executing the steps S1061-S1064, the modified data table can be sequentially returned to the shell layer along the data access layer, the data link layer, and the service layer, so that the user can view the operations performed on the data table by himself from the user interface.
In addition, in order to further improve the development efficiency, in this embodiment, before the data link layer calls the data access layer, the data link layer may determine whether a class corresponding to the service request in the data access layer has been instantiated.
If the class corresponding to the service request in the data access layer is instantiated, the data link layer calls the instance of the class corresponding to the service request in the data access layer, and the data access layer accesses the data table in the database according to the instance of the class.
If the class corresponding to the service request in the data access layer is not instantiated, the class corresponding to the service request is instantiated by the data link layer, and then the data link layer calls the instance of the class corresponding to the service request in the data access layer, so that the data access layer accesses the data table in the database according to the instance of the class.
In the embodiment, the shell layer, the service layer and the data link layer are divided into different classes according to the service request, the class corresponding to the service request needs to be instantiated when the different service requests are executed, the data access layer is shared, whether the data access layer is instantiated or not is judged when the data link layer is called, if the data access layer is instantiated, the instance is directly called, otherwise, the data access layer needs to be instantiated firstly, and calling is performed in an instance mode by instantiating the class, so that code design is simplified, and development efficiency is further improved.
In this embodiment of the present application, the data processing system may further include a service layer, where the service layer is in communication connection with the shell layer and the service layer, respectively, and the service request may include a common service request and a private service request, and the data processing method of the present application, as shown in fig. 2, may specifically include the following steps:
step S201, the shell layer receives a service request of a user.
This step is the same as step S101 and will not be described in detail here.
Step S202, the shell layer calls the service layer, and the service layer processes the common service request to generate a first processing result.
In this embodiment, the service layer is configured to process a common service request. The common service request refers to an operation which needs to be executed when each service request is executed in the program application, for example, a validity verification operation of a user, that is, whether a search request is performed in a visual link or a request for checking product details is performed in the visual link, the validity of the user needs to be verified, and after the validity verification is passed, a search logic or an inquiry logic is executed at a service layer. The common service request may also be a data caching operation, an operation of adding the same description, and the like, and this embodiment is not limited. The first processing result indicates a result after processing the common request, for example, a result obtained by verifying the validity of the user, that is, the user validity is verified to be passed or the user validity is not verified to be passed.
In this embodiment, the common request processed by the service layer may be a common request extracted from the service layer, or may be another common service request added later for use by the service layer.
Step S203, the service layer invokes the service layer, and the service layer processes the private service request to generate a second processing result.
In this embodiment, the private service request refers to an operation specific to the service request input by the user, for example, an operation of adding a product description in a data sheet. The second processing result represents a result obtained after processing the private service request, for example, a result obtained after logically processing data corresponding to the request for adding the product description.
Step S204, the data link layer modifies the field attribute of the data link layer according to the first processing result and the second processing result, or the data link layer modifies the field attribute of the data link layer according to the second processing result.
In this embodiment, when modifying the field attribute of the data link layer, there may be a second processing result related to modifying the field content in the data table, for example, the common service request is a verification service request, the private service request is an addition product description request, and at this time, only the field attribute of the data link layer needs to be modified according to the second processing result; in addition, it may also be that the first processing result and the second processing result both relate to modification of field content in the data table, for example, the common service request is an add sequence number, the private service request is an add product description request, and at this time, the field attribute of the data link layer needs to be modified according to the first processing result and the second processing result.
In this embodiment, the common service request may be a verification service request, and the verification service request does not relate to modifying the field content in the data table, and only needs to modify the field attribute of the data link layer according to the second processing result. In step S202 of the method shown in fig. 2, the shell layer calls the service layer to process the common service request, and after generating the first processing result, the method may further include the following sub-steps:
step S2031, the service layer determines whether the first processing result meets a preset condition.
Step S2032, when the first processing result meets a preset condition, the service layer invokes the service layer, and the service layer processes the private service request to generate a second processing result.
In this embodiment, the preset condition refers to whether the first processing result indicates that the verification is passed or not. Still using the above example, the common service request is user validity verification, the private service is adding a product description field in a data table, first, whether a user needing verification operation is valid is verified, and then, the user is valid and then performs logic processing of adding product description.
In this embodiment, by setting the verification service request and determining whether the first processing result of the verification service request meets the preset condition, it can be determined whether to continue to invoke the service layer to operate the private service request, so as to prevent the service layer from processing the private service request by mistake.
Step S205, the data link layer calls the data access layer, and the data access layer accesses a data table in a database.
This step is the same as step S104 and will not be described in detail here.
And step S206, the data access layer modifies the data table according to the modified field attribute.
This step is the same as step S105, and is not described in detail here.
In the embodiment, the service layer is added between the outer shell layer and the service layer, and the common service requests which are the same as those in other service requests in the service requests are extracted and processed uniformly by the service layer, so that the service layer does not need to operate the common services of each service request, thereby reducing redundant codes of the service layer and further improving the development efficiency.
The present invention also provides an exemplary embodiment, as follows:
an SLW.
The SLW, SmartBran and services service layer calls the SLW, SmartBran and Business service layer;
3, the SLW, SmartBrand, Business layer calls the SLW, SmartBrand, DataLinks data link layer;
4, SLW, SmartBrand, DataLinks data link layer calls SqlSugar data access layer;
and 5, accessing the DB database by the SqlSugar data access layer.
Referring to fig. 3, fig. 3 shows a data processing apparatus according to an embodiment of the present invention, the apparatus includes: an outer shell layer 301, a service layer 302, a data link layer 303 and a data access layer 304 which are in communication connection in sequence;
the shell layer is used for receiving a service request of a user and calling the service layer;
the service layer is used for processing the service request, generating a processing result and calling the data link layer;
the data link layer is used for modifying the field attribute of the data link layer according to the processing result and calling the data access layer;
and the data access layer is used for accessing a data table in the database and modifying the data table according to the modified field attribute.
Optionally, the data link layer includes a plurality of data links, and the service layer is configured to:
according to a data table corresponding to the service request, inquiring a target link corresponding to the data table in the data link layer;
the data link layer is to:
and modifying the field attribute of the target link according to the processing result.
Optionally, the data processing system further includes a service layer, the service layer is in communication connection with the shell layer and the service layer respectively, the service request includes a common service request and a private service request, and the shell layer is configured to:
calling the service layer, and processing the common service request by the service layer to generate a first processing result;
the service layer is configured to:
calling the service layer, and processing the private service request by the service layer to generate a second processing result;
the data link layer is to:
and modifying the field attribute of the data link layer according to the first processing result and the second processing result, or modifying the field attribute of the data link layer by the data link layer according to the second processing result.
Optionally, the common service request includes an authentication service request, and the service layer is configured to:
judging whether the first processing result meets a preset condition or not;
calling the service layer under the condition that the first processing result meets the preset condition;
the service layer is used for:
and processing the private service request to generate a second processing result.
Optionally, the data link layer is configured to:
judging whether a class corresponding to the service request in the data access layer is instantiated or not;
calling an instance of a class corresponding to the service request in the data access layer under the condition that the class corresponding to the service request in the data access layer is instantiated;
the data access layer is to:
data tables in a database are accessed according to the instances of the classes.
Optionally, the data link layer is configured to:
the data access layer is used for instantiating the class corresponding to the service request under the condition that the class corresponding to the service request is not instantiated;
calling an instance of a class corresponding to the service request in the data access layer;
the data access layer is to:
data tables in a database are accessed according to the instances of the classes.
Optionally, the data access layer is configured to:
acquiring the modified data table;
sending the modified data table to the data link layer;
the data link layer is to:
sending the modified data table to the service layer;
the service layer is used for:
sending the modified data sheet to the shell layer for viewing by a user
An embodiment of the present invention further provides a data processing apparatus, including:
one or more processors; and
one or more computer-readable media having instructions stored thereon which, when executed by the one or more processors, cause the apparatus to perform a data processing method according to any one of the embodiments of the invention.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program to enable a processor to execute the data processing method according to the embodiments of the present invention.
For the embodiment of the data processing device, since it is basically similar to the embodiment of the data processing method, the description is relatively simple, and for relevant points, reference may be made to part of the description of the embodiment of the data processing method.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The data processing method, the data processing apparatus and the computer-readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A data processing method applied to a data processing system, the data processing system comprising an outer shell layer, a service layer, a data link layer and a data access layer which are sequentially connected in communication, the method comprising:
the shell layer receives a service request of a user;
the shell layer calls the service layer, and the service layer processes the service request to generate a processing result;
the service layer calls the data link layer, and the data link layer modifies the field attribute of the data link layer according to the processing result;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database;
and the data access layer modifies the data table according to the modified field attribute.
2. The method of claim 1, wherein the data link layer comprises a plurality of data links, wherein the service layer invokes the data link layer, and wherein the data link layer modifies the data link layer field attributes according to the processing result, comprising:
the service layer inquires a target link corresponding to the data table in the data link layer according to the data table corresponding to the service request;
and the data link layer modifies the field attribute of the target link according to the processing result.
3. The method of claim 1, wherein the data processing system further comprises a service layer, wherein the service layer is communicatively coupled to the shell layer and the service layer, respectively, wherein the service request comprises a common service request and a private service request, and wherein after the shell layer receives a service request from a user, the method further comprises:
the shell layer calls the service layer, and the service layer processes the common service request to generate a first processing result;
the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result;
the data link layer modifies the field attribute of the data link layer according to the processing result, and the method comprises the following steps:
and the data link layer modifies the field attribute of the data link layer according to the first processing result and the second processing result, or the data link layer modifies the field attribute of the data link layer according to the second processing result.
4. The method of claim 3, wherein the common service request comprises a validation service request, and wherein after the shell layer invokes the service layer to process the common service request and generate a first processing result, the method further comprises:
the service layer judges whether the first processing result meets a preset condition or not;
the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result, including:
and under the condition that the first processing result meets the preset condition, the service layer calls the service layer, and the service layer processes the private service request to generate a second processing result.
5. The method of claim 1, further comprising:
the data link layer judges whether a class corresponding to the service request in the data access layer is instantiated or not;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database, and the method comprises the following steps:
and under the condition that the class corresponding to the service request in the data access layer is instantiated, the data link layer calls the instance of the class corresponding to the service request in the data access layer, and the data access layer accesses a data table in a database according to the instance of the class.
6. The method of claim 5, wherein after the data link layer determines whether the class corresponding to the service request in the data access layer has been instantiated, the method further comprises:
when the class corresponding to the service request in the data access layer is not instantiated, the class corresponding to the service request is instantiated by the data link layer;
the data link layer calls the data access layer, and the data access layer accesses a data table in a database, and the method comprises the following steps:
and the data link layer calls an instance of a class corresponding to the service request in the data access layer, and the data access layer accesses a data table in a database according to the instance of the class.
7. The method of claim 1, wherein after the data access layer modifies the data table according to the modified field attribute, the method further comprises:
the data access layer acquires the modified data table;
the data access layer sends the modified data table to the data link layer;
the data link layer sends the modified data table to the service layer;
and the business layer sends the modified data table to the shell layer for a user to view.
8. A data processing apparatus, characterized in that the apparatus comprises: the system comprises an outer shell layer, a service layer, a data link layer and a data access layer which are in communication connection in sequence;
the shell layer is used for receiving a service request of a user and calling the service layer;
the service layer is used for processing the service request, generating a processing result and calling the data link layer;
the data link layer is used for modifying the field attribute of the data link layer according to the processing result and calling the data access layer;
and the data access layer is used for accessing a data table in the database and modifying the data table according to the modified field attribute.
9. A data processing apparatus, comprising:
one or more processors; and
one or more computer-readable instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the data processing method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program causing a processor to execute the data processing method according to any one of claims 1 to 7.
CN201910913407.6A 2019-09-25 2019-09-25 Data processing method, device and computer readable storage medium Pending CN110851287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913407.6A CN110851287A (en) 2019-09-25 2019-09-25 Data processing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913407.6A CN110851287A (en) 2019-09-25 2019-09-25 Data processing method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110851287A true CN110851287A (en) 2020-02-28

Family

ID=69596062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913407.6A Pending CN110851287A (en) 2019-09-25 2019-09-25 Data processing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110851287A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110982A (en) * 2021-03-29 2021-07-13 青岛海尔科技有限公司 Data access layer verification method and device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172459A1 (en) * 2003-02-27 2004-09-02 Schwalm Brian E. Multi-tier business layer architecture for information systems
CN102004634A (en) * 2009-09-01 2011-04-06 上海杉达学院 Hierarchical business management system
US20110093512A1 (en) * 2008-05-29 2011-04-21 Honeywell International Inc. Systems and methods for managing business objects
CN106447348A (en) * 2016-08-31 2017-02-22 常州奥云信息科技有限公司 Implantable medical device supply chain information processing method and system
CN107786379A (en) * 2017-11-15 2018-03-09 四川省龙逸凤集网络科技有限公司 A kind of layering cloud management platform based on micro services framework

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172459A1 (en) * 2003-02-27 2004-09-02 Schwalm Brian E. Multi-tier business layer architecture for information systems
US20110093512A1 (en) * 2008-05-29 2011-04-21 Honeywell International Inc. Systems and methods for managing business objects
CN102004634A (en) * 2009-09-01 2011-04-06 上海杉达学院 Hierarchical business management system
CN106447348A (en) * 2016-08-31 2017-02-22 常州奥云信息科技有限公司 Implantable medical device supply chain information processing method and system
CN107786379A (en) * 2017-11-15 2018-03-09 四川省龙逸凤集网络科技有限公司 A kind of layering cloud management platform based on micro services framework

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110982A (en) * 2021-03-29 2021-07-13 青岛海尔科技有限公司 Data access layer verification method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN110442326B (en) Method and system for simplifying front-end and back-end separation authority control based on Vue
US11032140B2 (en) Using a template to update a stack of resources
CN109840429B (en) Intelligent contract deployment and calling method and device
US8516037B2 (en) Methods for dynamic partitioning of applications in client-server environments
US8316120B2 (en) Applicability detection using third party target state
CN109766330B (en) Data slicing method and device, electronic equipment and storage medium
CN108287708B (en) Data processing method and device, server and computer readable storage medium
JP2017514218A (en) Running third-party applications
CN102567400B (en) Method for realizing Web visit and Web server
WO2021022714A1 (en) Message processing method for cross-block chain node, device, apparatus and medium
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN110851287A (en) Data processing method, device and computer readable storage medium
CN108334322B (en) Data request method and system of MVC framework
CN110826977A (en) Data updating method and device, computer equipment and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
US9679015B2 (en) Script converter
CN112148450A (en) Data processing method, device, equipment and storage medium
CN109977659A (en) Weblogic automatically creates method, system, device and the storage medium of local user
WO2023230797A1 (en) Cross-system test method and apparatus
CN114817166B (en) Method, device and medium for canceling file operation
US11875196B1 (en) Systems and methods for execution in dynamic application runtime environments
US11822937B1 (en) Systems and methods for execution in dynamic application runtime environments
CN116680277B (en) Information verification method, device, equipment and storage medium
CN114500718B (en) Cloud mobile phone management method and device
CN116302036A (en) Business parameter management method, device, equipment and storage medium based on micro-service

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228