终端重要日志功能开发
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
* 电压等级
|
||||
*/
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user