CN111399833A - Service data processing method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN111399833A
CN111399833A CN202010165853.6A CN202010165853A CN111399833A CN 111399833 A CN111399833 A CN 111399833A CN 202010165853 A CN202010165853 A CN 202010165853A CN 111399833 A CN111399833 A CN 111399833A
Authority
CN
China
Prior art keywords
variable
anonymous
target
code
service
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.)
Granted
Application number
CN202010165853.6A
Other languages
Chinese (zh)
Other versions
CN111399833B (en
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.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing 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 Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN202010165853.6A priority Critical patent/CN111399833B/en
Publication of CN111399833A publication Critical patent/CN111399833A/en
Application granted granted Critical
Publication of CN111399833B publication Critical patent/CN111399833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a business data processing method, a business data processing device, a computer device and a storage medium. The method comprises the following steps: acquiring an input parameter value corresponding to a target anonymous variable in an interface code; determining a corresponding target business logic variable in the business logic code according to the target anonymous variable; assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable; and carrying out logic operation on the assigned target service logic variable to obtain a target service result. By adopting the method provided by the application, the service logic code and the interface code can be completely stripped, so that the service processing efficiency is improved.

Description

Service data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing service data, a computer device, and a storage medium.
Background
At present, the existing web front-end development includes an interface code and a service logic code, a corresponding parameter value is input from an input box of the interface code, the parameter value is transmitted to a variable corresponding to the service logic code, and a final result is obtained through a series of service logic operations. For example, the data of the name of the student is that the "Xiaoming" two words are transmitted from the input box corresponding to the student NameInput in the interface code, and finally transmitted to the business logic code to be assigned to the variable of the corresponding student Name, and a final result is obtained through a series of business logic operations.
However, specific variables appear in the interface code and the business logic code developed by the existing web front end, and the specific variables refer to variables related to business logic, so that the interface code and the business logic code are tightly coupled, and once a business is updated or changed, the interface code and the business logic code need to be updated again, resulting in low business processing efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a business data processing method, a business data processing apparatus, a computer device, and a storage medium, which can completely strip business logic codes and interface codes to improve business processing efficiency.
A method for processing service data comprises the following steps:
acquiring an input parameter value corresponding to a target anonymous variable in an interface code;
determining a corresponding target business logic variable in the business logic code according to the target anonymous variable;
assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable;
and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
In one embodiment, the service data processing method further includes: obtaining a corresponding result display anonymous variable in the interface code according to the target service result; displaying a variable value corresponding to the anonymous variable by taking the target service result as a result, and updating the interface code to obtain an updated interface code; and displaying the corresponding service result in the front-end application according to the updated interface code.
In one embodiment, obtaining an input parameter value corresponding to a target anonymous variable in an interface code comprises: acquiring an interface code, wherein the interface code comprises at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position; acquiring input operation corresponding to a target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation; and taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
In one embodiment, the service data processing method further includes: obtaining an anonymous variable in an interface code; acquiring a service logic variable in a service logic code; and establishing an association relation between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
In one embodiment, determining a corresponding target business logic variable in the business logic code according to the target anonymous variable includes: obtaining an anonymous service logic variable mapping list, wherein the anonymous service logic variable mapping list describes the association relationship between anonymous variables in interface codes and corresponding service logic variables in service logic codes; and determining a target business logic variable matched with the target anonymous variable according to the anonymous business logic variable mapping list.
In one embodiment, assigning the target service logic variable according to the input parameter value to obtain the assigned target service logic variable, includes: and taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
In one embodiment, the generating of the interface code comprises: acquiring a first interface code, wherein the first interface code comprises at least one first business logic variable; and acquiring a code changing instruction, and changing a first service logic variable in the first interface code into a corresponding anonymous variable according to the code changing instruction to obtain the interface code.
A service data processing apparatus, the apparatus comprising:
the input parameter value acquisition module is used for acquiring an input parameter value corresponding to a target anonymous variable in the interface code;
the service logic variable determining module is used for determining a corresponding target service logic variable in the service logic code according to the target anonymous variable;
the business logic variable assignment module is used for assigning the target business logic variable according to the input parameter value to obtain the assigned target business logic variable;
and the service logic variable operation module is used for carrying out logic operation on the assigned target service logic variable to obtain a target service result.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring an input parameter value corresponding to a target anonymous variable in an interface code;
determining a corresponding target business logic variable in the business logic code according to the target anonymous variable;
assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable;
and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an input parameter value corresponding to a target anonymous variable in an interface code;
determining a corresponding target business logic variable in the business logic code according to the target anonymous variable;
assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable;
and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
The business data processing method, the business data processing device, the computer equipment and the storage medium acquire the input parameter values corresponding to the target anonymous variables in the interface codes; determining a corresponding target business logic variable in the business logic code according to the target anonymous variable; assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable; and carrying out logic operation on the assigned target service logic variable to obtain a target service result. Therefore, the anonymous variable in the interface code is not subjected to any logic processing, only the input parameter value is transmitted into the service logic code, and the logic processing is carried out through the service logic code, so that once the service is updated, the interface code can be directly reused, only the service logic code needs to be updated according to the service requirement, and the service processing efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for processing service data in one embodiment;
FIG. 2 is a flow chart illustrating a method for processing service data according to an embodiment;
fig. 3 is a schematic flow chart of a service data processing method in another embodiment;
FIG. 4 is a flowchart illustrating an input parameter value obtaining step according to an embodiment;
FIG. 5 is a flow chart illustrating a method for processing service data in another embodiment;
FIG. 6 is a flow diagram illustrating the target business logic variable determination step in one embodiment;
FIG. 7 is a flowchart illustrating the interface code generation step in one embodiment;
FIG. 8 is a block diagram of a business data processing apparatus in one embodiment;
FIG. 9 is a diagram showing an internal structure of a computer device in one embodiment;
fig. 10 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service data processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Specifically, the terminal 102 obtains an input parameter value corresponding to the target anonymous variable in the interface code, and sends the input parameter value to the server 104 through the network. The server 104 further determines a corresponding target service logic variable in the service logic code according to the target anonymous variable, assigns the target service logic variable according to the input parameter value to obtain the assigned target service logic variable, and performs logic operation on the assigned target service logic variable to obtain a target service result. Finally, the server 104 may return the target service result to the terminal 102 for presentation by the terminal 102.
In another embodiment, the terminal 102 obtains an input parameter value corresponding to a target anonymous variable in the interface code, determines a corresponding target business logic variable in the business logic code according to the target anonymous variable, assigns the target business logic variable according to the input parameter value to obtain the assigned target business logic variable, and performs a logic operation on the assigned target business logic variable to obtain a target business result.
In an embodiment, as shown in fig. 2, a service data processing method is provided, which is described by taking the application of the method to the terminal or the server in fig. 1 as an example, and includes the following steps:
step 202, obtaining an input parameter value corresponding to the target anonymous variable in the interface code.
The interface codes comprise different anonymous variables, wherein the anonymous variables refer to variable names without any actual meanings, and the variables do not contain any English words related to business logic, for example, the anonymous variable names can be L abel1 and L abel2 represent certain two text labels displayed on the interface, and the anonymous variable names cannot see L abel1 and L abel2 which are used for serving as a student book borrowing system or a movie comment application only.
The anonymous variables are determined from anonymous variables in the interface codes, the determination mode of the anonymous variables can be customized, the customization can be determined according to actual business requirements, or anonymous variables in the interface codes can be sequentially used as target anonymous variables and the like, and each anonymous variable has a corresponding parameter value, so that the parameter value corresponding to the anonymous variable is used as an input parameter value, and the input parameter value can be obtained by inputting the corresponding parameter value in an input box corresponding to the anonymous variable by a developer.
And step 204, determining a corresponding target business logic variable in the business logic code according to the target anonymous variable.
The business logic variable is a variable name in the business logic code, the business logic code is a code related to realizing corresponding business, and different businesses correspond to different business logic codes. The business logic code includes business logic variables, which may also be called named variables, the business logic variables are variable names having actual meanings, for example, the business logic variable names may be: StudentName and movienname, which are business logic variables, represent the name of the student and the name of the movie, respectively. Wherein the name of student such as "zhang san" or "li si" is stored in the business logic variable StudentName, and the name of movie such as "star wars" or "qian and qian hunt" is stored in the business logic variable MovieName. And the two business logic variables, namely, borrowBookButton and rateMovieButton, respectively represent a "borrow button" and a "movie scoring button" displayed on the application interface.
Specifically, after obtaining an input parameter value corresponding to a target anonymous variable in an interface code, a target business logic variable corresponding to the target anonymous variable may be determined according to a relationship between the anonymous variable in the interface code and a business logic variable in the business logic code, and then a target business logic variable corresponding to the target anonymous variable may be determined according to the relationship.
And step 206, assigning the target business logic variable according to the input parameter value to obtain the assigned target business logic variable.
Specifically, after the target service logic variable is obtained, the corresponding target service logic variable in the service logic code may be assigned according to an input parameter value corresponding to the target anonymous variable in the interface code, that is, the input parameter value is transmitted to the service logic code through the interface code, and the service logic operation is performed through the service logic code, so that a final result is obtained. If the service changes, the interface code can be directly multiplexed, and the service logic code can be updated, so that the service processing efficiency is improved.
The assignment of the corresponding target service logic variable in the service logic code according to the input parameter value corresponding to the target anonymous variable may specifically be that the input parameter value corresponding to the target anonymous variable is directly used as a variable value corresponding to the target service logic variable, or may also be that after the input parameter value corresponding to the target anonymous variable is obtained, the input parameter value is converted, data which is in line with the processing of the service logic code is converted, and the converted data is used as a variable value corresponding to the target service logic variable.
In one embodiment, assigning the target service logic variable according to the input parameter value to obtain the assigned target service logic variable, includes: and taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
Specifically, the assignment of the corresponding target service logic variable in the service logic code according to the input parameter value corresponding to the target anonymous variable may specifically be directly taking the input parameter value corresponding to the target anonymous variable as a variable value corresponding to the target service logic variable, that is, the input parameter value corresponding to the target anonymous variable is the variable value corresponding to the target service logic variable, and no processing is required.
And 208, performing logic operation on the assigned target service logic variable to obtain a target service result.
The logic operation refers to calculation processing of the assigned target business logic variable, and includes, but is not limited to, operations such as addition, subtraction, multiplication, division, splicing, reading and writing assignment and the like. Specifically, the target service logic variable is assigned according to the input parameter value to obtain an assigned target service logic variable, and the assigned target service logic variable is subjected to logic operation to obtain a final target service result. The anonymous variable in the interface code is not subjected to any logic processing, only the input parameter value is transmitted into the service logic code, and the logic processing is carried out through the service logic code, so that once the service is updated, the interface code can be directly reused, only the service logic code needs to be updated according to the service requirement, and the service processing efficiency is improved.
In the business data processing method, an input parameter value corresponding to a target anonymous variable in an interface code is obtained; determining a corresponding target business logic variable in the business logic code according to the target anonymous variable; assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable; and carrying out logic operation on the assigned target service logic variable to obtain a target service result. Therefore, the anonymous variable in the interface code is not subjected to any logic processing, only the input parameter value is transmitted into the service logic code, and the logic processing is carried out through the service logic code, so that once the service is updated, the interface code can be directly reused, only the service logic code needs to be updated according to the service requirement, and the service processing efficiency is improved.
In one embodiment, as shown in fig. 3, the service data processing method further includes:
and 302, acquiring a corresponding result display anonymous variable in the interface code according to the target service result.
After the target service result is obtained, the target service result can be displayed through the front end. Since the interface code is responsible for constructing the front-end interface, the target business result needs to be exposed through the interface code. Specifically, a target service result in the service logic code is converted into a corresponding anonymous variable in the interface code, and then the anonymous variable is assigned to be displayed. Specifically, the anonymous variable is displayed by obtaining a result matched with the target service result according to the relationship between the service logic variable and the anonymous variable. The result anonymous variable refers to an anonymous variable used for showing a target service result in the interface code.
And 304, displaying the variable value corresponding to the anonymous variable by taking the target service result as a result, and updating the interface code to obtain the updated interface code.
And step 306, displaying a corresponding service result in the front-end application according to the updated interface code.
Specifically, the anonymous variable can be displayed according to the result in the target service result assignment interface code, and the interface code is updated, so that the updated interface code is obtained. Specifically, the target service result is directly used as the result in the interface code to display the variable value corresponding to the anonymous variable, or the target service result is converted into data which can be identified by the interface code, and then the data is used as the result in the interface code to display the variable value corresponding to the anonymous variable, and the interface code is updated, so that the updated interface code is obtained.
Further, since the interface code is responsible for constructing the front-end page display, after the updated interface code is obtained, the corresponding front-end page can be constructed through the updated interface code, and the front-end page is displayed through the front-end application, and includes the corresponding service result.
In one embodiment, as shown in fig. 4, obtaining the input parameter value corresponding to the target anonymous variable in the interface code includes:
step 402, interface codes are obtained, wherein the interface codes comprise at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position.
The interface code comprises at least one initial anonymous variable, wherein the initial anonymous variable refers to all anonymous variables in the interface code and is collectively called as an initial anonymous variable. In the interface code, each anonymous variable has a fixed position, the anonymous variable comprises an anonymous variable name and a corresponding variable value, and a developer can modify the variable value to change the interface code.
Specifically, an interface code is obtained, wherein the interface code comprises at least one initial anonymous variable, each initial anonymous variable has a corresponding position in the interface code, and the position comprises an anonymous variable name and an input position corresponding to a corresponding variable value.
For example, the interface code is:
Label1=;
wherein L abel1 is the initial anonymous variable in the interface code, and the number is equal to the input position corresponding to the variable value.
Step 404, obtaining an input operation corresponding to the target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation.
And step 406, taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
The input operation refers to inputting parameters of target input positions, the target input positions refer to input positions corresponding to target anonymous variables, corresponding parameter values can be input in the target input positions according to actual business requirements, actual business scenes and product requirements, namely, the input operation corresponding to the target input positions is obtained, the target anonymous variables can be determined from at least one initial anonymous variable according to the input operation, and specifically, the initial anonymous variables corresponding to the input operation can be used as the target anonymous variables.
Further, after the target anonymous variable is determined, an input value corresponding to the input operation is used as an input parameter value corresponding to the target anonymous variable.
For example, the interface code is:
Label1=;
l abel2 ═ Xiaoming;
the position of the Xiaoming is a target input position, the behavior of inputting the Xiaoming is to perform input operation on the target input position, the initial anonymous variable L abel2 of the Xiaoming is a target anonymous variable, and the input parameter value corresponding to the target anonymous variable L abel2 is 'Xiaoming'.
In one embodiment, as shown in fig. 5, the service data processing method further includes:
step 502, obtaining anonymous variables in the interface code.
Step 504, obtaining the business logic variables in the business logic code.
Step 506, establishing an association relationship between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
Because the service logic variable with the actual service name does not exist in the interface code, only the anonymous variable without any actual meaning exists, and therefore all the anonymous variables in the interface code are obtained. All anonymous variables in the interface code can be obtained by variable names, or can be determined by developers according to development experience, or can be obtained by variable identifications corresponding to the anonymous variables, and the like.
The business logic code comprises business logic variables of actual business names, and all the business logic variables in the business logic code are obtained, wherein the obtaining of all the business logic variables in the business logic code can be specifically obtained through variable names, or can be obtained through determination of developers from the business logic code according to development experiences, or can be obtained through variable identifications corresponding to the business logic variables, and the like.
Further, after the anonymous variable in the interface code and the service logic variable in the service logic code are obtained, an association relationship between the anonymous variable in the interface code and the service logic variable in the service logic code may be established, specifically, the association relationship may be established according to an actual service requirement, an application scenario or a product requirement, so as to obtain an anonymous service logic variable mapping list. The anonymous service logic variable mapping list describes the association relationship between anonymous variables in the interface code and corresponding service logic variables in the service logic code.
In one embodiment, as shown in fig. 6, determining a corresponding target business logic variable in the business logic code according to the target anonymous variable includes:
step 602, an anonymous service logical variable mapping list is obtained, where the anonymous service logical variable mapping list describes an association relationship between an anonymous variable in an interface code and a corresponding service logical variable in a service logical code.
And step 604, determining a target business logic variable matched with the target anonymous variable according to the anonymous business logic variable mapping list.
The method comprises the steps of obtaining an anonymous service logic variable mapping list which is established in advance, wherein the anonymous service logic variable mapping list describes the association relationship between anonymous variables in interface codes and corresponding service logic variables in the service logic codes, and determining the service logic variables in the service logic codes corresponding to the anonymous variables in the interface codes through the anonymous service logic variable mapping list, namely mutually determining the anonymous variables and the corresponding service logic variables through the anonymous service logic variable mapping list. When the service is changed, the mapping list of the anonymous service logical variable can be updated according to the service requirement.
Specifically, after the anonymous service logic variable mapping list is obtained, the target service logic variable matched with the target anonymous variable is determined according to the relation in the anonymous service logic variable mapping list.
For example, the list of anonymous service logical variable mappings is:
Label1→StudentName;
Label2→StudentAge;
Label3→StudentSex;
when the target anonymous variable is L abel3, the target business logic variable matched with the target anonymous variable can be determined to be student Sex according to the anonymous business logic variable mapping list.
In one embodiment, as shown in fig. 7, the generating of the interface code includes:
step 702, a first interface code is obtained, where the first interface code includes at least one first business logic variable.
Step 704, a code change instruction is obtained, and the first service logic variable in the first interface code is changed into a corresponding anonymous variable according to the code change instruction, so that the interface code is obtained.
The first interface code is an interface code related to a service, the first interface code includes a variable name of a specific actual meaning related to the service, and the service logic code can be used as the first interface code or the first interface code can be developed according to a service requirement.
Specifically, after the first interface code is obtained, the first interface code includes at least one first business logic variable, where the first business logic variable refers to a variable name having an actual meaning in the first interface code. Further, a code change instruction is obtained, where the code change instruction is used to instruct to change the first business logic variable, and the first business logic variable in the interface code may be changed into a corresponding anonymous variable according to the code change instruction, so as to obtain the interface code. The code change instruction can be generated by operation triggering of a developer.
For example, the first interface code is:
StudentName=;
StudentAge=;
StudentSex=;
the student name, the student age and the student Sex are all first business logic variables in the first interface code, a code change instruction is obtained, the corresponding first business logic variables can be changed into corresponding anonymous variables according to the code change instruction, and therefore the interface code is obtained, and the interface code can be:
Label1=;
Label2=;
Label3=。
in a specific embodiment, a method for processing service data is provided, which specifically includes the following steps:
1. a first interface code is obtained, wherein the first interface code comprises at least one first business logic variable.
2. And acquiring a code changing instruction, and changing a first service logic variable in the first interface code into a corresponding anonymous variable according to the code changing instruction to obtain the interface code.
3. And acquiring an input parameter value corresponding to the target anonymous variable in the interface code.
And 3-1, acquiring an interface code, wherein the interface code comprises at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position.
And 3-2, acquiring input operation corresponding to the target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation.
And 3-3, taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
4. And acquiring anonymous variables in the interface code.
5. And acquiring the business logic variable in the business logic code.
6. And establishing an association relation between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
7. And determining a corresponding target business logic variable in the business logic code according to the target anonymous variable.
7-1, obtaining an anonymous service logic variable mapping list, wherein the anonymous service logic variable mapping list describes the association relationship between anonymous variables in the interface codes and corresponding service logic variables in the service logic codes.
7-2, determining a target business logic variable matched with the target anonymous variable according to the anonymous business logic variable mapping list.
8. And assigning the target business logic variable according to the input parameter value to obtain the assigned target business logic variable.
And 8-1, taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
9. And carrying out logic operation on the assigned target service logic variable to obtain a target service result.
10. And acquiring a corresponding result display anonymous variable in the interface code according to the target service result.
11. And displaying the variable value corresponding to the anonymous variable by taking the target service result as a result, and updating the interface code to obtain the updated interface code.
12. And displaying the corresponding service result in the front-end application according to the updated interface code.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a service data processing apparatus 800, including: an input parameter value obtaining module 802, a service logic variable determining module 804, a service logic variable assigning module 806 and a service logic variable operating module 808, wherein:
an input parameter value obtaining module 802, configured to obtain an input parameter value corresponding to a target anonymous variable in an interface code.
And a service logic variable determining module 804, configured to determine a corresponding target service logic variable in the service logic code according to the target anonymous variable.
And the service logic variable assignment module 806 is configured to assign a target service logic variable according to the input parameter value, so as to obtain an assigned target service logic variable.
And the service logic variable operation module 808 is configured to perform logic operation on the assigned target service logic variable to obtain a target service result.
In an embodiment, the service data processing apparatus 800 is further configured to obtain a result display anonymous variable corresponding to the interface code according to the target service result, display a variable value corresponding to the anonymous variable using the target service result as the result, update the interface code to obtain an updated interface code, and display a corresponding service result in the front-end application according to the updated interface code.
In one embodiment, the input parameter value obtaining module 802 is further configured to obtain an interface code, where the interface code includes at least one initial anonymous variable, where the initial anonymous variable has a corresponding input location, obtain an input operation corresponding to a target input location, determine a target anonymous variable from the at least one initial anonymous variable according to the input operation, and use an input value corresponding to the input operation as an input parameter value corresponding to the target anonymous variable.
In an embodiment, the service data processing apparatus 800 is further configured to obtain an anonymous variable in the interface code, obtain a service logic variable in the service logic code, and establish an association relationship between the anonymous variable and a corresponding service logic variable according to a preset rule, so as to obtain an anonymous service logic variable mapping list.
In an embodiment, the service logic variable determining module 804 is further configured to obtain an anonymous service logic variable mapping list, where the anonymous service logic variable mapping list describes an association relationship between an anonymous variable in the interface code and a corresponding service logic variable in the service logic code, and determine a target service logic variable matched with the target anonymous variable according to the anonymous service logic variable mapping list.
In an embodiment, the service logic variable assignment module 806 is further configured to use the input parameter value as a variable value corresponding to the target service logic variable to obtain the assigned target service logic variable.
In an embodiment, the service data processing apparatus 800 is further configured to obtain a first interface code, where the first interface code includes at least one first service logic variable, obtain a code change instruction, and change the first service logic variable in the first interface code into a corresponding anonymous variable according to the code change instruction, so as to obtain the interface code.
For specific limitations of the service data processing apparatus, reference may be made to the above limitations of the service data processing method, which is not described herein again. The modules in the business data processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the interface codes and the business logic codes. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a business data processing method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a business data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring an input parameter value corresponding to a target anonymous variable in an interface code; determining a corresponding target business logic variable in the business logic code according to the target anonymous variable; assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable; and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining a corresponding result display anonymous variable in the interface code according to the target service result; displaying a variable value corresponding to the anonymous variable by taking the target service result as a result, and updating the interface code to obtain an updated interface code; and displaying the corresponding service result in the front-end application according to the updated interface code.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an interface code, wherein the interface code comprises at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position; acquiring input operation corresponding to a target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation; and taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining an anonymous variable in an interface code; acquiring a service logic variable in a service logic code; and establishing an association relation between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining an anonymous service logic variable mapping list, wherein the anonymous service logic variable mapping list describes the association relationship between anonymous variables in interface codes and corresponding service logic variables in service logic codes; and determining a target business logic variable matched with the target anonymous variable according to the anonymous business logic variable mapping list.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a first interface code, wherein the first interface code comprises at least one first business logic variable; and acquiring a code changing instruction, and changing a first service logic variable in the first interface code into a corresponding anonymous variable according to the code changing instruction to obtain the interface code.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an input parameter value corresponding to a target anonymous variable in an interface code; determining a corresponding target business logic variable in the business logic code according to the target anonymous variable; assigning a target service logic variable according to the input parameter value to obtain the assigned target service logic variable; and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining a corresponding result display anonymous variable in the interface code according to the target service result; displaying a variable value corresponding to the anonymous variable by taking the target service result as a result, and updating the interface code to obtain an updated interface code; and displaying the corresponding service result in the front-end application according to the updated interface code.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an interface code, wherein the interface code comprises at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position; acquiring input operation corresponding to a target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation; and taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining an anonymous variable in an interface code; acquiring a service logic variable in a service logic code; and establishing an association relation between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining an anonymous service logic variable mapping list, wherein the anonymous service logic variable mapping list describes the association relationship between anonymous variables in interface codes and corresponding service logic variables in service logic codes; and determining a target business logic variable matched with the target anonymous variable according to the anonymous business logic variable mapping list.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a first interface code, wherein the first interface code comprises at least one first business logic variable; and acquiring a code changing instruction, and changing a first service logic variable in the first interface code into a corresponding anonymous variable according to the code changing instruction to obtain the interface code.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored on a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing service data, the method comprising:
acquiring an input parameter value corresponding to a target anonymous variable in an interface code;
determining a corresponding target business logic variable in the business logic code according to the target anonymous variable;
assigning the target service logic variable according to the input parameter value to obtain an assigned target service logic variable;
and carrying out logic operation on the assigned target service logic variable to obtain a target service result.
2. The method of claim 1, further comprising:
obtaining a corresponding result display anonymous variable in the interface code according to the target service result;
taking the target service result as the result to display a variable value corresponding to the anonymous variable, and updating the interface code to obtain an updated interface code;
and displaying a corresponding service result in the front-end application according to the updated interface code.
3. The method of claim 1, wherein the obtaining input parameter values corresponding to the target anonymous variables in the interface code comprises:
acquiring an interface code, wherein the interface code comprises at least one initial anonymous variable, and the initial anonymous variable has a corresponding input position;
acquiring input operation corresponding to a target input position, and determining a target anonymous variable from at least one initial anonymous variable according to the input operation;
and taking the input value corresponding to the input operation as the input parameter value corresponding to the target anonymous variable.
4. The method of claim 1, further comprising:
obtaining anonymous variables in the interface code;
acquiring a service logic variable in the service logic code;
and establishing an association relation between the anonymous variable and the corresponding business logic variable according to a preset rule to obtain an anonymous business logic variable mapping list.
5. The method of claim 4, wherein determining a corresponding target business logic variable in a business logic code from the target anonymous variable comprises:
obtaining the mapping list of the anonymous service logic variable, wherein the mapping list of the anonymous service logic variable describes the association relationship between the anonymous variable in the interface code and the corresponding service logic variable in the service logic code;
and determining a target service logic variable matched with the target anonymous variable according to the anonymous service logic variable mapping list.
6. The method of claim 1, wherein assigning the target business logic variable according to the input parameter value to obtain an assigned target business logic variable comprises:
and taking the input parameter value as a variable value corresponding to the target business logic variable to obtain the assigned target business logic variable.
7. The method of claim 1, wherein the generating of the interface code comprises:
acquiring a first interface code, wherein the first interface code comprises at least one first business logic variable;
and acquiring a code change instruction, and changing the first service logic variable in the first interface code into a corresponding anonymous variable according to the code change instruction to obtain the interface code.
8. A service data processing apparatus, characterized in that the apparatus comprises:
the input parameter value acquisition module is used for acquiring an input parameter value corresponding to a target anonymous variable in the interface code;
the service logic variable determining module is used for determining a corresponding target service logic variable in the service logic code according to the target anonymous variable;
the business logic variable assignment module is used for assigning the target business logic variable according to the input parameter value to obtain an assigned target business logic variable;
and the service logic variable operation module is used for carrying out logic operation on the assigned target service logic variable to obtain a target service result.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010165853.6A 2020-03-11 2020-03-11 Service data processing method and device, computer equipment and storage medium Active CN111399833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010165853.6A CN111399833B (en) 2020-03-11 2020-03-11 Service data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010165853.6A CN111399833B (en) 2020-03-11 2020-03-11 Service data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111399833A true CN111399833A (en) 2020-07-10
CN111399833B CN111399833B (en) 2022-11-18

Family

ID=71430675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010165853.6A Active CN111399833B (en) 2020-03-11 2020-03-11 Service data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111399833B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112787858A (en) * 2020-12-30 2021-05-11 浙江三维利普维网络有限公司 Data model parameter configuration method and device, electronic device and storage medium
CN113220708A (en) * 2021-05-07 2021-08-06 格学教育科技(唐山)有限公司 General college selection scheme matching method in new college entrance examination mode
CN114063877A (en) * 2021-10-29 2022-02-18 深圳市正浩创新科技股份有限公司 Energy storage equipment data display method, device and equipment
CN116107549A (en) * 2023-04-13 2023-05-12 成都新希望金融信息有限公司 Logic arrangement and change service logic processing method, system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130080996A1 (en) * 2011-09-28 2013-03-28 International Business Machines Corporation Software component placement on execution platforms
CN109445842A (en) * 2018-09-26 2019-03-08 中国平安人寿保险股份有限公司 Rule generating method, device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130080996A1 (en) * 2011-09-28 2013-03-28 International Business Machines Corporation Software component placement on execution platforms
CN109445842A (en) * 2018-09-26 2019-03-08 中国平安人寿保险股份有限公司 Rule generating method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BUDAN WU 等: "Dynamic Business Process Generation and Verification", 《2016 IEEE INTERNATIONAL CONFERENCE ON SERVICES COMPUTING》 *
王达超: "一种NGB-W多管道业务数据复用方案", 《电视技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112787858A (en) * 2020-12-30 2021-05-11 浙江三维利普维网络有限公司 Data model parameter configuration method and device, electronic device and storage medium
CN113220708A (en) * 2021-05-07 2021-08-06 格学教育科技(唐山)有限公司 General college selection scheme matching method in new college entrance examination mode
CN114063877A (en) * 2021-10-29 2022-02-18 深圳市正浩创新科技股份有限公司 Energy storage equipment data display method, device and equipment
CN116107549A (en) * 2023-04-13 2023-05-12 成都新希望金融信息有限公司 Logic arrangement and change service logic processing method, system and storage medium
CN116107549B (en) * 2023-04-13 2023-06-23 成都新希望金融信息有限公司 Logic arrangement and change service logic processing method, system and storage medium

Also Published As

Publication number Publication date
CN111399833B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN111399833B (en) Service data processing method and device, computer equipment and storage medium
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN105493067A (en) Application context migration framework and protocol
US9329778B2 (en) Supplementing a virtual input keyboard
CN111459541A (en) Application program packaging method and device, computer equipment and storage medium
CN111045707B (en) Method, apparatus, computer device and storage medium for updating applet
CN110543450A (en) Electronic document generation method and device, computer equipment and storage medium
CN109408191A (en) Method for updating pages, device, equipment and storage medium
CN114490756A (en) Generation method and device of association checking model, computer equipment and storage medium
CN111966473B (en) Operation method and device of linear regression task and electronic equipment
CN111124932B (en) Scheme verification method, system, device, computer equipment and storage medium
CN115421631A (en) Interface display method and device
US20180088930A1 (en) Updating code within an application
CN114489698A (en) Application program installation method and device
CN109543835B (en) Operation method, device and related product
CN109542837B (en) Operation method, device and related product
CN109558565B (en) Operation method, device and related product
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN109656728A (en) Page data operating method, device, equipment and medium
CN112965699B (en) Front-end page generation method, device, computer system and readable storage medium
CN109558564B (en) Operation method, device and related product
CN109543836B (en) Operation method, device and related product
CN111104566B (en) Feature index encoding method, device, electronic equipment and storage medium
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
CN114428615B (en) CSS compiling method, style updating device, medium and equipment

Legal Events

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