Work reporting method, device and equipment for micro-service architecture and medium
Building a reporting microservice system through microservice architecture solves the problems of high coupling and poor scalability of traditional reporting systems, achieves flexibility and scalability, improves development efficiency and system reliability, and ensures data accuracy sex and timeliness.
Patent Information
- Application Number
- CN202410828109.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-10
AI Technical Summary
The traditional reporting system adopts a monolithic architecture, which results in high system coupling, poor scalability, and difficulty in maintenance, making it difficult to meet the complex needs of modern production management.
Adopt a microservice architecture and build a reporting microservice system through the reporting module, calendar module and message service module to achieve distributed architecture and lightweight communication, support automatic registration and discovery of services, fault-tolerant processing, independent deployment and maintenance.
It reduces service coupling, improves system flexibility and scalability, simplifies maintenance and upgrade processes, improves development efficiency and system reliability, reduces human errors and data errors, and ensures the timeliness and accuracy of data. .
Smart Images

Figure CN118628056A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a reporting method, device, equipment and medium for a microservice architecture. Background Art
[0002] In the context of industrial informatization, intelligent reporting systems are becoming increasingly popular in the management field. However, common traditional reporting systems basically adopt a monolithic architecture. This architectural model has some obvious defects, such as excessive coupling between various parts of the system, poor scalability, and difficulty in maintenance. These problems seriously affect the performance and flexibility of the reporting system, making it difficult to meet the increasingly complex needs of modern production management. Summary of the invention
[0003] One or more embodiments of this specification provide a reporting method, device, equipment and medium for a microservice architecture, which are used to solve the technical problems raised by the background technology.
[0004] One or more embodiments of this specification adopt the following technical solutions:
[0005] One or more embodiments of this specification provide a reporting method for a microservice architecture, the method comprising:
[0006] Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module;
[0007] Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module;
[0008] Setting the reporting date through the calendar module;
[0009] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0010] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0011] Low coupling: The microservice architecture splits the application into multiple independent services, which interact with each other through lightweight communication mechanisms, reducing the coupling between services. This allows each service to be independent during development, testing, and deployment, improving development efficiency and reducing maintenance costs.
[0012] High scalability: Since microservices use a distributed architecture, each service can be expanded independently. When business needs change, the corresponding services can be expanded according to the actual situation without large-scale reconstruction of the entire application, which improves the flexibility and scalability of the system.
[0013] Improve development efficiency: Each microservice can be designed, developed, tested, and deployed independently, so developers can focus on the development of a single service, improving development efficiency.
[0014] Improve system reliability: Since the microservice architecture splits the application into multiple independent services, if one service fails, it will not affect the normal operation of other services. In addition, the microservice architecture also supports automatic registration and discovery of services, as well as fault-tolerant processing of services, which improves the reliability of the system.
[0015] Easy to maintain and upgrade: Each microservice can be maintained and upgraded independently without affecting the normal operation of other services. In addition, the microservice architecture also supports dynamic deployment of services, making system maintenance and upgrades easier.
[0016] Furthermore, the embodiment of this specification describes that the summarized work report data is processed for work report, including:
[0017] The message service module presets a designated time for sending an email, and the summary work report data is automatically sent to a designated mailbox via email at the designated time.
[0018] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0019] Improve work efficiency: Automatically send the summary report data to the designated mailbox, reducing the time and energy of manual operation and improving the efficiency of report processing.
[0020] Ensure data timeliness: send emails at the preset specified time to ensure that relevant personnel can receive the latest summary report data in time, so as to understand the work status in time.
[0021] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0022] Avoid human errors: The automated reporting process reduces human interference and reduces the risk of data errors.
[0023] Furthermore, the method of automatically sending the summary work report data to a designated mailbox via email at the designated time in the embodiment of this specification includes:
[0024] Generate a preset form in the email, and fill the summary work report data into the preset form to generate a work report email;
[0025] The work report email is automatically sent to the designated mailbox.
[0026] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0027] Improve data readability: Filling the summary report data into the preset table can make the data more structured and clear, and improve the readability of the data.
[0028] Reduced Errors: Automated data population processes reduce the possibility of human input errors and improve data accuracy.
[0029] Furthermore, in the embodiment of this specification, the method of obtaining the summary work report data according to the work report data to be reported, and performing work report processing on the summary work report data includes:
[0030] Obtaining preset work report planning information through the calendar module;
[0031] The summarized work report data is obtained according to the work report data to be reported, and if it is determined that the summarized work report data conforms to the work report planning information, the summarized work report data is processed for work report.
[0032] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0033] Improve work efficiency: By automatically judging whether the summarized work report data conforms to the work report planning information, the time for human intervention and review can be reduced, thus improving work efficiency.
[0034] Improve the accuracy of work reporting: The setting of work reporting planning information can ensure that the summarized work reporting data complies with the pre-set work reporting plan. If it complies with the work reporting plan information, it can indicate the accuracy of the summarized work reporting data, and the summarized work reporting data can be directly processed. If it does not comply with the work reporting plan information, it may be because the data to be reported is missing, or there are errors in the summarized work reporting data. An error message can be issued to remind relevant personnel that there are errors in the work reporting processing.
[0035] Furthermore, the work report microservice system described in the embodiment of this specification is a weekly work report microservice system, and the method further includes:
[0036] Acquire pre-written daily work data through the work report filling module, and send the daily work data to the message service module;
[0037] Setting the reporting date through the calendar module;
[0038] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary weekly work reporting data according to the pre-received daily work data, and performs work reporting processing on the summary weekly work reporting data.
[0039] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0040] Improve work efficiency: By pre-writing daily work data and automatically summarizing and processing weekly report data on the reporting date, the tedious process of manually collecting and collating data is avoided, saving time and energy and improving work efficiency.
[0041] Reduce error rate: Manual collection and organization of data is prone to human errors, while the automated reporting process reduces human intervention, reduces error rates, and ensures the accuracy of reporting data.
[0042] Strong real-time performance: The system can process daily work data in a timely manner on the reporting date, so that the reporting information can reflect the progress of the work in real time, which is conducive to managers to grasp the dynamics of the project in a timely manner.
[0043] Furthermore, the work reporting microservice system described in the embodiment of this specification is a production workshop work reporting microservice system, and the method further includes:
[0044] Obtaining production data of different production lines in different time periods in the production workshop through the work reporting module, and sending the production data to the message service module;
[0045] Setting the reporting date through the calendar module;
[0046] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary production work reporting data according to the production data received in advance, and performs work reporting processing on the summary production work reporting data.
[0047] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0048] Timely data: Timely collection of production data from different production lines in different time periods to ensure the timeliness of the data allows management to quickly understand the actual operation of the production workshop.
[0049] Improve efficiency: By setting the reporting date through the calendar module, you can ensure regular and timely production reporting, improve work efficiency, and reduce omissions in manual operations.
[0050] Data accuracy: Directly obtain production data from different production lines and perform summary calculations to avoid errors in manual calculations and data entry, and ensure the accuracy of reporting data.
[0051] Real-time production monitoring: Real-time production data aggregation and reporting processing enable managers to monitor production progress more timely, quickly detect abnormal situations and take corresponding measures.
[0052] Improve decision-making quality: Provide accurate production data to help managers make more informed decisions, optimize production processes, and improve production efficiency and economic benefits.
[0053] Effective resource allocation: Real-time aggregation of production data helps to allocate resources more accurately, such as the rational allocation of manpower, equipment and raw materials, improve production efficiency and reduce resource waste.
[0054] Production coordination and optimization: It can discover imbalances between production lines, optimize the production process, and improve the operational efficiency of the entire production workshop.
[0055] Quality traceability: Timely reporting of work during the manufacturing process can provide support for product quality traceability and help locate and resolve problems more quickly when they occur.
[0056] Furthermore, the production data in the embodiment of this specification includes raw material consumption data, and the aggregated production report data obtained according to the production data includes:
[0057] Determine the qualified rate of each production line according to the historical production data of each production line;
[0058] According to the raw material consumption data of different production lines in each time period and the qualified rate of each production line, the summarized production report data is obtained, and the summarized production report data is the number of qualified products of different production lines in each time period.
[0059] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0060] Improve statistical efficiency: Using raw material consumption data and qualified rate to count the number of qualified products is more convenient than directly counting the number of qualified products. It reduces the complicated counting work, especially when there are unqualified products, and simplifies the data collection and processing process.
[0061] Optimize resource utilization: Summarizing production reporting data can help companies better understand the production status of each production line, including the pass rate and the number of qualified products, so as to rationally optimize resource allocation and improve production efficiency.
[0062] One or more embodiments of this specification provide a reporting device of a microservice architecture, including:
[0063] A system building unit, which builds a work report microservice system based on a microservice architecture. The work report application system includes a work report filling module, a calendar module, and a message service module;
[0064] A data acquisition and sending unit, which acquires the work data to be reported through the work reporting and filling module, and sends the work data to be reported to the message service module;
[0065] A planning information acquisition unit, which sets a work report date through the calendar module;
[0066] The work reporting unit, when the calendar module determines that the work reporting date is the work reporting date, obtains the summary work reporting data according to the work reporting data to be received in advance through the message service module, and performs work reporting processing on the summary work reporting data.
[0067] One or more embodiments of this specification provide a microservice architecture reporting device, including:
[0068] at least one processor; and,
[0069] a memory communicatively connected to the at least one processor; wherein,
[0070] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0071] Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module;
[0072] Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module;
[0073] Setting the reporting date through the calendar module;
[0074] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0075] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:
[0076] Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module;
[0077] Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module;
[0078] Setting the reporting date through the calendar module;
[0079] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0080] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0081] Low coupling: The microservice architecture splits the application into multiple independent services, which interact with each other through lightweight communication mechanisms, reducing the coupling between services. This allows each service to be independent during development, testing, and deployment, improving development efficiency and reducing maintenance costs.
[0082] High scalability: Since microservices use a distributed architecture, each service can be expanded independently. When business needs change, the corresponding services can be expanded according to the actual situation without large-scale reconstruction of the entire application, which improves the flexibility and scalability of the system.
[0083] Improve development efficiency: Each microservice can be designed, developed, tested, and deployed independently, so developers can focus on the development of a single service, improving development efficiency.
[0084] Improve system reliability: Since the microservice architecture splits the application into multiple independent services, if one service fails, it will not affect the normal operation of other services. In addition, the microservice architecture also supports automatic registration and discovery of services, as well as fault-tolerant processing of services, which improves the reliability of the system.
[0085] Easy to maintain and upgrade: Each microservice can be maintained and upgraded independently without affecting the normal operation of other services. In addition, the microservice architecture also supports dynamic deployment of services, making system maintenance and upgrades easier. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0087] Figure 1 A flowchart of a reporting method for a microservice architecture provided for one or more embodiments of this specification;
[0088] Figure 2A schematic diagram of the structure of a reporting device of a microservice architecture provided in one or more embodiments of this specification;
[0089] Figure 3 A schematic diagram of the structure of a reporting device of a microservice architecture provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0090] The embodiments of this specification provide a reporting method, device, equipment and medium for a microservice architecture.
[0091] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0092] Figure 1 A flowchart of a method for reporting work in a microservice architecture provided in one or more embodiments of this specification is provided, and the process can be executed by a reporting system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0093] The method steps of the embodiment of this specification are as follows:
[0094] S102, building a work reporting microservice system based on the microservice architecture, wherein the work reporting application system includes a work reporting module, a calendar module and a message service module.
[0095] In the examples of this specification, the following specific implementation schemes can be used:
[0096] Design the overall architecture: determine the architecture and hierarchy of microservices, and divide the work reporting microservice system into work reporting module, calendar module, and message service module.
[0097] Establish a development environment: Build an environment suitable for microservice development, including using appropriate programming languages, frameworks, and tools.
[0098] Integration between microservices:
[0099] -Define API interface: clarify the data interaction method between modules.
[0100] -Develop client code that calls the API.
[0101] Configure and deploy the system:
[0102] -Choose a cloud platform or server for deployment.
[0103] -Perform configuration management to ensure the scalability and stability of the system.
[0104] To test:
[0105] -Unit testing: testing the functionality of each module.
[0106] -Integration testing: Testing the interaction and communication between modules.
[0107] -User acceptance testing: Invite employees to test the system’s usability.
[0108] Optimization and Improvement:
[0109] - Optimize based on user feedback and test results.
[0110] -Continuously improve system performance and user experience.
[0111] Online and maintenance:
[0112] -Deploy the system to production environment.
[0113] -Establish monitoring mechanisms to handle issues and maintain systems in a timely manner.
[0114] S104, obtaining the work data to be reported through the work reporting module, and sending the work data to be reported to the message service module.
[0115] In the examples of this specification, the following specific implementation schemes can be used:
[0116] Obtain work data to be reported: obtain pre-entered relevant information, such as work content, working hours, workload, etc.
[0117] Data verification and formatting: Verify and format the input data to be reported to ensure the accuracy and consistency of the data.
[0118] Data transmission to the message service module: Use a suitable communication method to send the work data to be reported to the message service module, for example, the communication method can be text messages.
[0119] Message service module receives data: The message service module receives the work data to be reported from the work reporting module.
[0120] S106, setting a work report date through the calendar module.
[0121] In the examples of this specification, the following specific implementation schemes can be used:
[0122] Select date: In the calendar interface, select the specific date that needs to be set as the report date by clicking or dragging.
[0123] Confirm settings: Confirm the selected date as the reporting date and perform the confirmation operation.
[0124] Storage settings: Store the set reporting date in the system for subsequent reporting operations and statistical analysis.
[0125] S108, when the calendar module determines that the work reporting date is the work reporting date, the message service module obtains summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0126] In the examples of this specification, the following specific implementation schemes can be used:
[0127] Receive the number of pending reports*: The message service module receives the pending report data from the report filling module.
[0128] Data analysis and processing: Use data analysis technology to analyze the reported data and convert it into a processable format.
[0129] Summarized work report data: According to the preset summary rules and algorithms, the parsed work report data is summarized and processed to generate summary work report data.
[0130] Work report processing: The summary work report data is passed to the work report processing module or system for further work report processing. Work report processing can include recording work report information, updating the database, generating reports, etc.
[0131] Data storage and backup: Store the summary report data in a database or data storage for subsequent query, analysis and report generation. At the same time, establish a data backup mechanism to ensure data security and availability.
[0132] Furthermore, when the summarized work report data is processed in the embodiment of this specification, the specified time for sending the email can be preset through the message service module, and the summarized work report data can be automatically sent to the specified mailbox via email at the specified time. The specified time can be set according to actual conditions.
[0133] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0134] Improve work efficiency: Automatically send the summary report data to the designated mailbox, reducing the time and energy of manual operation and improving the efficiency of report processing.
[0135] Ensure data timeliness: send emails at the preset specified time to ensure that relevant personnel can receive the latest summary report data in time, so as to understand the work status in time.
[0136] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0137] Avoid human errors: The automated reporting process reduces human interference and reduces the risk of data errors.
[0138] Furthermore, when the summarized work report data is automatically sent to a designated mailbox via email at the specified time as described in the embodiment of this specification, a preset table can be generated in the email, and the summarized work report data can be filled into the preset table to generate a work report email; the work report email is automatically sent to the designated mailbox.
[0139] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0140] Improve data readability: Filling the summary report data into the preset table can make the data more structured and clear, and improve the readability of the data.
[0141] Reduced Errors: Automated data population processes reduce the possibility of human input errors and improve data accuracy.
[0142] Furthermore, in the embodiment of the present specification, summarized work reporting data is obtained based on the data to be reported, and when the summarized work reporting data is subjected to work reporting processing, pre-set work reporting planning information can be obtained through the calendar module; summarized work reporting data is obtained based on the data to be reported, and if it is determined that the summarized work reporting data conforms to the work reporting planning information, the summarized work reporting data is subjected to work reporting processing.
[0143] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0144] Improve work efficiency: By automatically judging whether the summarized work report data conforms to the work report planning information, the time for human intervention and review can be reduced, thus improving work efficiency.
[0145] Improve the accuracy of work reporting: The setting of work reporting planning information can ensure that the summarized work reporting data complies with the pre-set work reporting plan. If it complies with the work reporting plan information, it can indicate the accuracy of the summarized work reporting data, and the summarized work reporting data can be directly processed. If it does not comply with the work reporting plan information, it may be because the data to be reported is missing, or there are errors in the summarized work reporting data. An error message can be issued to remind relevant personnel that there are errors in the work reporting processing.
[0146] Furthermore, the work reporting microservice system described in the embodiment of this specification is a weekly work reporting microservice system, which obtains pre-written daily work data through the work reporting filling module, and sends the work daily data to the message service module; sets the work reporting date through the calendar module; when the calendar module determines that it is the work reporting date, the message service module obtains summarized weekly work reporting data based on the pre-received daily work data, and performs work reporting processing on the summarized weekly work reporting data.
[0147] In the examples of this specification, the following specific implementation schemes can be used:
[0148] Design and implement the work report filling module:
[0149] -Define the format and content of daily work report data, such as daily report date, employee number, work task, completion status, etc.
[0150] -Provide a user interface so that users can fill in and submit work reports to the work report microservice system.
[0151] -Send the daily work data filled in by the user to the message service module.
[0152] Design and implement message service module:
[0153] -Receive daily work data from the work reporting module.
[0154] -Store daily work data, using a database or other data storage methods.
[0155] -Provide an interface or API for other modules to query and obtain daily workday data.
[0156] Design and implement the calendar module:
[0157] -Provide a user interface so that users can set the reporting date.
[0158] -Store the reporting date set by the user in the system.
[0159] -Provide an interface or API for other modules to query and obtain the reporting date.
[0160] Design and implement the module for summarizing weekly report data:
[0161] - At regular intervals (eg, every day), query the daily work data stored in the message service module.
[0162] -Based on the set reporting date, filter out the daily work data that falls within the weekly reporting date range.
[0163] -Summarize the filtered daily work data, such as calculating the total time spent on work tasks, the percentage of completion, etc.
[0164] -Store the aggregated weekly report data in the system for other modules to query and use.
[0165] The following is an example of daily workday data:
[0166] |Daily report date|Employee number|Work task|Completion status|Time consumed (hours)|
[0167] |2023-07-10|001|Task 1|Completed|8|
[0168] |2023-07-10|001|Task 2|Completed|6|
[0169] |2023-07-11|001|Task 3|Unfinished|4|
[0170] Assuming that the reporting date set by the user is from 2023-07-10 to 2023-07-16, the weekly work report data module will filter out the daily work data within the range of 2023-07-10 to 2023-07-16 and summarize them. The final weekly work report data may be as follows:
[0171] |Employee number|Total time spent (hours)|Number of completed tasks|Number of uncompleted tasks|Average daily time spent (hours)|
[0172] |001|18|2|1|2.5|
[0173] Design and implement the work report processing module:
[0174] -Determine the method and objectives of reporting based on system requirements.
[0175] -Query the summary weekly report data stored in the summary weekly report data module.
[0176] -According to the method and objectives of reporting, the summary weekly report data is processed accordingly, such as generating reports, sending notifications, etc.
[0177] Deploy and run the weekly report microservice system:
[0178] -Deploy each module to the corresponding server or container.
[0179] - Start each module and ensure that the communication and collaboration between them are normal.
[0180] -Users use the work report filling module to fill in daily work data. The system automatically processes and summarizes weekly work report data and performs work report processing as needed.
[0181] Monitor and maintain the weekly report reporting microservice system:
[0182] -Establish a monitoring mechanism to monitor the system's operating status and performance indicators in real time.
[0183] - Regularly inspect and maintain the system to ensure the normal operation of each module.
[0184] -Optimize and improve the system based on user feedback and business needs.
[0185] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0186] Improve work efficiency: By pre-writing daily work data and automatically summarizing and processing weekly report data on the reporting date, the tedious process of manually collecting and collating data is avoided, saving time and energy and improving work efficiency.
[0187] Reduce error rate: Manual collection and organization of data is prone to human errors, while the automated reporting process reduces human intervention, reduces error rates, and ensures the accuracy of reporting data.
[0188] Strong real-time performance: The system can process daily work data in a timely manner on the reporting date, so that the reporting information can reflect the progress of the work in real time, which is conducive to managers to grasp the dynamics of the project in a timely manner.
[0189] Furthermore, the work reporting microservice system described in the embodiments of this specification is a production workshop work reporting microservice system, which obtains production data of different production lines in each time period of the production workshop through the work reporting filling module, and sends the production data to the message service module; sets the work reporting date through the calendar module; when the calendar module determines that it is the work reporting date, obtains summarized production work reporting data based on the production data received in advance through the message service module, and performs work reporting processing on the summarized production work reporting data.
[0190] In the examples of this specification, the following specific implementation schemes can be used:
[0191] Establish a work report filling module:
[0192] -In the production workshop, multiple reporting points are set up, and each reporting point is equipped with a corresponding computer or handheld device for entering production data.
[0193] - Develop a reporting interface that is simple and easy to use, allowing operators to easily enter production data such as production date, production line number, product model, production quantity, number of defective products, etc.
[0194] Create a message service module:
[0195] -Build a message service system to receive and transmit production data.
[0196] -Integrate the work reporting module with the message service module to ensure that production data can be sent to the message service module accurately.
[0197] Set the report date:
[0198] - In the calendar module, set the daily reporting time, such as a fixed time before leaving get off work every day.
[0199] -The message service module automatically triggers the summary and reporting of production data according to the set reporting date.
[0200] Get and send production data:
[0201] -During the production process, operators input production data in real time through the reporting module.
[0202] -For example, on the production line, after the worker completes the production of a batch of products, he or she immediately enters the relevant production data at the reporting point, such as the production date is July 16, 2023, the production line number is A1, the product model is X1, the production quantity is 100, and the number of defective products is 5.
[0203] Data aggregation and processing:
[0204] -After receiving the production data, the message service module summarizes and processes the production data according to the preset rules and algorithms.
[0205] -For example, the production data of the same production line in the same time period is accumulated to calculate the total output, total number of defective products, etc.
[0206] Generate summary production report data:
[0207] - Organize the aggregated production data into aggregated production report data, including production line number, production date, product model, total output, total number of defective products, production efficiency and other indicators.
[0208] -For example, the summary production report data shows that the total output of production line A1 on July 16, 2023 is 1,000, the total number of defective products is 50, and the production efficiency is 95%.
[0209] Work report processing:
[0210] -Send the generated summary production report data to the corresponding department or system for report processing.
[0211] -For example, the aggregated production report data is sent to the production management department, quality control department, etc., so as to adjust the production plan, supervise quality control, etc.
[0212] Monitoring and Feedback:
[0213] -Establish a production data monitoring system to track the production process and changes in production data in real time.
[0214] - Provide feedback and evaluation on the results of report processing, identify problems in a timely manner and take measures to improve them.
[0215] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0216] Timely data: Timely collection of production data from different production lines in different time periods to ensure the timeliness of the data allows management to quickly understand the actual operation of the production workshop.
[0217] Improve efficiency: By setting the reporting date through the calendar module, you can ensure regular and timely production reporting, improve work efficiency, and reduce omissions in manual operations.
[0218] Data accuracy: Directly obtain production data from different production lines and perform summary calculations to avoid errors in manual calculations and data entry, and ensure the accuracy of reporting data.
[0219] Real-time production monitoring: Real-time production data aggregation and reporting processing enable managers to monitor production progress more timely, quickly detect abnormal situations and take corresponding measures.
[0220] Improve decision-making quality: Provide accurate production data to help managers make more informed decisions, optimize production processes, and improve production efficiency and economic benefits.
[0221] Effective resource allocation: Real-time aggregation of production data helps to allocate resources more accurately, such as the rational allocation of manpower, equipment and raw materials, improve production efficiency and reduce resource waste.
[0222] Production coordination and optimization: It can discover imbalances between production lines, optimize the production process, and improve the operational efficiency of the entire production workshop.
[0223] Quality traceability: Timely reporting of work during the manufacturing process can provide support for product quality traceability and help locate and resolve problems more quickly when they occur.
[0224] Furthermore, the production data described in the embodiments of this specification includes raw material consumption data. When the summarized production report data is obtained based on the production data, the qualified rate of each production line can be determined based on the historical production data of each production line; the summarized production report data is obtained based on the raw material consumption data of different production lines in each time period and the qualified rate of each production line, and the summarized production report data is the number of qualified products of different production lines in each time period.
[0225] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0226] Improve statistical efficiency: Using raw material consumption data and qualified rate to count the number of qualified products is more convenient than directly counting the number of qualified products. It reduces the complicated counting work, especially when there are unqualified products, and simplifies the data collection and processing process.
[0227] Optimize resource utilization: Summarizing production reporting data can help companies better understand the production status of each production line, including the pass rate and the number of qualified products, so as to rationally optimize resource allocation and improve production efficiency.
[0228] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0229] Low coupling: The microservice architecture splits the application into multiple independent services, which interact with each other through lightweight communication mechanisms, reducing the coupling between services. This allows each service to be independent during development, testing, and deployment, improving development efficiency and reducing maintenance costs.
[0230] High scalability: Since microservices use a distributed architecture, each service can be expanded independently. When business needs change, the corresponding services can be expanded according to the actual situation without large-scale reconstruction of the entire application, which improves the flexibility and scalability of the system.
[0231] Improve development efficiency: Each microservice can be designed, developed, tested, and deployed independently, so developers can focus on the development of a single service, improving development efficiency.
[0232] Improve system reliability: Since the microservice architecture splits the application into multiple independent services, if one service fails, it will not affect the normal operation of other services. In addition, the microservice architecture also supports automatic registration and discovery of services, as well as fault-tolerant processing of services, which improves the reliability of the system.
[0233] Easy to maintain and upgrade: Each microservice can be maintained and upgraded independently without affecting the normal operation of other services. In addition, the microservice architecture also supports dynamic deployment of services, making system maintenance and upgrades easier.
[0234] It should be noted that with the development of industrial informatization, intelligent work reporting systems have been widely used in the field of production management. Traditional work reporting systems mostly adopt a monolithic architecture, which has problems such as high system coupling, poor scalability, and difficult maintenance. As an emerging distributed system architecture, the microservice architecture has gradually become the preferred solution for building complex systems with its modularity, loose coupling, and high availability. Therefore, the embodiment of this specification proposes an intelligent work reporting system based on a microservice architecture, which aims to solve the problems existing in the traditional work reporting system and improve the efficiency and intelligence level of production management.
[0235] The embodiments of this specification provide an intelligent work reporting system based on a microservice architecture, which aims to achieve efficient, flexible and scalable work reporting management through modular and independently deployed microservice units. The system can apply the Inspur Haiyue inBuilder low-code development platform, to reduce the development difficulty, improve the development efficiency, and ensure the stability and security of the system. In order to achieve the above purpose, the embodiment method of this specification includes the following steps:
[0236] 1) Based on the Inspur Haiyue inBuilder low-code development platform, we carry out the overall design and planning of the system and clarify the functions and interaction methods of each microservice unit. This includes the division and definition of core components such as the work reporting module, work calendar module, and message service module. Using the visual interface and component library of the inBuilder platform, each microservice unit can be quickly built. These microservice units interact through a lightweight communication mechanism to achieve data sharing and business collaboration. At the same time, each microservice unit has an independent deployment environment to ensure data security and isolation.
[0237] 2) Work report filling module: The embodiment of this specification realizes basic functions such as addition, deletion, modification and query, and supports data copying and decomposition from superior tasks to meet the diverse needs of users. Employees can easily complete the entry and modification of work report information through this module, and the system will automatically save and process relevant data.
[0238] 3) Work calendar module: By connecting with the actual holiday policy of the enterprise, it realizes the intelligent identification of working days and rest days. At the same time, users can set special working days and special holidays according to their own circumstances. During the work reporting process, the system will automatically determine whether it is a working day based on the current date, thereby avoiding the misoperation of reporting work on holidays.
[0239] 4) Message service module: The administrator can preset the rules and time for sending emails, and the system will automatically send reminder emails or statistical emails to relevant personnel at the specified time. This not only improves work efficiency, but also strengthens communication and collaboration between teams. In the daily reminder email module of the embodiment of this specification, first query the superior of the organization, determine the email copy person, then query the work calendar business data, and retrieve whether the user has filled in the work report information on the working day. For the date that has not been filled in, a table will be automatically generated in the email, clarifying the name of the personnel, date, reported working hours, and email statistical time, and attaching a report system report link in the email, supporting a single point in the email system to open the report system for reporting, and finally integrating the above information, setting the email type, main recipient, title, etc., and calling the message service module to send the email. In the weekly statistical email module, first, it is necessary to obtain the Monday and Sunday of the week where the current date is located, filter the data according to the date, classify and total, and generate a table, and at the same time perform data analysis on the project operation status to generate a project weekly summary email.
[0240] 5) In order to ensure the stability and security of the system, a variety of measures have been taken using the Inspur Haiyue inBuilder low-code development platform, including strict testing and verification of the system to ensure the stable operation of each microservice unit; protecting the security of user data through data encryption and permission control; and providing a complete logging and error handling mechanism to promptly discover and resolve potential problems.
[0241] Figure 2 A structural diagram of a work reporting device of a microservice architecture provided for one or more embodiments of this specification includes: a system building unit 202, a data acquisition and sending unit 204, a planning information acquisition unit 206 and a work reporting unit 208.
[0242] The system building unit 202 builds a work report microservice system based on the microservice architecture, wherein the work report application system includes a work report filling module, a calendar module and a message service module;
[0243] The data acquisition and sending unit 204 acquires the work data to be reported through the work reporting and filling module, and sends the work data to be reported to the message service module;
[0244] The planning information acquisition unit 206 sets the work report date through the calendar module;
[0245] The work reporting unit 208, when the calendar module determines that the work reporting date is the work reporting date, obtains the summary work reporting data according to the work reporting data to be received in advance through the message service module, and performs work reporting processing on the summary work reporting data.
[0246] Figure 3A schematic diagram of a microservice architecture reporting device provided for one or more embodiments of this specification includes:
[0247] at least one processor; and,
[0248] a memory communicatively connected to the at least one processor; wherein,
[0249] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0250] Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module;
[0251] Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module;
[0252] Setting the reporting date through the calendar module;
[0253] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0254] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:
[0255] Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module;
[0256] Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module;
[0257] Setting the reporting date through the calendar module;
[0258] When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
[0259] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0260] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0261] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A reporting method for microservice architecture, It is characterized in that include: Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module; Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module; Setting the work report date through the calendar module; When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
2. The method according to claim 1, It is characterized in that The step of processing the aggregated work report data includes: The message service module presets a designated time for sending an email, and the summary work report data is automatically sent to a designated mailbox via email at the designated time.
3. The method according to claim 2, It is characterized in that The step of automatically sending the summary work report data to a designated mailbox via email at the designated time includes: Generate a preset form in the email, and fill the summary work report data into the preset form to generate a work report email; The work report email is automatically sent to the designated mailbox.
4. The method according to claim 1, It is characterized in that The step of obtaining the summary work report data according to the work report data to be reported, and performing work report processing on the summary work report data includes: Obtaining preset work report planning information through the calendar module; The summarized work report data is obtained according to the work report data to be reported, and if it is determined that the summarized work report data conforms to the work report planning information, the summarized work report data is processed for work report.
5. The method according to claim 1, It is characterized in that The work report microservice system is a weekly work report microservice system, and the method further includes: Acquire pre-written daily work data through the work report filling module, and send the daily work data to the message service module; Setting the work report date through the calendar module; When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary weekly work reporting data according to the pre-received daily work data, and performs work reporting processing on the summary weekly work reporting data.
6. The method according to claim 1, It is characterized in that The work reporting microservice system is a production workshop work reporting microservice system, and the method further includes: Obtaining production data of different production lines in different time periods in the production workshop through the work reporting module, and sending the production data to the message service module; Setting the work report date through the calendar module; When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary production work reporting data according to the production data received in advance, and performs work reporting processing on the summary production work reporting data.
7. The method according to claim 6, It is characterized in that The production data includes raw material consumption data, and the aggregated production report data obtained according to the production data includes: Determine the qualified rate of each production line according to the historical production data of each production line; According to the raw material consumption data of different production lines in each time period and the qualified rate of each production line, the summarized production report data is obtained, and the summarized production report data is the number of qualified products of different production lines in each time period.
8. A reporting device for a microservice architecture, It is characterized in that include: A system building unit, which builds a work report microservice system based on a microservice architecture. The work report application system includes a work report filling module, a calendar module, and a message service module; A data acquisition and sending unit, which acquires the work data to be reported through the work reporting and filling module, and sends the work data to be reported to the message service module; A planning information acquisition unit, which sets a work report date through the calendar module; The work reporting unit, when the calendar module determines that the work reporting date is the work reporting date, obtains the summary work reporting data according to the work reporting data to be received in advance through the message service module, and performs work reporting processing on the summary work reporting data.
9. A reporting device with a microservice architecture. It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module; Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module; Setting the work report date through the calendar module; When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
10. A non-volatile computer storage medium, It is characterized in that Computer executable instructions are stored, and when the computer executable instructions are executed by a computer, the following can be achieved: Building a work report microservice system based on the microservice architecture, the work report application system includes a work report filling module, a calendar module and a message service module; Acquire the work data to be reported through the work reporting module, and send the work data to be reported to the message service module; Setting the work report date through the calendar module; When the calendar module determines that the work reporting date is the work reporting date, the message service module obtains the summary work reporting data according to the work reporting data to be reported in advance, and performs work reporting processing on the summary work reporting data.
