CN109710509B - Data checking method, device, equipment and computer readable storage medium - Google Patents

Data checking method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109710509B
CN109710509B CN201810947608.3A CN201810947608A CN109710509B CN 109710509 B CN109710509 B CN 109710509B CN 201810947608 A CN201810947608 A CN 201810947608A CN 109710509 B CN109710509 B CN 109710509B
Authority
CN
China
Prior art keywords
sentence
mondab
java
template
spring
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
CN201810947608.3A
Other languages
Chinese (zh)
Other versions
CN109710509A (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810947608.3A priority Critical patent/CN109710509B/en
Publication of CN109710509A publication Critical patent/CN109710509A/en
Application granted granted Critical
Publication of CN109710509B publication Critical patent/CN109710509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a data checking method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving java sentences input by a user in a code input window of a code debugging application interface; linking the received java sentence to a database mongab stored based on a distributed file so as to call an open source framework spring mongab template in the mongab; converting the java sentence into an operation sentence of the spliced mondab through the called spring mondab template; and transmitting the operation statement of the mongolidb to a console in real time so as to perform display check in the console. The invention improves the accuracy and efficiency of data inspection.

Description

Data checking method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data checking method, apparatus, device, and computer readable storage medium.
Background
In the existing code development and debugging process, java sentences are generated in general, because the java sentences are scattered sentences and the data are spliced in pieces, if whether the data are spliced correctly is judged, only codes can be manually written in a debugging tool for debugging so as to check whether returned data are correct, and the codes are manually written for debugging the data, so that the accuracy of the data is lower, the time consumed in the whole application and development process is longer, and the efficiency is lower.
Disclosure of Invention
The invention mainly aims to provide a data checking method, a device, equipment and a computer readable storage medium, which aim to solve the technical problems of low accuracy and efficiency of the existing data checking mode.
To achieve the above object, the present invention provides a data inspection method including:
receiving java sentences input by a user in a code input window of a code debugging application interface;
linking the received java sentence to a database mongab stored based on a distributed file so as to call an open source framework spring mongab template in the mongab;
converting the java sentence into an operation sentence of the spliced mondab through the called spring mondab template;
and transmitting the operation statement of the mongolidb to a console in real time so as to perform display check in the console.
Optionally, the step of linking the received java sentence to a database mondab stored based on a distributed file to call an open source framework spring mondab template in the mondab includes:
after receiving the java sentence, extracting link information from the java sentence;
entering a mondab corresponding to the link information according to the link information, transmitting the received java sentence to the mondab, and calling an open source framework spring mondab template in the mondab.
Optionally, the step of converting the java sentence into the spliced operation sentence of the mondab through the called spring mondab template includes:
reading a filter of the java sentence and analysis information of the java sentence;
determining a class according to a filter of the java sentence, and determining a method according to analysis information of the java sentence;
determining the class and the method in a springmong odb template according to the class and the method determined in the java sentence and a preset reflection mechanism;
and converting the java sentence into an operation sentence of the spliced mondab according to the class and the method of the spring mondab template.
Optionally, the reflection mechanism is a reflection mechanism of java sentences and mondabs, by which the class and the method can be determined in the spring mondab template, the class is an object in the java sentences, and when the class of the java sentences is corresponding to the spring mondab template by the reflection mechanism, the class is corresponding to a document in the mondab; the method in the java sentence is an operation method for adding or deleting classes according to the need, and when the method of the java sentence is corresponding to the spring mong odb template through a reflection mechanism, the method in the spring mong odb template refers to adding or deleting documents in the collection.
Optionally, the step of converting the java sentence into the spliced operation sentence of the mondab according to the class and the method of the spring mondab template includes:
mapping out an operation sentence expression corresponding to the class and the method in the spring mondab template through the class and the method in the spring mondab template;
calling information in java API class of the operation sentence expression according to the hierarchical relation of the method in the operation sentence expression, and splicing the called information according to the calling sequence to obtain a spliced operation sentence, wherein the spliced operation sentence is an operation sentence of mongasob in json format.
Optionally, after the step of transmitting the operation sentence of the mongab to the console in real time to perform the display check in the console, the method further includes:
determining the current service type;
comparing the type identifier of the operation statement with a service type to determine whether the operation statement is an operation statement corresponding to the service type;
if yes, determining that the splicing result of the operation statement is correct.
Optionally, after the step of transmitting the operation sentence of the mongab to the console in real time to perform the display check in the console, the method further includes:
executing the operation statement in the console;
printing the execution result of the operation statement into the console, and manually analyzing whether the spliced operation statement is correct.
In addition, in order to achieve the above object, the present invention also provides a data inspection apparatus including:
the receiving module is used for receiving java sentences input by a user in a code input window of the code debugging application interface;
the calling module is used for linking the received java statement to a database mondab stored based on a distributed file so as to call an open source framework spring mondab template in the mondab;
the conversion module is used for converting the java sentence into the spliced operation sentence of the mondab through the called spring mondab template;
and the display module is used for transmitting the operation statement of the mongolidb to the console in real time so as to display and check in the console.
In addition, in order to achieve the above object, the present invention also provides a data inspection apparatus including a memory, a processor, a communication bus, and a data inspection program stored on the memory and executable on the processor;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the data inspection program to implement the steps of the data inspection method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a data inspection program which, when executed by a processor, implements the steps of the data inspection method as described above.
According to the data checking method, java sentences input by a user in a code input window of a code debugging application interface are received, the received java sentences are linked to mongolian to call spring mongolian templates in the mongolian, the java sentences are converted into spliced operation sentences of the mongolian through the called spring mongolian templates, and the operation sentences of the mongolian are transmitted to a console in real time to be checked in display in the console. According to the invention, the fragmented java sentences are transmitted to the mondab, the spring mondab template is called by the mondab to be converted into the operation sentences of the mondab, and finally the operation sentences are transmitted to the console for display inspection.
Drawings
FIG. 1 is a schematic diagram of a data inspection device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a data inspection method according to the present invention;
FIG. 3 is a schematic diagram of the refinement procedure of step S20 in FIG. 2;
FIG. 4 is a schematic diagram of a refinement flow chart of step S30 in FIG. 2;
FIG. 5 is a schematic diagram of the refinement procedure of step S34 in FIG. 4;
FIG. 6 is a flowchart of a second embodiment of the data inspection method of the present invention;
fig. 7 is a flowchart of a third embodiment of the data checking method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The solution of the embodiment of the invention mainly comprises the following steps: receiving java sentences input by a user in a code input window of a code debugging application interface, linking the received java sentences into mongolian, calling a spring mongolian template in the mongolian, converting the java sentences into operation sentences of the spliced mongolian by the called spring mongolian template, and transmitting the operation sentences of the mongolian to a console in real time so as to perform display inspection in the console. The method solves the problem that the accuracy and the efficiency are low in the existing data checking mode.
Referring to fig. 1, fig. 1 is a schematic diagram of a data inspection device of a hardware running environment according to an embodiment of the present invention.
The data checking device of the embodiment of the invention can be a PC, or can be a device with a display function such as a smart phone, a tablet personal computer, a portable computer and the like.
As shown in fig. 1, the data inspection apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface (e.g., for connecting a wired Keyboard, a wired mouse, etc.), a wireless interface (e.g., for connecting a wireless Keyboard, a wireless mouse, etc.). The network interface 1004 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (e.g., WI-FI interface, bluetooth interface, infrared interface, etc., for connecting to a wireless network). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like.
It will be appreciated by those skilled in the art that the data inspection apparatus structure shown in fig. 1 does not constitute a limitation of the data inspection apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a data inspection program may be included in a memory 1005, which is a computer-readable storage medium. The operating system is a program for managing and controlling the data checking equipment and the software resource, and supports the operation of a network communication module, a user interface module, a data checking program and other programs or software; the network communication module is used to manage and control the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the data inspection apparatus shown in fig. 1, the data inspection apparatus calls a data inspection program stored in a memory 1005 through a processor 1001 to implement the steps of the data inspection method as described below.
Based on the hardware structure of the data inspection apparatus described above, various embodiments of the data inspection method of the present invention are presented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a data checking method according to the present invention.
In this embodiment, the data inspection method includes:
step S10, receiving java sentences input by a user in a code input window of a code debugging application interface;
step S20, the received java sentence is linked to a database mondab stored based on a distributed file, so that an open source framework spring mondab template is called in the mondab;
step S30, converting the java sentence into an operation sentence of the spliced mondab through a called spring mondab template;
and step S40, transmitting the operation statement of the mongolidb to a console in real time so as to perform display check in the console.
In the present embodiment, the data inspection method is applied to a data inspection apparatus such as the inspection apparatus shown in fig. 1. The data checking device is provided with a mondab (database stored based on a distributed file), and a spring (open source framework) mondab template is stored in the mondab so as to perform subsequent java (object-oriented programming language) sentence conversion.
The following is a specific procedure for implementing data inspection in this embodiment:
step S10, receiving java sentences input by a user in a code input window of a code debugging application interface;
in this embodiment, the code debugging application is started first to display a code input window on an application interface of the code debugging application, and in the case that the code input window is displayed on the application interface, a java sentence input by a user in the code input window is received, and it should be understood that the java sentence is a scattered sentence.
Step S20, the received java sentence is linked to a database mondab stored based on a distributed file, so that an open source framework spring mondab template is called in the mondab;
after receiving a java sentence input by a user, linking the received java sentence into mongolian to call a pre-stored spring mongolian template in the mongolian. Specifically, referring to fig. 3, the step S20 includes:
step S21, after receiving the java sentence, extracting link information from the java sentence;
step S22, entering a mondab corresponding to the link information according to the link information, transmitting the received java sentence to the mondab, and calling an open source framework spring mondab template in the mondab.
That is, after a java sentence is received, link information is extracted from the java sentence, after the link information is extracted from the java sentence, click operation or touch operation received by an area where the link information is located enters a mongab corresponding to the link information, and then the java sentence is transmitted to the mongab, so that an open source framework spring mongab template is called in the mongab, and a subsequent sentence conversion operation is executed.
In this embodiment, the link information of the java sentence is directly entered into the mondab, so that a mode of entering the mondab is more convenient, the java sentence is subsequently transmitted to the mondab, so that the spring mondab template is called in the mondab, and the whole operation process of calling the spring mondab template by the java sentence is also more convenient and simple. Step S30, converting the java sentence into an operation sentence of the spliced mondab through a called spring mondab template;
and after the java sentence is transmitted to the mondab, calling a spring mondab template in the mondab, wherein the spring mondab template is stored in the mondab in advance and is used for converting the java sentence into an operation sentence of the mondab. After the spring mondab template is called, the java sentence is converted into the operation sentence of the spliced mondab through the called spring mondab template. Specifically, referring to fig. 4, the step S30 includes:
step S31, reading a filter of the java sentence and analysis information of the java sentence;
in this embodiment, the filter of the java sentence actually refers to a condition for screening the class of the java sentence, that is, the filter of the java sentence is provided with a condition to be screened, which classes need to be screened, and the required class can be determined through the filter of the java sentence. The analysis information of the java sentence refers to an operation method of the java sentence, namely a method of how to operate the java sentence. Step S32, determining a class according to a filter of the java sentence, and determining a method according to analysis information of the java sentence;
it should be noted that, an entity class (class) is newly built in the java sentence, and the class corresponds to an attribute value, for example: in the java sentence, the object of the class is a book, and the attribute values of the class are the unit price, the name and the date of publication of the book. And determining the class according to the filter of the java sentence, namely screening out the required class through the filter of the java sentence. In addition, a specific method is arranged in the java sentence, the method of the java sentence is determined through analysis information, the analysis information indicates the operation method of the java sentence, the operation method can be determined through reading the analysis information of the java sentence, and if the object of the class is a book, the operation method of the java sentence is as follows: classes are added or deleted as needed.
Step S33, determining the class and the method in the spring mong odb template according to the class and the method determined in the java sentence and a preset reflection mechanism;
in this embodiment, after determining the class and method, the class and method are determined in the spring mondab template according to the determined class, method and preset reflection mechanism, where the reflection mechanism is one of java sentence and mondab, and by means of which the class and method can be determined in the spring mondab template. That is, when the class in the java sentence is an object and the class of the java sentence is corresponding to the spring mondab template through the reflection mechanism, the class corresponds to a document in the mondab, the method in the java sentence is an operation method for adding or deleting the class according to the requirement, and when the method of the java sentence is corresponding to the spring mondab template through the reflection mechanism, the method in the spring mondab template refers to adding or deleting the document in the collection.
Step S34, converting the java sentence into an operation sentence of the spliced mondab according to the class and the method of the spring mondab template.
After determining the class and method of the spring mondab template, converting the java sentence into an operation sentence of mondab according to the class and method of the spring mondab template, that is, filtering out documents in a set of spring mondab templates according to a reflection mechanism after filtering out classes and adding or deleting classes in the java sentence, adding or deleting documents in the set of documents, and finally obtaining the operation sentence of mondab according to the operation of adding or deleting documents in the set, wherein the operation sentence of mondab is an operation sentence in json (javaScript Object Notation, a data exchange format).
In other words, in this embodiment, after the java sentence is obtained, a required class may be determined according to a filter of the java sentence, and a corresponding method may be determined according to the java sentence, and then, when the java sentence is transmitted to the spring mondab template, according to the class and method set in the java sentence, the corresponding class and method may be called in the spring mondab template, so as to convert the java sentence into the operation sentence of the mondab in the json format after the concatenation.
Further, referring to fig. 5, the step S34 includes:
step S341, mapping out an operation sentence expression corresponding to the class and the method in the spring mondab template through the class and the method in the spring mondab template;
in this embodiment, after determining the class and method of the spring mondab template, mapping an operation sentence expression corresponding to the class and method in the spring mondab template through the class and method in the spring mondab template, where it is to be noted that the class and method in the spring mondab template can be uniquely mapped to a corresponding operation sentence expression, the form of the operation sentence expression is not limited, and is determined according to the actual content of the class and method.
Step S342, calling information in java API class of the operation sentence expression according to the hierarchical relation of the method in the operation sentence expression, and splicing the called information according to the calling order to obtain a spliced operation sentence, wherein the spliced operation sentence is an operation sentence of mongasob in json format.
After obtaining the operation statement expressions corresponding to the classes and the methods, calling information in the java API classes according to the hierarchical relations of the classes and the methods of the java API (Application Programming Interface ) of the operation statement expressions, and splicing the called information according to the calling order to obtain the spliced operation statement.
And step S40, transmitting the operation statement of the mongolidb to a console in real time so as to perform display check in the console.
After the java sentence is converted into the operation sentence of mongab through the spring mongab template, the operation sentence is transmitted to a console in real time so as to perform display inspection in the console, and the console is a display window for displaying the spliced operation sentence, so that a user can visually detect the spliced operation sentence.
According to the data checking method, java sentences input by a user in a code input window of a code debugging application interface are received, the received java sentences are linked to mongolian to call a spring mongolian template in the mongolian, the java sentences are converted into operation sentences of the spliced mongolian through the called spring mongolian template, and the operation sentences of the mongolian are transmitted to a console in real time to be checked in display in the console. According to the invention, the fragmented java sentences are transmitted to the mondab, the spring mondab template is called by the mondab to be converted into the operation sentences of the mondab, and finally the operation sentences are transmitted to the console for display inspection.
Further, a second embodiment of the data inspection method of the present invention is proposed based on the first embodiment.
The second embodiment of the data inspection method differs from the first embodiment of the data inspection method in that, referring to fig. 6, after the step S40, the method further includes:
step S50, determining the current service type;
in this embodiment, after the operation statement of mongab is transmitted to the console for display, the currently required service type is determined, where the service type is determined according to a service specifically included in the code debugging application, and is not limited herein.
Step S60, comparing the type identifier of the operation sentence with the service type to determine whether the operation sentence is the operation sentence corresponding to the service type;
and step S70, if yes, determining that the splicing result of the operation statement is correct.
After determining the service type, extracting a type identifier from the operation statement to compare the type identifier of the operation statement with the service type, determining whether the operation statement is the operation statement corresponding to the service type, and if the operation statement is the operation statement corresponding to the service type, determining that the splicing result of the operation statement is correct.
In this embodiment, after the spliced operation statement is obtained, the current service type is compared with the type identifier of the operation statement, so as to verify the splicing result of the operation statement, thereby improving the accuracy of data inspection.
Further, a third embodiment of the data inspection method of the present invention is proposed based on the first or second embodiment.
The third embodiment of the data inspection method differs from the first or second embodiment of the data inspection method in that, referring to fig. 7, after the step S40, the method further includes:
step S80, executing the operation statement in the control console;
and step S90, printing an execution result of the operation statement into the console, and manually analyzing whether the spliced operation statement is correct.
In this embodiment, after the operation sentence of mongab is transmitted to the console for display, the operation sentence, that is, the program segment of the operation sentence, may be executed in the console, after the execution result of the operation sentence is obtained, the execution result of the operation sentence is printed in the console, and whether the spliced operation sentence is correct or not is analyzed manually.
In this embodiment, another data checking method is provided, and the execution result of the operation sentence is directly displayed in the console, so that the user can visually check the operation sentence, thereby improving the convenience and flexibility of data checking.
The present invention also provides a data inspection apparatus including:
the receiving module is used for receiving java sentences input by a user in a code input window of the code debugging application interface;
the calling module is used for linking the received java statement to a database mondab stored based on a distributed file so as to call an open source framework spring mondab template in the mondab;
the conversion module is used for converting the java sentence into the spliced operation sentence of the mondab through the called spring mondab template;
and the display module is used for transmitting the operation statement of the mongolidb to the console in real time so as to display the operation statement in the console.
The specific implementation manner of the data checking device of the present invention is basically the same as the above embodiments of the file type conversion method, and will not be repeated here.
Furthermore, an embodiment of the present invention also proposes a computer-readable storage medium having stored thereon a data inspection program which, when executed by a processor, implements the data inspection method as described above.
The specific implementation of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the file type conversion method, and will not be described herein.
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.
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.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings, or by direct or indirect application to other relevant art(s).

Claims (8)

1. A data inspection method, characterized in that the data inspection method comprises the steps of:
receiving java sentences input by a user in a code input window of a code debugging application interface;
linking the received java sentence to a database mongab stored based on a distributed file so as to call an open source framework spring mongab template in the mongab;
converting the java sentence into an operation sentence of the spliced mondab through the called spring mondab template;
transmitting the operation statement of the mongolidb to a console in real time so as to perform display check in the console;
the step of converting the java sentence into the spliced mondab operation sentence through the called spring mondab template comprises the following steps:
reading a filter of the java sentence and analysis information of the java sentence;
determining a class according to a filter of the java sentence, and determining a method according to analysis information of the java sentence;
determining the class and the method in a spring mongamb template according to the class and the method determined in the java sentence and a preset reflection mechanism;
converting the java sentence into an operation sentence of the spliced mondab according to the class and the method of the spring mondab template;
the reflection mechanism is one of java sentences and mondabs, by which classes and methods can be determined in a spring mondab template, the classes in the java sentences are objects, and when the classes of the java sentences are corresponding to the spring mondab template by the reflection mechanism, the classes are corresponding to documents in the mondab; the method in the java sentence is an operation method for adding or deleting classes according to the need, and when the method of the java sentence is corresponding to the spring mong odb template through a reflection mechanism, the method in the spring mong odb template refers to adding or deleting documents in the collection.
2. The data checking method of claim 1, wherein the step of linking the received java sentence into a distributed file storage based database mondab to invoke an open source framework spring mondab template in the mondab comprises:
after receiving the java sentence, extracting link information from the java sentence;
entering a mondab corresponding to the link information according to the link information, transmitting the received java sentence to the mondab, and calling an open source framework spring mondab template in the mondab.
3. The data checking method of claim 1, wherein the step of converting the java sentence into the operation sentence of the spliced mondab according to the class and method of the spring mondab template comprises:
mapping out an operation sentence expression corresponding to the class and the method in the spring mondab template through the class and the method in the spring mondab template;
calling information in java API class of the operation sentence expression according to the hierarchical relation of the method in the operation sentence expression, and splicing the called information according to the calling sequence to obtain a spliced operation sentence, wherein the spliced operation sentence is an operation sentence of mongasob in json format.
4. A data inspection method according to any one of claims 1 to 3, wherein the operation statement of mongab is transmitted to a console in real time, so that after the step of performing a display inspection in the console, the method further comprises:
determining the current service type;
comparing the type identifier of the operation statement with a service type to determine whether the operation statement is an operation statement corresponding to the service type;
if yes, determining that the splicing result of the operation statement is correct.
5. A data inspection method according to any one of claims 1 to 3, wherein the operation statement of mongab is transmitted to a console in real time, so that after the step of performing a display inspection in the console, the method further comprises:
executing the operation statement in the console;
printing the execution result of the operation statement into the console, and manually analyzing whether the spliced operation statement is correct.
6. A data inspection device, characterized in that the data inspection device comprises:
the receiving module is used for receiving java sentences input by a user in a code input window of the code debugging application interface;
the calling module is used for linking the received java statement to a database mondab stored based on a distributed file so as to call an open source framework spring mondab template in the mondab;
the conversion module is used for converting the java sentence into the spliced operation sentence of the mondab through the called spring mondab template;
the display module is used for transmitting the operation statement of the mongolidb to the console in real time so as to perform display check in the console;
the conversion module is also used for reading a filter of the java sentence and analysis information of the java sentence; determining a class according to a filter of the java sentence, and determining a method according to analysis information of the java sentence; determining the class and the method in a spring mongamb template according to the class and the method determined in the java sentence and a preset reflection mechanism; converting the java sentence into an operation sentence of the spliced mondab according to the class and the method of the spring mondab template; the reflection mechanism is one of java sentences and mondabs, by which classes and methods can be determined in a spring mondab template, the classes in the java sentences are objects, and when the classes of the java sentences are corresponding to the spring mondab template by the reflection mechanism, the classes are corresponding to documents in the mondab; the method in the java sentence is an operation method for adding or deleting classes according to the need, and when the method of the java sentence is corresponding to the spring mong odb template through a reflection mechanism, the method in the spring mong odb template refers to adding or deleting documents in the collection.
7. A data inspection device comprising a memory, a processor, a communication bus, and a data inspection program stored on the memory and executable on the processor;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the data inspection program to implement the steps of the data inspection method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a data inspection program which, when executed by a processor, implements the steps of the data inspection method according to any one of claims 1 to 5.
CN201810947608.3A 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium Active CN109710509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810947608.3A CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810947608.3A CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109710509A CN109710509A (en) 2019-05-03
CN109710509B true CN109710509B (en) 2023-07-21

Family

ID=66253709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810947608.3A Active CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109710509B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609255A (en) * 2012-01-19 2012-07-25 中国科学院计算机网络信息中心 Generation method for Spring IOC (Inversion of Control) configuration file
CN105512985A (en) * 2015-12-29 2016-04-20 杭州邦泰科技有限公司 Diabetes electronic medical record data storage method based on openEHR standard

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9128991B2 (en) * 2012-04-03 2015-09-08 Sas Institute, Inc. Techniques to perform in-database computational programming
US10038682B2 (en) * 2015-10-12 2018-07-31 American Express Travel Related Services Company, Inc. System and method for communicating between distributed applications and databases
US10162612B2 (en) * 2016-01-04 2018-12-25 Syntel, Inc. Method and apparatus for inventory analysis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609255A (en) * 2012-01-19 2012-07-25 中国科学院计算机网络信息中心 Generation method for Spring IOC (Inversion of Control) configuration file
CN105512985A (en) * 2015-12-29 2016-04-20 杭州邦泰科技有限公司 Diabetes electronic medical record data storage method based on openEHR standard

Also Published As

Publication number Publication date
CN109710509A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN110019486B (en) Data acquisition method, device, equipment and storage medium
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
CN107656872B (en) Software testing method, device, equipment and computer storage medium
US11074162B2 (en) System and a method for automated script generation for application testing
CN109634841B (en) Electronic device, interface automatic test method and storage medium
CN113741898B (en) Form generation method, device and equipment
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN115562656A (en) Page generation method and device, storage medium and computer equipment
US20160004782A1 (en) Script caching method and information processing device utilizing the same
CN112770108B (en) Performance test method, device and system and computer readable storage medium
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
CN113157256B (en) Method and device for generating interface code, electronic equipment, storage medium and product
CN109710509B (en) Data checking method, device, equipment and computer readable storage medium
CN115543324B (en) Method, device, equipment and medium for generating interactive interface
CN117370162A (en) Test tool management method, device, equipment and storage medium
CN111857672A (en) Business development method, device, equipment and medium based on SQL configuration
CN111125205A (en) Signboard data display method, terminal and storage medium
CN111752916A (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN110780970A (en) Data screening method, device, equipment and computer readable storage medium
CN110716859A (en) Method for automatically pushing test cases for modified codes and related device
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN114756183A (en) Data printing method, device, equipment and storage medium
CN111045724B (en) Query method, device and readable storage medium for calling chain information
CN112328612A (en) Method, system, device and medium for generating field consistency verification test data
KR20170047605A (en) System and method for performing test automation of solution

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