|
@@ -315,7 +315,7 @@ public class YBJServiceImpl implements YBJService {
|
|
|
//获取本月天数
|
|
|
int daysInMonth = currentDate.lengthOfMonth();
|
|
|
|
|
|
- for (int i = 0; i <(daysInMonth-dayOfMonth)+1 ; i++) {
|
|
|
+ for (int i = 0; i <daysInMonth-dayOfMonth ; i++) {
|
|
|
//获取当前日期是本月几号
|
|
|
LocalDate currentDay = LocalDate.now();
|
|
|
//获取是周几
|
|
@@ -398,7 +398,7 @@ public class YBJServiceImpl implements YBJService {
|
|
|
//获取下月月天数
|
|
|
int daysInMonth = firstDayOfNextMonth.lengthOfMonth();
|
|
|
|
|
|
- for (int i = 0; i <=(daysInMonth-dayOfMonth)+1 ; i++) {
|
|
|
+ for (int i = 0; i <=daysInMonth-dayOfMonth ; i++) {
|
|
|
//获取是周几
|
|
|
String dayOfWeek = firstDayOfNextMonth.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
|
|
|
//获取循环每天的日期
|
|
@@ -497,7 +497,7 @@ public class YBJServiceImpl implements YBJService {
|
|
|
//获取本月天数
|
|
|
int daysInMonth = currentDate.lengthOfMonth();
|
|
|
//重新创建计划任务
|
|
|
- for (int i = 0; i <(daysInMonth-dayOfMonth)+1 ; i++) {
|
|
|
+ for (int i = 0; i <daysInMonth-dayOfMonth ; i++) {
|
|
|
//获取是周几
|
|
|
String dayOfWeek = currentDate.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
|
|
|
//获取循环每天的日期
|