CN108874390B - Data processing method and device, equipment and storage medium - Google Patents

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

Info

Publication number
CN108874390B
CN108874390B CN201710326712.6A CN201710326712A CN108874390B CN 108874390 B CN108874390 B CN 108874390B CN 201710326712 A CN201710326712 A CN 201710326712A CN 108874390 B CN108874390 B CN 108874390B
Authority
CN
China
Prior art keywords
data
result data
identification
processing
program
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.)
Active
Application number
CN201710326712.6A
Other languages
Chinese (zh)
Other versions
CN108874390A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201710326712.6A priority Critical patent/CN108874390B/en
Publication of CN108874390A publication Critical patent/CN108874390A/en
Application granted granted Critical
Publication of CN108874390B publication Critical patent/CN108874390B/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

Abstract

The embodiment of the invention discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: the background process receives initial data sent by a service request side, wherein the initial data comprises original data and a processing rule for processing the original data; the background process processes the original data according to the processing rule to obtain result data; the background process sends the identification of the determined result data and the result data to the foreground process; the foreground process generates code for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.

Description

Data processing method and device, equipment and storage medium
Technical Field
The present invention relates to mobile internet technologies, and in particular, to a data processing method and apparatus, a device, and a storage medium.
Background
Under the current big background of mobile rattles, more and more companies begin to use mobile terminals to check the business conditions of the companies, timely find business problems and timely follow-up, and business can be checked at any time and any place outside business trips and at rest at home, so that a plurality of business trips are realized. Therefore, report products at the mobile end are becoming more and more required. Existing solutions on the market are e.g. native customized report products or customized report products in the form of version 5 (H) 5 of the hypertext markup language (Hyper Text Markup Language, HTML), such as customized Applications (APP). As shown in FIG. 1A, the process of customizing a report generally includes: step S1, a user wants to check a mobile report; step S2, storing the result data as a text file; s3, customizing and developing APP; step S4, APP loads corresponding result data for display; and S5, the user sees the mobile report.
Some mobile report products customized in the market have poor universality and suitability, for example, for companies in the automobile industry, report functions may be strong, and displayed information (pictures of automobiles) may be required to be relatively large. For another example, for small-sized catering companies, only limited important information such as time, amount and the like needs to be displayed on a report.
In addition, the market is changed instantly, the business also needs to be changed along with the change of the market, the initial input development cost of the customized APP is relatively high, the customized APP is developed and realized according to the original scheme, once the business is changed, a certain degree of redevelopment is needed in most cases, the flexibility is poor, and the business opportunity is lost. Therefore, a configurable mobile report system is needed to meet the potential requirements of fast and low-cost instant business condition checking of vast small and medium enterprises in time.
Disclosure of Invention
In view of this, the embodiment of the invention provides a data processing method, a device, equipment and a storage medium for solving at least one problem existing in the prior art, which can meet the requirement of fast and low-cost real-time service condition checking of vast middle and small enterprises.
The technical scheme of the embodiment of the invention is realized as follows:
in one aspect, an embodiment of the present invention provides a data processing method, including:
the background process receives initial data sent by a service request side, wherein the initial data comprises original data and a processing rule for processing the original data;
the background process processes the original data according to the processing rule to obtain result data;
the background process sends the identification of the determined result data and the result data to the foreground process;
the foreground process generates code for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
In another aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus includes a background process and a foreground process, where:
the background process is used for receiving initial data sent by a request side, wherein the initial data comprises original data and a processing rule for processing the original data;
the background process is used for processing the original data according to the processing rule to obtain result data;
the background process is used for sending the identification of the determined result data and the result data to the foreground process;
The foreground process is used for generating codes for the subprogram to process the identification of the result data and the result data, and the codes run in the form of web pages in the parent program.
In yet another aspect, an embodiment of the present invention provides 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 steps of:
receiving initial data sent by a request side, wherein the initial data comprises original data and a processing rule for processing the original data;
processing the original data according to the processing rule to obtain result data;
the identification of the determined result data and the result data are sent to a foreground process;
code is generated for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
In yet another aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving initial data sent by a request side, wherein the initial data comprises original data and a processing rule for processing the original data;
Processing the original data according to the processing rule to obtain result data;
the identification of the determined result data and the result data are sent to a foreground process;
code is generated for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
In the embodiment of the invention, a background process receives initial data sent by a service request side, wherein the initial data comprises original data and a processing rule for processing the original data; the background process processes the original data according to the processing rule to obtain result data; the background process sends the identification of the determined result data and the result data to the foreground process; the foreground process generates codes for the subprogram to process the identification of the result data and the result data, and the codes run in a parent program in the form of a webpage; therefore, the method can meet the requirement of quickly and instantly checking the business condition with low cost for vast medium and small enterprises.
Drawings
FIG. 1A is a schematic diagram of a report customization implementation process in the related art;
FIG. 1B is a schematic diagram of an implementation flow of a data processing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a network architecture according to an embodiment of the present invention;
FIG. 3A is a flowchart illustrating another data processing method according to an embodiment of the present invention;
FIG. 3B is a schematic diagram of an implementation scenario of an embodiment of the present invention;
FIG. 4A is a flowchart illustrating an implementation of another data processing apparatus according to an embodiment of the present invention;
FIG. 4B is a schematic diagram of an implementation flow of the result data received by the foreground process in the subroutine according to the embodiment of the present invention;
FIG. 5A is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 5B is a schematic diagram of another data processing apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram showing the constitution of a data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware entity of a computing device according to an embodiment of the present invention.
Detailed Description
With the development of terminal technology and mobile internet technology, mobile applications (MA, mobile Application) installed on terminals such as mobile phones, tablet computers, etc. are increasing, such as instant messaging applications, entertainment applications, news applications, game applications, financial applications, educational applications, learning applications, payment applications, search applications, life convenience applications. The user wants to enjoy a certain service, for example, pay a merchant, and then the user first installs an application with a payment function and then opens the application to enjoy the service, which is a way of requiring installation to enjoy the service is increasingly unsuitable for a fast, convenient and shared life concept.
At present, the sharing of light-weight products such as knowledge and information can be shared and benefited in the maximum range, travel sharing, service sharing and entity economy sharing are limited by a certain region or time, and the service sharing needs to find a virtual node, in this case, a subroutine is also called a web application, such as a mini program, and the subroutine provides a virtual node for quick, convenient and quick sharing, so that the wide sharing is completed through the connection of the internet. The sub-program makes the service sharing become a kind of information and becomes very easy to obtain, the service and the sub-program are connected, if the sub-program is separated, the sub-program is far away from the content ecology, and the sub-program and the user are connected together to serve the user, and the mode can become a light on-line to off-line (O2O, online To Offline) service, so that the service sharing is realized while the main program such as WeChat and the like is eliminated.
The subroutine is an application which can be used without downloading and installing, the dream of 'tentacle' of the application is realized, and a user can open the application by sweeping or searching. Because the subroutine itself does not need to be installed and uninstalled, the subroutine also embodies the concept of "run-out" and the user does not have to care whether to install too many applications. The presence of subroutines allows applications to be ubiquitous, ready to use, but without installation and uninstallation.
The following describes a subroutine, such as a WeChat subroutine, which is an application module that can be used without downloading and installing, and a user accessing the subroutine can use the corresponding functions of the subroutine without additional installation, as long as a main program such as WeChat is installed.
The method realizes the dream of 'touch-up' application, and the user can open the application by sweeping or searching. The subroutine generally includes at least application code and page code, wherein the application portion may generally include two or three files, the two files being app.json and app.js, wherein js represents a scripting language (JavaScript) file and json represents a JavaScript object notation (JavaScript Object Notation) file, the three files being app.json, app.js and app.wxss, respectively; the page code typically includes three or four files, index.json, index.js, and index.wxss, respectively. It should be noted that, json may be nested in js, that is, json may not be split separately in classification, but is generalized in js, so that three files split by application part are two files app.js and app.wxss, and three or four files split by page code are two or three respectively. Where js represents a logical code and json represents a configuration code, json is in a text format that is completely language independent, but also uses habits similar to the C language family (including C, C ++, c#, java, javaScript, perl, python, etc.).
Wxss represents style sheet code, where wxss represents a WeChat style sheet (WeiXin Style Sheets) wxss is a set of style languages used to describe the component styles of the micro-beaconing language, i.e., wxss is used to determine how components of WXML should be displayed. To accommodate a vast number of front-end developers, wxss has most of the features of cascading style sheets (CSS, cascading Style Sheets), while to be more suitable for developing the micro-letter subroutines, wxss has been extended and modified to CSS, e.g., the extended features have size units and style importation compared to CSS.
Wxml represents the structural code, wxml is an abbreviation of micro-beaconing language (WeiXin Markup Language), wxml is a set of label languages designed based on a web application framework (Apache MINA) framework, and the structure of the page can be constructed by combining the basic components and the event system.
In order to solve the technical problems in the background art, in the following embodiments of the present invention, a report implementation method based on a subroutine is provided, in which, without customizing an APP, a data uploading party (service request side) only needs to upload initial data to a background process, where the initial data includes the initial data and a processing rule for obtaining result data by using the initial data, the background process obtains the result data by using the initial data and the result rule, and then the foreground process generates a code for processing the result data by the subroutine, and finally the result data is presented to the report access request side in the form of a report.
The technical scheme of the invention is further elaborated below with reference to the drawings and specific embodiments.
The embodiment of the invention provides a data processing method, which is applied to a computing device, the functions realized by the method can be realized by calling program codes by a processor in the computing device, and the program codes can be stored in a computer storage medium, so that the computing device at least comprises the processor and the storage medium.
Fig. 1 is a schematic flow chart of an implementation of a data processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step S101, a background process receives initial data sent by a service request side, wherein the initial data comprises original data and a processing rule for processing the original data;
in this embodiment, the original data includes data in a report or data in a report calculated by a user, and when the data to be processed is a numerical value, the processing rule includes at least a calculation rule, and when the original data includes non-numerical data, for example, the original data may be a picture, then the processing rule may be to shrink, change a display format, change a color, or the like. In this embodiment, the data in the report is referred to as the result data, the data of the result data calculated by the user is referred to as the original data, and of course, the original data may also appear in the report, so the original data may be the result data itself in some cases. For example, taking a catering company as an example, the data in the report is a daily balance, the original data includes respective business balances of morning, afternoon and evening, then the business balance in the morning, the business balance in the afternoon and the business balance in the evening are accumulated to obtain the daily balance, then the daily balance is the result data, and the processing rule in the example includes a calculation rule for accumulating the business balance in the morning, the business balance in the afternoon and the business balance in the evening.
Step S102, the background process processes the original data according to the processing rule to obtain result data;
here, the result data may include numerical data or non-numerical data, for example, turnover, number, etc. are numerical data, and pictures, videos, web site information, etc. are non-data.
Step S103, the background process sends the determined identification of the result data and the result data to the foreground process;
here, the identification of the result data may be a number, a name, etc. of the result data, for example, the turnover is the identification of the result data.
In step S104, the foreground process generates a code for the sub-program to process the identifier of the result data and the result data, and runs in the form of a web page in the parent program.
Here, the sub-program runs in the parent program in the form of a web page based application developed based on hypertext markup language (HTML, hyper Text Markup Language), cascading style sheets, and scripting language.
The parent program includes an instant messaging or social application or client, such as a WeChat application.
The subroutine is a Web-based application (Web APP) developed on the basis of hypertext markup language 5, CSS and JavaScript, and runs in the form of a Web page in a parent program, for example a public number subroutine based on HTML5, also called H5APP. In the implementation process, the subroutine may be implemented using H5APP. The instant messaging application program in which the subprogram runs is called a parent program. The parent program obtains the identification of the result data and the result data by loading the code executing mode in the subprogram and displays the result data in the page of the subprogram; thus, the report access request side can check the report in the parent program.
In the data processing method provided by the embodiment, the service request side only needs to upload original data and a processing rule for obtaining result data by using the original data to the background process, the background process obtains the result data by using the original data and the result rule, and then the foreground process displays the final result data to the report access request side in a report form according to a code for the subroutine to process the result data; therefore, the report is configured by the service request side through sending the original data and the processing rules without customizing the APP, and then the report can be checked by the report access request side through executing the technical scheme provided in the embodiment, so that the potential requirement of quickly and instantly checking the service condition of a large number of small and medium enterprises at low cost is timely met.
In other embodiments of the present invention, when the original data is numerical data, the steps S102 to S104 include: the background process processes the numerical value of the original data according to the processing rule to obtain the numerical value of the result data; the background process sends the identification of the determined result data and the numerical value of the result data to the foreground process; step S104, the foreground process generates a subprogram at least according to the identification of the result data and the numerical value of the result data.
In this embodiment, as shown in fig. 2, the computing device 10 may be implemented by using a foreground process 11 and a background process 12 in the implementation process, where the background process 12 receives a service request of a service request side 21, where the service request includes initial data, and a company is exemplified by a process description, where the service request side 21 of the company mainly provides the initial data, and then the background process 12 of the computing device 10 generates a report according to the initial data, and in this embodiment, the background process 12 of the computing device 10 receives the initial data, processes the initial data process, and generates a subroutine according to the obtained processing result. The company includes a report access requesting side 22 in addition to the business requesting side 21, and the report access requesting side 22 may be understood as those employees or departments requesting to view the report. And the foreground process receives a report access request of a report access request side, and allows the user to access the subprogram according to the report access request.
In the implementation process, the service request side can be staff or departments with report generation requirements, such as a financial department or an engineering department, a device management department and a product production department of a company, the report access request side can be staff or departments with report viewing requirements, and the service request side and the report access request side can be the same staff or the same departments, and can be different staff or different departments. For a company in the automobile sales industry, the service request side can be an automobile sales department or an employee or financial department, and the report access request side can be an automobile sales department or financial department; for small-sized catering industry companies, the service request side can be a financial department, and the report access request side can be a boss of a catering company or the like.
In the implementation process, the foreground process and the background process may be executed on the same computing device at the same time, and of course, the foreground process and the background process may be separated into different computing devices. The distinction between foreground and background processes is to increase the computational efficiency of the computing device, i.e., the foreground and background processes may be logically isolated. As can be seen from fig. 2, the foreground process 11 is configured to communicate with the report access request side 22 device, and the background process 12 is configured to communicate with the service request side device 21, so that both the foreground process and the background process can adopt a streaming computing manner, that is, the foreground process can continuously receive and then process the report access request of the report access request side; the background process may continuously receive service requests from the service request side and then process the service requests. In the implementation process, the service request side and the report access request side shown in fig. 2 may be the same company or different companies.
In the implementation process, the interaction between the foreground process and the report access request side and the interaction between the background process and the service request side can adopt remote procedure call protocol (Remote Procedure Call Protocol, RPC) messages. In this embodiment, the GPU computing task is processed by using the RPC request response mode (RPC message), so that the special purpose of the special cluster is achieved in terms of hardware deployment, the mixed deployment of the processor (Central Processing Unit, CPU) model and the GPU model is avoided, and the independent operation and maintenance of each cluster are facilitated.
In other embodiments of the present invention, step S104, the foreground process generates code for a subroutine to process the identification of the result data and the result data, including:
step S141, the foreground process sends at least the identification of the result data and the result data to a program for generating a subroutine;
in step S142, the program for generating an applet generates a page code in the subroutine according to the identification of the result data and the result data, where the page code displays the identification of the result data and the result data in the form of a report when running.
In this embodiment, the program for generating the subroutine may be a subroutine generating tool, the input of the tool is various materials required for generating the subroutine, in order for the subroutine to display a report, the materials required for the conventional report are inputs of the subroutine generating tool, and after the materials are input to the tool, the output of the tool is the subroutine. As previously mentioned, a subroutine generally includes at least an application portion and a page code, and the identification of the result data and the result data are used as data of the page code to generate the page code of the subroutine.
In other embodiments, when the result data is numerical data, in step S104, the foreground process generates at least an identifier of the result data and a numerical value of the result data, and includes: the foreground process sends at least the identification of the result data and the numerical value of the result data to a program for generating a subroutine; the program for generating a subroutine generates page codes in the subroutine according to the identification of the result data and the numerical value of the result data.
In other embodiments of the present invention, the method further comprises determining an identity of the result data, two implementations are provided below, wherein:
mode one: the initial data further includes an identification of the original data, and the identification of the determination result data includes: and the background process determines the identification of the result data according to the identification of the original data and the processing rule. For example, taking a catering company as an example, the data in the report form is a daily balance, the original data comprises respective business balances of morning, afternoon and evening, and the calculation rule is to accumulate the business balance of the morning, the business balance of the afternoon and the business balance of the evening, so that the identification of the result data is the daily balance.
In a second mode, the initial data includes an identifier of the result data. The identification of the determination result data comprises the following steps: analyzing the initial data to obtain the identification of the result data.
In other embodiments of the present invention, as shown in fig. 3, the method further includes:
step S301, the foreground process receives a report access request of accessing the subprogram from a report access request side;
step S302, the foreground process responds to the report access request and authenticates the report access request side;
in this embodiment, the report access request includes at least an identifier of a user at the report access request side, and the foreground process authenticates the report access request side according to the identifier of the user. The identification of the user can be realized by account information and the like, and the account can be a mobile phone number, a serial number, a mailbox, a job number and the like.
Step S303, after the authentication is passed, the foreground process allows the report access request side to access the subprogram.
Step S304, after authentication fails, the foreground process sends a second prompt message to the report access request side, wherein the second prompt message is used for indicating that the report access request side cannot access the report because the authentication fails.
In this embodiment, both the service request side and the report access request may be completed on a mobile electronic device, where the mobile electronic device may be various types of terminals with information processing capabilities in the process of the specific embodiment, and for example, the terminals may include a mobile phone, a tablet computer, a personal digital assistant, and so on.
In other embodiments of the present invention, the report access request carries an identifier of a user and an identifier of data to be accessed, and the method further includes:
the foreground process judges whether the user has the right to access the data to be accessed according to the identification of the user and the identification of the data to be accessed; displaying the data to be accessed to the user if the user has the right to access the data to be accessed according to the identification of the user and the identification of the data to be accessed; and if the user does not have the right to access the data to be accessed, displaying first prompt information to the user, wherein the first prompt information is used for indicating that the user has no access right. Wherein the displaying the data to be accessed to the user includes: and acquiring the identification of the data to be accessed and the data to be accessed by executing the page code in the subprogram loaded by the parent program, and displaying the identification and the data to be accessed in the page of the subprogram.
In other embodiments of the present invention, the parent program receives an access operation of the report access request side to access the child program; the parent program responds to the access operation and sends a report access request to the foreground process; and the parent program receives the page code sent by the foreground process, loads the page code and displays the identification of the result data and the result data in the page of the subprogram. Taking WeChat as an example for explanation, a salesman of an automobile sales department takes WeChat as a report access request side, referring to FIG. 3B, the salesman logs in own WeChat 30, an operation entry of a subroutine 31 (referring to a diagram of FIG. 3B) exists on a page of the WeChat, the salesman clicks the operation entry of the subroutine 31 to enter a subroutine page (referring to a diagram of FIG. 3B), three subroutines are included in the page of the subroutine, namely a report 32, a sharing bicycle 33 and a sharing automobile 34, respectively, then a user clicks the report 32 on the subroutine page, namely the report page can be entered, referring to a diagram of FIG. 3B, in the report page (My report 35), identification of data to be accessed by the salesman and corresponding data, for example, the identification of the data is the sales amount of an automobile, the data is the numerical value of the sales amount of the round automobile, the identification 1 in the report is the sales amount of the automobile of the round, the identification 2 is the sales amount of the automobile of the round of the second, and the like. When a user clicks a report 32 on a sub-program page, a parent program WeChat receives an access operation (in this example, a clicking operation) of a salesman to access the sub-program, then the WeChat responds to the clicking operation, and then the WeChat sends a report access request to a foreground process; the foreground process responds to the report access request to send page codes to the WeChat, and then the WeChat receives the page codes sent by the foreground process, loads the page codes, and displays the identification of the result data and the result data in the page of the subroutine, so as to obtain the display page of the My report 35 in the c diagram.
In other embodiments of the present invention, the initial data further includes an identifier of the original data and an identifier of the processing rule, and the method further includes:
the background process acquires a history processing rule according to the identification of the processing rule;
and the background process judges whether the processing rules in the initial data are consistent with the historical processing rules according to the identification of the original data in the initial data, and if the processing rules in the initial data are inconsistent with the historical processing rules according to the identification of the original data in the initial data, sends alarm prompt information to the request side, wherein the alarm prompt information is used for indicating that the processing rules in the initial data are inconsistent with the historical processing rules. And if the processing rule in the initial data is consistent with the historical processing rule, the background process processes the initial data according to the processing rule to obtain result data.
The embodiment of the present invention further provides a data processing device, where the device is a configurable mobile report implementation device, fig. 4A is a schematic diagram of a composition structure of the data processing device according to the embodiment of the present invention, and as shown in fig. 4A, the device 40 may be divided into 3 large functional modules.
The first functional module is a configuration management module 41, a user on the service request side can define which column information the report to be seen contains on the authorized page, and can upload the original manually maintained file which is transmitted and managed in an Excel form to the device, and the device can automatically generate a data basic table (namely the original data in the initial data) for the current login user according to the file uploaded by the user;
and then the user can customize the processing rule (as a part of the initial data), for example, it is clear that the third column in Excel is the first column and the second column which are calculated by a certain formula, and the device can record the calculation rule input by the user into a rule table corresponding to the current login user, so as to complete basic configuration management.
In the subsequent flow, when the user wants to change the data and the rules, the steps are repeated.
The second functional module is a data calculation conversion module 42, and the background process assembles and calculates final result data according to rules and basic tables input by a user, and generates a result data table corresponding to the user after calculation.
The foreground process also assembles the head information of the table in the foreground process according to the column head information of the result table returned by the background process, thereby realizing the report display application with self-defined and configurable functions.
And the loading point is a loading point, and an instant messaging application such as a micro-letter subroutine mode is adopted, so that the loading amount of the instant messaging application is large, people can basically have the instant messaging application, and by adopting an entry mode of the instant messaging application subroutine, a user can open a corresponding report subroutine on the micro-letter to check service data at any time and any place without additionally installing an APP.
The third functional module is an automatic check and alarm reminding module 43, and the part is mainly provided with a program for comparing the data displayed on the report form with the data of the basic table uploaded by the user and the data of the previous processing rule table, checking if inconsistent changes are found, and updating the data after consistency, and warning the developer and prompting the user by matching with an alarm reminding function.
Fig. 4B is a schematic flowchart of an implementation process in which result data received by a foreground process is presented on a subroutine according to an embodiment of the present invention, as shown in fig. 4B, where the process includes:
step S401, starting writing a subprogram;
step S402, acquiring an application identification (APP ID) of a subprogram of a main program;
in the embodiment, a developer applies for developing an APP ID to a development side of a main program to acquire development authentication information;
step S403, starting to create a project;
In this embodiment, starting to create the item includes creating a subroutine item;
step S404, writing or generating codes;
in this embodiment, an entry file (app.js), a project style file (app.wxss), and a project configuration file (app.json) of a program are written.
In this embodiment, the three files of the written program may be codes written manually by a user or may be codes generated automatically, where the manually written codes include outgoing codes written by the user one by one, and codes on NPM resources obtained by the user from external resources of a third party, such as third party node package manager (NPM, node Package Manager) resources by means of manual downloading and manual copying.
Step S405, a request is initiated to a server;
in this embodiment, according to the main program, a corresponding request is used, and if the main program is WeChat, a wx.request may be used to obtain a page generated by the server; the wx.request is a network request application programming interface (Application Programming Interface, API), i.e. an API for implementing data interaction between the subroutine and the server of the main program developer.
Step S406, the result is presented on the subroutine;
step S407, the flow ends.
From the above embodiments, it can be seen that the present embodiment introduces a configuration entry policy, where the policy stores initial data (including original data and processing rules) uploaded by the user each time, so as to facilitate systemization and plastic control, which is superior to an off-line Excel mode. In the implementation process, the method can be carried out by taking the timestamp or the version number as the identification, and a certain version before the user wants to view is stored only by selecting the corresponding time period or the version number. The data calculation conversion and assembly strategy is introduced, the background process automatically calculates the data base table in the configuration information by applying the calculation rule to obtain the result data, then the result data is presented to the foreground process for processing, the foreground process automatically displays the corresponding table content according to the columns of the data table, and the subroutine is used as a loading and presenting user interface. In the embodiment, an automatic check strategy is introduced, and the data in two places are automatically checked and compared, so that the method is better than the prior manual comparison and more efficient.
Based on the foregoing embodiments, the embodiments of the present invention provide a data processing apparatus, where each program included in the data processing apparatus may be implemented by a processor in a computing device, such as a computer, a server, a personal computer, or the like, and may of course also be implemented by a logic circuit; in the course of an embodiment, the processor may be a central processing unit (cpu), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
FIG. 5A is a schematic diagram of a data processing apparatus according to an embodiment of the present invention, and as shown in FIG. 5A, the apparatus 500 includes a background process 501 and a foreground process 502, wherein:
a background process 501, configured to receive initial data sent by a request side, where the initial data includes original data and a processing rule for processing the original data;
the background process 501 is configured to process the original data according to the processing rule to obtain result data;
the background process 501 is configured to send the determined identifier of the result data and the result data to a foreground process;
the foreground process 502 is configured to generate code for a subroutine to process the identification of the result data and the result data, where the subroutine is a web-based application developed based on hypertext markup language, cascading style sheets, and scripting language, and is running in a parent program in the form of a web page.
In other embodiments of the present invention, the initial data further includes an identifier of the original data, and the background process is configured to determine the identifier of the result data according to the identifier of the original data and the processing rule.
In other embodiments of the invention, the initial data includes an identification of the result data. And the background process is used for analyzing the initial data to obtain the identification of the result data.
In other embodiments of the present invention, the foreground process is configured to receive a report access request from a report access request side for accessing the subroutine;
the foreground process is used for responding to the report access request and authenticating the report access request side;
and the foreground process is used for allowing the report access request side to access the subprogram after the authentication is passed.
In other embodiments of the invention, the apparatus further comprises a parent program for: receiving an access operation of a report access request side to access the subprogram; responding to the access operation, and sending a report access request to the foreground process; and receiving the page code sent by the foreground process, loading the page code, and displaying the identification of the result data and the result data in the page of the subprogram.
In other embodiments of the present invention, the report access request carries a user identifier and an identifier of data to be accessed, and the foreground process is configured to determine, according to the user identifier and the identifier of the data to be accessed, whether the user has permission to access the data to be accessed; displaying the data to be accessed to the user if the user has the right to access the data to be accessed according to the identification of the user and the identification of the data to be accessed; and if the user does not have the right to access the data to be accessed, displaying first prompt information to the user, wherein the first prompt information is used for indicating that the user has no access right.
In other embodiments of the present invention, as shown in fig. 5B, the apparatus further comprises a program 503 for generating a subroutine, wherein the foreground process is configured to send at least the identification of the result data and the result data to the program for generating a subroutine;
the program for generating the subroutine is used for generating page codes in the subroutine according to the identification of the result data and the result data. And the page code displays the identification of the result data and the result data in a report form when running.
In other embodiments of the present invention, the initial data further includes an identifier of the original data and an identifier of the processing rule, and the background process is configured to obtain a historical processing rule according to the identifier of the processing rule;
the background process is used for judging whether the processing rules in the initial data are consistent with the historical processing rules according to the identification of the original data in the initial data, and sending alarm prompt information to the request side if the processing rules in the initial data are determined to be inconsistent with the historical processing rules according to the identification of the original data in the initial data, wherein the alarm prompt information is used for indicating that the processing rules in the initial data are inconsistent with the historical processing rules. And if the processing rule in the initial data is consistent with the historical processing rule, the background process processes the initial data according to the processing rule to obtain result data.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention.
In the embodiment of the invention, if the method for capturing the screen of the terminal is implemented in the form of a software function module and is sold or used as a separate product, the method can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention further provides a data processing apparatus, and fig. 6 is a schematic diagram of a composition structure of the data processing apparatus according to the embodiment of the present invention, as shown in fig. 6, where the apparatus includes a storage medium (memory) 601 and a processor 602, where:
a storage medium 601 configured to store computer-executable instructions (programs);
a processor 602 configured to execute stored computer executable instructions, which when executed by the processor performs the steps of:
receiving initial data sent by a request side, wherein the initial data comprises original data and a processing rule for processing the original data;
processing the original data according to the processing rule to obtain result data;
the identification of the determined result data and the result data are sent to a foreground process;
generating code for a subroutine to process an identification of the result data and the result data, wherein the subroutine is a web-based application developed based on a hypertext markup language, a cascading style sheet, and a scripting language, running in a parent program in the form of a web page.
Still other embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Receiving initial data sent by a request side, wherein the initial data comprises original data and a processing rule for processing the original data;
processing the original data according to the processing rule to obtain result data;
the identification of the determined result data and the result data are sent to a foreground process;
generating code for a subroutine to process an identification of the result data and the result data, wherein the subroutine is a web-based application developed based on a hypertext markup language, a cascading style sheet, and a scripting language, running in a parent program in the form of a web page.
It should be noted that: the description of computing device and storage medium embodiments above is similar to that of method embodiments described above, with similar benefits as method embodiments. For technical details not disclosed in the embodiments of the computing device and the storage medium of the present invention, please refer to the description of the method embodiments of the present invention.
In the implementation process, the data processing device may be implemented by using a computing device, such as a computer, a server, a personal computer, etc., and fig. 7 is a schematic diagram of a hardware entity of the computing device according to an embodiment of the present invention, where the hardware entity of the computing device 700 includes: a processor 701, a communication interface 702, an input module 703, a display module 704 and a memory 705, wherein
The processor 701 generally controls the overall operation of the computing device 700. For example, the input module 703 may be implemented as a touch screen, and output, to the processor 701, user operation data characterizing operation features (including a contact position, a contact number, and a trigger pressure) of the touch screen, and the processor 701 may analyze the user operation data to determine a function triggered by a user in the display interface, and generate display data corresponding to the triggered function, so that the display module 704 loads a page corresponding to the triggered function.
Communication interface 702 may enable the computing device to communicate with other terminals or servers over a network.
The input module 703 may be configured to receive input character information and to generate signal inputs related to user settings and function control. The input module may include a touch surface, where the touch surface may collect touch operations on or near a user (such as operations on or near the touch surface by the user using a finger, a stylus, or any other suitable object or accessory), obtain signals from the touch operations, convert the signals into coordinates of contacts, send the coordinates to the processor 701, and receive commands sent from the processor 701 and execute the commands.
The display module 704 may be configured to display functions implemented by the processor 701 and related information.
The memory 705 is configured to store instructions and applications executable by the processor 701, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by various modules in the processor 701 and the computing device 700, which may be implemented by a FLASH memory (FLASH) or a random access memory 705 (RAM, random Access Memory).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method of data processing, the method comprising:
the background process receives initial data sent by a service request side, wherein the initial data comprises original data, an identifier of the original data and a processing rule for processing the original data;
the background process processes the original data according to the processing rule to obtain result data;
the background process determines the identification of the result data according to the identification of the original data and the processing rule;
the background process sends the identification of the determined result data and the result data to the foreground process;
the foreground process generates code for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
2. The method according to claim 1, wherein the method further comprises:
the foreground process receives a report access request of a report access request side for accessing the subprogram;
the foreground process responds to the report access request and authenticates the report access request side;
and after the authentication is passed, the foreground process allows the report access request side to access the subprogram.
3. The method of claim 2, wherein the report access request carries an identifier of a user and an identifier of data to be accessed, and the method further comprises:
and when the foreground process determines that the user has the right to access the data to be accessed according to the identification of the user and the identification of the data to be accessed, displaying the data to be accessed to the user.
4. The method of any of claims 1 to 2, wherein the foreground process generates code for a subroutine to process the identity of the result data and the result data, the method further comprising:
the foreground process sends at least the identification of the result data and the result data to a program for generating a subroutine;
and the program for generating the applet generates a page code in the subprogram according to the identification of the result data and the result data, and the page code displays the identification of the result data and the result data in a report form when running.
5. The method according to claim 4, wherein the method further comprises:
the parent program receives an access operation of a report access request side to access the subprogram;
The parent program responds to the access operation and sends a report access request to the foreground process;
and the parent program receives the page code sent by the foreground process, loads the page code and displays the identification of the result data and the result data in the page of the subprogram.
6. The method according to any one of claims 1 to 2, wherein the initial data further includes an identification of the original data and an identification of the processing rule, the method further comprising:
the background process acquires a history processing rule according to the identification of the processing rule;
the background process determines that the processing rules in the initial data are inconsistent with the historical processing rules according to the identification of the original data in the initial data, and sends alarm prompt information to the request side, wherein the alarm prompt information is used for indicating that the processing rules in the initial data are inconsistent with the historical processing rules.
7. A data processing apparatus, the apparatus comprising a background process and a foreground process, wherein:
the background process is used for receiving initial data sent by a request side, wherein the initial data comprises original data, an identifier of the original data and a processing rule for processing the original data;
The background process is used for processing the original data according to the processing rule to obtain result data;
the background process is used for determining the identification of the result data according to the identification of the original data and the processing rule;
the background process is used for sending the identification of the determined result data and the result data to the foreground process;
the foreground process is used for generating codes for the subprogram to process the identification of the result data and the result data, and the codes run in the form of web pages in the parent program.
8. The apparatus of claim 7, further comprising a program for generating a subroutine, wherein the foreground process is configured to send at least an identification of the result data and the result data to the program for generating a subroutine;
the program for generating the subprogram is used for generating a page code in the subprogram according to the identification of the result data and the result data, and the page code displays the identification of the result data and the result data in a report form when running.
9. The apparatus of claim 7, further comprising a parent program for: receiving an access operation of a report access request side to access the subprogram;
Responding to the access operation, and sending a report access request to the foreground process;
and receiving a page code sent by the foreground process, loading the page code, and displaying the identification of the result data and the result data in the page of the subprogram.
10. The apparatus according to claim 7 or 8, wherein the initial data further includes an identifier of original data and an identifier of a processing rule, and the background process is configured to obtain a history processing rule according to the identifier of the processing rule;
the background process is used for determining that the processing rules in the initial data are inconsistent with the historical processing rules according to the identification of the initial data in the initial data, and sending alarm prompt information to the request side, wherein the alarm prompt information is used for indicating that the processing rules in the initial data are inconsistent with the historical processing rules.
11. 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 processor implements the following steps when executing the program:
receiving initial data sent by a request side, wherein the initial data comprises original data, an identifier of the original data and a processing rule for processing the original data;
Processing the original data according to the processing rule to obtain result data;
determining the identification of the result data according to the identification of the original data and the processing rule;
the identification of the determined result data and the result data are sent to a foreground process;
code is generated for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
12. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor performs the steps of:
receiving initial data sent by a request side, wherein the initial data comprises original data, an identifier of the original data and a processing rule for processing the original data;
processing the original data according to the processing rule to obtain result data;
determining the identification of the result data according to the identification of the original data and the processing rule;
the identification of the determined result data and the result data are sent to a foreground process;
code is generated for the sub-program to process the identification of the result data and the result data, running in the parent program in the form of a web page.
CN201710326712.6A 2017-05-10 2017-05-10 Data processing method and device, equipment and storage medium Active CN108874390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710326712.6A CN108874390B (en) 2017-05-10 2017-05-10 Data processing method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710326712.6A CN108874390B (en) 2017-05-10 2017-05-10 Data processing method and device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108874390A CN108874390A (en) 2018-11-23
CN108874390B true CN108874390B (en) 2023-05-16

Family

ID=64287982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710326712.6A Active CN108874390B (en) 2017-05-10 2017-05-10 Data processing method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108874390B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554885A (en) * 2019-08-29 2019-12-10 五八有限公司 Sub-application generation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826085A (en) * 2009-12-30 2010-09-08 厦门市美亚柏科信息股份有限公司 AJAX-based method for importing/exporting large file into/from web page on line
CN105786476A (en) * 2014-12-26 2016-07-20 航天信息股份有限公司 Data processing method and system based on mobile client and server
CN105786567A (en) * 2016-02-25 2016-07-20 四川长虹电器股份有限公司 Middleware for information interaction of light application and main application and iOS application sub-module dynamic updating method
CN106371848A (en) * 2016-09-09 2017-02-01 浪潮软件股份有限公司 Realization method of supporting Odata by web development framework

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343550B2 (en) * 2002-06-28 2008-03-11 Ubs Painewebber, Inc. System and method for providing on-line services for multiple entities
US9342274B2 (en) * 2011-05-19 2016-05-17 Microsoft Technology Licensing, Llc Dynamic code generation and memory management for component object model data constructs
JP6672309B2 (en) * 2014-09-09 2020-03-25 ライブパーソン, インコーポレイテッド Dynamic code management
DE112016003949T5 (en) * 2015-08-28 2018-05-17 Roman Glistvain WEB-BASED PROGRAMMING ENVIRONMENT FOR EMBEDDED EQUIPMENT
CN106372175A (en) * 2016-08-31 2017-02-01 五八同城信息技术有限公司 Method, device and server for processing report forms
CN106569824B (en) * 2016-11-07 2019-08-13 腾讯科技(深圳)有限公司 Method and apparatus, the method and apparatus of page rendering of page data compiling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826085A (en) * 2009-12-30 2010-09-08 厦门市美亚柏科信息股份有限公司 AJAX-based method for importing/exporting large file into/from web page on line
CN105786476A (en) * 2014-12-26 2016-07-20 航天信息股份有限公司 Data processing method and system based on mobile client and server
CN105786567A (en) * 2016-02-25 2016-07-20 四川长虹电器股份有限公司 Middleware for information interaction of light application and main application and iOS application sub-module dynamic updating method
CN106371848A (en) * 2016-09-09 2017-02-01 浪潮软件股份有限公司 Realization method of supporting Odata by web development framework

Also Published As

Publication number Publication date
CN108874390A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
JP6740373B2 (en) Page component dynamic layout
CN107979632B (en) Processing method, device and system for push information
US20200089719A1 (en) Rule and filter-based deeplinking between applications
CN105051686B (en) System and method for integrated recommendation
US9996381B1 (en) Live application management workflow using metadata capture
WO2018196808A1 (en) Service processing method and device
US10209855B1 (en) Concurrent display of masked views of applications between devices
US8886819B1 (en) Cross-domain communication in domain-restricted communication environments
WO2014160107A2 (en) Systems and methods for creating or updating an application using a pre-existing application
TW201723897A (en) Method, device, and system for displaying information associated with a web page
US10089108B1 (en) Archival format for incremental deployments and version control
CN106547769B (en) DOI display method and device
US20220337562A1 (en) Connecting Web Publisher Inventory to Programmatic Exchanges without Third-Party Cookies
CN106487662B (en) Information sharing method and device
US11269756B1 (en) Self-healing web applications
US20160269446A1 (en) Template representation of security resources
CN106897202B (en) Method and apparatus for outputting data
US10747390B1 (en) Graphical composer for policy management
CN108874390B (en) Data processing method and device, equipment and storage medium
CN110618811B (en) Information presentation method and device
CN108289056B (en) Method and device for sharing dynamic chart and computing equipment
US20210405826A1 (en) System and method for optimized generation of a single page application for multi-page applications
KR101170322B1 (en) Method and device for providing cloud computing service using personal computer based on web
US10878471B1 (en) Contextual and personalized browsing assistant
CN111367517B (en) Information generation method and device

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