|
@@ -332,7 +332,7 @@ public class YBJServiceImpl implements YBJService {
|
|
//获取本月天数
|
|
//获取本月天数
|
|
int daysInMonth = currentDate.lengthOfMonth();
|
|
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();
|
|
LocalDate currentDay = LocalDate.now();
|
|
//获取是周几
|
|
//获取是周几
|
|
@@ -415,7 +415,7 @@ public class YBJServiceImpl implements YBJService {
|
|
//获取下月月天数
|
|
//获取下月月天数
|
|
int daysInMonth = firstDayOfNextMonth.lengthOfMonth();
|
|
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"));
|
|
String dayOfWeek = firstDayOfNextMonth.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
|
|
//获取循环每天的日期
|
|
//获取循环每天的日期
|
|
@@ -514,7 +514,7 @@ public class YBJServiceImpl implements YBJService {
|
|
//获取本月天数
|
|
//获取本月天数
|
|
int daysInMonth = currentDate.lengthOfMonth();
|
|
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"));
|
|
String dayOfWeek = currentDate.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
|
|
//获取循环每天的日期
|
|
//获取循环每天的日期
|