|
@@ -50,7 +50,11 @@ public class RedisRunner implements CommandLineRunner {
|
|
|
roomInfo.setCaseType(fistUserinfo.getCaseType());
|
|
|
roomInfo.setAcceptStatus(fistUserinfo.getAcceptStatus());
|
|
|
roomInfo.setExpression(fistUserinfo.getExpression());
|
|
|
- roomInfo.setLastTime(fistUserinfo.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
+ if(null == fistUserinfo.getCreateTime()) {
|
|
|
+ roomInfo.setLastTime(null);
|
|
|
+ }else {
|
|
|
+ roomInfo.setLastTime(fistUserinfo.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
+ }
|
|
|
|
|
|
List<UserInfo> users = new ArrayList<>();
|
|
|
for (ChatSessionEntity chatSessionEntity : userList) {
|