|
@@ -1,10 +1,12 @@
|
|
|
package com.zswl.cloud.springBtach.server.core.job.dfy;
|
|
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
|
import com.github.microservice.auth.client.content.ResultState;
|
|
|
import com.zhongshu.payment.client.model.order.v2.GoodsResultModel;
|
|
|
+import com.zhongshu.payment.client.model.order.v2.UpdateGoodsModel;
|
|
|
import com.zhongshu.payment.client.model.payment.zswl.CreatePayment2Model;
|
|
|
import com.zhongshu.payment.client.service.v2.OrderService2;
|
|
|
import com.zhongshu.payment.client.service.v2.PaymentService2;
|
|
@@ -80,6 +82,13 @@ public class HotelPayJob {
|
|
|
standarPayJob.getResultContent().set(ResultContent.build(ResultState.Fail, "支付价格和渠道价格不相等"));
|
|
|
return RepeatStatus.FINISHED;
|
|
|
}
|
|
|
+ JSONObject entries = JSONUtil.parseObj(extend);
|
|
|
+ entries.set("orderDetailResponse",orderInfo.getConfirmationNumber());
|
|
|
+ UpdateGoodsModel updateGoodsModel = new UpdateGoodsModel();
|
|
|
+ updateGoodsModel.setExtend(JSONUtil.toJsonStr(entries));
|
|
|
+ updateGoodsModel.setId(goodsResultModel.getId());
|
|
|
+ orderService2.updateGoods(updateGoodsModel);
|
|
|
+
|
|
|
|
|
|
standarPayJob.getResultContent().set(paymentService2.creatPayOrder(createPayment2Model));
|
|
|
return RepeatStatus.FINISHED;
|