Compare commits
No commits in common. "0f4902da84c2148c4e98fb1699a4b3e55c8a939a" and "2ebe0e480e1732521f86020b12efc9f4f62d4318" have entirely different histories.
0f4902da84
...
2ebe0e480e
@ -18,9 +18,6 @@ public class RspBikeInfo {
|
|||||||
*/
|
*/
|
||||||
private String reginId;
|
private String reginId;
|
||||||
|
|
||||||
/**
|
|
||||||
* 电量百分比
|
|
||||||
*/
|
|
||||||
private Integer soc;
|
private Integer soc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -70,6 +67,10 @@ public class RspBikeInfo {
|
|||||||
*/
|
*/
|
||||||
private LocalDateTime updatedAt;
|
private LocalDateTime updatedAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除状态(1已删除)
|
||||||
|
*/
|
||||||
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除时间
|
* 删除时间
|
||||||
|
|||||||
@ -1461,7 +1461,11 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
|||||||
query.eq(EBIKE_BIKE_INFO.REGIN_ID.getName(), regionId);
|
query.eq(EBIKE_BIKE_INFO.REGIN_ID.getName(), regionId);
|
||||||
// 执行查询并将结果映射为ResEbikeInfoReginIdDto类型
|
// 执行查询并将结果映射为ResEbikeInfoReginIdDto类型
|
||||||
List<ResEbikeInfoReginIdDto> resEbikeInfoReginIdDtos = ebikeBikeInfoMapper.selectListByQueryAs(query, ResEbikeInfoReginIdDto.class);
|
List<ResEbikeInfoReginIdDto> resEbikeInfoReginIdDtos = ebikeBikeInfoMapper.selectListByQueryAs(query, ResEbikeInfoReginIdDto.class);
|
||||||
|
// 返回查询结果
|
||||||
|
if (resEbikeInfoReginIdDtos.isEmpty()) {
|
||||||
|
// 如果查询结果为空,返回一个提示信息
|
||||||
|
return JsonResult.failed("未找到相关电动车信息");
|
||||||
|
}
|
||||||
return JsonResult.success(resEbikeInfoReginIdDtos);
|
return JsonResult.success(resEbikeInfoReginIdDtos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user