终端重要日志功能开发

This commit is contained in:
2025-04-09 17:52:02 +08:00
parent 929200c869
commit c3db9597fe
8 changed files with 142 additions and 327 deletions

View File

@@ -97,6 +97,13 @@ public class UserReportParam {
@Pattern(regexp = PatternRegex.DES32_REGEX, message = ValidMessage.DATA_TOO_LONG)
private String substation;
/**
* 变电站
*/
@ApiModelProperty(value = "变电站id")
@Pattern(regexp = PatternRegex.DES32_REGEX, message = ValidMessage.DATA_TOO_LONG)
private String stationId;
/**
* 电压等级
*/

View File

@@ -1162,6 +1162,9 @@ public class UserReportPOServiceImpl extends ServiceImpl<UserReportPOMapper, Use
if(StrUtil.isNotBlank(userReportParam.getCity())){
lambdaQueryWrapper.in(UserReportPO::getCity,Stream.of(userReportParam.getCity()).collect(Collectors.toList()));
}
if(StrUtil.isNotBlank(userReportParam.getStationId())){
lambdaQueryWrapper.eq(UserReportPO::getStationId,userReportParam.getStationId());
}
lambdaQueryWrapper.eq(UserReportPO::getState,DataStateEnum.ENABLE.getCode());