|
|
@@ -12,6 +12,7 @@ import zs.payment.dto.AfterSalesDTO;
|
|
|
import zs.payment.dto.OrderExpressUpdateDTO;
|
|
|
import zs.payment.dto.OrderItemDTO;
|
|
|
import zs.payment.entity.mongodb.supply.Orders;
|
|
|
+import zs.payment.entity.mongodb.supply.AfterSalesLog;
|
|
|
import zs.payment.exception.ApiException;
|
|
|
import zs.payment.messages.KafkaProducer;
|
|
|
import zs.payment.req.*;
|
|
|
@@ -21,6 +22,7 @@ import zs.payment.resp.Result;
|
|
|
|
|
|
import zs.payment.service.imseweishopexpress.ImsEweiShopExpressService;
|
|
|
import zs.payment.service.imseweishoporder.ImsEweiShopOrderService;
|
|
|
+import zs.payment.service.aftersales.AfterSalesLogService;
|
|
|
import zs.payment.service.order.OrdersService;
|
|
|
import zs.payment.service.supply.order.OrderSupplyService;
|
|
|
import zs.payment.service.supply.paysupply.PaySupplyService;
|
|
|
@@ -55,6 +57,9 @@ public class PaySupplyServiceImpl implements PaySupplyService {
|
|
|
@Autowired
|
|
|
private ImsEweiShopExpressService imsEweiShopExpressService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AfterSalesLogService afterSalesLogService;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Result orderPayOnly(OrderPayReq req) {
|
|
|
@@ -141,6 +146,16 @@ public class PaySupplyServiceImpl implements PaySupplyService {
|
|
|
afterSalesDTO.setId(respJson.getInteger("data"));
|
|
|
item.setAfter_sales(afterSalesDTO);
|
|
|
|
|
|
+ // 存储售后日志
|
|
|
+ AfterSalesLog salesLog = new AfterSalesLog();
|
|
|
+ salesLog.setOrderSn(req.getOrderSn());
|
|
|
+ salesLog.setReqParams(JSONObject.toJSONString(params));
|
|
|
+ salesLog.setRespResult(resp);
|
|
|
+ salesLog.setAfterSalesId(respJson.getInteger("data"));
|
|
|
+ salesLog.setActionType("afterSalesCreate");
|
|
|
+ salesLog.setCreateTime(System.currentTimeMillis());
|
|
|
+ afterSalesLogService.save(salesLog);
|
|
|
+
|
|
|
}
|
|
|
//保存order
|
|
|
ordersService.saveOrders(orders);
|