Data scanning method and device, electronic equipment and computer readable medium
By receiving scanning tasks and managing the scanning data pool according to the task type, the problem of low data scanning accuracy in the existing technology is solved, code security scanning in the development stage is realized, and the security performance of the system is improved.
Patent Information
- Application Number
- CN202410829229.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-17
AI Technical Summary
Existing systems do not perform sufficient code scanning during the development stage, resulting in low data scanning accuracy and inability to effectively respond to application-level attack threats.
By receiving the scan task, obtain the physical subsystem identifier, determine the task type, add the scan task to the self-scanning data pool according to the type, accumulate and update the number of scans, call the thread pool to execute the scan task, and ensure that the pipeline production task reaches the preset threshold. Scan.
It improves the accuracy of data scanning, ensures that the project team conducts timely code security scanning during the development phase, reduces rectification difficulties caused by surprise scanning before going online, and improves the security performance of the system.
Smart Images

Figure CN118656190A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data scanning method, device, electronic device and computer-readable medium. Background Art
[0002] At present, information security is a dynamic thing that is developing and changing at any time. The field of attack has expanded from traditional single network attacks and system attacks to the application level. More and more systems have been attacked or are facing attack threats. The security performance of the system is based on the analysis and design of the system security plan on the one hand, and on the other hand, it also depends on the code defects in the coding process. At present, many systems are not fully scanned in the development stage, and only scan once before going online. All scanning tasks are counted without distinguishing between scanning types such as "development" and "production". Only check whether the code security scan has been performed before going online. Only scan and count the scanning tasks with the production type of "development". The production type marked as "development" is counted as scanned in the development stage, and the production type marked as "production" is not counted as scanned in the development stage, resulting in low data scanning accuracy. Summary of the invention
[0003] In view of this, embodiments of the present application provide a data scanning method, device, electronic device and computer-readable medium, which can solve the problem of low accuracy of existing data scanning.
[0004] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, a data scanning method is provided, including: in response to receiving a scanning task, obtaining a corresponding physical subsystem identifier; in response to the physical subsystem identifier not existing in the self-scanning data pool, obtaining a task identifier corresponding to the scanning task, and then determining the task type according to the task identifier; in response to the task type belonging to a self-built task or the task type belonging to a pipeline development task, adding the scanning task to the self-scanning data pool; in response to the task type belonging to a pipeline commissioning task, obtaining the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, in response to the number of scans being greater than a preset threshold, adding the scanning task to the self-scanning data pool, and in response to the number of scans being less than or equal to the preset threshold, updating the number of scans; calling the thread pool to execute each scanning task in the self-scanning data pool.
[0005] Optionally, in response to the task type being a self-built task or the task type being a pipeline development task, the scanning task is added to the self-scanning data pool, including: in response to the task type being a self-built task, the scanning task is added to the self-scanning data pool; in response to the task type not being a self-built task, determining whether the task type is a pipeline development task, and if so, adding the scanning task to the self-scanning data pool.
[0006] Optionally, in response to the task type belonging to the pipeline commissioning task, the cumulative number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier is obtained, including: in response to the task type not belonging to a self-built task and not belonging to a pipeline development task, it is determined whether the task type belongs to the pipeline commissioning task, and if so, the cumulative number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier is obtained.
[0007] Optionally, updating the number of scans includes: adding 1 to the number of scans to obtain an updated number of scans.
[0008] Optionally, the method also includes: in response to a modification operation on the task type, determining the attribute name corresponding to the modification operation; obtaining the corresponding field from the target report based on the attribute name, obtaining the modification data entered by the user, and replacing the field value corresponding to the field in the target report with the modification data.
[0009] Optionally, the task type is determined based on the task identifier, including: in response to the task identifier containing a preset identifier, determining the task type is a self-built task; in response to the task identifier not containing a preset identifier, determining the task type is a pipeline task, wherein the pipeline tasks include pipeline development tasks and pipeline commissioning tasks.
[0010] In addition, the present application also provides a data scanning device, including: an acquisition unit, configured to acquire a corresponding physical subsystem identifier in response to receiving a scanning task; a task type determination unit, configured to acquire a task identifier corresponding to the scanning task in response to the physical subsystem identifier not existing in the self-scanning data pool, and then determine the task type according to the task identifier; a task adding unit, configured to add the scanning task to the self-scanning data pool in response to the task type belonging to a self-built task or the task type belonging to a pipeline development task; an updating unit, configured to acquire the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier in response to the task type belonging to a pipeline commissioning task, add the scanning task to the self-scanning data pool in response to the number of scans being greater than a preset threshold, and update the number of scans in response to the number of scans being less than or equal to the preset threshold; an execution unit, configured to call the thread pool to execute each scanning task in the self-scanning data pool.
[0011] Optionally, the task adding unit is further configured to: in response to the task type being a self-built task, add the scanning task to the self-scanning data pool; in response to the task type not being a self-built task, determine whether the task type is a pipeline development task, and if so, add the scanning task to the self-scanning data pool.
[0012] Optionally, the update unit is further configured to: in response to the task type not being a self-built task and not being a pipeline development task, determine whether the task type is a pipeline commissioning task, and if so, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier.
[0013] Optionally, the updating unit is further configured to: add 1 to the number of scans to obtain an updated number of scans.
[0014] Optionally, the device also includes a modification unit, which is configured to: in response to a modification operation on a task type, determine the attribute name corresponding to the modification operation; obtain the corresponding field from the target report based on the attribute name, obtain the modification data entered by the user, and replace the field value corresponding to the field in the target report with the modification data.
[0015] Optionally, the task type determination unit is further configured to: in response to the task identifier containing a preset identifier, determine that the task type is a self-built task; in response to the task identifier not containing a preset identifier, determine that the task type is a pipeline task, wherein the pipeline task is configured as a pipeline development task and a pipeline commissioning task.
[0016] In addition, the present application also provides a data scanning electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the data scanning method as described above.
[0017] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the data scanning method as described above is implemented.
[0018] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.
[0019] A computer program product according to an embodiment of the present application includes a computer program, and when the program is executed by a processor, the data scanning method provided by the embodiment of the present application is implemented.
[0020] An embodiment of the above invention has the following advantages or beneficial effects: the present application obtains the corresponding physical subsystem identifier in response to receiving a scanning task; obtains the task identifier corresponding to the scanning task in response to the physical subsystem identifier not existing in the self-scanning data pool, and then determines the task type according to the task identifier; adds the scanning task to the self-scanning data pool in response to the task type belonging to a self-built task or the task type belonging to a pipeline development task; obtains the accumulated scanning times of the pipeline production task of the physical subsystem corresponding to the physical subsystem identifier in response to the scanning times being greater than a preset threshold, adds the scanning task to the self-scanning data pool in response to the scanning times being less than or equal to the preset threshold, and updates the scanning times; calls the thread pool to execute each scanning task in the self-scanning data pool. Thus, the data scanning accuracy is improved.
[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application. Figure 1 is a schematic diagram of the main process of a data scanning method according to an embodiment of the present application; Figure 2 is a schematic diagram of the main process of a data scanning method according to an embodiment of the present application; Figure 3 It is a schematic diagram of the main process of a data scanning method according to an embodiment of the present application; Figure 4 It is a schematic diagram of the main process of a data scanning method according to an embodiment of the present application; Figure 5 is a schematic diagram of main units of a data scanning device according to an embodiment of the present application; Figure 6 is an exemplary system architecture diagram to which the embodiments of the present application can be applied; Figure 7 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of known functions and structures is omitted in the following description. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of the present application, certain software, components, models, and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution. In the technical solution of the present application, the collection, analysis, use, transmission, storage, and other aspects of the user's personal information involved are in compliance with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes, and are not shared, leaked, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Take necessary measures to prevent illegal access to such personal information, ensure that persons with access to personal information comply with relevant laws and regulations, and ensure the security of personal information. Once such personal information is no longer needed, risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0024] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identification.
[0025] Figure 1 is a schematic diagram of the main process of a data scanning method according to an embodiment of the present application, such as Figure 1 As shown, the data scanning method mainly includes the following steps S101 to S105.
[0026] Step S101, in response to receiving a scanning task, obtaining a corresponding physical subsystem identifier.
[0027] In this embodiment, the execution subject of the data scanning method (for example, a server) can receive the scanning task through a wired connection or a wireless connection. When receiving the scanning task, the execution subject can obtain the physical subsystem identifier corresponding to the scanning task. The physical subsystem identifier can be the number or name of the subsystem that initiates the scanning task.
[0028] Step S102 , in response to the physical subsystem identifier not existing in the self-scanning data pool, obtaining a task identifier corresponding to the scanning task, and then determining the task type according to the task identifier.
[0029] If the obtained physical subsystem identifier exists in the self-scanning data pool, then wait for the execution of each scanning task in the self-scanning data pool. If the obtained physical subsystem identifier does not exist in the self-scanning data pool, execute the task identifier acquisition process to obtain the task identifier carried in the scanning task.
[0030] Specifically, the task type is determined based on the task identifier, including: in response to the task identifier containing a preset identifier, determining the task type is a self-built task; in response to the task identifier not containing a preset identifier, determining the task type is a pipeline task, wherein the pipeline task includes a pipeline development task and a pipeline commissioning task.
[0031] The preset identifier, such as ZJ, represents a self-built task. If the task identifier contains the preset identifier, it can indicate that the task type corresponding to the task identifier is a self-built task. If the task identifier does not contain the preset identifier, it can indicate that the task type corresponding to the task identifier is not a self-built task, but a pipeline task. The execution subject can determine whether it is a pipeline development task or a pipeline commissioning task based on the specific identifier carried in the task identifier. For example, when the task identifier contains the identifier KF, it can indicate that the task type corresponding to the task identifier is a pipeline development task. When the task identifier contains the identifier TC, it can indicate that the task type corresponding to the task identifier is a pipeline commissioning task.
[0032] Specifically, the data scanning method also includes: in response to a modification operation on a task type, determining the attribute name corresponding to the modification operation; obtaining the corresponding field from the target report based on the attribute name, obtaining the modification data entered by the user, and replacing the field value corresponding to the field in the target report with the modification data.
[0033] If the user modifies the task type and a modification operation is generated, the execution subject can obtain the input data corresponding to the modification operation and determine the attribute name of the attribute to be modified based on the user's input data. After obtaining the attribute name, the execution subject can obtain the field corresponding to the attribute name from the target report (for example, an Excel report) and modify the field value of the corresponding field in the target report based on the attribute value corresponding to the attribute name in the input data. This ensures the flexible change capability of the task type and the flexibility and accuracy of the relevant data scanning.
[0034] Step S103, in response to the task type being a self-built task or the task type being a pipeline development task, adding the scanning task to the self-scanning data pool.
[0035] Step S104, in response to the task type belonging to the pipeline commissioning task, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, in response to the number of scans being greater than a preset threshold, add the scan task to the self-scanning data pool, and in response to the number of scans being less than or equal to the preset threshold, update the number of scans.
[0036] The preset threshold may be, for example, 1, and the embodiment of the present application does not specifically limit the preset threshold.
[0037] Specifically, updating the scanning number includes: adding 1 to the scanning number to obtain an updated scanning number.
[0038] A "self-scanning data pool" at the physical subsystem level is established to make judgments based on pre-set rules when creating tasks. Self-scanning data is generated in real time for security center staff and project team security specialists to review and analyze. This guides the project team to better complete code security scanning work during the development phase.
[0039] Step S105, calling the thread pool to execute each scanning task in the self-scanning data pool.
[0040] In this embodiment, in response to receiving a scanning task, the corresponding physical subsystem identifier is obtained; in response to the physical subsystem identifier not existing in the self-scanning data pool, the task identifier corresponding to the scanning task is obtained, and then the task type is determined according to the task identifier; in response to the task type belonging to a self-built task or the task type belonging to a pipeline development task, the scanning task is added to the self-scanning data pool; in response to the task type belonging to a pipeline commissioning task, the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier is obtained, in response to the number of scans being greater than a preset threshold, the scanning task is added to the self-scanning data pool, in response to the number of scans being less than or equal to the preset threshold, the number of scans is updated; and the thread pool is called to execute each scanning task in the self-scanning data pool. Thus, the accuracy of data scanning is improved.
[0041] Figure 2 FIG. 1 is a schematic diagram of the main flow of a data scanning method according to an embodiment of the present application. Figure 2 As shown, the data scanning method mainly includes the following steps S201 to S206.
[0042] Step S201, in response to receiving a scanning task, obtaining a corresponding physical subsystem identifier.
[0043] The scanning task can be initiated by the project team. The project team sets the physical subsystem identification.
[0044] Step S202 , in response to the physical subsystem identifier not existing in the self-scanning data pool, obtaining a task identifier corresponding to the scanning task, and then determining the task type according to the task identifier.
[0045] If the physical subsystem identifier does not exist in the self-scanning data pool, it means that the relevant task scan of the physical subsystem corresponding to the physical subsystem identifier has not been performed before. Then, the acquisition process of the task identifier corresponding to the scan task is executed. The task type is determined according to the acquired task identifier.
[0046] Step S203: in response to the task type being a self-created task, adding the scanning task to the self-scanning data pool.
[0047] The task identifier can have different representations, and the execution subject can determine the task type corresponding to the task identifier according to the representation of the task identifier. When the task type is a self-built task, the execution subject can add the scanning task corresponding to the task type to the self-scanning data pool.
[0048] Step S204, in response to the task type not belonging to a self-built task, determining whether the task type belongs to a pipeline development task, and if so, adding the scanning task to the self-scanning data pool.
[0049] When it is determined based on the form of the task identifier that the task type does not belong to a self-built task, the execution entity can judge whether the task type belongs to a pipeline development task based on the form of the task identifier. If it belongs to a pipeline development task, the scanning task corresponding to the task type is added to the self-scanning data pool.
[0050] Self-built tasks and pipeline development tasks are identified as self-scanned and included in the self-scanning data pool. This more accurately reflects the scanning behavior of the project team during the development phase, which is conducive to further standardizing and guiding the project team to develop code security scanning work.
[0051] Step S205, in response to the task type belonging to the pipeline commissioning task, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier; in response to the number of scans being greater than a preset threshold, add the scan task to the self-scanning data pool; in response to the number of scans being less than or equal to the preset threshold, update the number of scans.
[0052] By determining the production line tasks with scanning times greater than the preset threshold as self-scanning, and incorporating them into the self-scanning data pool, it can more accurately reflect the scanning behavior of the project team during the development phase, which is conducive to further standardizing and guiding the project team to develop code security scanning work.
[0053] Step S206, calling the thread pool to execute each scanning task in the self-scanning data pool.
[0054] The response speed to the scanning tasks can be improved by calling the thread pool to execute each scanning task in the self-scanning data pool.
[0055] Figure 3 FIG. 1 is a schematic diagram of the main flow of a data scanning method according to an embodiment of the present application. Figure 3 As shown, the data scanning method mainly includes the following steps S301 to S306.
[0056] Step S301, in response to receiving a scanning task, obtaining a corresponding physical subsystem identifier.
[0057] When receiving a scanning task, the execution subject may obtain the physical subsystem identifier corresponding to the scanning task, which may be the number or name of the subsystem that initiates the scanning task.
[0058] Step S302 , in response to the physical subsystem identifier not existing in the self-scanning data pool, obtaining a task identifier corresponding to the scanning task, and then determining the task type according to the task identifier.
[0059] The physical subsystem ID does not exist in the self-scanning data pool, and the process of obtaining the task ID corresponding to the scan task is executed. The task type is determined according to the obtained task ID.
[0060] Step S303, in response to the task type being a self-built task or the task type being a pipeline development task, adding the scanning task to the self-scanning data pool.
[0061] Step S304, in response to the task type not being a self-built task and not being a pipeline development task, determine whether the task type is a pipeline commissioning task, and if so, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier.
[0062] The sources of tasks are divided into two types: self-built tasks and pipeline tasks. There are also two types of production types: production scan and development scan. In the process of creating scan tasks, the project team can create four types of tasks: self-built development tasks, self-built production tasks, pipeline development tasks, and pipeline production tasks. The scanning center requires each project team to conduct a pipeline production scan before production. Only scans other than these can be considered self-scanning. Because the pipeline can set scheduled tasks, and regularly pull code from the code warehouse for code security scanning. Therefore, when setting scheduled tasks, the production type can be set to "production", so that there is no need to consider changing the production type before going online until it goes online. Under the premise that the task type does not belong to a self-built task and does not belong to a pipeline development task, if the task type only belongs to a pipeline production task, the cumulative number of scans of the pipeline production task of the physical subsystem corresponding to the physical subsystem identifier is obtained.
[0063] Step S305, in response to the number of scans being greater than a preset threshold, adding the scan task to the self-scan data pool, and in response to the number of scans being less than or equal to the preset threshold, updating the number of scans.
[0064] For example, the preset threshold can be determined in the following way: obtain the cumulative number of scans of the pipeline commissioning tasks that have been historically added to the self-scanning data pool, and take the minimum value of the cumulative number of scans of the pipeline commissioning tasks that have been historically added to the self-scanning data pool as the preset threshold, thereby ensuring the rationality and accuracy of the preset threshold, and further ensuring the rationality and accuracy of the data scanning.
[0065] By determining the tasks that exceed the preset threshold of scanning times in self-built tasks, pipeline development tasks, and pipeline production tasks as self-scanning tasks, and incorporating them into the self-scanning data pool, it can more accurately reflect the scanning behavior of the project team during the development phase, which is conducive to further standardizing and guiding the project team to develop code security scanning work.
[0066] Step S306: calling the thread pool to execute each scanning task in the self-scanning data pool, thereby improving the data scanning accuracy.
[0067] Figure 4 FIG. 1 is a schematic diagram of the main flow of a data scanning method according to an embodiment of the present application. Figure 4 As shown, the project team creates a scanning task for the relevant physical subsystem and pushes the code for code security scanning. That is, the project team initiates a scanning task for a physical subsystem. Here, you can choose to initiate the scanning task by yourself or by pipeline, or you can choose the production type "development" or "production". Determine whether the physical subsystem to which the initiated scanning task belongs already exists in the "self-scanning data pool". If it exists, skip the subsequent judgment. If it does not exist, continue to perform subsequent operations. Determine whether it is a self-built task. Self-built tasks, whether "development" or "production", are all included in the self-scanning data pool. They are not self-built tasks. If yes, proceed to the next step of judgment; judge whether it belongs to the pipeline development task. If it does, it will be included in the self-scanning data pool. If it does not, proceed to the next step of judgment; judge whether it belongs to the pipeline commissioning task. It is necessary to judge the number of scanning and commissioning tasks of all the physical subsystems in history, if >1 time, that is, >=2 times, it will be included in the self-scanning data pool. If it does not meet >1 time, record the number of times, record the number of pipeline commissioning tasks, and leave it for the next task judgment, that is, record the number of physical subsystem commissioning + 1 as the basis for the next judgment.
[0068] The embodiment of the present application makes a comprehensive judgment by taking into account the pipeline "development" tasks, self-built tasks, and "production" tasks initiated by multiple pipelines. The scanning behavior of the project team in the development stage is counted without omission for analysis. It more accurately reflects the scanning behavior of the project team in the development stage. Self-built tasks, pipeline "development" tasks, and production tasks of the pipeline more than once are judged as self-scanning and included in the self-scanning data pool. This more accurately reflects the scanning behavior of the project team in the development stage, which is conducive to further standardizing and guiding the project team to develop code security scanning work.
[0069] A "self-scanning data pool" at the physical subsystem level is set up to make judgments based on pre-set rules when the project team creates tasks. Self-scanning data is generated in real time for security center staff and project team security specialists to view and analyze. This guides the project team to better complete code security scanning work during the development phase.
[0070] In software code writing, the Excel tool is encapsulated through Java reflection, which reduces the complexity and amount of code, reduces the workload of R&D personnel, and allows R&D personnel to have more time and energy to focus on the code writing of business logic, thus improving R&D efficiency. Reflection is one of the characteristics of Java, which allows the running Java program to obtain its own information and operate the internal properties of the class or object. Through the flexible configuration of the title header and data column properties of the Excel report, Java only reflects the fields in the data column. A good and flexible change capability for the data column and title header is achieved. And to a large extent, code errors that are easily caused by modifying the Excel column index number are avoided.
[0071] The embodiment of the present application promotes the project team's code security scanning work to move forward to the development stage by proposing a "self-scanning" indicator and calculation method, standardizes and counts the code security scanning behavior in the development stage before the project goes online, and then supervises the scanning of project teams that fail to meet the indicators. Ensure that the code of the project team's development stage receives timely code security scanning and vulnerability repair. Move the code security scanning work forward to the development stage, scan for vulnerabilities in a timely manner and repair them. Reduce the difficulty of rectification caused by surprise scanning before going online and avoid the lack of rectification time.
[0072] Figure 5 is a schematic diagram of the main units of the data scanning device according to an embodiment of the present application. Figure 5 As shown, the data scanning device 500 includes an acquisition unit 501 , a task type determination unit 502 , a task adding unit 503 , an updating unit 504 and an execution unit 505 .
[0073] The acquisition unit 501 is configured to acquire a corresponding physical subsystem identifier in response to receiving a scanning task.
[0074] The task type determination unit 502 is configured to obtain a task identifier corresponding to the scan task in response to the physical subsystem identifier not existing in the self-scanning data pool, and then determine the task type according to the task identifier.
[0075] The task adding unit 503 is configured to add the scanning task to the self-scanning data pool in response to the task type belonging to the self-built task or the task type belonging to the pipeline development task.
[0076] The updating unit 504 is configured to obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier in response to the task type belonging to the pipeline commissioning task, add the scanning task to the self-scanning data pool in response to the number of scans being greater than a preset threshold, and update the number of scans in response to the number of scans being less than or equal to the preset threshold.
[0077] The execution unit 505 is configured to call the thread pool to execute each scanning task in the self-scanning data pool.
[0078] In some embodiments, the task adding unit 503 is further configured to: in response to the task type belonging to a self-built task, add the scanning task to the self-scanning data pool; in response to the task type not belonging to a self-built task, determine whether the task type belongs to a pipeline development task, and if so, add the scanning task to the self-scanning data pool.
[0079] In some embodiments, the update unit 504 is further configured to: in response to the task type not being a self-built task and not being a pipeline development task, determine whether the task type is a pipeline commissioning task, and if so, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier.
[0080] In some embodiments, the updating unit 504 is further configured to: add 1 to the scanning number to obtain an updated scanning number.
[0081] In some embodiments, the data scanning device further includes Figure 5 The modification unit not shown in the figure is configured to: in response to a modification operation on the task type, determine the attribute name corresponding to the modification operation; obtain the corresponding field from the target report based on the attribute name, obtain the modification data entered by the user, and replace the field value corresponding to the field in the target report with the modification data.
[0082] In some embodiments, the task type determination unit 502 is further configured to: in response to the task identifier containing a preset identifier, determine that the task type is a self-built task; in response to the task identifier not containing a preset identifier, determine that the task type is a pipeline task, wherein the pipeline task is configured as a pipeline development task and a pipeline commissioning task.
[0083] It should be noted that the data scanning method and the data scanning device of the present application have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.
[0084] Figure 6 An exemplary system architecture 600 to which the data scanning method or data scanning device according to the embodiment of the present application can be applied is shown.
[0085] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0086] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0087] The terminal devices 601 , 602 , and 603 may be various electronic devices having a data scanning and processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0088] Server 605 can be a server that provides various services, such as a background management server that provides support for scanning tasks submitted by users using terminal devices 601, 602, and 603 (only as an example). In response to receiving a scanning task, the background management server can obtain the corresponding physical subsystem identifier; in response to the physical subsystem identifier not existing in the self-scanning data pool, obtain the task identifier corresponding to the scanning task, and then determine the task type according to the task identifier; in response to the task type belonging to a self-built task or the task type belonging to a pipeline development task, add the scanning task to the self-scanning data pool; in response to the task type belonging to a pipeline commissioning task, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, in response to the number of scans being greater than a preset threshold, add the scanning task to the self-scanning data pool, and in response to the number of scans being less than or equal to the preset threshold, update the number of scans; call the thread pool to execute each scanning task in the self-scanning data pool. This improves the accuracy of data scanning.
[0089] It should be noted that the data scanning method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the data scanning device is generally set in the server 605 .
[0090] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0091] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present application. Figure 7 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0092] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0093] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0094] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are executed.
[0095] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a task type determination unit, a task addition unit, an update unit, and an execution unit. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0098] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device responds to receiving a scanning task and obtains the corresponding physical subsystem identifier; responds to the physical subsystem identifier not existing in the self-scanning data pool, obtains the task identifier corresponding to the scanning task, and then determines the task type according to the task identifier; responds to the task type belonging to a self-built task or the task type belonging to a pipeline development task, adds the scanning task to the self-scanning data pool; responds to the task type belonging to a pipeline commissioning task, obtains the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, responds to the number of scans being greater than a preset threshold, adds the scanning task to the self-scanning data pool, responds to the number of scans being less than or equal to the preset threshold, updates the number of scans; calls the thread pool to execute each scanning task in the self-scanning data pool.
[0099] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, the data scanning method in the embodiment of the present application is implemented.
[0100] According to the technical solution of the embodiment of the present application, the accuracy of data scanning can be improved.
[0101] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A data scanning method, characterized in that: include: In response to receiving the scanning task, obtaining a corresponding physical subsystem identifier; In response to the physical subsystem identifier not existing in the self-scanning data pool, obtaining a task identifier corresponding to the scanning task, and then determining a task type according to the task identifier; In response to the task type being a self-built task or the task type being a pipeline development task, adding the scanning task to a self-scanning data pool; In response to the task type belonging to the pipeline commissioning task, obtaining the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, in response to the number of scans being greater than a preset threshold, adding the scan task to the self-scanning data pool, and in response to the number of scans being less than or equal to the preset threshold, updating the number of scans; The thread pool is called to execute each scanning task in the self-scanning data pool.
2. The method according to claim 1, characterized in that In response to the task type being a self-built task or the task type being a pipeline development task, adding the scanning task to a self-scanning data pool includes: In response to the task type being a self-created task, adding the scanning task to a self-scanning data pool; In response to the task type not belonging to a self-built task, it is determined whether the task type belongs to a pipeline development task, and if so, the scanning task is added to a self-scanning data pool.
3. The method according to claim 1, characterized in that: In response to the task type belonging to the pipeline production task, obtaining the accumulated number of scans of the pipeline production task of the physical subsystem corresponding to the physical subsystem identifier includes: In response to the fact that the task type does not belong to a self-built task and does not belong to a pipeline development task, it is determined whether the task type belongs to a pipeline production task. If so, the accumulated number of scans of the pipeline production task of the physical subsystem corresponding to the physical subsystem identifier is obtained.
4. The method according to claim 1, characterized in that The updating of the scanning times comprises: The scanning number is incremented by 1 to obtain an updated scanning number.
5. The method according to claim 1, characterized in that The method further comprises: In response to a modification operation on the task type, determining an attribute name corresponding to the modification operation; Based on the attribute name, a corresponding field is obtained from the target report, modification data input by a user is obtained, and a field value corresponding to the field in the target report is replaced with the modification data.
6. The method according to claim 1, characterized in that The step of determining the task type according to the task identifier includes: In response to the task identifier including a preset identifier, determining that the task type is a self-created task; In response to the task identifier not including a preset identifier, it is determined that the task type is a pipeline task, wherein the pipeline task includes a pipeline development task and a pipeline production task.
7. A data scanning device, characterized in that: include: an acquisition unit, configured to acquire a corresponding physical subsystem identifier in response to receiving a scanning task; A task type determination unit is configured to obtain a task identifier corresponding to the scanning task in response to the physical subsystem identifier not existing in the self-scanning data pool, and then determine the task type according to the task identifier; a task adding unit, configured to add the scanning task to the self-scanning data pool in response to the task type belonging to the self-built task or the task type belonging to the pipeline development task; an updating unit, configured to, in response to the task type belonging to the pipeline commissioning task, obtain the accumulated number of scans of the pipeline commissioning task of the physical subsystem corresponding to the physical subsystem identifier, in response to the number of scans being greater than a preset threshold, add the scan task to the self-scanning data pool, and in response to the number of scans being less than or equal to the preset threshold, update the number of scans; The execution unit is configured to call the thread pool to execute each scanning task in the self-scanning data pool.
8. The device according to claim 7, characterized in that The task adding unit is further configured to: In response to the task type being a self-created task, adding the scanning task to a self-scanning data pool; In response to the task type not belonging to a self-built task, it is determined whether the task type belongs to a pipeline development task, and if so, the scanning task is added to a self-scanning data pool.
9. The device according to claim 7, characterized in that The updating unit is further configured to: In response to the fact that the task type does not belong to a self-built task and does not belong to a pipeline development task, it is determined whether the task type belongs to a pipeline production task. If so, the accumulated number of scans of the pipeline production task of the physical subsystem corresponding to the physical subsystem identifier is obtained.
10. The device according to claim 7, characterized in that The updating unit is further configured to: The scanning number is incremented by 1 to obtain an updated scanning number.
11. The device according to claim 7, characterized in that The apparatus further comprises a modifying unit configured to: In response to a modification operation on the task type, determining an attribute name corresponding to the modification operation; Based on the attribute name, a corresponding field is obtained from the target report, modification data input by a user is obtained, and a field value corresponding to the field in the target report is replaced with the modification data.
12. The device according to claim 7, characterized in that The task type determination unit is further configured to: In response to the task identifier including a preset identifier, determining that the task type is a self-created task; In response to the task identifier not including a preset identifier, it is determined that the task type is a pipeline task, wherein the pipeline task is configured as a pipeline development task and a pipeline production task.
13. A data scanning electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
