记得上下班打卡 | git大法好,push需谨慎

Commit 02beec69 authored by jiangxiulong's avatar jiangxiulong

判断null

parent c2c56741
...@@ -1764,7 +1764,7 @@ public class GoblinRedisUtils { ...@@ -1764,7 +1764,7 @@ public class GoblinRedisUtils {
return 1; return 1;
} else { } else {
GoblinNftExSkuVo exSkuVo = (GoblinNftExSkuVo) obj; GoblinNftExSkuVo exSkuVo = (GoblinNftExSkuVo) obj;
if (LocalDateTime.now().isAfter(exSkuVo.getExStartTime()) && LocalDateTime.now().isBefore(exSkuVo.getExStopTime())) { if ((null == exSkuVo.getExStartTime() || LocalDateTime.now().isAfter(exSkuVo.getExStartTime())) && (null == exSkuVo.getExStopTime() || LocalDateTime.now().isBefore(exSkuVo.getExStopTime()))) {
return 2; return 2;
} else { } else {
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment