|
@@ -276,37 +276,37 @@ public class WxpayServiceImpl implements WxpayService {
|
|
|
// 发起人ID
|
|
|
Long userId = caseEntity.getCreateUserId();
|
|
|
|
|
|
- String sessionId = UUIDUtil.getUuidByTime9();
|
|
|
- // 支付完成生成聊天室
|
|
|
- ChatSessionEntity entity = new ChatSessionEntity();
|
|
|
- entity.setSessionid(sessionId);
|
|
|
- entity.setStatuz(1); // 状态1:正常0:屏蔽
|
|
|
- entity.setUserId(caseEntity.getCreateUserId().toString());
|
|
|
- entity.setCreateUserId(caseEntity.getCreateUserId().toString());
|
|
|
- entity.setDataTable(2);// '问诊出诊 1问诊2出诊',
|
|
|
- entity.setDataId(orderId);
|
|
|
- entity.setCreateTime(date);
|
|
|
- List<ChatSessionEntity> sessionList = new ArrayList<>();
|
|
|
- sessionList.add(entity);
|
|
|
- chatSessionService.saveBatch(sessionList);
|
|
|
- // 在redis中创建房间
|
|
|
- RoomInfo roomInfo = new RoomInfo();
|
|
|
- roomInfo.setSessionid(entity.getSessionid());
|
|
|
- roomInfo.setDataTable(entity.getDataTable());
|
|
|
- roomInfo.setLastTime(entity.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
- UserInfo userInfo1 = new UserInfo();
|
|
|
- userInfo1.setUserId(entity.getUserId());
|
|
|
- List<UserInfo> userList = new ArrayList<>();
|
|
|
- userList.add(userInfo1);
|
|
|
- roomInfo.setUserLIst(userList);
|
|
|
- redis.setValue("ROOM:" + entity.getSessionid(), roomInfo);
|
|
|
+// String sessionId = UUIDUtil.getUuidByTime9();
|
|
|
+// // 支付完成生成聊天室
|
|
|
+// ChatSessionEntity entity = new ChatSessionEntity();
|
|
|
+// entity.setSessionid(sessionId);
|
|
|
+// entity.setStatuz(1); // 状态1:正常0:屏蔽
|
|
|
+// entity.setUserId(caseEntity.getCreateUserId().toString());
|
|
|
+// entity.setCreateUserId(caseEntity.getCreateUserId().toString());
|
|
|
+// entity.setDataTable(2);// '问诊出诊 1问诊2出诊',
|
|
|
+// entity.setDataId(orderId);
|
|
|
+// entity.setCreateTime(date);
|
|
|
+// List<ChatSessionEntity> sessionList = new ArrayList<>();
|
|
|
+// sessionList.add(entity);
|
|
|
+// chatSessionService.saveBatch(sessionList);
|
|
|
+// // 在redis中创建房间
|
|
|
+// RoomInfo roomInfo = new RoomInfo();
|
|
|
+// roomInfo.setSessionid(entity.getSessionid());
|
|
|
+// roomInfo.setDataTable(entity.getDataTable());
|
|
|
+// roomInfo.setLastTime(entity.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
+// UserInfo userInfo1 = new UserInfo();
|
|
|
+// userInfo1.setUserId(entity.getUserId());
|
|
|
+// List<UserInfo> userList = new ArrayList<>();
|
|
|
+// userList.add(userInfo1);
|
|
|
+// roomInfo.setUserLIst(userList);
|
|
|
+// redis.setValue("ROOM:" + entity.getSessionid(), roomInfo);
|
|
|
// 完善诊单状态
|
|
|
/**
|
|
|
* 问诊:0待付款(创建订单) =》 1已付款(待接单)=》 2已接单 =》 3专家确认完成 =》 4用户确认完成(待评价) =》 5待归档(已评价) =》 6已归档 =》 7申诉中 出诊:0待接单(创建订单)
|
|
|
* =》1已接单(待报价) =》 2待付款(已报价) =》 3已付款(已付款,专家待确认) =》 4专家确认完成 =》 5用户确认完成(待评价) =》 6已评价(已完成) =》 7申诉中'
|
|
|
*/
|
|
|
caseEntity.setStatuz(3);
|
|
|
- caseEntity.setSessionId(sessionId);
|
|
|
+// caseEntity.setSessionId(sessionId);
|
|
|
caseEntity.setUpdateTime(date);
|
|
|
caseEntity.setOrderSerialNumber(tradeNo);
|
|
|
liftCaseService.saveOrUpdate(caseEntity);
|