|
@@ -776,8 +776,20 @@ public class AlipayServiceImpl implements AlipayService {
|
|
|
LiftCaseEntity caseEntity = liftCaseService.getOne(orderWrapper);
|
|
|
|
|
|
final int orderId = caseEntity.getId().intValue();
|
|
|
-
|
|
|
String sessionId = UUIDUtil.getUuidByTime9();
|
|
|
+ // 完善诊单状态
|
|
|
+ /**
|
|
|
+ * 问诊:0待付款(创建订单) =》 1已付款(待接单)=》 2已接单 =》 3专家确认完成 =》 4用户确认完成(待评价) =》 5待归档(已评价) =》 6已归档 =》 7申诉中 出诊:0待接单(创建订单) =》
|
|
|
+ * 1已接单(待报价) =》 2待付款(已报价) =》 3已付款(已付款,专家待确认) =》 4专家确认完成 =》 5用户确认完成(待评价) =》 6已评价(已完成) =》 7申诉中'
|
|
|
+ */
|
|
|
+ caseEntity.setStatuz(1);
|
|
|
+ caseEntity.setSessionId(sessionId);
|
|
|
+ caseEntity.setUpdateTime(date);
|
|
|
+
|
|
|
+ caseEntity.setOrderSerialNumber(tradeNo);
|
|
|
+ liftCaseService.saveOrUpdate(caseEntity);
|
|
|
+
|
|
|
+
|
|
|
// 支付完成生成聊天室
|
|
|
ChatSessionEntity entity = new ChatSessionEntity();
|
|
|
entity.setSessionid(sessionId);
|
|
@@ -787,11 +799,10 @@ public class AlipayServiceImpl implements AlipayService {
|
|
|
entity.setDataTable(1);// '问诊出诊 1问诊2出诊',
|
|
|
entity.setDataId(orderId);
|
|
|
entity.setCreateTime(date);
|
|
|
- List<ChatSessionEntity> sessionList = new ArrayList<>();
|
|
|
-
|
|
|
- sessionList.add(entity);
|
|
|
+// List<ChatSessionEntity> sessionList = new ArrayList<>();
|
|
|
+// sessionList.add(entity);
|
|
|
|
|
|
- chatSessionService.saveBatch(sessionList);
|
|
|
+ chatSessionService.save(entity);
|
|
|
|
|
|
// 在redis中创建房间
|
|
|
RoomInfo roomInfo = new RoomInfo();
|
|
@@ -805,17 +816,7 @@ public class AlipayServiceImpl implements AlipayService {
|
|
|
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(1);
|
|
|
- caseEntity.setSessionId(sessionId);
|
|
|
- caseEntity.setUpdateTime(date);
|
|
|
|
|
|
- caseEntity.setOrderSerialNumber(tradeNo);
|
|
|
- liftCaseService.saveOrUpdate(caseEntity);
|
|
|
|
|
|
if (caseEntity.getCouponId() != null) {
|
|
|
// 使用卡券,修改状态
|