@ -217,6 +217,7 @@ public class SysPropertynumController extends BaseController {
}
yAxis . set ( Long . valueOf ( count ) ) ;
yAxisData . add ( yAxis . get ( ) ) ;
AtomicReference < Long > yAxisSb = new AtomicReference < > ( 0 L ) ;
PropertyManagerDTO tdPropertManager = new PropertyManagerDTO ( ) ;
tdPropertManager . setMinDayTime ( minDayTime ) ;
tdPropertManager . setMaxDayTime ( maxDayTime ) ;
@ -225,8 +226,8 @@ public class SysPropertynumController extends BaseController {
if ( Objects . isNull ( countSecrets ) ) {
countSecrets = 0 ;
}
yAxis . set ( Long . valueOf ( countSecrets ) ) ;
yAxisDataSb . add ( yAxis . get ( ) ) ;
yAxis Sb . set ( Long . valueOf ( countSecrets ) ) ;
yAxisDataSb . add ( yAxis Sb . get ( ) ) ;
} ) ;
JSONObject obj = new JSONObject ( ) ;
obj . put ( "xAxisData" , recentlySixMonth . toArray ( ) ) ;
@ -247,6 +248,7 @@ public class SysPropertynumController extends BaseController {
public AjaxResult countSecretsMonth ( ) {
List < String > recentlySixMonth = ObtainLastSixMonthsUtil . getRecentlySixMonth ( ) ;
List < Long > yAxisData = new ArrayList < > ( ) ;
List < Long > yAxisDataWx = new ArrayList < > ( ) ;
recentlySixMonth . forEach ( month - > {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil . getLastDayOfMonth ( month ) ;
@ -260,17 +262,34 @@ public class SysPropertynumController extends BaseController {
PropertyManagerDTO tdPropertyManager = new PropertyManagerDTO ( ) ;
tdPropertyManager . setMinDayTime ( minDayTime ) ;
tdPropertyManager . setMaxDayTime ( maxDayTime ) ;
tdPropertyManager . setSecretsType ( "2" ) ;
Integer count = tdPropertyManagerService . countSecretsMonth ( tdPropertyManager ) ;
tdPropertyManager . setSecretsType ( "1" ) ;
tdPropertyManager . setDestoryState ( "1" ) ;
Integer count = tdPropertyManagerService . countDestoryMonth ( tdPropertyManager ) ;
if ( Objects . isNull ( count ) ) {
count = 0 ;
}
yAxis . set ( Long . valueOf ( count ) ) ;
yAxisData . add ( yAxis . get ( ) ) ;
AtomicReference < Long > yAxisWx = new AtomicReference < > ( 0 L ) ;
PropertyManagerDTO tdPropertManager = new PropertyManagerDTO ( ) ;
tdPropertManager . setMinDayTime ( minDayTime ) ;
tdPropertManager . setMaxDayTime ( maxDayTime ) ;
tdPropertManager . setSecretsType ( "1" ) ;
tdPropertManager . setDestoryState ( " " ) ;
Integer countWx = tdPropertyManagerService . countDestoryMonth ( tdPropertManager ) ;
if ( Objects . isNull ( countWx ) ) {
countWx = 0 ;
}
yAxisWx . set ( Long . valueOf ( countWx ) ) ;
yAxisDataWx . add ( yAxisWx . get ( ) ) ;
} ) ;
JSONObject obj = new JSONObject ( ) ;
obj . put ( "xAxisData" , recentlySixMonth . toArray ( ) ) ;
//已销毁
obj . put ( "yAxisData" , yAxisData ) ;
//未销毁
obj . put ( "yAxisDataWx" , yAxisDataWx ) ;
return AjaxResult . success ( obj ) ;
}