CN107038552B - Service processing method, device and equipment and readable medium - Google Patents

Service processing method, device and equipment and readable medium Download PDF

Info

Publication number
CN107038552B
CN107038552B CN201611185069.1A CN201611185069A CN107038552B CN 107038552 B CN107038552 B CN 107038552B CN 201611185069 A CN201611185069 A CN 201611185069A CN 107038552 B CN107038552 B CN 107038552B
Authority
CN
China
Prior art keywords
parameter
month
week
date
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.)
Active
Application number
CN201611185069.1A
Other languages
Chinese (zh)
Other versions
CN107038552A (en
Inventor
王文勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201611185069.1A priority Critical patent/CN107038552B/en
Publication of CN107038552A publication Critical patent/CN107038552A/en
Application granted granted Critical
Publication of CN107038552B publication Critical patent/CN107038552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Technology Law (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种业务处理方法、装置及设备、可读介质,所述方法包括:获取当前的时间参数,所述时间参数包括月参数、日参数以及星期参数;如果所述日参数高于预设的参数阈值,基于所述月参数获得所述日参数与下一月的首个日参数的日期差;如果所述日期差在预设的第一定位范围内,确定当前时间到达预设的目标时间;如果所述日期差在预设的第二定位范围内,确定所述星期参数与预设的星期阈值是否匹配;如果所述星期参数与所述星期阈值匹配,确定当前时间到达预设的目标时间;确定当前时间到达预设的目标时间后,进行该目标时间对应的业务的处理。实施本申请,可以提高时间定位的准确度,避免对业务处理及时性的影响。

Figure 201611185069

The present application provides a business processing method, apparatus and device, and a readable medium. The method includes: acquiring a current time parameter, where the time parameter includes a month parameter, a day parameter, and a week parameter; if the day parameter is higher than a predetermined value The set parameter threshold is based on the month parameter to obtain the date difference between the day parameter and the first day parameter of the next month; if the date difference is within the preset first positioning range, it is determined that the current time reaches the preset value. target time; if the date difference is within the preset second positioning range, determine whether the week parameter matches the preset week threshold; if the week parameter matches the week threshold, determine that the current time reaches the preset The target time is determined; after it is determined that the current time reaches the preset target time, the processing of the service corresponding to the target time is performed. By implementing the present application, the accuracy of time positioning can be improved, and the impact on the timeliness of business processing can be avoided.

Figure 201611185069

Description

Service processing method, device and equipment and readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for processing a service, and a readable medium.
Background
Some accounting systems need to transfer accounting data out of an account or to transfer accounting data into an account when processing the accounting data. In daily business of many enterprises and public institutions, the transfer-out or transfer-in of the accounting data is not performed continuously, but the accounting system needs to be closed and the processing of the accounting data is terminated (referred to as a "closing account") on certain dates, such as the last working day of each month.
It is more common practice to set the days 25 days after each month as the closing date, and when the current date is judged to be more than 25 days, the corresponding accounting system is closed, and the processing of the accounting data is terminated.
However, the number of days per month in a year is not exactly the same, for example, for a month with the number of days of 31, the last day 31 may be just a working day, and then the previous 26 days to 30 days are actually not account-related days, and account data processing of different businesses should be performed, but the above-mentioned method determines the 26 days to 30 days as account-related days by mistake, the accuracy of locating dates is low, and terminating the processing of account data at the located dates will affect the timely processing of businesses.
Disclosure of Invention
In view of the above, the present application provides a service processing method, device and apparatus, and readable medium.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of an embodiment of the present application, a service processing method is provided, which includes the following steps:
acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter;
if the day parameter is higher than a preset parameter threshold value, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter;
if the date difference is within a preset first positioning range, determining that the current time reaches a preset target time;
if the date difference is within a preset second positioning range, determining whether the week parameter is matched with a preset week threshold value, wherein the minimum value in the second positioning range is higher than the maximum value in the first positioning range;
if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time;
and after the current time is determined to reach the preset target time, processing the service corresponding to the target time.
In one embodiment, before obtaining the date difference between the date parameter and the first date parameter of the next month based on the month parameter, the method further comprises the steps of:
determining whether a date between the date parameter and a first date parameter of a next month is a holiday;
and if the dates between the date parameter and the first date parameter of the next month are both holidays, determining that the current time reaches the preset target time.
In one embodiment, if the date difference is within a preset second location range, the method further comprises the steps of:
if the date difference is a first threshold value in the second positioning range, determining whether the week parameter is matched with a preset first week threshold value;
if the week parameter is matched with the first week threshold value, determining that the current time reaches a preset target time;
if the date difference is a second threshold value in the second positioning range, determining whether the week parameter is matched with a preset second week threshold value;
and if the week parameter is matched with the second week threshold value, determining that the current time reaches a preset target time.
In one embodiment, the target time is a shutdown date of the accounting processing system.
In one embodiment, the target time is any one of:
the last working day of each month, the last working day of each quarter, and the last working day of each year.
In one embodiment, the parameter threshold is 25, the first location range is a numerical range greater than 0 and less than or equal to 1, the second location range is a numerical range greater than 1 and less than or equal to 3, the first threshold is 2, the first week threshold is friday or saturday, the second threshold is 3, and the second week threshold is friday.
In one embodiment, before obtaining the date difference between the date parameter and the first date parameter of the next month based on the month parameter, the method further comprises the steps of:
if the target time is the last working day of the corresponding quarter, determining whether the month parameter is the last month parameter of the current quarter;
if the parameter is the last month parameter of the current quarter, determining whether the day parameter is higher than the parameter threshold, and if the parameter is not higher than the parameter threshold, determining that the current time does not reach the preset target time;
if the target time is the last working day of the year, determining whether the month parameter is the last month parameter of the year;
and if the current date is the last month parameter of the current year, determining whether the date parameter is higher than the parameter threshold, and if the current date is not higher than the parameter threshold, determining that the current time does not reach the preset target time.
According to a second aspect of embodiments of the present application, there is provided an electronic apparatus, including:
a processor;
a memory storing processor-executable instructions;
wherein the processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing the following:
acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter;
if the day parameter is higher than a preset parameter threshold value, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter;
if the date difference is within a preset first positioning range, determining that the current time reaches a preset target time;
if the date difference is within a preset second positioning range, determining whether the week parameter is matched with a preset week threshold value, wherein the numerical values within the second positioning range are all higher than the numerical values within the first positioning range;
if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time;
and after the current time is determined to reach the preset target time, processing the service corresponding to the target time.
According to a third aspect of the embodiments of the present application, there is provided a service processing apparatus, including:
the time parameter acquisition module is used for acquiring current time parameters, and the time parameters comprise a month parameter, a day parameter and a week parameter;
the date difference acquisition module is used for acquiring the date difference between the date parameter and the first date parameter of the next month based on the month parameter when the date parameter is higher than a preset parameter threshold;
the first positioning module is used for determining that the current time reaches a preset target time when the date difference is within a preset first positioning range;
the week matching module is used for determining whether the week parameter is matched with a preset week threshold value or not when the date difference is within a preset second positioning range, wherein the minimum value in the second positioning range is higher than the maximum value in the first positioning range;
the second positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the week threshold;
and the service processing module is used for processing the service corresponding to the target time after the current time is determined to reach the preset target time.
In one embodiment, after the time parameter obtaining module obtains the time parameter, the apparatus further includes:
a holiday determination module for determining whether the date between the date parameter and the first date parameter of the next month is holiday;
and the third positioning module is used for determining that the current time reaches the preset target time when the dates between the date parameter and the first date parameter of the next month are holidays.
In one embodiment, if the date difference is within a preset second location range, the apparatus further comprises:
the first threshold matching module is used for determining whether the week parameter is matched with a preset first week threshold when the date difference is the first threshold in the second positioning range;
the fourth positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the first week threshold;
the second threshold matching module is used for determining whether the week parameter is matched with a preset second week threshold when the date difference is a second threshold in the second positioning range;
and the fifth positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the second week threshold value.
In one embodiment, the target time is a shutdown date of the accounting processing system.
In one embodiment, the target time is any one of:
the last working day of each month, the last working day of each quarter, and the last working day of each year.
In one embodiment, the parameter threshold is 25, the first location range is a numerical range greater than 0 and less than or equal to 1, the second location range is a numerical range greater than 1 and less than or equal to 3, the first threshold is 2, the first week threshold is friday or saturday, the second threshold is 3, and the second week threshold is friday.
In one embodiment, before the date difference obtaining module obtains the date difference, the apparatus further includes:
a quarter determining module for determining whether the month parameter is a last month parameter of a current quarter when the target time is a last working day of the corresponding quarter;
a first comparison module for determining whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of a current quarter;
the sixth positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold;
a year determining module for determining whether the month parameter is a last month parameter of the current year when the target time is a last working day of the year;
a second comparison module to determine whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of the year;
and the seventh positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold value.
According to a fourth aspect of embodiments herein, there is provided one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause a terminal device to perform the above-described methods.
By implementing the embodiment provided by the application, when the daily parameter contained in the current time parameter is higher than a preset parameter threshold value, the date difference between the daily parameter and the first daily parameter of the next month is obtained based on the month parameter, and when the obtained date difference is within a preset first positioning range, the current time is determined to reach the preset target time; and if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time, and then processing the service corresponding to the target time. Therefore, whether the current time reaches the preset target time can be quickly and accurately determined by analyzing the day parameter and the week parameter contained in the current time parameter, and the accuracy of time positioning can be effectively improved. If the target time needing to be positioned is the closing date, the processing of the accounting data is stopped at the time determined by the application, and the influence on the timeliness of business processing can be effectively reduced.
Drawings
FIG. 1 is a flow chart of an embodiment of a business processing method of the present application;
FIG. 2 is a flow chart of another embodiment of a business processing method of the present application;
FIG. 3 is a block diagram of an embodiment of a service processing apparatus of the present application;
fig. 4 is a hardware configuration diagram of the service processing apparatus according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The time positioning method can correspond to operating systems of various services, when specific service operation is required to be carried out at the end of a month or at the end of a month of certain months, the specific date is preset as the target time of the method, when a date parameter contained in the current time parameter is higher than a preset parameter threshold value, the date difference between the date parameter and the first date parameter of the next month is obtained based on the month parameter, and when the obtained date difference is within a preset first positioning range, the current time is determined to reach the preset target time; and if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time, and then processing the service corresponding to the target time. Therefore, whether the current time reaches the preset target time can be determined quickly and accurately, the accuracy of time positioning can be effectively improved, after the determined time reaches the preset target time, the operating system of the corresponding service is controlled to execute corresponding processing, and the timeliness of service processing can be effectively improved, and the embodiment of the application is described in detail below.
Fig. 1 is a flowchart of an embodiment of a service processing method of the present application, where the embodiment may include the following steps 101-106:
step 101: and acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter.
In the embodiment of the application, the acquired time parameter is the time information of the current time, the currently displayed time of the local clock can be acquired from the local clock and is the time parameter, the currently displayed time of the local clock is generally the parameters of the current year, the current day of the current month, the time, the minute, the second and the week, if the parameter of the first day of the next month after the current month needs to be acquired, the parameter of the first day of the next month (the parameter of the first day) can be acquired only according to the parameter of the current month, therefore, the acquired time parameter only comprises the parameter of the month, the parameter of the day and the parameter of the week, and the subsequent operation of the application can be completed.
In other examples, the current time parameter may be retrieved from calendar information stored in a calendar database, and the current time parameter may include a year parameter, a month parameter, a day parameter, and a week parameter. If the date parameter of the first day of the next month after the current month needs to be acquired, the date parameter of the first day of the next month can be acquired from the calendar database according to the year parameter and the month parameter included in the time parameter.
Step 102: and if the day parameter is higher than a preset parameter threshold value, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter.
In the embodiment of the application, the parameter threshold is used for quickly excluding the time far away from the preset target time, and when the daily parameter is not higher than the parameter threshold, it is determined that the current time does not reach the preset target time. Therefore, the specific value of the parameter threshold is determined by the target time. In some scenarios, if the target time is the last working day of each month, the last working day of each quarter, or the last working day of each year, the parameter threshold is 25, and no date 25 days before each month is the target time. If the target time is the last two weekdays of each month, the last two weekdays of each quarter, or the last two weekdays of each year, the parameter threshold is 24, and no date 24 days before each month is the target time. When the target time is other specific dates, the specific values of the parameter threshold values can be analogized in turn.
The target time is the last working day of each month, and the last working day needs to be located every month. The target time is the last working day of each quarter or the last working day of each year, and only the last working day needs to be located in the last month of each quarter or the last month of each year, and the last working day is located at other times and is completely an invalid location operation, so in order to save resources and reduce invalid location operations, the business processing method of the embodiment of the application can further execute the following operations before obtaining the date difference between the date parameter and the first date parameter of the next month based on the month parameter:
if the target time is the last working day of the corresponding quarter, determining whether the month parameter is the last month parameter of the current quarter; and if the current quarter is the last month parameter, determining whether the day parameter is higher than the parameter threshold, and if the current quarter is not higher than the parameter threshold, determining that the current time does not reach the preset target time.
If the target time is the last working day of the year, determining whether the month parameter is the last month parameter of the year; and if the current date is the last month parameter of the current year, determining whether the date parameter is higher than the parameter threshold, and if the current date is not higher than the parameter threshold, determining that the current time does not reach the preset target time.
After the day parameter is determined to be higher than the parameter threshold value, in order to obtain the date difference, a first day parameter of a month after the month parameter contained in the current time of the month parameter is firstly called from a local clock, and the date difference can be obtained by inquiring the day interval between the day parameter contained in the current time and the obtained first day parameter of the next month.
Step 103: and if the date difference is within a preset first positioning range, determining that the current time reaches a preset target time.
In the embodiment of the application, by comparing the date difference with the first positioning range, whether the current time reaches the preset target time or not can be quickly determined when the date difference is small. Typically, the specific value range of the first positioning range is determined by the target time.
For example, the target time is the last working day of each month, the last working day of each quarter, or the last working day of each year, and the first positioning range is a numerical range greater than 0 and less than or equal to 1. The first location range is a numerical range greater than 1 and less than or equal to 3 if the target time is the last two weekdays of each month, the last two weekdays of each quarter, or the last two weekdays of each year. When the target time is other specific dates, the specific numerical range of the first positioning range can be analogized in turn.
In some scenarios, if the target time preset in the present application is combined with a specific application scenario, the target time may be set for a situation where various operating systems need to perform a specific operation at the end of each month or at a specific date at the end of each month, which is not limited in the present application.
For example: some enterprises and public institutions need to close the accounting processing system on the last working day of each month, and the target time can be set as the closing day of the accounting processing system; some entry websites need to close the entry system on the last working day of a certain month, and the target time can be set as the entry termination date; in order to arrange the service data of the current month, a certain service department needs to suspend the service circulation system in the last working day at the end of the month, and the target time can be set as a service summary day.
Step 104: and if the date difference is within a preset second positioning range, determining whether the week parameter is matched with a preset week threshold value, wherein the minimum value in the second positioning range is higher than the maximum value in the first positioning range.
In the embodiment of the application, by comparing the date difference with the first positioning range, whether the current time reaches the preset target time or not can be quickly determined when the date difference is large. Typically, the specific value range of the second positioning range is determined by the target time.
For example, the target time is the last working day of each month, the last working day of each quarter, or the last working day of each year, and the second positioning range is a numerical range greater than 1 and less than or equal to 3. The second location range is a numerical range greater than 2 and less than or equal to 4 if the target time is the last two weekdays of each month, the last two weekdays of each quarter, or the last two weekdays of each year. When the target time is other specific dates, the specific numerical range of the second positioning range can be analogized in turn.
In order to further improve the accuracy of time positioning, in an example, when the date difference is within a preset second positioning range, the service processing method of the embodiment of the present application may include the following operations:
and if the date difference is the first threshold value in the second positioning range, determining whether the week parameter is matched with a preset first week threshold value.
And if the week parameter is matched with the first week threshold value, determining that the current time reaches a preset target time. If not, it may be determined that the current time has not reached the preset target time.
And if the date difference is a second threshold value in the second positioning range, determining whether the week parameter is matched with a preset second week threshold value.
And if the week parameter is matched with the second week threshold value, determining that the current time reaches a preset target time. If not, it may be determined that the current time has not reached the preset target time.
In this example, the target time is the last working day of each month, the last working day of each quarter, or the last working day of each year, the first threshold is 2, the first week threshold is friday or saturday, the second threshold is 3, and the second week threshold is friday. When the target time is other specific dates, the specific parameter values of the first threshold, the first week threshold, the second threshold and the second week threshold can be analogized in turn.
The specific parameter values corresponding to the first threshold, the first week threshold, the second threshold, and the second week threshold may determine that the week parameter matches the week threshold when the week parameter matches the week threshold.
Step 105: and if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time.
In the embodiment of the present application, if the week parameter is consistent (e.g., the same) with the week threshold, it can be determined that the two are matched, and if not, it can be determined that the two are not matched.
In general, if the week parameter does not match the week threshold, it is determined that the current time reaches a preset target time.
In addition, if the date parameter is higher than a preset parameter threshold value and the date difference exceeds the second positioning range, it can be determined that the current time reaches a preset target time. However, since every year's holidays include legal holidays besides saturday and sunday, and legal holidays are not necessarily saturday or sunday and sometimes span the entire monday to friday, in some months, even if the day parameter is higher than the preset parameter threshold and the date difference exceeds the second positioning range, the current time may reach the preset time. For example, the predetermined time is the last working day of each month, and at 26 in 2017 in month 1, the day parameter is higher than 25, the date difference is greater than 3, but 26 is the last working day in 2017 in month 1.
In view of the above situation, in order to further improve the time positioning accuracy, before obtaining the date difference between the date parameter and the first date parameter of the next month based on the month parameter, the embodiment of the present application may perform the following operations: determining whether a date between the date parameter and a first date parameter of a next month is a holiday; and if the dates between the date parameter and the first date parameter of the next month are both holidays, determining that the current time reaches the preset target time.
Step 106: and after the current time is determined to reach the preset target time, processing the service corresponding to the target time.
In this embodiment of the present application, if it is determined that the current time reaches the target time, the processing includes: and sending reminding information or a control instruction to the corresponding operating system so that the operating system executes corresponding operation at the current time. For example, the card payment system is reminded to carry out the refund processing of the external card at regular time, or the financial processing system is controlled to be turned on or off.
An example is set forth below in the context of an application that requires the accounting processing system to be shut down on the last working day of each month. In this example, the target time is a closing date, i.e., the last working day of each month; the parameter threshold is 25; the first positioning range is a numerical range which is larger than 0 and smaller than or equal to 1, the second positioning range is a numerical range which is larger than 1 and smaller than or equal to 3, the first threshold is 2, the first week threshold is friday or saturday, the second threshold is 3, and the second week threshold is friday. Referring to fig. 2, fig. 2 is a flowchart of another embodiment of the service processing method of the present application, which may include the following steps 201 and 215:
step 201: and acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter.
Step 202: and judging whether the day parameter is higher than 25, if not, executing the step 203, and if so, executing the step 204.
Step 203: controlling the accounting processing system to be in an open state. While in the on state, accounting data may be processed.
Step 204: obtaining a date difference between the day parameter and a first day parameter of a next month based on the month parameter.
Step 205: it is determined whether the date difference is equal to 1, if so, step 206 is performed, and if not, step 207 is performed.
Step 206: controlling the accounting processing system to be in a shutdown state. And when the mobile terminal is in the open state, the financial data is forbidden to be processed.
Step 207: it is determined whether the date difference is equal to 2, if yes, step 208 is performed, and if no, step 211 is performed.
Step 208: and judging whether the week parameter is Friday or Saturday, if so, executing the step 209, and if not, executing the step 210.
Step 209: controlling the accounting processing system to be in a shutdown state.
Step 210: controlling the accounting processing system to be in an open state.
Step 211: it is determined whether the date difference is equal to 3, if not step 212 is performed, if yes step 213 is performed.
Step 212: controlling the accounting processing system to be in an open state.
Step 213: it is determined whether the week parameter is Friday, if yes, step 214 is performed, and if no, step 215 is performed.
Step 214: controlling the accounting processing system to be in a shutdown state.
Step 215: controlling the accounting processing system to be in an open state.
From the above embodiment, it can be seen that: when the date parameter contained in the current time parameter is higher than a preset parameter threshold value, obtaining the date difference between the date parameter and the first date parameter of the next month based on the month parameter, and determining that the current time reaches the preset target time when the obtained date difference is within a preset first positioning range; and determining whether the week parameter is matched with a preset week threshold value or not when the obtained date difference is within a preset second positioning range, and determining that the current time reaches a preset target time if the week parameter is matched with the week threshold value. Therefore, whether the current time reaches the preset target time can be quickly and accurately determined by analyzing the day parameter and the week parameter contained in the current time parameter, and the accuracy of time positioning can be effectively improved.
If the target time needing to be positioned is the account closing date, no matter which month in the year or whether the account closing dates of different enterprises and public institutions are the same, after the target time is set based on the requirement, the processing of the accounting data is stopped at the time determined by the application, and the influence on the timeliness of business processing can be effectively reduced.
Corresponding to the embodiment of the service processing method, the application also provides an embodiment of a service processing device.
Referring to fig. 3, fig. 3 is a block diagram of an embodiment of a service processing apparatus according to the present application, where the apparatus may include: a time parameter acquisition module 310, a date difference acquisition module 320, a first positioning module 330, a week matching module 340, a second positioning module 350, and a business processing module 360.
The time parameter obtaining module 310 is configured to obtain a current time parameter, where the time parameter includes a month parameter, a day parameter, and a week parameter.
A date difference obtaining module 320, configured to obtain, based on the month parameter, a date difference between the date parameter and a first date parameter of a next month when the date parameter is higher than a preset parameter threshold.
The first positioning module 330 is configured to determine that the current time reaches a preset target time when the date difference is within a preset first positioning range.
And the week matching module 340 is configured to determine whether the week parameter matches a preset week threshold value when the date difference is within a preset second positioning range, where a minimum value in the second positioning range is higher than a maximum value in the first positioning range.
And a second positioning module 350, configured to determine that the current time reaches a preset target time when the week parameter matches the week threshold.
And the service processing module 360 is configured to, after determining that the current time reaches the preset target time, perform processing on a service corresponding to the target time.
In an optional implementation manner, after the time parameter obtaining module 310 obtains the time parameter, the service processing apparatus according to the embodiment of the present application may further include (not shown in fig. 3):
a holiday determination module for determining whether the date between the date parameter and the first date parameter of the next month is holiday.
And the third positioning module is used for determining that the current time reaches the preset target time when the dates between the date parameter and the first date parameter of the next month are holidays.
In another optional implementation manner, if the date difference is within the preset second positioning range, the service processing apparatus according to this embodiment may further include (not shown in fig. 3):
and the first threshold matching module is used for determining whether the week parameter is matched with a preset first week threshold when the date difference is the first threshold in the second positioning range.
And the fourth positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the first week threshold.
And the second threshold matching module is used for determining whether the week parameter is matched with a preset second week threshold when the date difference is a second threshold in the second positioning range.
And the fifth positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the second week threshold value.
In another alternative implementation, the target time is a shutdown date of the accounting processing system.
In another alternative implementation, the target time is any one of the following times:
the last working day of each month, the last working day of each quarter, and the last working day of each year.
In another optional implementation, the parameter threshold is 25, the first positioning range is a numerical range greater than 0 and less than or equal to 1, the second positioning range is a numerical range greater than 1 and less than or equal to 3, the first threshold is 2, the first week threshold is friday or saturday, the second threshold is 3, and the second week threshold is friday.
In another optional implementation manner, before the date difference obtaining module 320 obtains the date difference, the service processing apparatus according to the embodiment of the present application may further include (not shown in fig. 3):
and the quarter determining module is used for determining whether the month parameter is the last month parameter of the current quarter when the target time is the last working day of the corresponding quarter.
A first comparison module to determine whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of a current quarter.
And the sixth positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold value.
And the year determining module is used for determining whether the month parameter is the last month parameter of the current year when the target time is the last working day of the year.
A second comparison module to determine whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of the year.
And the seventh positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold value.
The implementation process of the functions and actions of each unit (or module) in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units or modules described as separate parts may or may not be physically separate, and the parts displayed as the units or modules may or may not be physical units or modules, may be located in one place, or may be distributed on a plurality of network units or modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiment of the service processing device can be applied to electronic equipment. In particular, it may be implemented by a computer chip or entity, or by an article of manufacture having some functionality. In a typical implementation, the electronic device is a computer, which may be embodied in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, internet television, smart car, smart home device, or a combination of any of these devices.
The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in a readable medium such as a nonvolatile memory and the like into a memory for operation through a processor of the electronic device where the software implementation is located as a logical device. In terms of hardware, as shown in fig. 4, the present application is a hardware structure diagram of an electronic device in which a service processing apparatus is located, and besides the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, the electronic device in which the apparatus is located in the embodiment may also include other hardware according to an actual function of the electronic device, which is not described again. The storage processor of the electronic device may be a memory of executable instructions; the processor may be coupled to the memory for reading program instructions stored in the memory and, in response, performing the following: acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter; if the day parameter is higher than a preset parameter threshold value, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter; if the date difference is within a preset first positioning range, determining that the current time reaches a preset target time; if the date difference is within a preset second positioning range, determining whether the week parameter is matched with a preset week threshold value, wherein the numerical values within the second positioning range are all higher than the numerical values within the first positioning range; if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time; and after the current time is determined to reach the preset target time, processing the service corresponding to the target time.
In other embodiments, the operations performed by the processor may refer to the description related to the above method embodiments, which is not repeated herein.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A method for processing a service, comprising the steps of:
acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter;
if the day parameter is higher than a preset parameter threshold, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter, wherein the parameter threshold is 25;
if the date difference is within a numerical range which is greater than 0 and less than or equal to 1, determining that the current time reaches a preset target time;
if the date difference is within a numerical range greater than 1 and less than or equal to 3, determining whether the week parameter matches a preset week threshold;
if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time;
after the current time is determined to reach the preset target time, sending reminding information or a control instruction to a corresponding operating system so that the financial processing system terminates financial data processing;
wherein the target time is a closing day of the accounting processing system, and the target time is any one of the following times: the last working day of each month, the last working day of each quarter, the last working day of each year;
if the date difference is within a range of values greater than 1 and less than or equal to 3, the method further comprises the steps of:
if the date difference is 2, determining whether the week parameter is Friday or Saturday;
if the week parameter is Friday or Saturday, determining that the current time reaches a preset target time;
if the date difference is 3, determining whether the week parameter is Friday;
and if the week parameter is Friday, determining that the current time reaches a preset target time.
2. The method of claim 1, wherein said obtaining a date difference between said day parameter and a first day parameter of a next month based on said month parameter further comprises the steps of:
determining whether a date between the date parameter and a first date parameter of a next month is a holiday;
and if the dates between the date parameter and the first date parameter of the next month are both holidays, determining that the current time reaches the preset target time.
3. The method of claim 1, wherein said obtaining a date difference between said day parameter and a first day parameter of a next month based on said month parameter further comprises the steps of:
if the target time is the last working day of the corresponding quarter, determining whether the month parameter is the last month parameter of the current quarter;
if the parameter is the last month parameter of the current quarter, determining whether the day parameter is higher than the parameter threshold, and if the parameter is not higher than the parameter threshold, determining that the current time does not reach the preset target time;
if the target time is the last working day of the year, determining whether the month parameter is the last month parameter of the year;
and if the current date is the last month parameter of the current year, determining whether the date parameter is higher than the parameter threshold, and if the current date is not higher than the parameter threshold, determining that the current time does not reach the preset target time.
4. An electronic device, comprising:
a processor;
a memory storing processor-executable instructions;
wherein the processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing the following:
acquiring current time parameters, wherein the time parameters comprise a month parameter, a day parameter and a week parameter;
if the day parameter is higher than a preset parameter threshold, acquiring the date difference between the day parameter and the first day parameter of the next month based on the month parameter, wherein the parameter threshold is 25;
if the date difference is within a numerical range which is greater than 0 and less than or equal to 1, determining that the current time reaches a preset target time;
if the date difference is within a numerical range greater than 1 and less than or equal to 3, determining whether the week parameter matches a preset week threshold;
if the week parameter is matched with the week threshold value, determining that the current time reaches a preset target time;
after the current time is determined to reach the preset target time, sending reminding information or a control instruction to a corresponding operating system so that the financial processing system terminates financial data processing;
wherein the target time is a closing day of the accounting processing system, and the target time is any one of the following times: the last working day of each month, the last working day of each quarter, the last working day of each year;
if the date difference is in a numerical range greater than 1 and less than or equal to 3, the method further comprises the following steps:
if the date difference is 2, determining whether the week parameter is Friday or Saturday;
if the week parameter is Friday or Saturday, determining that the current time reaches a preset target time;
if the date difference is 3, determining whether the week parameter is Friday;
and if the week parameter is Friday, determining that the current time reaches a preset target time.
5. A traffic processing apparatus, comprising:
the time parameter acquisition module is used for acquiring current time parameters, and the time parameters comprise a month parameter, a day parameter and a week parameter;
the date difference acquisition module is used for acquiring the date difference between the date parameter and the first date parameter of the next month based on the month parameter when the date parameter is higher than a preset parameter threshold, wherein the parameter threshold is 25;
the first positioning module is used for determining that the current time reaches a preset target time when the date difference is greater than 0 and less than or equal to 1;
the week matching module is used for determining whether the week parameter is matched with a preset week threshold value when the date difference is greater than 1 and less than or equal to 3;
the second positioning module is used for determining that the current time reaches a preset target time when the week parameter is matched with the week threshold;
the service processing module is used for sending reminding information or a control instruction to the corresponding operating system after the current time is determined to reach the preset target time so as to enable the financial processing system to terminate financial data processing;
wherein the target time is a closing day of the accounting processing system, and the target time is any one of the following times: the last working day of each month, the last working day of each quarter, the last working day of each year;
if the date difference is within greater than 1 and less than or equal to 3, the apparatus further comprises:
a first threshold matching module for determining whether the week parameter is Friday or Saturday if the date difference is 2;
the fourth positioning module is used for determining that the current time reaches the preset target time when the week parameter is Friday or Saturday;
a second threshold matching module for determining whether the week parameter is Friday when the date difference is 3;
and the fifth positioning module is used for determining that the current time reaches the preset target time when the week parameter is friday.
6. The apparatus according to claim 5, wherein after the time parameter obtaining module obtains the time parameter, the apparatus further comprises:
a holiday determination module for determining whether the date between the date parameter and the first date parameter of the next month is holiday;
and the third positioning module is used for determining that the current time reaches the preset target time when the dates between the date parameter and the first date parameter of the next month are holidays.
7. The apparatus of claim 5, wherein before the date difference obtaining module obtains the date difference, the apparatus further comprises:
a quarter determining module for determining whether the month parameter is a last month parameter of a current quarter when the target time is a last working day of the corresponding quarter;
a first comparison module for determining whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of a current quarter;
the sixth positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold;
a year determining module for determining whether the month parameter is a last month parameter of the current year when the target time is a last working day of the year;
a second comparison module to determine whether the day parameter is above the parameter threshold when the month parameter is a last month parameter of the year;
and the seventh positioning module is used for determining that the current time does not reach the preset target time when the day parameter is not higher than the parameter threshold value.
8. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause a terminal device to perform the method of any of claims 1-3.
CN201611185069.1A 2016-12-20 2016-12-20 Service processing method, device and equipment and readable medium Active CN107038552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611185069.1A CN107038552B (en) 2016-12-20 2016-12-20 Service processing method, device and equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611185069.1A CN107038552B (en) 2016-12-20 2016-12-20 Service processing method, device and equipment and readable medium

Publications (2)

Publication Number Publication Date
CN107038552A CN107038552A (en) 2017-08-11
CN107038552B true CN107038552B (en) 2021-03-05

Family

ID=59531170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611185069.1A Active CN107038552B (en) 2016-12-20 2016-12-20 Service processing method, device and equipment and readable medium

Country Status (1)

Country Link
CN (1) CN107038552B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298925B (en) * 2018-09-27 2021-10-15 郑州云海信息技术有限公司 A method, system and related device for timing startup of periodic task
CN112927051B (en) * 2021-03-29 2024-11-26 中国建设银行股份有限公司 A method and device for processing a lease contract

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4148180A (en) * 1976-05-11 1979-04-10 Kabushiki Kaisha Suwa Seikosha Electronic timepiece circuit for automatically displaying the day of the week
JP2004268024A (en) * 2003-02-17 2004-09-30 Kazumi Shimomura Portable input/output terminal for septic tank management, and control program used therefor
JP2015074170A (en) * 2013-10-09 2015-04-20 木下 輝雄 Perpetual calendar

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2215596A4 (en) * 2007-11-30 2012-02-29 Credit Suisse Securities Usa Llc A computer system and method for generating and maintaining a financial benchmark
CN102780723B (en) * 2011-05-11 2016-04-27 联想(北京)有限公司 A kind of information obtaining method and information obtaining device
JP6435762B2 (en) * 2013-12-26 2018-12-12 カシオ計算機株式会社 Electronic device, program, and date / time information acquisition method
CN104951921A (en) * 2014-03-26 2015-09-30 联想移动通信科技有限公司 Method and device for prompting festivals and holidays
CN106067070A (en) * 2016-05-26 2016-11-02 北京小米移动软件有限公司 Ticket booking reminding method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4148180A (en) * 1976-05-11 1979-04-10 Kabushiki Kaisha Suwa Seikosha Electronic timepiece circuit for automatically displaying the day of the week
JP2004268024A (en) * 2003-02-17 2004-09-30 Kazumi Shimomura Portable input/output terminal for septic tank management, and control program used therefor
JP2015074170A (en) * 2013-10-09 2015-04-20 木下 輝雄 Perpetual calendar

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Bring Your Own Calendar: A CalDAV-Based Virtual Calendar System;Yoshinari Nomura 等;《2013 Eighth International Conference on Broadband and Wireless Computing, Communication and Applications》;20131231;551-556 *

Also Published As

Publication number Publication date
CN107038552A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
US20190318369A1 (en) Method and device for predicting business volume
CN109408262B (en) Service data processing method and related equipment
WO2020238535A1 (en) Cash-out risk detection method and apparatus for aggregation payment merchant, and electronic device
CN109710402A (en) Method, apparatus, computer device and storage medium for processing resource acquisition request
CN107783861B (en) Transaction rollback method, device, storage medium and computer equipment
CN108282490A (en) Processing method, device, computer equipment and the storage medium of abnormal registration user
CN111680960A (en) Attendance statistical method and equipment
CN110659137B (en) Processing resource allocation method and system for offline tasks
CN111552548A (en) Task processing method and device, electronic equipment and machine-readable storage medium
CN107038552B (en) Service processing method, device and equipment and readable medium
CN110910237A (en) Data processing method and device in block chain, intelligent terminal and storage medium
US9292345B2 (en) Systems, methods, and computer program products for processing sets of instructions for mobile devices
CN111629062A (en) Message pushing method and device
CN109428900B (en) Data processing method and device
US20140358614A1 (en) Calendar-agnostic meeting scheduling
CN109656901A (en) Data processing method and device, electronic equipment
CN114004366A (en) Training method of longitudinal federated model, information recommendation method, device and equipment
CN109409550A (en) The processing method and processing device of handicraft Service Source
WO2024261525A1 (en) Secure and privacy preserving querying of large language models
US10515383B2 (en) Reducing computational resource requirements for making payments
JP6563001B2 (en) System and method for detecting and alerting to risks in replenishment transactions
CN110009391B (en) Method and device for determining periodic event information
CN111798242A (en) Service processing method and device
KR20220119919A (en) Server for providing simple tax payment service, system, and computer program
CN110969430A (en) Method and device for identifying suspicious user, computer equipment 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201016

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201016

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240206

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands