CN112380272A - Yield information display method, device, detection equipment and storage medium - Google Patents

Yield information display method, device, detection equipment and storage medium Download PDF

Info

Publication number
CN112380272A
CN112380272A CN202011239624.0A CN202011239624A CN112380272A CN 112380272 A CN112380272 A CN 112380272A CN 202011239624 A CN202011239624 A CN 202011239624A CN 112380272 A CN112380272 A CN 112380272A
Authority
CN
China
Prior art keywords
target
days
production date
month
day
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011239624.0A
Other languages
Chinese (zh)
Inventor
杜庞飞
陈爱民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaxingyuanchuang Chengdu Technology Co ltd
Original Assignee
Huaxingyuanchuang Chengdu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaxingyuanchuang Chengdu Technology Co ltd filed Critical Huaxingyuanchuang Chengdu Technology Co ltd
Priority to CN202011239624.0A priority Critical patent/CN112380272A/en
Publication of CN112380272A publication Critical patent/CN112380272A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a method and a device for displaying yield information, detection equipment and a storage medium. The yield information display method comprises the following steps: acquiring target query days and current production date; determining a target production date based on the target query days and the current production date; and updating and displaying the target production date and the corresponding yield information. According to the yield information display method provided by the embodiment of the invention, the detection equipment detects the input information of the user to obtain the target query days which the user wants to query; the detection equipment automatically calculates corresponding historical production date according to the obtained current production date and the target query days, and the corresponding historical production date is the target production date; the detection equipment displays the target production date and the corresponding yield information through the display module, so that the historical date can be refreshed in real time, and the historical yield and the corresponding historical date can be visually represented, so that the working efficiency of a user is improved, and the user experience is greatly improved.

Description

Yield information display method, device, detection equipment and storage medium
Technical Field
The present invention relates to display technologies, and in particular, to a method and an apparatus for displaying yield information, a detection device, and a storage medium.
Background
When historical yield information is inquired, the conventional historical yield inquiring and displaying method is that a user performs plus-minus control on the number of days for inquiring the historical yield by pressing plus-minus buttons, and the information is correspondingly displayed as-N days + yield information. Such as: inquiring yesterday yield: after pressing the subtract button once, the yield information is displayed as: (-1, XXX); query yield 5 days ago: by pressing the minus button 5 times in succession, the yield information is displayed as: (-5, XXX).
It can be seen that the existing detection equipment cannot directly display the historical date information corresponding to the historical yield (such as 2019, 9, 8), the user needs to determine the corresponding date information by himself for statistics, the user experience is poor, and the production statistical efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a yield information display method, a yield information display device, detection equipment and a storage medium, which are used for visually displaying yield information of a query day and date information corresponding to the yield information.
In a first aspect, an embodiment of the present invention provides a yield information display method, including:
acquiring target query days and current production date;
determining a target production date based on the target query number of days and the current production date;
and updating and displaying the target production date and the corresponding yield information.
Optionally, the determining a target production date based on the target query number of days and the current production date includes:
determining the actual number of days of the current production date in the current year;
determining a target historical number of days based on the actual number of days and the target query number of days;
determining a target production date based on the target historical days.
Optionally, the determining the actual number of days of the current production date in the current year includes:
acquiring historical day information of a first day of a current month in a current year based on a preset corresponding relation between the initial day of the month and the days, wherein the current month is the month of the current production date;
and determining the actual days of the current production date in the current year based on the current production date and the historical days information.
Optionally, the determining a target production date based on the target historical days includes:
if the target historical days are larger than zero, determining a target month and a target day based on a preset corresponding relation between the initial month days and the days;
taking the year to which the current production date belongs as a target year;
and combining the target month, the target day and the target year according to a preset format to obtain a target production date.
Optionally, the determining the target month and the target day based on the preset corresponding relationship between the initial day of the month and the number of days includes:
determining the reference days of each month initial day based on the preset corresponding relation between the month initial day and the days;
comparing the target historical days with each reference day to determine a target month corresponding to the target historical days;
and determining the target day corresponding to the target historical days based on the target month and the reference days of the target month.
Optionally, the determining a target production date based on the target historical days includes:
if the target historical days belong to (-31, 0), taking the last year of the current year as a target year, and determining the 12 months as a target month;
taking the result of adding 31 to the historical days as a target day;
and combining the target year, the target month and the target day according to a preset format to obtain a target production date.
Optionally, the determining a target production date based on the target historical days includes:
if the target historical days are equal to zero, determining 1 month and 1 day of the current year as a target month and a target day;
and combining the current year, the target month and the target day according to a preset format to obtain a target production date.
In a second aspect, an embodiment of the present invention further provides a yield information display apparatus, including:
the target query day acquisition module is used for acquiring target query days;
the target production date determining module is used for determining a target production date based on the target query days and the current production date;
and the display module is used for updating and displaying the target production date and the corresponding yield information.
In a third aspect, an embodiment of the present invention further provides a detection apparatus, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of displaying yield information as described in any embodiment of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the yield information display method according to any embodiment of the present invention.
According to the yield information display method provided by the embodiment of the invention, the detection equipment detects the input information of the user to obtain the target query days which the user wants to query; the detection equipment automatically calculates corresponding historical production date according to the obtained current production date and the target query days, and the corresponding historical production date is the target production date; the detection equipment displays the target production date and the corresponding yield information through the display module, so that the production date of the product is synchronously updated while the yield information of the product is updated. The yield information display method provided by the embodiment of the invention can refresh the historical date in real time and can visually represent the historical yield and the corresponding historical date, so that a user can directly inquire the historical yield information of a specific certain day, the working efficiency of the user is improved, and the user experience is greatly improved.
Drawings
FIG. 1 is a flow chart of a method for displaying yield information according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for displaying yield information according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for displaying yield information according to an embodiment of the present invention;
FIG. 4 is a block diagram of a yield information display apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a detection apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a yield information display method according to an embodiment of the present invention, where the yield information display method may be used to query historical yield information of a product and synchronously display production date information corresponding to the historical yield, for example, synchronously display a historical AOI (Automated Optical Inspection) detection result of the product and a corresponding detection date. The method may be performed by a production information display device, which is arranged in the inspection apparatus. Referring to fig. 1, the yield information display method includes the steps of:
and S110, acquiring target query days and current production date.
The detection equipment obtains the target query days according to the day information input by the user. For example, the user performs addition and subtraction control on the historical days by operating an addition and subtraction button on the detection device, and when the user continuously presses the subtraction button 5 times, the target query number of days acquired by the detection device is-5.
The current production date is the date to which the current query time belongs. The current production date includes day information, month information, and year information. The current production date is automatically generated by the detection device.
And S120, determining the target production date based on the target query days and the current production date.
The current production date comprises date information, month information and year information, so that the detection device can calculate the corresponding historical production date through the current production date and the target query days input by the user, namely the target production date.
For example, if the current production date is 20/6/2020 and the target query number of days is-6, the detection device determines that the target production date is 14/6/2020.
And S130, updating and displaying the target production date and the corresponding yield information.
The product yield information is stored in the detection equipment, and the detection equipment can automatically associate the corresponding yield information after detecting the target query days input by the user. The detection equipment updates and displays the target production date and the corresponding production information which are obtained by the calculation in the step, so that a user can visually obtain the historical production information and the corresponding historical production date which are required to be inquired.
According to the yield information display method provided by the embodiment of the invention, the detection equipment detects the input information of the user to obtain the target query days which the user wants to query; the detection equipment automatically calculates corresponding historical production date according to the obtained current production date and the target query days, and the corresponding historical production date is the target production date; the detection equipment displays the target production date and the corresponding yield information through the display module, so that the production date of the product is synchronously updated while the yield information of the product is updated. The yield information display method provided by the embodiment of the invention can refresh the historical date in real time and can visually represent the historical yield and the corresponding historical date, so that a user can directly inquire the historical yield information of a specific certain day, the working efficiency of the user is improved, and the user experience is greatly improved.
It should be noted that the target query days in the embodiment of the present invention may exceed the current month, for example, the target query days is-15 (i.e., querying the yield information 15 days ago), and the current production date is 5 months and 10 days in 2020, in which case, the historical date to be queried and the current production date have different month information. There is a need to optimize the method of determining a target production date for a detection device. Optionally, fig. 2 is a flowchart of another yield information display method provided in an embodiment of the present invention, where the embodiment is optimized based on the foregoing embodiment, and the method includes the following steps:
s210, obtaining target query days and current production date.
And S220, determining the actual days of the current production date in the current year.
Wherein the actual number of days the current production date is in the current year is used to characterize that the current production date is the next day of the year. For example, the actual number of days in the current year on day 1/month/day 2020 is day 0, and the actual number of days in the current year on day 1/month/day 2/month 2020 is day 31.
It should be noted that, in the present embodiment, because it is necessary to determine the history date information corresponding to the target query number of days, when determining the history date information, 1 month and 1 day are determined as 0 th day of the actual number of days, so that the converted history number of days matches the usage habit.
As is apparent from the above-described embodiment, the current production date includes not only day information but also month information and year information, and it can be uniquely determined that the first day of each month is the second day of the year in a specific year, so that the actual number of days of the current production date in the current year is estimated from the actual number of days of the current year (the second day) of the first day of the current month by comparing the current production date with the first day of the current month. The above step of determining the actual number of days of the current production date in the current year can thus be optimized as follows:
acquiring historical day information of a first day of a current month in a current year based on a preset corresponding relation between the initial day of the month and the days, wherein the current month is a month of a current production date;
and determining the actual days of the current production date in the current year based on the current production date and the historical days information.
Wherein, the corresponding relation between the initial date of the month and the number of days is configured in the detection equipment in advance. It should be noted that, when the corresponding relationship between the initial day of the month and the number of days is configured, it is necessary to consider whether the current year is a leap year, so that the finally calculated historical date information matches the actual date.
The detection device may determine, from the correspondence between the initial day of the month and the number of days, historical day number information for the first day of the current month in the current year, based on the current production date, that is, the first day of the current month is the fourth day of the year. The number of days between the current production date and the first day of the current month is definite, so that the actual number of days of the current production date in the current year can be calculated correspondingly.
For example, the first table is a table of correspondence between the initial day of the month in 2020 and the number of days, and the detection device may obtain the actual number of days corresponding to the first day of each month by looking up the first table. If the current production date is 6/20/2020, the detection device obtains from the table one that the historical days of 6/1/year in the current year are 152 th day, and 6/20/month is 19 days apart from 6/1/month, so that the detection device can calculate that the actual days corresponding to 6/20/month of the current production date are 152+19 which is 171, that is, 6/20/2020 is 171 th day of 2020.
Watch 1
Date Actual days in the year
2020/1/1 0
2020/2/1 31
2020/3/1 60
2020/4/1 91
2020/5/1 121
2020/6/1 152
2020/7/1 182
2020/8/1 213
2020/9/1 244
2020/10/1 274
2020/11/1 305
2020/12/1 335
And S230, determining the target historical days based on the actual days and the target query days.
The target query days are the days separated between the current production date and the date which the user wants to query, so that the difference between the actual days of the current production date in the current year and the target query days is calculated, and the day on which the yield information to be queried is obtained is the next day of the current year, namely the target historical days.
For example, the current production date is 2020, 6, 20 days, the corresponding actual days is 171, and if the target query number of days is 5, the actual days 171-5 is 166, that is, the target historical number of days before 5 days is 166 days, which indicates that 5 days before is 166 days of the current year.
And S240, determining a target production date based on the target historical days.
The target production date is information obtained by combining date information, month information and year information, so that the target production date needs to be determined by respectively determining a target date, a target month and a target year and then combining the target date, the target month and the target year according to a certain format to obtain the target production date.
When the target query days required to be queried by the user are different, the target historical days calculated by the steps may be positive, negative or zero. The step of determining a target production date based on the target historical days may thus be further refined.
Optionally, if the target historical days are greater than zero, the step of determining the target production date based on the target historical days may be optimized as follows:
if the target historical days are larger than zero, determining a target month and a target day based on the preset corresponding relation between the initial month days and the days;
taking the year to which the current production date belongs as a target year;
and combining the target month, the target day and the target year according to a preset format to obtain a target production date.
Wherein the target historical days is greater than zero, indicating that the production date to be queried and the current production date belong to the same year. At this time, the detection device determines the reference number of days of each month initial day based on the preset corresponding relationship between the month initial day and the number of days;
comparing the target historical days with each reference day to determine a target month corresponding to the target historical days;
and determining a target day corresponding to the target historical days based on the target month and the reference days of the target month.
Specifically, the detection device may obtain the historical days corresponding to the first day of each month by querying a preset correspondence relationship between the initial day and the days of the month, and may compare the target historical days with the historical days of the first day of each month obtained by the query, thereby determining to which range the target historical days specifically belong, and further obtaining the target day and the target month corresponding to the target historical days.
For example, in the above example, the target historical days is 166, and the detection device may determine, by comparison, that the target historical days is between 152 and 182, where 152 is the historical days of 1/6-month and 182 is the historical days of 1/7-month, and thus the detection device may determine that the month information for the target historical days 166 is 6-month. The detection apparatus further performs a difference calculation between the target history number of days 166 and the history number of days 152 of day 1/6, resulting in that the number of days between the target history number of days and day 1/6 is 14 days, and thus the detection apparatus determines that the target day is 15, that is, the target history number of days 166 is 15/6.
According to the analysis, when the target historical days are larger than zero, the target production date and the current production date belong to the same year, so that the target year is obtained, and the detection device combines the target day, the target month and the target year according to the preset format, so that the target production date is obtained. For example, the target historical date of 6, 15 and 2020 is shown as 20/10/15.
Optionally, when the target historical days is less than zero, the step of determining the target production date based on the target historical days may be optimized as follows:
if the target historical days belong to (-31, 0), taking the previous year of the current year as a target year, and determining the 12 months as a target month;
taking the result of adding 31 to the historical days as a target day;
and combining the target year, the target month and the target day according to a preset format to obtain a target production date.
And if the target historical days are less than zero, indicating that the target production date corresponds to the last year of the current production date.
It should be noted that, the target query days in this embodiment have a certain number of days limitation, and usually the detection device can support querying the historical yield information of no more than 31 days, that is, the target query days are no more than 31 days, so that the absolute value of the difference between the actual days of the current production date in the current year and the target query days is less than or equal to zero and less than 31, that is, the absolute value of the target historical days is no more than 31 at most, and the detection device determines that the target month in this working condition is 12 months of the previous year.
Considering that the number of days of 12 months is 31 days, the addition result of the target history number of days and 31 reflects the number of days of the target history number of days separated from 31 days of 12 months, and thus, the target day can be determined.
Illustratively, if the target historical days is-28, indicating that the target historical days is 28 days away from 31 12 months, the detection device calculates: -28+31 ═ 3, i.e. the target days for the target historical days are 12 months and 3 days.
Optionally, if the target historical days are equal to zero, the step of determining the target production date based on the target historical days may be optimized as follows:
if the target historical days are equal to zero, determining 1 month and 1 day of the current year as a target month and a target day;
and combining the current year, the target month and the target day according to a preset format to obtain a target production date.
If the target historical days are equal to zero, the first table shows that the days are just 1 month and 1 day of the current year, and the detection equipment combines the 1 month and 1 day of the current year according to a preset format to determine the target production date.
And S250, updating and displaying the target production date and the corresponding yield information.
After the target production date is determined, the detection device synchronously displays the acquired yield information and the target production date through the display module so as to update the current display state to the production date to be inquired and the yield corresponding to the production date.
According to the yield information display method provided by the embodiment of the invention, the corresponding relation between the initial day of the month and the days is pre-configured in the detection equipment, and the detection equipment calculates that the current production date is the second day in the current year, namely the actual days of the current production date according to the obtained current production date; the detection equipment further calculates the current production day to be inquired based on the obtained target inquiry days, namely the target historical days; the detection equipment further determines year, month and day information corresponding to the target historical days based on the target historical days and a preset corresponding relationship between the initial days of the month and the days, and combines the year, month and day information according to a certain format to obtain a target production date. The detection equipment further synchronously displays the target production date and the corresponding yield information, so that the detection equipment can directly reflect the corresponding relation between the historical production date and the historical yield, realize real-time processing and associated display of the historical yield and the historical production date, and accurately and visually display the historical production date and the historical yield information.
Optionally, fig. 3 is a flowchart of another yield information display method according to an embodiment of the present invention, and the embodiment is optimized based on the foregoing embodiment. Referring to fig. 3, the method includes the steps of:
and S310, converting the current date into the actual days in the current year.
Specifically, the current date is the corresponding date of the current query time. For example, if the current date is 26/8/2020, then this step requires a conversion to 8/26/is the second day of 2020.
In one embodiment, this step can be optimized as follows:
whether the current year is leap year or not is judged, and the specific days of 2 months are calculated;
enumerating historical days in the current year on the first day of each month;
the actual number of days was calculated.
For example, if the number of non-leap years in 2020 is 28 in 2 months, the historical days of the first day of each month in 2020 are obtained as shown in table two.
Watch two
Figure BDA0002767996530000121
Figure BDA0002767996530000131
Thus, from the number of days in 2020 of 8/month 1 as 213 th day, the actual number of days in 2020 of 8/month 26 can be calculated as: 213+25 ═ 238, i.e. day 26/8 was day 238 of 2020.
S320, acquiring N days of historical query in the detection equipment.
The information is obtained by the detection device based on the entered information of the user. For example, if the user inputs the minus button 5 times, the number of historical query days acquired by the detection device is-5 days, that is, the yield information before 5 days is queried.
S330, the number of historical days is actual days — N.
For example, if the actual number of days of 26/8 months obtained in step S310 is 238 th day, and if the user inquires the yield information 5 days ago, the historical number of days 238-5 is 233 days, which is 233 th day of 2020.
And S340, judging whether the historical days are less than zero.
If the historical days are less than zero, the step S350 is carried out; otherwise, the process proceeds to step S360.
And S350, setting the historical year as the current year-1, setting the historical month as 12, and setting the historical date as 31+ historical days.
Wherein the historical days are less than zero, indicating that the target production date corresponds to a year previous to the current production date.
As can be seen from the above embodiments, the detection device can support querying the historical production information for no more than 31 days, i.e., N in the step S320 is no more than 31, so the historical month is 12 months of the previous year.
Illustratively, if N is 28, indicating that the historical days are 28 days apart from 31 12 months, the detection device calculates: -28+31 ═ 3, whereby the date on which the number of days in history was found was 12, 3, 2019.
And S360, judging whether the historical days are equal to zero or not.
If the historical days are equal to zero, go to step S370; otherwise, the process proceeds to step S380.
S370, the current year, the 1 month and the 1 day.
If the target historical days are equal to zero, the day is exactly 1 month and 1 day of the current year as can be seen from the second table.
And S380, calculating the historical year, the historical month and the historical date.
In step S330, the history number of days has been obtained, and by comparing the history number of days with the number of days corresponding to the first day of each month, the history month can be determined.
For example, the historical days is 237, and as can be seen from table two, the historical days of 8/month and 1/year 2020 is 213, the historical days of 9/month and 1/day 2020 is 243, and 213 < 237 (historical days) < 243, so the historical month is 8 months.
Likewise, historical days are determined from historical days. For example, when the history day is 237, the history month is 8 months, and the history day of 8 months and 1 days is 213, the history day is the history day of-8 months and 1 days, and the history day is 237-.
After the above steps, the historical date and the current date are the same year, and the historical year is the current year. Thus, the history dates for the above example can be found to be: 24/8/2020.
In the embodiment, the current date is converted into the actual days of the current year, the historical days are calculated according to the query days, the historical months and the historical years are respectively calculated according to whether the historical days are less than zero, or equal to zero or greater than zero, and the historical days, the historical months and the historical years are combined and displayed according to a certain format to obtain the final historical date.
Optionally, fig. 4 is a block diagram of a structure of a yield information display apparatus according to an embodiment of the present invention, and as shown in fig. 4, the yield information display apparatus includes:
a target query number of days obtaining module 410, configured to obtain target query number of days;
a target production date determination module 420, configured to determine a target production date based on the target query number of days and the current production date;
and the display module 430 is configured to update and display the target production date and the corresponding yield information.
Optionally, on the basis of the above technical solution, the target production date determining module 420 includes:
a first day number determination unit for determining the actual days of the current production date in the current year;
the second day determining unit is used for determining the target historical days based on the actual days and the target query days;
and a target production date determination unit for determining a target production date based on the target historical days.
Optionally, on the basis of the above technical solution, the first day number determining unit is specifically configured to:
acquiring historical day information of a first day of a current month in a current year based on a preset corresponding relation between the initial day of the month and the days, wherein the current month is a month of a current production date;
and determining the actual days of the current production date in the current year based on the current production date and the historical days information.
Optionally, on the basis of the above technical solution, the target production date determining unit is further configured to:
if the target historical days are larger than zero, determining a target month and a target day based on the preset corresponding relation between the initial month days and the days;
taking the year to which the current production date belongs as a target year;
and combining the target month, the target day and the target year according to a preset format to obtain a target production date.
Optionally, on the basis of the above technical solution, the target production date determining unit is specifically configured to:
determining the reference days of each month initial day based on the preset corresponding relation between the month initial day and the days;
comparing the target historical days with each reference day to determine a target month corresponding to the target historical days;
and determining a target day corresponding to the target historical days based on the target month and the reference days of the target month.
Optionally, on the basis of the above technical solution, the target production date determining unit is further configured to:
if the target historical days belong to (-31, 0), taking the previous year of the current year as a target year, and determining the 12 months as a target month;
taking the result of adding 31 to the historical days as a target day;
and combining the target year, the target month and the target day according to a preset format to obtain a target production date.
Optionally, on the basis of the above technical solution, the target production date determining unit is further configured to:
if the target historical days are equal to zero, determining 1 month and 1 day of the current year as a target month and a target day;
and combining the current year, the target month and the target day according to a preset format to obtain a target production date.
The yield information display device provided by the embodiment of the invention can execute the yield information display method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
Optionally, fig. 5 is a schematic structural diagram of a detection device according to an embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary detection device 512 suitable for use in implementing embodiments of the present invention. The detection device 512 shown in fig. 5 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 5, the detection device 512 is in the form of a general purpose computing device. The components of the detection device 512 may include, but are not limited to: one or more processors or processing units 516, a system memory 528, and a bus 518 that couples the various system components including the system memory 528 and the processing unit 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Detection device 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by detection device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 528 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The detection device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in, for example, the memory 528, each of which examples or some combination may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The detection device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the detection device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the detection device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the detection device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 520. As shown, the network adapter 520 communicates with the other modules of the detection device 512 via a bus 518. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the detection device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 516 executes various functional applications and data processing by executing programs stored in the system memory 528, for example, to implement the yield information display method provided by the embodiment of the present invention, the method includes:
acquiring target query days and current production date;
determining a target production date based on the target query days and the current production date;
and updating and displaying the target production date and the corresponding yield information.
Optionally, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a yield information display method according to any embodiment of the present invention, where the method includes:
acquiring target query days and current production date;
determining a target production date based on the target query days and the current production date;
and updating and displaying the target production date and the corresponding yield information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of displaying production information, comprising:
acquiring target query days and current production date;
determining a target production date based on the target query number of days and the current production date;
and updating and displaying the target production date and the corresponding yield information.
2. The production information display method of claim 1, wherein determining a target production date based on the target query number of days and the current production date comprises:
determining the actual number of days of the current production date in the current year;
determining a target historical number of days based on the actual number of days and the target query number of days;
determining a target production date based on the target historical days.
3. The production information display method of claim 2, wherein the determining the actual number of days the current production date is in the current year comprises:
acquiring historical day information of a first day of a current month in a current year based on a preset corresponding relation between the initial day of the month and the days, wherein the current month is the month of the current production date;
and determining the actual days of the current production date in the current year based on the current production date and the historical days information.
4. The production information display method of claim 2, wherein determining a target production date based on the target historical days comprises:
if the target historical days are larger than zero, determining a target month and a target day based on a preset corresponding relation between the initial month days and the days;
taking the year to which the current production date belongs as a target year;
and combining the target month, the target day and the target year according to a preset format to obtain a target production date.
5. The yield information display method according to claim 4, wherein the determining a target month and a target day based on a preset correspondence between a month initial day and a number of days comprises:
determining the reference days of each month initial day based on the preset corresponding relation between the month initial day and the days;
comparing the target historical days with each reference day to determine a target month corresponding to the target historical days;
and determining the target day corresponding to the target historical days based on the target month and the reference days of the target month.
6. The production information display method of claim 2, wherein determining a target production date based on the target historical days comprises:
if the target historical days belong to (-31, 0), taking the last year of the current year as a target year, and determining the 12 months as a target month;
taking the result of adding 31 to the historical days as a target day;
and combining the target year, the target month and the target day according to a preset format to obtain a target production date.
7. The production information display method of claim 2, wherein determining a target production date based on the target historical days comprises:
if the target historical days are equal to zero, determining 1 month and 1 day of the current year as a target month and a target day;
and combining the current year, the target month and the target day according to a preset format to obtain a target production date.
8. A production information display apparatus, comprising:
the target query day acquisition module is used for acquiring target query days;
the target production date determining module is used for determining a target production date based on the target query days and the current production date;
and the display module is used for updating and displaying the target production date and the corresponding yield information.
9. A detection apparatus, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the production information display method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the production information display method according to any one of claims 1 to 7.
CN202011239624.0A 2020-11-09 2020-11-09 Yield information display method, device, detection equipment and storage medium Pending CN112380272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011239624.0A CN112380272A (en) 2020-11-09 2020-11-09 Yield information display method, device, detection equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011239624.0A CN112380272A (en) 2020-11-09 2020-11-09 Yield information display method, device, detection equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112380272A true CN112380272A (en) 2021-02-19

Family

ID=74578863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011239624.0A Pending CN112380272A (en) 2020-11-09 2020-11-09 Yield information display method, device, detection equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112380272A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08241284A (en) * 1995-03-06 1996-09-17 Sharp Corp Number of day calculator
CN201037904Y (en) * 2007-05-09 2008-03-19 刘明远 Timing device using ''day'' as unit to calculate time
CN105956906A (en) * 2016-04-28 2016-09-21 上海携程商务有限公司 Order form display method and device based on calendar mechanism
CN109284287A (en) * 2018-08-22 2019-01-29 平安科技(深圳)有限公司 Data backtracking and report method, device, computer equipment and storage medium
CN111240779A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Calendar display method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08241284A (en) * 1995-03-06 1996-09-17 Sharp Corp Number of day calculator
CN201037904Y (en) * 2007-05-09 2008-03-19 刘明远 Timing device using ''day'' as unit to calculate time
CN105956906A (en) * 2016-04-28 2016-09-21 上海携程商务有限公司 Order form display method and device based on calendar mechanism
CN109284287A (en) * 2018-08-22 2019-01-29 平安科技(深圳)有限公司 Data backtracking and report method, device, computer equipment and storage medium
CN111240779A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Calendar display method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HELLO_FJM: "JAVA给定日期,计算几天后,几天前的日期——Date类,体会类和对象", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/qq_44743329/article/details/102771726> *

Similar Documents

Publication Publication Date Title
CN110990445B (en) Data processing method, device, equipment and medium
CN110502519B (en) Data aggregation method, device, equipment and storage medium
WO2022179123A1 (en) Data update and presentation method and apparatus, and electronic device and storage medium
CN109582906B (en) Method, device, equipment and storage medium for determining data reliability
CN113064897B (en) Method, device, equipment and storage medium for generating business index model
CN111241123A (en) View data query method, device, server and storage medium
CN112182067A (en) Individual height prediction method and device, electronic equipment and storage medium
CN112860706A (en) Service processing method, device, equipment and storage medium
CN111028074B (en) Method, system, server and storage medium for updating and inquiring overdue bill
CN110874364A (en) Query statement processing method, device, equipment and storage medium
CN114638411A (en) Carbon dioxide concentration prediction method, device, equipment and medium
CN111367813B (en) Automatic testing method and device for decision engine, server and storage medium
US20150169515A1 (en) Data driven synthesizer
CN110515954B (en) Data processing method, device, equipment and storage medium
CN112380272A (en) Yield information display method, device, detection equipment and storage medium
CN111198917A (en) Data processing method, device, equipment and storage medium
CN113780675B (en) Consumption prediction method and device, storage medium and electronic equipment
CN113139881B (en) Method, device, equipment and storage medium for identifying main power supply of dual-power-supply user
CA3052775A1 (en) Method, apparatus, medium and electronic device for analysis of user stability
CN113377604B (en) Data processing method, device, equipment and storage medium
CN115237931A (en) Method and system for updating sub-service processing result of service arrangement
CN113407102A (en) Virtual key display method, device, system and storage medium
CN112905635A (en) Service processing method, device, equipment and storage medium
CN111047433A (en) Method and device for analyzing reasons of user number abnormality, server and storage medium
CN111062004A (en) Prediction model adjusting method and device, prediction simulator and storage medium

Legal Events

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