|
|
@@ -691,6 +691,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
tConsumptionLog.setAmount(orderNew.getTotalPrice().negate());
|
|
|
tConsumptionLog.setBillNo(orderNew.getOrderNo());
|
|
|
tConsumptionLog.setOpenId(orderNew.getcOpenId());
|
|
|
+ // 余额支付
|
|
|
if (orderNew.getPayType().equals(MassageConstants.INTEGER_TWO)) {
|
|
|
tConsumptionLog.setBillType(BillTypeEnum.BALANCE_PAYMENT.getCode());
|
|
|
tConsumptionLog.setNote("余额支付");
|
|
|
@@ -701,8 +702,8 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
tConsumptionLog.setBillType(BillTypeEnum.CASH_PAYMENT.getCode());
|
|
|
tConsumptionLog.setNote("现金支付");
|
|
|
}
|
|
|
-
|
|
|
consumptionLogService.save(tConsumptionLog);
|
|
|
+
|
|
|
// 更新项目数据
|
|
|
JSONArray objects = orderNew.getcGoods();
|
|
|
objects.forEach(item -> {
|
|
|
@@ -723,8 +724,9 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
orderParam.setnStatus(OrderStatusEnum.SERVICE.getCode());
|
|
|
}
|
|
|
// orderParam.setnStatus(OrderStatusEnum.SERVICE.getCode());
|
|
|
- //更新及技师状态
|
|
|
+ //更新技师状态
|
|
|
updateJs(orderNew);
|
|
|
+ // 更新订单的信息
|
|
|
updateById(orderParam);
|
|
|
//
|
|
|
//this.newOrderNotification(orderNew);
|
|
|
@@ -1297,7 +1299,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
}
|
|
|
|
|
|
if (Objects.equals(js.getnStatus(), JsStatusEnum.JS_SERVICEABLE.getCode())) {
|
|
|
- // 更新技师状态
|
|
|
+ // 更新技师状态 服务中
|
|
|
js.setnStatus(JsStatusEnum.JS_SERVICE.getCode());
|
|
|
// 确保js.getnNum()不为null,避免 NullPointerException
|
|
|
int num = js.getnNum() == null ? 0 : js.getnNum();
|