|
|
@ -147,6 +147,10 @@ public class GridLatestServiceImpl extends BaseServiceImpl<GridLatestDao, GridLa |
|
|
|
if(StringUtils.isBlank(userId)){ |
|
|
|
return new Result<LatestGridInfoResultDTO>().error(GridVisitedConstant.USER_ID_NOTNULL); |
|
|
|
} |
|
|
|
return new Result<LatestGridInfoResultDTO>().ok(baseDao.selectLatestGridInfoByUserId(userId)); |
|
|
|
LatestGridInfoResultDTO latestGridInfoResultDTO = baseDao.selectLatestGridInfoByUserId(userId); |
|
|
|
if (null == latestGridInfoResultDTO) { |
|
|
|
return new Result<>(); |
|
|
|
} |
|
|
|
return new Result<LatestGridInfoResultDTO>().ok(latestGridInfoResultDTO); |
|
|
|
} |
|
|
|
} |
|
|
|