Browse Source

getLatestGridInfo默认返回null

dev
yinzuomei 5 years ago
parent
commit
ec3f6f08ac
  1. 3
      epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/grid/service/impl/ResiMineGridServiceImpl.java
  2. 5
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/LatestGridInfoResultDTO.java

3
epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/grid/service/impl/ResiMineGridServiceImpl.java

@ -43,7 +43,6 @@ public class ResiMineGridServiceImpl implements ResiMineGridService {
**/
@Override
public LatestGridInfoResultDTO getLatestGridInfo(TokenDto tokenDto) {
LatestGridInfoResultDTO latestGridInfoResultDTO=new LatestGridInfoResultDTO();
if (null == tokenDto || StringUtils.isBlank(tokenDto.getUserId())) {
logger.warn(String.format("居民端获取用户最近访问的网格失败:tokenDto is null or userId is null"));
throw new RenException(ModuleConstant.USER_NOT_NULL);
@ -58,7 +57,7 @@ public class ResiMineGridServiceImpl implements ResiMineGridService {
return userResult.getData();
}
logger.warn(String.format("居民端获取用户最近访问网格失败,调用epmet-user-server服务返回%s",JSON.toJSONString(userResult)));
return latestGridInfoResultDTO;
return null ;
}
/**

5
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/LatestGridInfoResultDTO.java

@ -23,9 +23,4 @@ public class LatestGridInfoResultDTO implements Serializable {
*/
private String gridId;
public LatestGridInfoResultDTO(){
this.setCustomerId("");
this.setGridId("");
}
}

Loading…
Cancel
Save