|
@@ -190,7 +190,12 @@ public class WorkOrderStatisticsController {
|
|
|
case 0:
|
|
|
maintainerCount = userCenterClient.findMaintainerCount(startDate);
|
|
|
startDate = String.format("%s-01", startDate);
|
|
|
- endDate = subMonth(startDate, 1);
|
|
|
+ if(isCurrentMonth(endDate)==true){
|
|
|
+ endDate = String.format("%s-%s", startDate.substring(0,7),localDate.getDayOfMonth()+1);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ endDate = subMonth(startDate, 1);
|
|
|
+ }
|
|
|
break;
|
|
|
case 1:
|
|
|
maintainerCount = userCenterClient.findMaintainerCount(String.format("%s-12",startDate));
|
|
@@ -254,7 +259,12 @@ public class WorkOrderStatisticsController {
|
|
|
switch (statsType) {
|
|
|
case 0:
|
|
|
startDate = String.format("%s-01", startDate);
|
|
|
- endDate = subMonth(startDate, 1);
|
|
|
+ if(isCurrentMonth(endDate)==true){
|
|
|
+ endDate = String.format("%s-%s", startDate.substring(0,7),localDate.getDayOfMonth()+1);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ endDate = subMonth(startDate, 1);
|
|
|
+ }
|
|
|
break;
|
|
|
case 1:
|
|
|
startDate = String.format("%s-01-01", startDate);
|
|
@@ -292,7 +302,12 @@ public class WorkOrderStatisticsController {
|
|
|
switch (statsType) {
|
|
|
case 0:
|
|
|
startDate = String.format("%s-01", startDate);
|
|
|
- endDate = subMonth(startDate, 1);
|
|
|
+ if(isCurrentMonth(endDate)==true){
|
|
|
+ endDate = String.format("%s-%s", startDate.substring(0,7),localDate.getDayOfMonth()+1);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ endDate = subMonth(startDate, 1);
|
|
|
+ }
|
|
|
break;
|
|
|
case 1:
|
|
|
startDate = String.format("%s-01-01", startDate);
|