|
@@ -201,12 +201,14 @@ public class AppService implements IAppService {
|
|
|
else
|
|
|
distSiteNum = myNum - shipNum;
|
|
|
}
|
|
|
- Object num = redisCache.get(CacheConstants.SYS_SURPLUS_KEY+sysShipResVO.getShipId());
|
|
|
+ String numKey = redisCache.get(CacheConstants.SYS_SURPLUS_KEY+sysShipResVO.getShipId()).toString();
|
|
|
Long resetNum = 0L;
|
|
|
- if(num == null)
|
|
|
+ if(numKey == null)
|
|
|
resetNum = -1L;
|
|
|
- else
|
|
|
- resetNum = Long.valueOf(num.toString());
|
|
|
+ else {
|
|
|
+ Object num = redisCache.get(numKey);
|
|
|
+ resetNum = num == null ? -1L: Long.valueOf(num.toString());
|
|
|
+ }
|
|
|
|
|
|
sysShipResVO.setReseat(resetNum);
|
|
|
sysShipResVO.setAwaitTime(awaitTime);
|