Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/ry_zhky/commit/79480409604b4a899f317fb8feaa0febf2a0153b You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix:近6个月统计涉密网络统计

pg_adapter
wangxy 6 months ago
parent dc213af076
commit 7948040960

@ -249,6 +249,8 @@ public class SysPropertynumController extends BaseController {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
List<Long> yAxisDataWx = new ArrayList<>();
List<Long> yAxisDataSb = new ArrayList<>();
List<Long> yAxisDataWxSb = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
@ -282,6 +284,33 @@ public class SysPropertynumController extends BaseController {
}
yAxisWx.set(Long.valueOf(countWx));
yAxisDataWx.add(yAxisWx.get());
AtomicReference<Long> yAxisSb = new AtomicReference<>(0L);
PropertyManagerDTO tdProperty = new PropertyManagerDTO();
tdProperty.setMinDayTime(minDayTime);
tdProperty.setMaxDayTime(maxDayTime);
tdProperty.setSecretsType("2");
tdProperty.setDestoryState("1");
Integer countSb = tdPropertyManagerService.countSecretsDestoryMonth(tdProperty);
if(Objects.isNull(countSb)){
countSb = 0;
}
yAxisSb.set(Long.valueOf(countSb));
yAxisDataSb.add(yAxisSb.get());
AtomicReference<Long> yAxisSbWx = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertwx = new PropertyManagerDTO();
tdPropertwx.setMinDayTime(minDayTime);
tdPropertwx.setMaxDayTime(maxDayTime);
tdPropertwx.setSecretsType("1");
Integer countSbWx = tdPropertyManagerService.countSecretsWxMonth(tdPropertwx);
if(Objects.isNull(countSbWx)){
countSbWx = 0;
}
yAxisSbWx.set(Long.valueOf(countSbWx));
yAxisDataWxSb.add(yAxisSbWx.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
@ -289,6 +318,10 @@ public class SysPropertynumController extends BaseController {
obj.put("yAxisData", yAxisData);
//未销毁
obj.put("yAxisDataWx", yAxisDataWx);
//设备销毁
obj.put("yAxisDataSb", yAxisDataSb);
//设备未销毁
obj.put("yAxisDataWxSb", yAxisDataWxSb);
return AjaxResult.success(obj);
}

@ -73,4 +73,9 @@ public interface TdPropertyManagerMapper extends BaseMapper<TdPropertyManager>
public Integer countDestoryMonth(PropertyManagerDTO propertyManagerDTO);
public Integer countMessageWxMonth(PropertyManagerDTO propertyManagerDTO);
public Integer countSecretsDestoryMonth(PropertyManagerDTO propertyManagerDTO);
public Integer countSecretsWxMonth(PropertyManagerDTO propertyManagerDTO);
}

@ -76,4 +76,8 @@ public interface ITdPropertyManagerService extends IService<TdPropertyManager>
public Integer countMessageWxMonth(PropertyManagerDTO propertyManagerDTO);
public Integer countSecretsDestoryMonth(PropertyManagerDTO propertyManagerDTO);
public Integer countSecretsWxMonth(PropertyManagerDTO propertyManagerDTO);
}

@ -118,4 +118,15 @@ public class TdPropertyManagerServiceImpl extends ServiceImpl<TdPropertyManagerM
public Integer countMessageWxMonth(PropertyManagerDTO propertyManagerDTO) {
return tdPropertyManagerMapper.countMessageWxMonth(propertyManagerDTO);
}
@Override
public Integer countSecretsDestoryMonth(PropertyManagerDTO propertyManagerDTO) {
return tdPropertyManagerMapper.countSecretsDestoryMonth(propertyManagerDTO);
}
@Override
public Integer countSecretsWxMonth(PropertyManagerDTO propertyManagerDTO) {
return tdPropertyManagerMapper.countSecretsWxMonth(propertyManagerDTO);
}
}

@ -141,4 +141,22 @@
and d.destory_state is null
</select>
<select id="countSecretsDestoryMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO">
SELECT COUNT(t.*) from td_property_manager t RIGHT JOIN td_property_ement d
on t.use_id = d.use_id where t.secrets_type=#{secretsType}
AND d.destory_date &gt;= #{minDayTime}
AND d.destory_date &lt;= #{maxDayTime}
and d.destory_state =#{destoryState}
</select>
<select id="countSecretsWxMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO">
SELECT COUNT(t.*) from td_property_manager t RIGHT JOIN td_property_ement d
on t.use_id = d.use_id where t.secrets_type=#{secretsType}
AND t.recover_date &gt;= #{minDayTime}
AND t.recover_date &lt;= #{maxDayTime}
and d.destory_state is null
</select>
</mapper>
Loading…
Cancel
Save